Register EcoToken in the OpenClaw gateway and make it the Agent's default model.
| Base URL | Authentication | Protocol |
|---|---|---|
https://ecotoken.ecophase-ai.com/v1 | Bearer API Key | OpenAI 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
curl -fsSL https://openclaw.ai/install.sh | bashRun first-time setup:
openclaw onboard --install-daemon03 Configure EcoToken
Edit ~/.openclaw/openclaw.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
export ECOTOKEN_API_KEY="YOUR_API_KEY"
openclaw dashboardUse 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 thatECOTOKEN_API_KEYis 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.
