Use OpenRouter
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 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.
For a Hermes sandbox on the managed OpenRouter route, rebuild preserves the three managed ${OPENROUTER_API_KEY} placeholders in the native configuration.
NemoClaw strips raw credentials and unrecognized credential references from the rebuilt native state.
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.
Related Topics
- About Inference Routing explains the native provider and credential boundary.
- Understand Provider Validation describes provider validation behavior.