Skip to content

Managing Models and Auth in OpenClaw

Setting up local environments often feels like a guessing game. You edit a config file, run a command, and hope for the best. If the model doesn’t respond, you’re left wondering if it’s a network issue, a typo, or a dead token.

I’ve spent too much time debugging configuration files when I should have been building. It’s much better to have a direct way to see exactly what your setup looks like and whether your credentials actually work.

I recommend these four steps to get your environment ready in about five minutes.

First, let OpenClaw find what’s available from your installed plugins.

Terminal window
openclaw models scan

See everything you have access to, then set your primary model.

Terminal window
openclaw models list
openclaw models set <model-or-alias>

Run the auth flow for your specific provider (like OpenAI or Anthropic).

Terminal window
openclaw models auth login --provider <id>

Check your resolved defaults and auth status. I use the --probe flag to run a live test against the provider.

Terminal window
openclaw models status --probe

If things aren’t working as expected, check these common areas I’ve identified from the documentation.

Model refs are parsed by splitting on the first /. If you use a provider like OpenRouter where the model ID also contains a slash, you must include the provider prefix.

  • Correct: openrouter/moonshotai/kimi-k2
  • Incorrect: moonshotai/kimi-k2 (This treats moonshotai as the provider).

When you run models status, you might see marker(<value>) instead of masked secrets. This appears for non-secret placeholders like OPENAI_API_KEY, minimax-oauth, or ollama-local. It doesn’t mean your key is exposed; it’s just how OpenClaw identifies that specific auth type.

If you are using Anthropic, keep in mind their technical compatibility. They have blocked some subscription usage outside of Claude Code in the past. I suggest verifying their current terms before you commit to a broad implementation.

The --probe flag sends real requests to your providers to verify tokens. While this is the best way to ensure your setup works, it can consume tokens and trigger rate limits. You can control this with:

Terminal window
openclaw models status --probe-concurrency <n> --probe-timeout <ms>

If you need help with a specific configuration, check out the AI Setup Assistant.

OpenClaw

OpenClaw Expert

Still stuck?

If this page didn't answer your case, ask OpenClaw Expert for step-by-step guidance.