A lightweight web-based tool to easily switch LLM providers and models for OpenClaw β no JSON editing required.
Home β current config status and provider selection
Home page: real-time display of the active model, one-click provider selection
Switching to DeepSeek β config form
After selecting a provider, Base URL and model list are automatically populated
Prerequisite: OpenClaw must be installed and initialized (~/.openclaw/openclaw.json must exist)
# Clone the repo git clone https://github.com/yuanrengu/configadpter.git cd configadpter # Start the tool (zero dependencies β no pip install needed) python3 openclaw_config.py # Browser opens automatically at http://localhost:7890
# Stop: press Ctrl+C in the terminal # If running in background, kill the process with: lsof -ti :7890 | xargs kill -9
Requirements: Python 3.8+, standard library only β no
pip installneeded.
| Feature | Description |
|---|---|
| π Live Status | Shows the active provider, model, and base URL at a glance |
| π Provider Switcher | Click a card to select a provider; Base URL and models auto-fill |
| π API Key Protection | Leave blank to keep the existing key β it will never be overwritten |
| π Model Management | Pick from built-in templates or add custom model IDs |
| πΎ Auto Backup | Creates a timestamped backup before every write: openclaw.json.bak.tool.YYYYMMDD_HHMMSS |
| π JSON Preview | Preview the exact changes before applying |
| β» Hot Reload Frontend | Edit index.html and refresh β no server restart needed |
| Provider | Base URL | Notes |
|---|---|---|
| π Moonshot (Kimi) | api.moonshot.cn |
Available in China, kimi-k2.5 / kimi-latest |
| π΅ DeepSeek | api.deepseek.com |
Cost-effective; V3 + R1 reasoning |
| π€ OpenAI | api.openai.com |
GPT-4o, o1, o3, o3-mini |
| π§ Anthropic | api.anthropic.com |
Claude Opus 4.6 / Sonnet 4.6 (latest) |
| β¨ Google Gemini | generativelanguage.googleapis.com |
Gemini 2.5 Pro / Flash |
| π OpenRouter | openrouter.ai/api |
Multi-model aggregation proxy |
| π Groq | api.groq.com |
Ultra-fast inference (Llama, DeepSeek, etc.) |
| π SiliconFlow | api.siliconflow.cn |
Qwen3, DeepSeek, QwQ β CN-hosted |
| π¨π³ ZhipuAI | open.bigmodel.cn |
GLM-4 series, GLM Z1 reasoning |
| π¦ Ollama | localhost:11434 |
Locally hosted offline models |
| βοΈ Custom | Any URL | Any OpenAI-compatible API |
When you apply a model switch, the tool backs up the current config first, then only modifies these 4 areas in ~/.openclaw/openclaw.json. Everything else is left untouched.
models.providers.<provider> β Rebuilds the target provider's connection config
auth.profiles.<provider>:default β Adds or updates the auth profile entry
agents.defaults.model.primary β Sets "provider/modelId" (the core field OpenClaw reads)
agents.defaults.models.<primary> β Adds the model alias (display name)
API Key handling: If the key field is left blank, the existing key is inherited β it will never be lost.
channels.* β Telegram / Discord channel settings
gateway.* β Port, auth token, node config
tools.* β Tool profiles
commands.* β CLI settings
session.* β Session config
hooks.* β Internal hook config
wizard.* β Wizard state
Other providers' configurations
The version shown in the top-right corner (e.g. v2026.3.2) comes from meta.lastTouchedVersion in openclaw.json. It is written and maintained by OpenClaw itself β this tool only reads and displays it.
Usually no. The OpenClaw Gateway monitors openclaw.json for changes and hot-reloads most configuration updates automatically.
Note: When switching to a brand-new provider that was never configured before, OpenClaw may need a moment to initialize the new connection. If the new model doesn't take effect immediately, check the OpenClaw web console or restart the OpenClaw process once.
- Click the π΅ DeepSeek card
- Enter your DeepSeek API Key (
sk-...) - Select a model (e.g. DeepSeek Chat V3)
- Click β Apply
- Click the π Moonshot (Kimi) card (shows "β Active")
- Leave the API Key blank (the existing key is reused automatically)
- Select a model and click Apply
- Click the βοΈ Custom card
- Enter the Base URL (e.g.
https://your-api.com/v1) and API Key - Type a model ID and display name, then click Add
- Select the model and click Apply
.
βββ openclaw_config.py # Backend: provider templates, HTTP server, config read/write
βββ index.html # Frontend: Web UI (HTML / CSS / JS, dark theme)
βββ docs/
β βββ screenshot_home.png
β βββ screenshot_deepseek.png
βββ README.md
OpenClaw paths:
- Config file:
~/.openclaw/openclaw.json - Backup dir:
~/.openclaw/openclaw.json.bak.tool.*
- The server only listens on
127.0.0.1:7890β never exposed to the network - Every write is preceded by an automatic backup, recoverable from
~/.openclaw/ - API keys are never pre-filled in the form and never printed to the terminal