Point Anthropic's official CLI at the Byoky bridge.
No API credits needed. Keys stay in your wallet.
@byoky/bridge@1.1.1+ (the bridge token, streams longer than two minutes, and auto-recovery when the browser restarts the extension). Get the extension from the Chrome Web Store, or from the latest GitHub release.Already paying for Claude Pro or Max? Connect it to Byoky with a setup token and Claude Code runs on the same subscription credits you already use in claude.ai. No API credits, no per-token billing.
Uses your existing plan.
Already on Anthropic's API tier? Keep the key in your wallet instead of your shell config. Claude Code calls it through the bridge and never sees it.
Pay-per-use, billed by Anthropic.
The wallet holds the Anthropic credential (your API key or a Claude Pro/Max setup token) and proxies every request. Claude Code runs on your desktop, so the wallet needs to live in a desktop browser on the same machine.
Two options — pick whichever fits.
claude setup-token in your terminal and paste the result into Byoky. Claude Code runs on your existing plan, no API credits needed.Claude Code is Anthropic's CLI. The Bridge is the tiny local proxy that sits between Claude Code and your wallet.
npm install -g @anthropic-ai/claude-code
npm install -g @byoky/bridge
byoky-bridge installbyoky-bridge install writes a native messaging host manifest that whitelists the Byoky extension. Restart your browser once so Chrome picks up the manifest. You only ever do this once per machine.
One command that opens the browser, approves a session, and starts the bridge proxy on :19280.
byoky-bridge connectA browser tab opens on http://127.0.0.1:19281. Click Connect wallet, approve the session in the Byoky popup, and the tab reports success. The bridge is now listening on 127.0.0.1:19280 and stays up as long as your browser is running. Re-run the command after a browser restart.
Verify it:
curl -H "x-api-key: $(byoky-bridge token)" http://127.0.0.1:19280/health
# → {"status":"ok","providers":["anthropic",...]}If anthropic is missing, the wallet doesn't have an Anthropic credential loaded yet — go back to step 2.
Two env vars and you're done.
export ANTHROPIC_BASE_URL=http://127.0.0.1:19280/anthropic
export ANTHROPIC_API_KEY=$(byoky-bridge token)
claudeAdd the two export lines to ~/.zshrc or ~/.bashrc so new terminals pick them up. Use ANTHROPIC_API_KEY (not AUTH_TOKEN) — it's what Claude Code's first-run wizard checks to skip the OAuth login prompt. The key is the bridge token, a random secret stored in ~/.byoky-bridge/token: the bridge refuses requests without it, so other programs on your machine can't spend your keys. It then strips the header and the wallet injects the real credential. Token usage shows up in the wallet's Sessions view.
Fresh Claude Code install? The wizard may still show a brief theme picker — arrow-key through it and it'll land you in chat once it sees ANTHROPIC_API_KEY. If it still shows an OAuth URL to platform.claude.com, you have a stale ~/.claude.json — delete it and re-run claude.
Pro tip: run claude --model claude-sonnet-5-5 (or whichever model your plan covers) if you hit a model access error.
Anthropic classified your request as non-Claude-Code. Almost always this means the wallet is using an API key instead of an OAuth setup token. Run claude setup-token in your terminal, paste the result into the wallet as a fresh Anthropic credential, and retry.
The bridge proxy isn't listening yet. Run byoky-bridge connect — it opens a tab, waits for you to approve the session in the wallet, and starts the proxy on :19280. After a browser restart the proxy stops (the extension's service worker holds it open), so re-run the command to bring it back.
ANTHROPIC_API_KEY isn't the bridge token in this shell. Run export ANTHROPIC_API_KEY=$(byoky-bridge token) and retry.
The key stored in your wallet is wrong or revoked. Grab a fresh one from console.anthropic.com or re-run claude setup-token, and paste it into the wallet.
Your Anthropic key or Pro/Max plan is being throttled upstream (the limit is on your Anthropic account, not on Byoky). Wait for the window to clear, or switch to a smaller model.
The wallet's 20-minute idle auto-lock fired while Claude Code was running — CLI traffic wasn't counting as wallet activity, so the timer ran out even during active sessions. Fixed in v0.9.10: bridge requests now reset the idle timer, and the bridge's authorized session key persists across MV3 service-worker evictions. v0.9.13 closes the last gap — when MV3 evicts the service worker mid-session, the bridge auto-restarts on the next keepalive tick instead of leaving Claude Code stuck on ECONNREFUSED. Update from the Chrome Web Store or Firefox Add-ons. On older builds the only workaround is clicking the wallet popup every ~15 minutes to reset the timer.
The bridge snapshotted your providers before you added the Anthropic credential. Open the wallet popup, end the current session, and re-run claude — it will request a new session with the updated provider list.
byoky-bridge install only lets the Web Store extension launch the bridge. For the unpacked build, run byoky-bridge install --dev, restart the browser, and reload the unpacked extension.
The browser starts the bridge, so the bridge's error output goes to the browser: start Chrome from a terminal to see it there, or open Firefox's Browser Console. Errors from Anthropic come back to the client unchanged. For a deep dive on why some configurations classify as third-party, see Bisecting Anthropic's Claude Code fingerprint.
claude → HTTP → Bridge (localhost:19280/anthropic) → Extension → api.anthropic.com
↑
Keys live here. Always.$ANTHROPIC_BASE_URL — pointed at http://127.0.0.1:19280/anthropic.x-api-key, strips it, and forwards the request to your Byoky extension via native messaging.api.anthropic.com directly.For OAuth credentials (Pro/Max setup tokens), the extension routes outbound calls through the bridge a second time so the request is made from Node instead of Chrome. The bridge then holds the setup token in memory for that request; it runs as your user and never writes the token to disk or logs it. That bypasses the TLS fingerprint Anthropic uses to classify Claude Code vs. third-party apps — see the fingerprint post for the full story.
Install the wallet, add your setup token, and you'll be running Claude Code through Byoky in under five minutes.