Skip to Content
How-to guidesAdd a Claude credential

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 keySetup token
Tab nameAPI KeySetup Token
Starts withsk-ant-api, sk-ant-svc, or sk-ant-usrsk-ant-oat
Where it comes fromA key you create in the Anthropic consoleA token from running claude setup-token on your own machine
Tied toYour Anthropic API accountYour Claude.ai login
Agent environment variableANTHROPIC_API_KEYCLAUDE_CODE_OAUTH_TOKEN

Steps

  1. 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, then claude setup-token. Finish the browser sign-in and copy the token it prints.
  2. In Marshal, open Connections in the left rail.
  3. On the Claude Code card, click Connect (or Add another if you already have one).
  4. In the Connect Claude Code dialog, choose the API Key tab or the Setup Token tab.
  5. Paste the value in Anthropic API Key or Setup Token. The dialog checks the prefix before it lets you save.
  6. Optional: set a Display name, for example “Team key”. You use this name to pick the credential in a manifest.
  7. 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.
  8. 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.