Complete guide to configure OpenClaw AI agent framework with VietAI Gateway
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.
Low ping, fast response. Best for code completion, Cursor, IDE — when speed matters.
Higher ping. Best for OpenClaw agents, chatbots — when instant response isn't critical.
chat/ models (base price) for better cost efficiency since OpenClaw agents don't require instant response times.Add this configuration to your OpenClaw config file:
{
"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": {}
}
}
}
}vai-your-api-key-here with your actual API key from the Dashboardchat/claude-opus-4.6 or vip/claude-opus-4.6chat/ models for OpenClaw (recommended) or vip/ models if you need faster responseHere are some recommended models for OpenClaw:
| Model ID | Name | Price (1M tokens) | Context |
|---|---|---|---|
| chat/claude-opus-4.6 | Claude Opus 4.6 (Chat) | $5.00 / $25.00 | 1M |
| vip/claude-opus-4.6 | Claude Opus 4.6 (VIP) | $5.50 / $27.50 | 1M |
| chat/claude-opus-4.5 | Claude Opus 4.5 (Chat) | $5.00 / $25.00 | 200K |
| chat/claude-sonnet-4.5-thinking | Claude Sonnet 4.5 Thinking (Chat) | $3.00 / $15.00 | 1M |
vai-your-api-key-here with your actual API keychat/ (recommended) or vip/ models based on your needs