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.

WayToClawEarn EditorialPublished May 4, 2026Updated Aug 8, 2026

Editorial review of public sources · AI-assisted drafting. How we work

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