r/opencodeCLI • u/Admirable-Rabbit6868 • 2d ago
If you run DeepSeek V4 Flash in OpenCode: I built a Rust agent for Windows and an API at $0.036 per 1M in RUST
A lot of posts here are about DeepSeek V4 Flash token bills and quality. I've been running it all day too, and I ended up building two things.
- An OpenAI-compatible API with DeepSeek V4 Flash, GLM 5.3 Flash and MiniMax M2.7 at about $0.036 per 1M tokens, one price for prompt and reply, no peak hours. 100M tokens is about $3.57. Since it's OpenAI-compatible, it should work as a custom provider in OpenCode, but I haven't tested OpenCode itself, so tell me if it doesn't.
- Habi Code, an OpenCode-style agent for Windows, written in Rust. It has build, plan and review modes, a preview the agent clicks through, git snapshots for undo, and a company mode: a big request gets a CEO agent, departments, up to 8 workers in parallel, review rounds and a QA pass.
One number that changed how I price things: in my own logs, input tokens were about 57 times the output. Agents mostly re-read context, so the input price is what you're really paying.
Paying from outside Pakistan: USDT on BNB Smart Chain, from 1 USDT, added automatically. New accounts get about 1M tokens free.
What's your biggest problem with Flash in OpenCode right now: tool calls, long context, or cost?