Connect Anthropic to OpenClaw
Use your Anthropic API key or a Claude Code token to power your Lobsterland agent with Claude models. We recommend the API key. A Claude Code setup token still authenticates, but Anthropic restricts Claude subscription use from third-party and hosted clients, so that traffic can draw additional metered usage rather than being covered by your Claude Pro/Max plan — budget for it as API spend, not as something your subscription absorbs. If you want the subscription route for cost reasons, ChatGPT (Codex) is the one that currently works as advertised; see connecting OpenAI.
How to get API key
- Go to console.anthropic.com
- Sign in or create an account
- Open API Keys and create a new key
- Copy the key and paste it into the Lobsterland wizard
Tip: Add spending limits in the console to avoid surprises.
Claude Code setup token
An alternative to the Anthropic API key is the Claude Code setup token, obtained via the Claude Code CLI.
- Install the Claude Code CLI (see official docs).
- In a terminal run:
claude setup-token - Copy the printed token value.
- In the Lobsterland wizard, select Auth Method: Claude Code Token (
claude_code_token) and paste the token.
Note: Treat the token as secret. If claude command is not found, install or update Claude Code.
A caveat worth reading before you pick this path. The Claude Code token authenticates and your agent will run, but Anthropic limits Claude subscription use from third-party and hosted clients — so it can consume additional metered usage instead of drawing on your Claude Pro/Max plan. Do not assume a Claude subscription replaces API billing here. For predictable costs on Anthropic, use an API key; for a subscription that does behave as advertised, see ChatGPT (Codex).
Ready to launch?
Once you have your Anthropic credentials, go to the dashboard to complete setup.