Claude Code
Anthropic's Claude Code agent for AI-assisted coding
Claude Code is Anthropic's official coding agent, powered by Claude. It excels at understanding complex codebases and making thoughtful, well-reasoned changes.
Overview
| Feature | Details |
|---|---|
| Provider | Anthropic |
| CLI Tool | claude |
| Auth Methods | API key, Claude Max/Pro subscription |
Sesame automatically downloads and caches the Claude Code CLI binary when a session starts. You do not need to install it manually.
Authentication
Claude Code has two tabs in the Agent Credentials dialog: Subscription and Anthropic API Key.
Subscription (Claude Max/Pro)
Use your Claude Pro or Claude Max subscription:
Option A: Sign in directly (recommended)
- Go to Settings → Agent Credentials → Claude Code → Subscription tab
- Click Sign in with Claude Code
- Complete the browser authentication when prompted
- Sesame handles the rest automatically
Option B: Enter a token manually
If you already have a token (e.g., from running the CLI locally):
- Run
claude setup-tokenin your terminal - Complete the browser authentication
- Copy the token (starts with
sk-ant-oat01-) - In Sesame: Agent Credentials → Claude Code → Subscription tab → paste below the "or enter token manually" divider
API Key
- Get an API key from Anthropic Console
- Add to Sesame:
- UI: Agent Credentials → Claude Code → Anthropic API Key tab
- Environment variable: Set
ANTHROPIC_API_KEY
Environment Variables
| Variable | Description |
|---|---|
ANTHROPIC_API_KEY | API key for Claude |
CLAUDE_CODE_OAUTH_TOKEN | Subscription OAuth token |
Troubleshooting
"Authentication failed"
- API key: Verify key is valid at Anthropic Console
- Subscription: Obtain a fresh token using
claude setup-token(on your local machine) and update credentials in Sesame
"Rate limited"
- API has rate limits based on your plan
- Subscription users: Check your plan's usage limits
- Consider upgrading your plan for higher limits
Agent hangs
- Claude Code may pause for complex reasoning
- Check session logs for progress
- Large context operations take longer
Token expired
Subscription tokens may expire. Obtain a fresh token:
claude setup-tokenThen update the token in Sesame's Agent Credentials.
Bootstrap failed
If the agent binary fails to download:
- Check that the sandbox has internet access
- Verify network/firewall rules allow HTTPS to
claude.ai - Check the session logs for specific download errors
Pricing
For current pricing, see Anthropic Pricing.