Complete guide to configure OpenClaw AI agent framework with 9flare
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 9flare for cost-effective access to premium AI models.
Đầy đủ Claude Opus, Sonnet, Haiku và các model tiết kiệm. Tính phí theo token, dùng cho mọi tác vụ code và agent.
Claude Haiku miễn phí 400 request/ngày. Phù hợp thử nghiệm và các agent không cần model cao cấp.
pro/ để có model mạnh nhất, hoặc free/ nếu chỉ cần Haiku miễn phí trong hạn mức ngày.Add this configuration to your OpenClaw config file:
{
"models": {
"providers": {
"9flare": {
"baseUrl": "https://9flare.com/v1",
"apiKey": "flr-your-api-key-here",
"api": "openai-completions",
"models": [
{
"id": "pro/claude-opus-4-8",
"name": "Claude Opus 4.8",
"reasoning": true,
"input": ["text"],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 1000000,
"maxTokens": 128000
},
{
"id": "pro/claude-sonnet-4-6",
"name": "Claude Sonnet 4.6",
"reasoning": true,
"input": ["text"],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 1000000,
"maxTokens": 128000
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "9flare/pro/claude-opus-4-8"
},
"models": {
"9flare/pro/claude-opus-4-8": {}
}
}
}
}flr-your-api-key-here with your actual API key from the Dashboardpro/claude-opus-4-8pro/ models for premium quality, or free/ models for the free daily quotaHere are some recommended models for OpenClaw:
| Model ID | Name | Price (1M tokens) | Context |
|---|---|---|---|
| pro/claude-opus-4-8 | Claude Opus 4.8 | $6.00 / $25.00 | 1M |
| pro/claude-sonnet-4-6 | Claude Sonnet 4.6 | $3.00 / $15.00 | 1M |
| pro/claude-haiku-4-5 | Claude Haiku 4.5 | $0.50 / $5.00 | 200K |
flr-your-api-key-here with your actual API keypro/ model (or free/ for the free Haiku tier) based on your needs