Skip to main content
OpenClaw is a personal AI assistant you run on your own machine. It connects to chat apps like WhatsApp, Telegram, Discord, and Slack, and supports custom OpenAI-compatible model providers. This guide points OpenClaw at Oxen.ai so every agent turn runs through the Oxen chat completions API.

Prerequisites

  • Node 24 (recommended) or Node 22.19+
  • An Oxen.ai API key, exported as OXEN_API_KEY

Install OpenClaw

Add Oxen as a model provider

Run openclaw onboard with the custom-api-key flow:
Output:
--custom-model-id sets the default model. Pick any text model from the Oxen catalog; a capable general-purpose model like claude-sonnet-4-6 is a good starting choice. --install-daemon installs the gateway as a background service so it stays running. This writes a models.providers.oxen block to ~/.openclaw/openclaw.json with baseUrl, apiKey, api: "openai-completions", and a one-entry models list.

Run an agent turn

Output:
The agent calls https://hub.oxen.ai/api/ai/chat/completions under the hood, billed to your Oxen account.

Add more models

To expose a second Oxen model, edit models.providers.oxen.models in ~/.openclaw/openclaw.json and append an entry with the same shape:
Then switch the default:

Next steps