Documentation
¶
Overview ¶
Package claudesub turns a Claude Pro/Max subscription into a memcode backend by reusing the login the Claude Code CLI already stored. It reads the OAuth token from ~/.claude/.credentials.json (and, on macOS, the Keychain), reconciles the two, refreshes an expired token, and returns the access token. The token is then used through the Anthropic adapter's Claude Code compatibility mode (internal/providers/anthropic/oauth.go), where the actual impersonation lives — this package only resolves the credential.
Consent-gated upstream: it activates only when the user explicitly selects the claude source. It reuses Claude Code's file; refreshed tokens are written back there (never the Keychain), atomically at 0600.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.