Skip to main content
Weave Router uses two independent credentials: a router key that identifies your organization to Weave, and your provider credentials that pay for the inference. They travel in different headers and never replace each other.

The two credentials

A router key is not an Anthropic or OpenAI API key. Installing the router does not move you onto per-API billing. If your requests suddenly bill per API call, the cause is almost always a provider API key set in your environment — see subscription pass-through below.

Issuing and managing keys

Keys live in the Router keys panel of router settings. Any member can create their own key there; org admins manage every key.
  • Issue a key per engineer or per environment. Name it so you can tell them apart later.
  • Spend cap — set an optional per-key dollar cap at issue time or later. It’s a lifetime cap, not a monthly one: once the key’s paid spend reaches it, paid requests on that key get a 402 until you raise the cap or issue a new key. Leave it blank for uncapped.
  • Rotate — replaces the token. The old one stops working, so re-run the installer with the new key.
  • Revoke — the token stops working immediately.
The full token is shown once, at issuance or rotation, together with the install one-liners. Weave stores only a hash, so a lost key must be rotated. Members can create keys for themselves and revoke their own keys. Spend caps, rotation, and revoking other people’s keys are admin-only.

Subscription pass-through

When your engineers are on a Claude (Pro, Max, Team, Enterprise) or ChatGPT/Codex subscription, the router forwards their existing provider credentials upstream, so plan-covered turns bill to the plan and consume no Weave credits. This works for any plan where the client is signed in with a Claude or ChatGPT account, including Claude Enterprise and ChatGPT Enterprise. API keys are never forwarded. For the full plan-by-plan list, see what to connect for your plan. For Claude Code this requires:
  • Claude Code signed in with your Claude subscription, which the installer leaves alone so its OAuth token still pays for the call (CLAUDE_CODE_OAUTH_TOKEN works too, but isn’t required)
  • ANTHROPIC_API_KEY not set — if it is, Claude Code uses it and you get per-API billing
  • The router installed with your rk_… key, which only adds the base URL and the key header
Because subscription turns are paid by the plan, your credit balance can stay flat while usage is heavy. That is expected, not a reporting bug. To price your workload as if the subscription didn’t exist, switch subscription routing to Use prepaid credits only in models and routing.

Signing in to the router dashboard

router.workweave.ai supports GitHub, Google, and SAML/OIDC single sign-on (SSO). SSO is the same configuration used by the main Weave app — see SSO. Sign-in is for the dashboard only; agent traffic authenticates with the router key, not a browser session.
Machine-to-machine identity federation — registering your own OIDC issuer, or exchanging an identity-provider token for a router credential — is not available today. Provision router keys through your secret manager for VM, container, and CI environments, and set WEAVE_ROUTER_KEY in the environment before running the installer with --non-interactive.

Using your own provider keys

You can run inference on your own provider accounts instead of Weave’s. Add a key per provider under Billing & spend → Your provider keys. Requests then bill to your provider account directly and Weave charges a platform fee against your credit balance. See bring your own keys. Each key’s Used setting decides whether it pays before or after the Claude or ChatGPT plan an engineer is signed in with. With After plans, the default for new keys, an engineer’s Claude Code turns stay on their Claude plan and the key only pays for turns the plan can’t serve, such as a turn routed to another provider. With Before plans, the key pays for every request to its provider. See key or plan first. If those requests go through an enterprise gateway rather than the vendor — Snowflake Cortex, a private-cloud deployment, an internal proxy — see custom endpoints and gateways, which also covers gateways that authenticate with an RSA key pair instead of a token.

Anthropic workload identity federation

For managed deployments, a Weave operator must first verify ownership and approve the installation’s exact Anthropic target in the managed release configuration. Contact your deployment operator before setting up the connection; tenant-entered identifiers alone do not authorize it. For Anthropic API usage, you can connect the router’s workload identity instead of storing a long-lived Anthropic API key. Under Your own provider keys, select Anthropic, then Anthropic workload identity. Enter the federation rule ID, Anthropic organization ID, and Anthropic service account ID created in the Claude Console. Enter the workspace ID when the rule covers multiple workspaces. The audience defaults to https://api.anthropic.com and must match the rule. The rule must trust the identity of the router serving your requests. For Google Cloud, register https://accounts.google.com as the issuer and match the router service account’s numeric subject and email. The target Anthropic service account must be a member of the workspace. Coordinate the router workload identity with your deployment administrator; a developer’s local Google login is a different identity. See Anthropic’s setup guide. Weave exchanges short-lived identity assertions for Anthropic API access tokens and refreshes them automatically. Anthropic bills the selected workspace, and Weave applies the usual BYOK platform fee. This connection uses Anthropic API billing independently of Claude subscription plans. Requests to Weave still use your router key. For self-hosted routers using a projected OIDC token, mount a rotating JWT file and set ANTHROPIC_IDENTITY_TOKEN_FILE on the router. Assertions with a jti claim must be replaced before each exchange. Snowflake gateway WIF remains a separate authentication option with its own audience and setup; changing its audience does not enable Anthropic federation. Custom API endpoints are unavailable for native Anthropic federation. Verify the connection with the saved credential’s model listing and a small inference request, then check the rule’s authentication history and workspace usage in the Claude Console. If token renewal fails near expiry, requests fail with a temporary service error instead of silently using a platform API key.

Calling the router directly

Any client that speaks the Anthropic Messages, OpenAI Chat Completions, or Gemini generateContent API can use the router without the installer. Send your key as a bearer token or in the X-Weave-Router-Key header:
The OpenAI-compatible surfaces are https://router.workweave.ai/v1/chat/completions and https://router.workweave.ai/v1/responses, and Cursor-style clients use https://router.workweave.ai/v1 as the base URL.
Last modified on November 17, 2026