Sign into Bifrost from Claude Code: Run /login with Bifrost set as the Cloud gateway
Anuj Parihar
Dec 01, 2026 · 3 min read

Bifrost already routes Claude Code through the Gateway with a virtual key. From v2.6.0 onward, Bifrost can also be the gateway Claude Code signs in to: developers run /login, approve the sign-in in their browser, and every request runs under their identity.
Platform teams route Claude Code through Bifrost so its model requests follow the same allowed models, budgets and rate limits configured on the gateway. Today, each developer sets a virtual key in ANTHROPIC_AUTH_TOKEN, in their shell or in Claude Code's settings. Every developer has to set it up, and the key is stored on their laptop from then on.
Claude Code also has a sign-in made for company gateways, called Cloud gateway. An admin puts the gateway's URL in Claude Code's managed settings, and developers sign in with /login instead of setting up a credential themselves.
With Bifrost v2.6.0, Bifrost serves that gateway at /gateway/claude-code. Put the URL in Claude Code's managed settings, and developers sign in to Bifrost from inside Claude Code.
Let developers sign in to the Gateway from Claude Code
Consider Anuj, an engineer on the payments team. His laptop already has the managed settings that point Claude Code at Bifrost. He runs /login, presses Enter on the Cloud gateway screen, and Bifrost's sign-in page opens in his browser. He checks that the code on the page matches the one in his terminal, then picks who he signs in as:
- A virtual key: His requests run under that key's allowed models, budgets and rate limits.
- His own account: Bifrost authenticates him through your identity provider first. His requests are logged under him, his team or his business unit, and his access profile applies. This is available only in Bifrost Enterprise.
Claude Code never receives the virtual key. It gets a short-lived token tied to the identity Anuj picked, keeps it in the machine's secure storage, and refreshes it on its own. Bifrost checks that identity on every request, so deactivating the virtual key or the user cuts the session off on the next request. Signing out with /logout stops the session from refreshing, and the token Claude Code holds expires within 10 minutes by default.
Send managed settings and collect telemetry through Bifrost
A signed-in Claude Code also asks its gateway for two things, and Bifrost serves both:
- Managed settings: Whatever you put in Managed settings (JSON) under Settings → Gateways reaches every signed-in Claude Code, refreshed about hourly. Only admins can change it, and by default it takes the place of a managed settings policy you already deploy (how sources combine). For example, fill the
/modelpicker with the models Bifrost serves, or deny a tool for everyone. - Telemetry: Claude Code sends its OpenTelemetry metrics, logs and traces to the gateway it's signed in to. Turn on Forward telemetry, and Bifrost forwards them to your own collectors, stamped with the virtual key, team, customer or user that signed in. It can also drop attributes such as prompt text before they leave Bifrost. With it off, Bifrost discards them.

Set it up
- In Bifrost, go to Settings → Gateways, set the Issuer URL to the stable URL developers reach Bifrost on, and turn on Enable Claude Code sign-in. The page shows the gateway URL to give developers.
- Deploy that URL to developer machines in Claude Code's
managed-settings.json, through MDM or the per-OS file:
- Developers run
/loginin Claude Code and press Enter on the Cloud gateway screen.
Once this file is on a machine, Claude Code there stops accepting a virtual key in ANTHROPIC_AUTH_TOKEN, so leave it off CI runners. The sign-in needs a browser, so CI jobs keep using a virtual key.
Claude Code signs in only to a gateway served over HTTPS whose hostname resolves to a private network address. Plain HTTP works only on localhost, which is what the video above demonstrates.
If your developers have no Bifrost dashboard account, as is common on open source deployments, turn on dashboard authentication and then Allow Temp Token Auth Links on the same page, so they can approve a sign-in with their virtual key.
Get started
Upgrade to Bifrost v2.6.0 and follow the Claude Code setup guide.