OpenCode + DeepSeek
Open-source terminal agent + DeepSeek V4 disk caching (50x cache-hit savings & 0.5x off-peak)
ANSWER-FIRST VERDICT · TL;DR
Pairing open-source OpenCode (formerly OpenCode Zen, now OpenCode Console & OpenCode Go $10/$40/mo) with DeepSeek's direct API delivers the lowest token cost in 2026 coding. DeepSeek-V4.1-Flash bills $0.30/$0.006/$1.20 peak and drops 50% to $0.15/$0.003/$0.60 during off-peak hours (~79% of the week), with zero cache-write fee. Even Heavy Agent workloads (300M in / 30M out) can run under $25/mo off-peak on Flash.
Legacy Product Names & Migrations
- OpenCode Zen → OpenCode Console (prepaid at-cost credits)
- DeepSeek-V3 / DeepSeek-R1 → DeepSeek-V4.1-Flash & DeepSeek-V4-Pro
Subscription Tiers & Usage Windows
3 Tiers| Tier | Monthly / Annual | Window & Quota Mechanics | Overage Policy |
|---|---|---|---|
| OpenCode Console + DeepSeek API ex: OpenCode Zen Pay-As-You-Go API | $0 /mo | Pay-As-You-Go (No Window) Zero monthly fee. Connect your direct DeepSeek API key (0% markup) or use OpenCode Console prepaid at-cost credits (+4.6% + $0.31 top-up fee). | Hard prepaid balance stop (HTTP 402 at $0); zero surprise bills or auto-overage charges. |
| OpenCode Go Flat Subscription Window | $10 /mo | 5h Session + Weekly Pool Flat $10/mo with explicit transparent caps: 20% of monthly quota per 5-hour window, 50% per weekly window (resets Mon 00:00 UTC), and 100% monthly ceiling. | Switch seamlessly to OpenCode Console prepaid credits or BYOK DeepSeek API key once a window cap is reached. |
| OpenCode Go Plus Flat Subscription Window | $40 /mo | 5h Session + Weekly Pool 4x OpenCode Go allowance under the same transparent 5h (20%) / weekly (50%) / monthly cadence for daily agentic developers. | Falls back cleanly to prepaid Console credits or direct DeepSeek API key. |
API Token Rates (per 1M Tokens, USD)
Official Verified Rates| Model | Context | Fresh Input | Cache Read | Output | Notes |
|---|---|---|---|---|---|
DeepSeek-V4.1-Flash deepseek-flash | 1M | $0.30 | $0.006 | $1.20 | Peak rates shown ($0.30/$0.006/$1.20). Off-peak (all hours except Mon–Fri 01:00–04:00 & 06:00–10:00 UTC, ~79% of week) is 0.5x: $0.15 / $0.003 / $0.60. 50x gap between cache miss and cache hit! |
DeepSeek-V4-Pro deepseek-v4-pro | 1M | $1.32 | $0.044 | $3.96 | Deep reasoning flagship (1M context, 384K max output). Off-peak 0.5x drops rates to $0.66 input / $0.022 cache hit / $1.98 output per 1M tokens. Zero cache-write surcharge. |
KEY STRENGTHS
- Unbeatable token economics: Daily Coding (50M in / 10M out, 85% cache) costs ~$7.25/mo off-peak on V4.1-Flash and ~$25.69/mo on V4-Pro.
- Zero cache-write premium and 0.5x off-peak pricing covering ~79% of every week (all weekends + Chinese public holidays).
- OpenCode is 100% open source and supports both OpenAI and Anthropic wire formats via api.deepseek.com/anthropic.
TRADE-OFFS & CAVEATS
- Peak hours (01:00–04:00 & 06:00–10:00 UTC, Mon–Fri) align with Asian daytime work hours and double every rate.
- DeepSeek-V4-Pro does not support vision inputs (unlike V4.1-Flash, Claude 5.5, and Gemini 4).
- Requires managing your own API key and prefix hygiene; prepaid balance returns HTTP 402 immediately at $0.
Community Real-World Usage Notes
Community EstimateFlexprice and r/DeepSeek audits in late 2026 confirm DeepSeek is the only major vendor pricing cache lookup outcomes directly with zero write fee (50x miss-to-hit gap on V4.1-Flash, 30x on V4-Pro). Because peak hours cover only 35 of 168 weekly hours (~21%), US/EU developers coding outside Asian weekday daytime automatically capture 0.5x off-peak rates almost all week.
Third-party aggregators (e.g., OpenRouter) often charge flat peak or higher rates without passing through DeepSeek's 0.5x off-peak discount or full cache-hit savings; always point OpenCode directly to https://api.deepseek.com.
- DeepSeek Pricing Index — Flexprice (Sep 2026) (2026-12-03)
- DeepSeek API Pricing 2026: Official vs Aggregators — HIPS (2026-12-03)
Official Sources
Official Verified- Models & Pricing — DeepSeek API Docs ↗ Checked 2026-12-03
- OpenCode Go & Console Docs — OpenCode ↗ Checked 2026-12-03
- OpenCode Go Pricing — OpenCode ↗ Checked 2026-12-03
Frequently Asked Questions
FAQ · 4When do DeepSeek's 0.5x off-peak hours apply?
Peak rates apply ONLY Monday–Friday 01:00–04:00 UTC and 06:00–10:00 UTC (excluding Chinese public holidays). Every other hour—about 79% of the week, including all weekends—automatically bills at 0.5x.
What happened to OpenCode Zen?
OpenCode Zen was renamed OpenCode Console (prepaid at-cost credits plus 4.6% + $0.31 processing fee), alongside flat-rate OpenCode Go ($10/mo) and Go Plus ($40/mo).
Why is DeepSeek's cache-hit rate so much cheaper than other vendors?
DeepSeek uses automatic disk-backed KV caching with zero write fee, charging $0.003/1M off-peak on V4.1-Flash (50x cheaper than cache miss) and $0.022/1M off-peak on V4-Pro (30x cheaper than miss).
Can I use Claude Code or OpenCode with DeepSeek's Anthropic-compatible endpoint?
Yes. DeepSeek officially exposes https://api.deepseek.com/anthropic alongside https://api.deepseek.com (OpenAI format), supporting tool calls and 1M context.