Integration guides

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

text
Base URL: https://api.moloop.io/v1
API key: YOUR_API_KEY

Compatibility

  • Chat Completions

  • Streaming

  • Tool calling

Step-by-step setup

Install and initialise

Install OpenClaw with npm, then run openclaw onboard to generate the configuration.

bash
npm install -g openclaw@latest
openclaw onboard

Point the provider to MoLoop

Edit config.json so the openai provider reads OPENAI_API_KEY and agents.defaults selects the model.

json
// ~/.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.

bash
openclaw start

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.

Are you ready to get started?

Get an API key and start using MoLoop in these tools.