Skip to main content
Infravelle connects to OpenClaw as a custom model provider. You can use multiple models through a single API key.

Prerequisites

Install OpenClaw

Install via npm:
Or use the installer script:
If you used the installer script, open a new terminal. Then confirm:
You need version v2026.1.30 or later. Start the gateway daemon:
The daemon runs on port 18789 and must be running for OpenClaw to process requests.

Set your API key

Export your API key:
Your key starts with ak_live_ (production) or ak_test_ (testing). To persist across terminal sessions, add this line to ~/.zshrc or ~/.bashrc. Reload your shell after saving:
Or open a new terminal. If you installed the daemon via openclaw onboard --install-daemon, also register the key with the daemon:
The daemon runs as a LaunchAgent and doesn’t inherit your shell’s environment variables. Without this step, the daemon can’t resolve ${INFRAVELLE_API_KEY} from the config file.

Configure the provider

Create or update ~/.openclaw/openclaw.json with the Infravelle provider:
The models array uses bare IDs (claude-sonnet-4-6) matching what Infravelle’s API expects. The agents.defaults.models object uses prefixed IDs (infravelle/claude-sonnet-4-6). OpenClaw doesn’t route to a model unless it appears in both places. models.mode: "merge" keeps OpenClaw’s bundled providers alongside Infravelle. If you already have a config from openclaw onboard, merge the infravelle provider into your existing models.providers object and add the infravelle/ entries to your existing agents.defaults.models. ${INFRAVELLE_API_KEY} reads your environment variable. Don’t paste your key into the config. agentRuntime: { id: "pi" } selects the embedded agent harness. Without it, OpenClaw defaults to codex which requires a separate binary.

Verify

Test that the connection works:

Use different models

Switch the active model from the CLI:
To switch models during an interactive session, type /model infravelle/<id>. Models available through Infravelle: To use a model not in this list, add its bare ID to models.providers.infravelle.models and its prefixed ID to agents.defaults.models in your config. To list all Infravelle models:
OpenClaw includes a diagnostic command:
This checks daemon connectivity, provider configuration, and model availability. Run openclaw doctor --fix to auto-resolve common problems.

Control routing

Configure routing in the Infravelle dashboard. See routing options for details.

Uninstall

Remove the infravelle provider block from ~/.openclaw/openclaw.json and delete any infravelle/ entries from agents.defaults.models. Remove INFRAVELLE_API_KEY from your shell profile (~/.zshrc or ~/.bashrc).

Troubleshoot