Skip to main content
OpenClaw supports custom OpenAI-compatible providers. This guide registers a RunBridge AI model and selects it for the agent using Chat Completions.

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-id below 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:
Use the global OpenClaw file or the Gateway’s process environment, not a project .env. Keep the key outside your project repository. Locate the active configuration:
Merge this JSON into that file (normally ~/.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

Confirm the registered model appears as runbridge/your-model-id. For an existing Gateway service, reload the configuration:
For a first installation, complete the official onboarding flow while retaining your existing custom model configuration. Open a new chat and ask: Reply with CONNECTED only. This makes a real API request and may incur usage. Check a small coding task separately to verify tool calling.

Troubleshooting

See OpenClaw’s custom provider reference and environment variable reference for further details.
Last modified on September 23, 2026