Last verified: 2026-06-11

Provider API key invalid

A NemoClaw error and how to fix it. The exact message, why it happens, and the steps that resolve it.

NemoClaw
NemoClaw: provider "anthropic" returned 401
Invalid API key or expired credential.
Fix:

NemoClaw caches credentials per profile. Set the key for the active profile:

nemoclaw profile use default
nemoclaw auth set anthropic
# paste key when prompted

If the key is correct, the upstream model may be deprecated — check the provider's model list and update policy.toml.

Guide: Switching providers

Still stuck?

See the full cross-platform troubleshooting index, the NemoClaw hub, or the command reference. Paste your error into the search box on the index to find related fixes.