Skip to navigation

Use OpenRouter

View as MarkdownOpen in Claude

OpenRouter provides an OpenAI-compatible Chat Completions route for OpenClaw, Hermes, and LangChain Deep Agents Code. The agent calls https://openrouter.ai/api/v1 through a sandbox-attached OpenShell provider. OpenShell injects the credential; the sandbox receives only a placeholder.

Credential

Set OPENROUTER_API_KEY in the host shell before onboarding. Valid OpenRouter keys begin with sk-or-. NemoClaw validates that the key is non-empty and uses the expected prefix.

Model Choices

OpenRouter uses the same catalog-backed picker flow and source catalog as NVIDIA Endpoints. It does not apply NVIDIA Endpoints retirement filters and uses its own bundled fallback list, so the available choices can differ. You can also enter any OpenRouter model ID manually. NemoClaw validates manual entries with OpenRouter before continuing.

Onboard

Run the onboarding wizard and select OpenRouter.

nemoclaw onboard

NemoClaw registers the native nemoclaw-openrouter-api-v1 provider and attaches it to the selected sandbox.

Native Requests

NemoClaw configures the agent to send the required HTTP-Referer and X-OpenRouter-Title attribution headers. The native provider restricts the endpoint and executables allowed to use the credential. New OpenRouter selections do not need the legacy host adapter.

Validation

Host-side catalog, model, and smoke validation use /v1/chat/completions only. NemoClaw skips the Responses API probe and uses managed Chat Completions at runtime.