OpenClaw Integration Guide

Complete guide to configure OpenClaw AI agent framework with VietAI Gateway

🔗 Enter your domain (automatically filled in all examples below):

What is OpenClaw?

OpenClaw is an AI agent framework that allows you to build intelligent agents and chatbots. It supports multiple model providers and can be configured to use VietAI Gateway for cost-effective access to premium AI models.

💡 Why use VietAI Gateway with OpenClaw? Get access to Claude, GPT, and other premium models at competitive prices with flexible pricing tiers (VIP for speed, Chat for economy).

VIP vs Chat Models

vip/ — Base price +10%

Low ping, fast response. Best for code completion, Cursor, IDE — when speed matters.

chat/ — Base price

Higher ping. Best for OpenClaw agents, chatbots — when instant response isn't critical.

💡 Recommendation for OpenClaw: Use chat/ models (base price) for better cost efficiency since OpenClaw agents don't require instant response times.

Configuration

Add this configuration to your OpenClaw config file:

json (OpenClaw config)
{
  "models": {
    "providers": {
      "vertex-key": {
        "baseUrl": "https://vertex-key.com/api/v1",
        "apiKey": "vai-your-api-key-here",
        "api": "openai-completions",
        "models": [
          {
            "id": "chat/claude-opus-4.6",
            "name": "Claude Opus 4.6 (Chat)",
            "reasoning": true,
            "input": ["text"],
            "cost": {
              "input": 0,
              "output": 0,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": 1000000,
            "maxTokens": 128000
          },
          {
            "id": "vip/claude-opus-4.6",
            "name": "Claude Opus 4.6 (VIP)",
            "reasoning": true,
            "input": ["text"],
            "cost": {
              "input": 0,
              "output": 0,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": 1000000,
            "maxTokens": 128000
          }
        ]
      }
    }
  },
  "agents": {
    "defaults": {
      "model": {
        "primary": "vertex-key/chat/claude-opus-4.6"
      },
      "models": {
        "vertex-key/chat/claude-opus-4.6": {}
      }
    }
  }
}
⚠️ Important:
  • Replace vai-your-api-key-here with your actual API key from the Dashboard
  • Model ID format: chat/claude-opus-4.6 or vip/claude-opus-4.6
  • Use chat/ models for OpenClaw (recommended) or vip/ models if you need faster response

Available Models

Here are some recommended models for OpenClaw:

Model IDNamePrice (1M tokens)Context
chat/claude-opus-4.6Claude Opus 4.6 (Chat)$5.00 / $25.001M
vip/claude-opus-4.6Claude Opus 4.6 (VIP)$5.50 / $27.501M
chat/claude-opus-4.5Claude Opus 4.5 (Chat)$5.00 / $25.00200K
chat/claude-sonnet-4.5-thinkingClaude Sonnet 4.5 Thinking (Chat)$3.00 / $15.001M

Next Steps

  1. Get your API key from the Dashboard
  2. Copy the configuration above to your OpenClaw config file
  3. Replace vai-your-api-key-here with your actual API key
  4. Choose between chat/ (recommended) or vip/ models based on your needs
  5. Start building your OpenClaw agents!