Overview
OmniMux uses a single gateway Base URL:
https://api.omnimux.ai (OpenAI-compatible clients typically use https://api.omnimux.ai/v1). Console: omnimux.ai/dashboard. Model IDs in this guide are examples — confirm with the console or GET /v1/models.- Installing and configuring OpenClaw Gateway
- Configuring OmniMux API as a custom model provider
- Verifying the installation
System Environment Check (Optional)
Before starting the installation, it’s recommended to run the environment check tool to ensure your system meets OpenClaw’s requirements.Download the Check Tool
Download the check tool for your platform from GitHub Releases:Check Items
The tool will automatically check the following:- ✅ Node.js version (requires >= 22.12.0)
- ✅ npm available
- ✅ Git available
- ✅ Network connectivity (github.com, npmjs.org, omnimux.ai)
Prerequisites
Before starting configuration, ensure you have completed the following:1. Install Node.js
OpenClaw is installed via npm and requires Node.js 22 or higher. Visit Node.js official website, download the Windows installer (.msi file), and run the installation program. After installation, open PowerShell to verify:sudo before the command.
2. Get OmniMux API Key
- Log in to OmniMux Console
- Find API Keys in the console, click “Create New Key”, then copy the generated Key
- API Key usually starts with
sk-, please keep it safe
Step 1: Install OpenClaw
Execute in terminal:Step 2: Initialize Setup
Run the onboarding command, OpenClaw will guide you through initial configuration and install the daemon service:1. Confirm Installation
The system will prompt installation risk notice, confirm to continue:2. Select Installation Mode
The system will prompt to select installation mode, choose Quickstart:3. Select Provider
The system will prompt to select model provider, choose Skip here, we will manually configure OmniMux as a custom provider later:4. Select Models
The system will prompt to select models to enable, choose All:5. Select Default Model
The system will prompt to select default model, choose Keep current:6. Select Channel
The system will prompt to select a chat channel. It’s recommended to choose Skip for now, you can add channels later:7. Configure Skills
The system will prompt whether to configure Skills. It’s recommended to choose No, you can add them later:8. Enable Hooks
The system will prompt whether to enable Hooks. It’s recommended to choose session-memory:9. Restart Gateway Service
The system will prompt that the gateway service is already installed, choose Restart:10. Launch Bot
The system will prompt how to launch the bot. It’s recommended to choose Do this later:Step 3: Configure OmniMux API & Model Switching
1. Locate Two Configuration Files (Important)
OpenClaw model configuration typically involves two files:-
openclaw.json:%USERPROFILE%\.openclaw\openclaw.json -
models.json:%USERPROFILE%\.openclaw\agents\main\agent\models.json -
openclaw.json:~/.openclaw/openclaw.json -
models.json:~/.openclaw/agents/main/agent/models.json
apiKey / baseUrl in models.json is non-empty, it will override the corresponding values in openclaw.json. It’s recommended to keep both consistent.
2. Configure Model Providers
It’s recommended to configure the following providers inopenclaw.json (and sync to models.json):
omnimux-google.baseUrl must include /v1beta, i.e., https://api.omnimux.ai/v1beta. Without this suffix, you may encounter Forbidden (403) errors.
3. Configure Default Model (Supports Quick Switching)
Set the default model inagents.defaults. We recommend using Smart Model Routing claude-sonnet-4-5-20250929, which automatically selects a suitable model based on your request:
claude-sonnet-4-5-20250929 as the model ID, and the system will automatically select a suitable model from the model pool based on request complexity, length, and type. No manual switching needed — ideal for most general-purpose scenarios. See OmniMux 网关 Documentation for details.
To specify a particular model, you can also switch manually:
- Smart Routing:
omnimux-anthropic/claude-sonnet-4-5-20250929(Recommended) - Claude:
omnimux-anthropic/claude-opus-5 - GPT:
omnimux-openai/gpt-5.2 - Gemini:
omnimux-google/gemini-3.1-pro-preview - Doubao:
omnimux-openai/doubao-seed-2.0-mini
4. Quick Switch to OmniMux Models (Recommended)
After completing provider configuration, it’s recommended to use CLI commands for model switching instead of manually editing JSON:models list --provider omnimux-openai doesn’t show your expected models, check whether both openclaw.json and models.json have the corresponding provider configured.
5. Restart and Verify
Restart the gateway after configuration:Common Commands
Troubleshooting
Next Steps
OpenClaw installation and OmniMux API configuration are complete. Next you can:- Configure Telegram Channel: Refer to OpenClaw + Telegram documentation
- Configure Feishu Channel: Refer to OpenClaw + Feishu documentation
- Use Auto-Installation Tool: Refer to OpenClaw Auto Installation documentation