Connecting Claude
Harvis needs a token from your own Claude plan to run Claude Code inside your instance. This walks through the Account page's Connect Claude card — the assisted way to get one — and what to do if something looks wrong afterward.
Steps
Open the Connect Claude card
On your Account page, find the Claude Code token card. It tells you whether a token is already stored, and gives you one button: "Get a token" (or "Get a new token" if you're reconnecting).
Click "Get a token"
Harvis runs claude setup-token inside your own instance — the official Claude Code command for minting a token from your own subscription — and shows you the sign-in link it prints.
Anyone who'd rather run that command themselves, on their own machine, can copy it and skip this flow entirely. That path stays fully supported.
Open the link and approve, in your own browser
The link goes straight to Anthropic. Harvis shows you exactly where it points before you click, and is not part of that exchange — you approve access with Anthropic directly, the same as you would on your own machine.
Copy the code back and finish
Anthropic's approval page gives you a code. Paste it into the field Harvis shows and click Finish. Harvis types it into the same claude setup-token process that's still waiting inside your instance — it carries the code in, nothing more.
Review before it's saved
Once the code is accepted, Harvis shows you two things side by side: the raw text your instance actually printed, and a token field pre-filled with what it extracted from that text.
Nothing has been applied yet at this point. Check that the two agree — fix the token field by hand if anything looks off — then click Save. That Save is the one step that actually writes the credential, to your instance, and to Harvis's own storage so it survives a rebuild.
Confirm it's connected
The status above the card turns green once Claude is actually answering with the new token — this takes a few seconds while your instance restarts the session to pick it up.
Already have a token?
Already minted a token on another machine, or rotating one without going through the link/code steps again? The card has an "Already have a token?" link that opens a plain paste field — stored and applied the exact same way, just without the assisted walk-through.
A token always starts with sk-ant-oat. If you paste an Anthropic API key (sk-ant-api…) instead, Harvis rejects it before it ever reaches your instance — API keys and subscription tokens are different credentials, and an API key saved here boots an instance that looks healthy and never answers.
Troubleshooting
Every status/diagnostic looks green, but chat still says "please run /login" or a 401 error
This is three different failures that wear the same symptom, and nothing short of actually asking Anthropic can tell them apart:
- The token never actually got written where your instance looks for it.
- A stale cached session from a previous sign-in is winning over the fresh token.
- The token that landed is itself bad — written successfully, loaded successfully, and still rejected by Anthropic.
How do I tell which of those it is?
Use the Token probe on the same Account page. Unlike every other diagnostic, it sends one real message straight to Anthropic, outside your normal chat session entirely — so "Anthropic accepted the token: no" means the credential itself is the problem, not anything about how your instance is wired up.
The token probe says Anthropic rejected it — now what?
Go through Get a token again. The review step in Step 5 above exists for exactly this: compare the raw output against the pre-filled field before saving, so a bad extraction can't quietly repeat itself.
Does this token expire?
Yes, eventually — Claude Code tokens are long-lived but not permanent. If one that's been working for a long time suddenly stops, the fix is the same flow: click "Get a new token" and go through Steps 2–6 again.
Setup guide
The full install, from Docker to a running instance — includes the self-hosted (non-cloud) Claude login path.
Setup guide →About Harvis
What Harvis actually is, how the pieces fit together, and what to ask Claude once it's connected.
Overview →