Prerequisites
- A current OpenClaw installation. Its installation guide currently requires Node.js 24.16+ or 26.1+ for the CLI.
- An active API key from the RunBridge AI console.
- A text model that supports Chat Completions, streaming, and tool calling. Replace every
your-model-idbelow with the same exact model ID.
Install OpenClaw
Use the official installer, which can provision a compatible Node.js version. If installing before configuring the provider, use its skip onboarding option. Confirm installation:Configure the provider and model
Add the key to the user-level~/.openclaw/.env file, or $OPENCLAW_STATE_DIR/.env if you use a custom state directory:
.env. Keep the key outside your project repository.
Locate the active configuration:
~/.openclaw/openclaw.json). Preserve existing providers, agents, and model entries:
runbridge is your custom provider ID. The models entry registers the API model, while agents.defaults.model.primary selects it. Merely setting the default does not register a provider. Despite the adapter name openai-completions, this configuration sends Chat Completions requests to /v1/chat/completions with Bearer authentication.
Only declare model capabilities that the selected model supports. For image input, add
"input": ["text", "image"] to its model entry after confirming vision support. Set context and output limits from the model’s documented limits.Verify the connection
runbridge/your-model-id. For an existing Gateway service, reload the configuration:
Troubleshooting
See OpenClaw’s custom provider reference and environment variable reference for further details.