DeepSeek in Command Code: switch models, pay off-peak

Agent that learns your coding taste, with model switching built in

PEAK 01:00–04:00 & 06:00–10:00 UTC WEEKDAYS

Command Code is a terminal coding agent focused on open models and per-project 'taste' learning. It exposes every supported model through one CLI, with per-model credit allowances and zero-markup pay-as-you-go top-ups.

Switch Command Code to DeepSeek in 4 steps

Step 1

Install the CLI

npm i -g command-code@latest
Requires Node.js 22 or newer. The binary is available as both `command-code` and `cmd`.
Step 2

Log in and trust the project

cmd login && cd your-project && cmd --trust
The first run in a project asks whether you trust the folder; --trust skips the prompt.
Step 3

Switch model for one session

cmd -m deepseek-v4.1-flash
Run `cmd --list-models` to see the live model catalog. Inside the TUI, use /model.
Step 4

Check your allowance

cmd status
Shows plan, credit balance and the rolling 5-hour and weekly limits.

DeepSeek peak and off-peak pricing in Command Code

⚠ Weekday peak, 01:00–04:00 and 06:00–10:00 UTC, costs 2x the off-peak rate.

Command Code passes DeepSeek API pricing through at cost. V4.1 Flash is $0.15/M input and $0.60/M output off-peak, doubling to $0.30/M and $1.20/M during the two weekday peak windows. Because the CLI sends repository context on every tool turn, the off-peak discount matters most for long refactors.

Model, $/M tokensInput off-peakInput peakCache hit off-peakCache hit peakOutput off-peakOutput peakExample day, off-peak / peak
DeepSeek V4.1 Flash$0.15$0.30$0.003$0.006$0.60$1.20$1.05 / $2.10
DeepSeek V4 Pro$0.66$1.32$0.022$0.044$1.98$3.96$4.29 / $8.58

The example day is 5M input and 500K output tokens with no cache hits. Off-peak starts at 10:00 UTC on weekdays and runs all weekend: peak hours in your time zone.

Commands checked against https://commandcode.ai/docs/quickstart on 2026-10-17. Rates from DeepSeek API pricing, checked 2026-10-17.

Questions

How do I switch Command Code to DeepSeek?

1. Install the CLI. 2. Log in and trust the project. 3. Switch model for one session. 4. Check your allowance. The commands for each step are above.

How much does DeepSeek cost in Command Code?

DeepSeek V4.1 Flash is $0.15/M input and $0.60/M output off-peak, and $0.30/M and $1.20/M during weekday peak hours (01:00–04:00 and 06:00–10:00 UTC).

When is DeepSeek off-peak?

Every hour outside Mon–Fri 01:00–04:00 and 06:00–10:00 UTC, plus weekends and Chinese public holidays. Off-peak is 50% cheaper; peak costs 2x.