EcoToken

Connect OpenClaw

Register EcoToken in the OpenClaw gateway and make it the Agent's default model.

Base URLAuthenticationProtocol
https://ecotoken.ecophase-ai.com/v1Bearer API KeyOpenAI Chat Completions

01 Prepare access details

Create an API key that can access deepseek-v4.1-flash. Supply the real key through ECOTOKEN_API_KEY.

02 Install OpenClaw

bash
curl -fsSL https://openclaw.ai/install.sh | bash

Run first-time setup:

bash
openclaw onboard --install-daemon

03 Configure EcoToken

Edit ~/.openclaw/openclaw.json.

json
{
  "agents": {
    "defaults": {
      "model": { "primary": "ecotoken/deepseek-v4.1-flash" }
    }
  },
  "models": {
    "mode": "merge",
    "providers": {
      "ecotoken": {
        "baseUrl": "https://ecotoken.ecophase-ai.com/v1",
        "apiKey": "${ECOTOKEN_API_KEY}",
        "api": "openai-completions",
        "models": [
          {
            "id": "deepseek-v4.1-flash",
            "name": "deepseek-v4.1-flash"
          }
        ]
      }
    }
  }
}

04 Launch and verify

bash
export ECOTOKEN_API_KEY="YOUR_API_KEY"
openclaw dashboard

Use openclaw tui for the terminal UI. A successful model response and matching entry under Usage & costs → Request records confirm the integration.

05 Common errors

  • 401: Check that ECOTOKEN_API_KEY is available to the OpenClaw process.
  • 403: Check the key group, model permission, and account state.
  • model not found: The default model and provider model ID must match the EcoToken console.
EcoPhase Docs - Connect OpenClaw - EcoPhase.AI