→ https://github.com/STRML/cc-ds4
This gist held setup prompts for running DeepSeek V4 and Kimi K3 in Claude Code through isolated profiles, so that pointing Claude Code at another provider does not reroute every session on the machine.
It outgrew a gist. Two things forced the move:
- The code needed tests. It now includes a proxy and two status lines that do arithmetic on money, and that arithmetic was verified by hand exactly once. The repo has 37 tests over the price tables, the transcript parser, and the spend ledger.
- There was no way to contribute. Someone ran this guide end to end, found a real bug in it, and had to publish a separate gist to tell me. On a repo that is a pull request.
Everything here is in the repo, corrected and expanded:
| was | now |
|---|---|
0-overview.md |
README.md |
claude-ds4-deepseek.md |
profiles/deepseek-direct.md |
claude-or-ds4-openrouter.md |
profiles/openrouter.md |
claude-kimi-moonshot.md |
profiles/kimi.md |
ds4-effort-proxy.py |
src/effort_proxy.py |
ds4-statusline.py, ds4-direct-statusline.py |
src/statusline/ — the two shared 61% of their code, which is now one module |
ds4-cship.toml, ds4-direct-cship.toml |
config/ |
The code files are deleted rather than left here, because a stale copy of a status line is worse than none: it would still run, and quietly report the wrong number.
Issues and pull requests go to the repo.