Claude Code × Byoky

Run Claude Code — on your Pro/Max plan, through your wallet.

Claude Code

Point Anthropic's official CLI at the Byoky bridge.
No API credits needed. Keys stay in your wallet.

Start Setupor
Requires the Byoky extension v1.1.1+ and @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.
Two ways to run Claude Code

Your Claude Pro/Max subscription

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.

Your Anthropic API key

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.

1

Install the Byoky wallet

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.

Pick your browser:

The iOS and Android wallets can't host Claude Code — the claude CLI and the Byoky Bridge need a desktop OS (macOS or Linux; the bridge doesn't support Windows yet) and the browser extension. The mobile wallets serve web apps on the phone itself.

2

Add an Anthropic credential

Two options — pick whichever fits.

Claude Pro/Max setup token — run claude setup-token in your terminal and paste the result into Byoky. Claude Code runs on your existing plan, no API credits needed.
Your own API key — add an Anthropic API key directly. Only do this if you already pay for the API tier (otherwise Claude Code won't classify as first-party and will fail with a billing error).
3

Install Claude Code and the Byoky Bridge

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 install

byoky-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.

4

Connect the wallet

One command that opens the browser, approves a session, and starts the bridge proxy on :19280.

byoky-bridge connect

A 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.

5

Point Claude Code at the bridge and run

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)
claude

Add 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.

If something doesn't work

"Third-party apps now draw from your extra usage..."

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.

ECONNREFUSED 127.0.0.1:19280

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.

HTTP 401 "Missing or invalid bridge token"

ANTHROPIC_API_KEY isn't the bridge token in this shell. Run export ANTHROPIC_API_KEY=$(byoky-bridge token) and retry.

"invalid x-api-key" or "Invalid bearer token"

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.

Anthropic keeps returning 429 rate_limit_error

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.

HTTP 401 "Byoky bridge session expired or revoked" mid-conversation

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.

"provider not available in this session" after I added the key

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.

The bridge works but Chrome won’t talk to it on my unpacked build

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.

How it works

claude → HTTP → Bridge (localhost:19280/anthropic) → Extension → api.anthropic.com
                                                       ↑
                                              Keys live here. Always.
  1. Claude Code CLI sends requests to $ANTHROPIC_BASE_URL — pointed at http://127.0.0.1:19280/anthropic.
  2. The bridge checks the bridge token in x-api-key, strips it, and forwards the request to your Byoky extension via native messaging.
  3. The extension injects the real Anthropic credential and makes the call. Your API key never leaves the extension; a setup token is handed to the bridge for that request, as below.
  4. The streaming response flows back through the same path — Claude Code sees plain SSE, exactly as if it talked to 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.

Ready to try it?

Install the wallet, add your setup token, and you'll be running Claude Code through Byoky in under five minutes.

Run Claude Code with Byoky — on your existing Claude Pro/Max plan — Byoky