Documentation Index
Fetch the complete documentation index at: https://docs.wednesdayai.dev/llms.txt
Use this file to discover all available pages before exploring further.
Anthropic
WednesdayAI uses Anthropic’s Claude models for its default AI. This page covers every authentication path and the Anthropic-specific config options: thinking mode and prompt caching.Authentication
API key (recommended for most deployments)
Obtain an API key from console.anthropic.com → API Keys. Authenticate via the interactive wizard:| Source | Key / path |
|---|---|
| Environment variable | ANTHROPIC_API_KEY |
| Stored credential | ~/.openclaw/credentials/anthropic |
| Config file | providers.anthropic.apiKey (not recommended — key ends up in config) |
Key rotation
To rotate without downtime, pass multiple keys as a comma-separated list:Setup token (Pi and embedded agents)
If you use WednesdayAI on a Raspberry Pi or headless server and cannot paste a key interactively, generate a short-lived setup token on a machine where you are already authenticated:~/.openclaw/credentials/. It expires after 15 minutes.
Selecting a model
Set the default model in~/.openclaw/openclaw.json:
| Model | ID |
|---|---|
| Claude Sonnet 4.6 | claude-sonnet-4-6 |
| Claude Opus 4.7 | claude-opus-4-7 |
| Claude Haiku 4.5 | claude-haiku-4-5-20251001 |
Thinking mode
Claude Sonnet and Opus support extended thinking — the model reasons through a problem before responding. This improves quality on complex tasks at the cost of extra tokens and latency.| Value | Behaviour |
|---|---|
off | Thinking disabled for all requests |
adaptive | Gateway decides based on query complexity (default for Claude 4.6+) |
always | Thinking enabled on every request |
/think on or /think off.
Prompt caching
Anthropic’s prompt caching reuses the KV cache for repeated system-prompt prefixes, cutting cost and latency on long system prompts.| Value | Cache TTL | Cost savings |
|---|---|---|
off | No caching | None |
short | 5 minutes | ~10% per cached request |
long | 1 hour | ~25% per cached request |
long is most effective when the same agent has a large, stable system prompt across many conversations.
Troubleshooting
401 Unauthorized
401 Unauthorized
529 Overloaded
529 Overloaded
Anthropic is under load. The gateway retries automatically with exponential backoff. If it persists, add a second API key to spread load — see Key rotation above.
Model not found
Model not found
The model ID is wrong or the model is not available on your tier. Run
openclaw status --providers to list models available to your key.Thinking mode has no effect
Thinking mode has no effect
Thinking requires Claude Sonnet 4.5+ or Opus 4.6+. Haiku models do not support thinking. Check your model ID in
agents.defaults.model.