OpenRouter OAuth
Browser login for OpenRouter in OpenClaw
Browser login for OpenRouter in OpenClaw
Stable since v2026.6.6. OpenRouter OAuth onboarding ships in v2026.6.6 and later. Older Gateways should upgrade with openclaw update or keep using an API key—see OpenRouter provider guide.
OpenClaw can talk to OpenRouter with a traditional API key or OAuth through the onboarding picker (v2026.6.6+). OAuth is useful when you want browser sign-in instead of copying keys into env files—especially on a laptop you do not want to litter with secrets.
Upstream reference: OpenRouter provider docs (docs.openclaw.ai).
| Method | Best for |
|---|---|
| API key | Stable releases, servers, CI, headless VPS |
| OAuth | Interactive onboarding on beta; personal machines with a browser |
Pick one auth path per provider profile—mixing stale keys with OAuth profiles causes confusing doctor warnings.
openclaw update then openclaw doctor --fix.openclaw onboard or the Setup Wizard and choose OpenRouter when picking a model provider.openrouter/ namespace (e.g. openrouter/anthropic/claude-sonnet-4—verify IDs on openrouter.ai/models).openclaw gateway restart.openclaw models auth login --provider openrouter
openclaw doctor
openclaw gateway restart
Exact flags drift—confirm with openclaw models auth --help on your build.
openclaw security audit --deep after changing auth (upgrade hardening).openclaw models auth login or openclaw doctor --fix; check bounded OAuth timeouts in beta release notes.