WayToClawEarn
Beginner15 min readMay 4, 2026

Claude Code + DeepSeek V4 Building Tutorial: API Fees Dropped by 90% (15 Minutes)

DeepClaude Complete Configuration Guide: Use DeepSeek V4 to replace Anthropic API to run Claude Code. Contains three steps of environment configuration, JSON setting file template, and switching verification, retaining the original workflow.

Beginner · 15 min · May 4, 2026

Tutorial Objectives

Within 15 minutes, DeepClaude was used to switch the inference backend of Claude Code from Anthropic to DeepSeek V4 Pro, and the API fee was reduced from $15/M token to $0.87/M, saving more than 90% of the cost while maintaining complete independent coding capabilities.

What will you build?

  • DeepClaude installation and configuration - one command to complete
  • Multiple backend switching capabilities - DeepSeek, OpenRouter can be switched at will
  • Remote control mode - control Claude Code from the browser
  • VS Code integration — one-click switching within the IDE

Preparation list

  • DeepSeek API Key (free registration, minimum deposit of $5)
  • Claude Code CLI (installed, with Anthropic account)
  • macOS/Linux Terminal (PowerShell is also supported on Windows)

Overall architecture

The entire system only replaces the "brain", no hands or feet are touched. Claude Code's tooling loop (file editing, bash execution, git operations) remains the same, with API calls directed to DeepSeek.

ModuleInputOutputEstimated time
Get API KeyRegister DeepSeek Platformsk-xxx key2 minutes
Install DeepClaudeGitHub repositorydeepclaude command1 minute
First rundeepclaude commandClaude Code + DeepSeek2 minutes
Multiple backend switching--backend parameterDifferent inference models1 minute
VS Code integrationConfigure terminal profileSwitch within IDE5 minutes
Remote control--remote parameterBrowser control3 minutes

DeepSeek V4 Pro benchmark

Step 1: Obtain DeepSeek API Key

Visit platform.deepseek.com to register an account, click API Keys to create a new key, recharge $5-$10 and copy the key.

terminal
export DEEPSEEK_API_KEY="sk-your-key-here"

提示:写入 ~/.bashrc~/.zshrc 免重复设置。

第 2 步:安装 DeepClaude

terminal
git clone https://github.com/aattaran/deepclaude.git
cd deepclaude
chmod +x deepclaude.sh
sudo ln -s "$(pwd)/deepclaude.sh" /usr/local/bin/deepclaude

第 3 步:启动 DeepClaude

直接运行 deepclaude 即可启动 Claude Code CLI,所有 API 请求自动指向 DeepSeek V4 Pro($0.87/M output token)。

第 4 步:多后端灵活切换

terminal
deepclaude --backend ds          # DeepSeek(默认)
deepclaude --backend or          # OpenRouter(美国服务器)
deepclaude --backend fw          # Fireworks AI(最快推理)
deepclaude --backend anthropic   # 回到 Anthropic Opus

第 5 步:实时切换(高级功能)

安装代理后,Claude Code 会话内输入 /deepseek 即可秒切后端,无需重启。

第 6 步:远程控制

terminal
deepclaude --remote

在任何浏览器中操控 Claude Code,手机平板上也能使用。

费用对比

使用场景Anthropic MaxDeepClaude节省
轻度使用$200/月~$20/月90%
重度使用$200/月~$50/月75%
自动循环$200/月~$80/月60%

常见问题

DeepClaude 和直接用 Claude Code 有什么区别?

完全相同的操作界面,只替换了推理后端。日常 80% 任务 DeepSeek 表现与 Claude Opus 相当。

能用图片输入吗?需要 Anthropic 账号吗?

不支持图片输入。需要视觉任务切 --backend anthropic。Claude Code CLI 需要登录,但 API 调用可全走 DeepSeek。

工具词条

Claude CodeDeepSeekOpenRouterFireworks AIAnthropic

Reference link

Internal link guidance

Claude Code topic related tutorials

Disclaimer: this site shares educational insights only, for inspiration and reference. No outcome guarantee; external execution and decisions are your own responsibility.

Related tutorials