Add your Claude credential
Save your Claude setup token on the Hub once, so the Sessions you start can run Claude’s Models on your own Claude subscription, on any Runner.
It’s your Connected provider for Anthropic. Without it, Claude’s Models aren’t among yours to pick, and you can’t start a Claude Code Session. For other Providers’ Models, see Connect your Providers.
What you need
Section titled “What you need”- A Claude subscription (Pro, Max, Team or Enterprise), and Claude Code on any machine.
- The Hub’s secrets key,
HUB_SECRETS_KEY, which whoever runs the Hub sets up: see Use variables and secrets.
The Hub takes setup tokens only, not Anthropic API keys (#334).
Add it
Section titled “Add it”-
On any machine with Claude Code, make a token:
Terminal window claude setup-tokenSign in in the browser it opens. It prints a token starting
sk-ant-oat, valid for a year. Copy all of it. -
In kndl, press your name at the bottom of the sidebar, then Account.
-
Under Connect a Provider, press Add setup token on Anthropic’s line. Paste the token in Setup token, and press Save.
The Hub checks the token with Anthropic before it stores it, at no cost. Once saved, the page shows its last 4 characters and when you added it, never the token itself. Claude’s Models are then among yours in the model picker. Claude Code learns your plan from Anthropic, so there’s nothing to pick.
If Anthropic rejects it, nothing is stored, and the Hub says why. Make a new token and try again: see A Claude credential can’t be saved.
Choose what runs Claude’s Models
Section titled “Choose what runs Claude’s Models”Once your token is saved, Anthropic comes first under Providers, and Run Claude’s Models with, under its row, picks the Harness your new Sessions start Claude on:
- Claude Code, the default: Claude Code itself, with Claude’s own tools.
- pi: Claude as one of pi’s Models, with the same tools and subagents as your other Providers.
It sets what New Session preselects. The model picker offers both either way, under Anthropic · Claude Code and Anthropic · pi, and picking the other switches the Session’s Harness. Both run on your Claude subscription.
What it’s used for
Section titled “What it’s used for”Only the Sessions you start run on your token, with their subagents, and only you prompt them. Others with access to the Repo watch. See Several people, one Session.
Claude’s Models run through Claude Code, in the Session’s Sandbox, so your token is there too, in each of your awake Sessions. Code running there can read it. Start Sessions on Repos you trust. See the security model.
Replace or remove it
Section titled “Replace or remove it”In Anthropic’s ⋯ menu, under Providers:
- Replace the setup token pastes a new token, such as when the old one expires.
- Remove the setup token takes it off the Hub.
Either way, your awake Sessions go to sleep, each saying why. A replaced token reaches a Session when you next wake it. After a remove, Claude’s Models leave your model picker, and your Claude Code Sessions can’t wake until you add a token again.
Neither revokes the old token with Anthropic.
Next steps
Section titled “Next steps”kndl is an independent project. It is not affiliated with or endorsed by Anthropic. Claude and Claude Code are trademarks of Anthropic, PBC. About kndl