Add a Claude credential
Give Claude Code a credential in under a minute, and every space and run from your manifests can call Anthropic. This is the first thing to do before your agent writes a line of code. Marshal stores the value encrypted. The agent gets a placeholder, and Marshal swaps in the real value only on requests to Anthropic hosts.
Before you start
- Role: any member.
- Decide which credential matches how you pay for Claude. Both are valid:
| API key | Setup token | |
|---|---|---|
| Tab name | API Key | Setup Token |
| Starts with | sk-ant-api, sk-ant-svc, or sk-ant-usr | sk-ant-oat |
| Where it comes from | A key you create in the Anthropic console | A token from running claude setup-token on your own machine |
| Tied to | Your Anthropic API account | Your Claude.ai login |
| Agent environment variable | ANTHROPIC_API_KEY | CLAUDE_CODE_OAUTH_TOKEN |
Steps
- Get the value.
- API key: open console.anthropic.com, go to API Keys, click Create Key, and copy the key.
- Setup token: on your own machine, run
npm install -g @anthropic-ai/claude-code, thenclaude setup-token. Finish the browser sign-in and copy the token it prints.
- In Marshal, open Connections in the left rail.
- On the Claude Code card, click Connect (or Add another if you already have one).
- In the Connect Claude Code dialog, choose the API Key tab or the Setup Token tab.
- Paste the value in Anthropic API Key or Setup Token. The dialog checks the prefix before it lets you save.
- Optional: set a Display name, for example “Team key”. You use this name to pick the credential in a manifest.
- If an Owner field is shown, choose who owns the credential: Just me, a team, or Everyone in the organization. The default is Just me. The field appears only if you lead a team or are an admin. You can also share it later.
- Click Save.
What you should see
- The dialog closes and Claude Code appears under Your connections with a status dot.
- The row has the actions Share, Rotate, and a delete icon. The value is never shown again. To replace it, use Rotate.
- Spaces and runs started from a manifest that uses Claude Code use this credential. If a credential needs attention, the row shows Needs reconnect.
Next
Connect GitHub, then create a manifest. With Claude and GitHub in place, your manifest is ready to launch.