Sign In to CTok(imds.ai)

  • Sign in at https://imds.ai/
  • Navigate to API Keys in the left menu -> Create Key or select an existing key
  • For top-up, contact the group admin

Configure OpenClaw

  • Edit ~/.openclaw/openclaw.json
  • Find the models section and replace it with the following:
  • Replace YOUR_KEY below with the key you just created

  "models": {
    "providers": {
      "imds-claude": {
        "baseUrl": "https://imds.ai/",
        "apiKey": "YOUR_KEY",
        "api": "anthropic-messages",
        "models": [
          {
            "id": "claude-opus-4-6",
            "name": "Claude Opus 4.6",
            "reasoning": false,
            "input": ["text", "image"],
            "cost": {
              "input": 0.015,
              "output": 0.075,
              "cacheRead": 0.0015,
              "cacheWrite": 0.01875
            },
            "contextWindow": 200000,
            "maxTokens": 8192
          },
          {
            "id": "claude-haiku-4-6",
            "name": "Claude Haiku 4.6",
            "reasoning": false,
            "input": ["text", "image"],
            "cost": {
              "input": 0.0008,
              "output": 0.004,
              "cacheRead": 0.00008,
              "cacheWrite": 0.001
            },
            "contextWindow": 200000,
            "maxTokens": 8192
          },
          {
            "id": "claude-sonnet-4-6",
            "name": "Claude Sonnet 4.6",
            "reasoning": false,
            "input": ["text", "image"],
            "cost": {
              "input": 0.003,
              "output": 0.015,
              "cacheRead": 0.0003,
              "cacheWrite": 0.00375
            },
            "contextWindow": 200000,
            "maxTokens": 8192
          }
        ]
      },
      "imds-openai": {
        "baseUrl": "https://imds.ai/v1",
        "apiKey": "YOUR_KEY",
        "api": "openai-responses",
        "models": [
          {
            "id": "gpt-5.3",
            "name": "GPT-5.3",
            "api": "openai-responses",
            "reasoning": false,
            "input": ["text"],
            "cost": {
              "input": 0,
              "output": 0,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": 128000,
            "maxTokens": 16384
          },
          {
            "id": "gpt-5.2",
            "name": "GPT-5.2",
            "api": "openai-responses",
            "reasoning": false,
            "input": ["text"],
            "cost": {
              "input": 0,
              "output": 0,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": 128000,
            "maxTokens": 16384
          }
        ]
      },
      "imds-gemini": {
        "baseUrl": "https://imds.ai/v1beta",
        "apiKey": "YOUR_KEY",
        "api": "google-generative-ai",
        "models": [
          {
            "id": "gemini-3.1-pro-preview",
            "name": "Gemini 3.1 Pro Preview",
            "api": "google-generative-ai",
            "reasoning": false,
            "input": ["text"],
            "cost": {
              "input": 0,
              "output": 0,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": 1000000,
            "maxTokens": 8192
          },
          {
            "id": "gemini-3-pro-preview",
            "name": "Gemini 3 Pro Preview",
            "api": "google-generative-ai",
            "reasoning": false,
            "input": ["text"],
            "cost": {
              "input": 0,
              "output": 0,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": 1000000,
            "maxTokens": 8192
          },
          {
            "id": "gemini-3-flash-preview",
            "name": "Gemini 3 Flash Preview",
            "api": "google-generative-ai",
            "reasoning": false,
            "input": ["text"],
            "cost": {
              "input": 0,
              "output": 0,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": 1000000,
            "maxTokens": 8192
          }
        ]
      }
    }
  }


Edit ~/.openclaw/openclaw.json

Then replace the agents model section with the following:


 "agents": {
    "defaults": {
      "maxConcurrent": 4,
      "model": {
        "primary": "imds-claude/claude-sonnet-4-6"
      }
    }
  }