MG-Cafe

Claudecode Deepseek Stack — Development skill for Claude Code

Development community

Replace Anthropic Claude Code 200/mo billing with DeepSeek V4 for ~7/mo.

How to install Claudecode Deepseek Stack

This entry records only its repository, not the path inside it, so there is no exact command to give. Open MG-Cafe/claudecode-deepseek-stack and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claudecode Deepseek Stack does

Replace Anthropic Claude Code 200/mo billing with DeepSeek V4 for ~7/mo. Two env vars, no third-party tool. Live-tested 95x cheaper.

Alternatives in Development

  • Third-party Notices — THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THI 94.7k ★
  • Ccusage — CLI for analyzing Claude Code/Codex usage from local JSONL files 11.8k ★
  • Third Party Notices — Third-Party Notices 1.7k ★

README

Make Claude Code Free/Cheaper with DeepSeek V4

This guide routes Claude Code's API calls through **DeepSeek V4 instead of Anthropic** — same Claude Code UI, same skills, same workflow.


Setup (5 minutes)

1. Get a DeepSeek API key

  1. Go to https://platform.deepseek.com
  2. Sign up (free, $10 starter credit)
  3. Create an API key, copy the value (starts with sk-)

2. Save the key locally

mkdir -p ~/.config/mg-deepseek && chmod 700 ~/.config/mg-deepseek
echo 'export DEEPSEEK_API_KEY="sk-your-key-here"' > ~/.config/mg-deepseek/key.env
chmod 600 ~/.config/mg-deepseek/key.env
source ~/.config/mg-deepseek/key.env

3. Create a Claude Code settings override

Most Claude Code installs already have something configured (Anthropic OAuth login, Vertex AI, AWS Bedrock, or an API key). Inline env-var prefixes get overridden by those configs. The reliable approach is a `--settings` override file.

cat > ~/.config/mg-deepseek/claude-deepseek-settings.json <

The empty strings on the first 4 keys neutralize Vertex / Bedrock / OAuth-driven defaults. The bottom 3 keys point Claude Code at DeepSeek's Anthropic-compatible endpoint.

4. Run Claude Code on DeepSeek

claude --bare \
  --settings ~/.config/mg-deepseek/claude-deepseek-settings.json \
  --model sonnet \
  "Build me a REST API with auth, JWT, and tests"

That's it. Claude Code now talks to DeepSeek V4 Flash (ignore that it says sonnet) for **that one command**. Plain `claude` (without the flags) keeps using your normal backend.

The `--bare` flag is required — it tells Claude Code