#π DeepSeek
1 messages Β· Page 1 of 1 (latest)
I use OpenAi router because they are compatible (see https://api-docs.deepseek.com/)
I've updated β¨openclaw.jsonβ©
β¨```
"agents": {
"defaults": {
"workspace": "/home/node/.openclaw/workspace",
"model": {
"primary": "openai/deepseek-reasoner"
},
"models": {
"openai/deepseek-chat": {},
"openai/deepseek-reasoner": {}
}
}
},
"models": {
"mode": "merge",
"providers": {
"openai": {
"baseUrl": "https://api.deepseek.com",
"auth": "api-key",
"api": "openai-completions",
"models": [
{
"id": "deepseek-chat",
"name": "DeepSeek Chat",
"reasoning": false,
"input": ["text"],
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
"contextWindow": 128000,
"maxTokens": 8192
},
{
"id": "deepseek-reasoner",
"name": "DeepSeek Reasoner (V3.2 thinking)",
"reasoning": true,
"input": ["text"],
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
"contextWindow": 128000,
"maxTokens": 32768
}
]
}
}
},
But to make it work I've updated: β¨openclaw/.envβ© by adding: 'OPENAI_API_KEY=sk-the_key_I_got_from_deepseek_platform(not openrouter)'
In β¨openclaw/docker-compose.ymlβ© I added OPENAI_API_KEY: ${OPENAI_API_KEY} as you can see here:
β¨```
services:
openclaw-gateway:
image: ${OPENCLAW_IMAGE:-openclaw:local}
environment:
HOME: /home/node
TERM: xterm-256color
# Used by the openai/* provider. In our setup it should be your DeepSeek key.
OPENAI_API_KEY: ${OPENAI_API_KEY}
OPENCLAW_GATEWAY_TOKEN: ${OPENCLAW_GATEWAY_TOKEN}
CLAUDE_AI_SESSION_KEY: ${CLAUDE_AI_SESSION_KEY}
CLAUDE_WEB_SESSION_KEY: ${CLAUDE_WEB_SESSION_KEY}
CLAUDE_WEB_COOKIE: ${CLAUDE_WEB_COOKIE}
volumes:
- ${OPENCLAW_CONFIG_DIR}:/home/node/.openclaw
- ${OPENCLAW_WORKSPACE_DIR}:/home/node/.openclaw/workspace
ports:
- "${OPENCLAW_GATEWAY_PORT:-18789}:18789"
- "${OPENCLAW_BRIDGE_PORT:-18790}:18790"
init: true
restart: unless-stopped
command:
[
"node",
"dist/index.js",
"gateway",
"--bind",
"${OPENCLAW_GATEWAY_BIND:-lan}",
"--port",
"18789",
]
openclaw-cli:
image: ${OPENCLAW_IMAGE:-openclaw:local}
environment:
HOME: /home/node
TERM: xterm-256color
BROWSER: echo
OPENAI_API_KEY: ${OPENAI_API_KEY}
CLAUDE_AI_SESSION_KEY: ${CLAUDE_AI_SESSION_KEY}
CLAUDE_WEB_SESSION_KEY: ${CLAUDE_WEB_SESSION_KEY}
CLAUDE_WEB_COOKIE: ${CLAUDE_WEB_COOKIE}
volumes:
- ${OPENCLAW_CONFIG_DIR}:/home/node/.openclaw
- ${OPENCLAW_WORKSPACE_DIR}:/home/node/.openclaw/workspace
stdin_open: true
tty: true
init: true
entrypoint: ["node", "dist/index.js"]
hey how much it costs ?
So far Iβve spent $1, and weβve been talking for about 3 hours π
$0.50 of that was burned in just 30 minutes because I used deepseek-reasoner.
hey, thanks for the info1
i'm a bit confused, are you using (and paying for) Openrouter for this to work?
I have deepseek api with credits but can't make it work :(
Nope, I didnβt use openrouter, just DeepSeek API key
Thanks I managed with just deepseek as well :)
Do you know if deepseek-reasoning can be set to reasonting true in the config file of its not the same?
Sorry, I donβt know, after 24h of testing this hype Iβve killed my VM xD. Iβll test it again next year
I am really struggling getting the DeepSeek api key working every time it does some strange things anyone got a config I can look at ?