Skip to content

OpenClaw Integration

1. Prerequisites

  • Registered and obtained a platform API Key.
  • Node.js environment installed.
  • OpenClaw installed:
    bash
    # MacOS / Linux
    curl -fsSL https://openclaw.ai/install.sh | bash
    # Windows
    iwr -useb https://openclaw.ai/install.ps1 | iex

codesw writes directly to ~/.openclaw/openclaw.json with the right provider, models and defaults — no proxy, no middleman.

2.1 Install

bash
npm i -g @bumocc/codesw
# or
yarn global add @bumocc/codesw

2.2 Run the interactive mode

Just execute:

bash
codesw

Follow the prompts:

  1. Select provider: pick bumo.ai (BUMO API); existing profiles are listed at the top and can be reused across clients.
  2. Profile name / API Key / Model / Small model: fill in as prompted. Get the key from the API Keys page.
  3. Apply to which client: choose OpenClaw.

Then restart OpenClaw:

bash
openclaw gateway restart

Appendix: Manual Configuration (Alternative)

Open ~/.openclaw/openclaw.json and merge the following configuration:

json
{
  "models": {
    "providers": {
      "api.bumo.ai": {
        "baseUrl": "https://api.bumo.ai/",
        "apiKey": "YOUR_API_KEY",
        "api": "openai-completions",
        "models": [
          {
            "id": "claude-opus-4-6",
            "name": "claude-opus-4-6",
            "reasoning": true,
            "input": ["text", "image"]
          }
        ]
      }
    }
  },
  "agents": {
    "defaults": {
      "model": {
        "primary": "claude-opus-4-6",
        "fallbacks": ["claude-opus-4-6"]
      },
      "models": {
        "api.bumo.ai/claude-opus-4-6": {}
      }
    }
  }
}

Then restart OpenClaw:

bash
openclaw gateway restart

Replace YOUR_API_KEY with your platform API Key.