OpenClaw
OpenClaw, routed through Europe.
Self-hosted gateway between chat apps and coding agents. Add Melious as a provider in `~/.openclaw/openclaw.json` and the daemon routes every agent's traffic through us.
{
models: {
providers: {
melious: {
api: "openai-completions",
baseUrl: "https://api.melious.ai/v1",
apiKey: "${MELIOUS_API_KEY}",
timeoutSeconds: 300,
}
}
},
agents: {
defaults: {
model: "melious/<MODEL_ID>",
models: {
"melious/<MODEL_ID>": { alias: "main" },
"melious/<LIGHTWEIGHT_ID>": { alias: "fast" },
"melious/<MODEL_ID>:eco": { alias: "eco" },
}
}
}
}What is OpenClaw?
OpenClaw is a self-hosted AI agent gateway. It connects chat apps (Telegram, Discord, WhatsApp, Slack) to coding agents like Pi and routes their model traffic through whatever providers you configure. The gateway itself isn't a coding agent; it's the wiring between user-facing chat surfaces and the agent runtimes that actually do the work. Adding Melious is a single block in the JSON5 config and one env var.
How to use OpenClaw with Melious?
-
Install OpenClaw
OpenClaw needs Node 24 (or 22.14+). Official installer handles Node setup if missing. macOS, Linux, and Windows supported. npm, pnpm, and bun work as alternatives.
Shell# macOS / Linux / WSL2 curl -fsSL https://openclaw.ai/install.sh | bash # Windows PowerShell iwr -useb https://openclaw.ai/install.ps1 | iex # Or via npm / pnpm / bun npm install -g openclaw@latest && openclaw onboard --install-daemon -
Add Melious as a provider
Drop a
meliousblock undermodels.providersin~/.openclaw/openclaw.json. JSON5 lets you keep comments and trailing commas.api: "openai-completions"selects our shape. Aliases for the/modelsslash command live underagents.defaults.models, keyed by<provider>/<model-id>. Browse melious.ai/hub/models for current IDs.~/.openclaw/openclaw.json{ models: { providers: { melious: { api: "openai-completions", baseUrl: "https://api.melious.ai/v1", apiKey: "${MELIOUS_API_KEY}", timeoutSeconds: 300, } } }, agents: { defaults: { model: "melious/<MODEL_ID>", models: { "melious/<MODEL_ID>": { alias: "main" }, "melious/<LIGHTWEIGHT_ID>": { alias: "fast" }, "melious/<MODEL_ID>:eco": { alias: "eco" }, } } } } -
Set the key and reload the gateway
Drop your key in
~/.openclaw/.envso OpenClaw can resolve the env-var reference from the config. Reload the daemon to pick up the config change, thenopenclaw models listshows every registered provider and model with auth status.Shellecho 'MELIOUS_API_KEY=sk-mel-<YOUR_API_KEY>' >> ~/.openclaw/.env openclaw gateway restart openclaw models list
Three steps from here.
Grab a Melious key. Pick your tool. Follow the guide. Same client, now answering from Europe.