Claude subscription
Already paying for Claude Pro or Max? Use that plan as a model source. routeplane providers login anthropic runs the same OAuth flow Claude Code uses, stores a refreshing token, and attaches it to every request to the anthropic provider — so your subscription’s usage covers the tokens and there’s no ANTHROPIC_API_KEY to manage.
Log in
Section titled “Log in”routeplane providers login anthropicThis opens Anthropic’s authorize page in your browser (PKCE), and on approval stores the credential under $XDG_DATA_HOME/routeplane/oauth-tokens.json. The token auto-refreshes — you log in once. To check or remove it later:
routeplane providers logout anthropic # remove the stored credentialMultiple accounts
Section titled “Multiple accounts”Each credential is keyed by (provider, label). Pass --label to keep more than one Claude account side by side:
routeplane providers login anthropic --label workrouteplane providers login anthropic --label personalRoute to it
Section titled “Route to it”No routeplane.yaml block is required — the anthropic provider is built in, and the stored credential is found at request time. Address Claude models by their registry id:
routeplane route anthropic:claude-sonnet-4-6Then start Routeplane and send a request. Use the provider-qualified id anthropic:claude-sonnet-4-6 to pin the request to your subscription, or the bare model name to let Routeplane cascade across active sources.
Run Claude Code through Routeplane (with telemetry)
Section titled “Run Claude Code through Routeplane (with telemetry)”Use Routeplane as a transparent harness for the Claude Code CLI — with Routeplane in the path purely for side-effects: observability today, optional model rerouting tomorrow. From a freshly-installed routeplane:
1. Adopt your existing Claude Code session as the claude-code subscription provider (drives the claude CLI’s own login if you’re not signed in yet):
routeplane providers login claude-code2. Turn on full first-party telemetry (off by default) — create ~/.routeplane/routeplane.yaml:
server: skip_auth: true # local daemon: admit credential-less spawn trafficplugins: routeplane-observe: telemetry: enabled: true # nothing is exported unless you opt in level: full # metadata + request/response content (use `metadata` to omit content) # endpoint omitted → defaults to https://telemetry.routeplane.app3. Start the daemon in the background and verify it’s up:
routeplane start # detached; logs to ~/.routeplane/routeplane.logrouteplane status # running: yes — listen 127.0.0.1:4356routeplane observe status # telemetry exporter endpoint + state4. Launch an interactive Claude Code session pointed at Routeplane:
routeplane spawn -a claude # interactive; run `routeplane stop` when you're doneGenuine Claude Code traffic — recognised by its anthropic-beta: claude-code-* agent-profile marker — is routed to your subscription; anything else falls through to your other configured providers. Telemetry is attributed to an anonymous install id. (Optional: run routeplane cloud login first to also serve non-Claude-Code models from your Routeplane Cloud account.)
Learn more
Section titled “Learn more”- Claude Code — point the Claude Code CLI at Routeplane (a harness), distinct from using your plan as a model source above.
- Models — the full
provider/modelid scheme. - Model fallback — fail over from your subscription to a hosted model on overload.