DeepClaude: Run Claude Code's Agent Loop with DeepSeek V4 Pro at 17x Less Cost

Original: DeepClaude – Claude Code agent loop with DeepSeek V4 Pro View original →

Read in other languages: 한국어日本語
LLM May 4, 2026 By Insights AI (HN) 1 min read 1 views Source

The Concept

DeepClaude is an open-source tool that surgically replaces the AI brain inside Claude Code's agent loop while leaving the body intact. Everything developers rely on — file reading, editing, bash execution, subagent spawning, autonomous multi-step loops — continues to work as before. Only the model powering those decisions changes.

The project hit nearly 600 points on Hacker News and generated significant discussion around the Claude Code cost barrier.

Cost Breakdown

BackendInput/MOutput/M
DeepSeek (default)$0.44$0.87
OpenRouter$0.44$0.87
Fireworks AI$1.74$3.48
Anthropic (original)$3.00$15.00

DeepSeek V4 Pro scores 96.4% on LiveCodeBench and includes automatic context caching that makes repeated turns up to 120x cheaper. For heavy coding workloads, the savings compound quickly.

How It Works

DeepClaude sets environment variables (ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, model name overrides) per-session without permanently altering your configuration. On exit, original settings are restored. A --switch flag lets you change backends mid-session without restarting.

Caveats

DeepSeek's servers are in China — for enterprise or sensitive environments, OpenRouter or Fireworks AI (US-based) are recommended alternatives. Model behavior will differ from native Claude, and some Anthropic-specific capabilities may not translate.

Share: Long

Related Articles

Comments (0)

No comments yet. Be the first to comment!

Leave a Comment