#Update failure...

5 messages Β· Page 1 of 1 (latest)

amber nacelle
#

Hey β€” I updated to 2026.4.11 last night and my Telegram agent (Guy) stopped working. Every message returns: "Missing API key for provider 'openai'" β€” but I don't use OpenAI, I use Anthropic/Claude.
The update appears to have wiped my provider/model config entirely. My openclaw.json has agents, channels, gateway, and plugins sections but no model or provider configured anywhere.
I've tried:

openclaw config set providers.anthropic.apiKey β†’ "Unrecognized key: providers"
openclaw config set gateway.anthropicApiKey β†’ "Unrecognized key: anthropicApiKey"
openclaw config set agents.defaults.model.provider β†’ "Invalid input"
openclaw config set model.provider β†’ "Unrecognized key: model"

What is the correct config path to set the Anthropic API key and model in 2026.4.11? Running Mac mini, Homebrew install, Telegram channel.

urban mauveBOT
wet fiberBOT
#

Assuming openclaw --version really says 2026.4.11, the right paths are:

  • Anthropic API key: env.ANTHROPIC_API_KEY
  • Default model: agents.defaults.model.primary

So the simplest fix is:

openclaw config set env.ANTHROPIC_API_KEY sk-ant-...
openclaw config set agents.defaults.model.primary anthropic/claude-sonnet-4-6
openclaw gateway restart
openclaw models status

For a Homebrew/macOS service, putting the key in ~/.openclaw/.env is often better than relying on shell exports, because launchd may not inherit your shell env:

#
ANTHROPIC_API_KEY=sk-ant-...

Then restart the gateway.

Why your earlier paths failed:

  • providers.* is not a top-level config section
  • gateway.* is gateway auth, not model-provider auth
  • agents.defaults.model.provider is invalid because model is stored as a single provider/model ref, or { primary, fallbacks }

One extra gotcha: if agents.defaults.model.fallbacks still contains openai/*, OpenClaw can still fall back there and keep throwing OpenAI auth errors.

Docs: