API Setup

Moltbot and Clawdbot require a valid model API key. Use this guide to configure and verify your key.

1) Create an API key

Use the provider dashboard to create a key. For Anthropic, go to console.anthropic.com and generate a key.

2) Set the environment variable

export ANTHROPIC_API_KEY="your_key"

Add this line to your shell profile (for example, ~/.zshrc) so it persists.

3) Verify access

Run the CLI once and confirm there are no 401 or invalid key errors.

moltbot doctor