OpenClaw integration
Use MoLoop as the model provider for an OpenClaw agent.
Overview
OpenClaw is a multi-channel self-hosted agent platform. Point its openai provider to MoLoop so Telegram, Discord, Slack, and other channels share the catalog.
Quick configuration
OpenClaw uses an OpenAI-compatible base URL and key.
Configure OpenClaw with CC Switch
Import the current MoLoop OpenAI-compatible endpoint and API key into the OpenClaw configuration in CC Switch.
Endpoint: https://api.moloop.io/v1
Base URL: https://api.moloop.io/v1
API key: YOUR_API_KEYCompatibility
Chat Completions
Streaming
Tool calling
Step-by-step setup
Install and initialise
Install OpenClaw with npm, then run openclaw onboard to generate the configuration.
npm install -g openclaw@latest
openclaw onboardPoint the provider to MoLoop
Edit config.json so the openai provider reads OPENAI_API_KEY and agents.defaults selects the model.
// ~/.openclaw/config.json
{
"env": { "OPENAI_API_KEY": "YOUR_API_KEY" },
"agents": {
"defaults": { "model": { "primary": "openai/YOUR_MODEL_ID" } }
},
"providers": {
"openai": {
"baseUrl": "https://api.moloop.io/v1",
"apiKey": "env:OPENAI_API_KEY"
}
}
}Start OpenClaw
Run openclaw start. Enable external tools only after the agent connects to MoLoop.
openclaw startRecommended models
OpenClaw primary model values commonly need the openai/ prefix; follow the format required by your version.
Things to know
baseUrl must end in /v1, and OPENAI_API_KEY must be inherited by the same shell or configuration.
Diagnose the provider with a text-only task before troubleshooting browser, file, or MCP tools.
Sẵn sàng bắt đầu?
Lấy API key và bắt đầu sử dụng MoLoop trong các công cụ này.