Discover and explore top open-source AI tools and projects—updated daily.
aattaranAutonomous coding agent loop with cost-effective LLM backends
New!
Top 21.8% on SourcePulse
Summary
This project, aattaran/deepclaude, addresses the high operational cost of using Claude Code's autonomous agent loop, which can reach $200/month. It enables users to leverage the same Claude Code user experience and autonomous coding capabilities but directs API calls to significantly cheaper, high-performing Large Language Models (LLMs) like DeepSeek V4 Pro or OpenRouter. This offers substantial cost savings (up to 17x cheaper) for developers, researchers, and power users who rely on advanced AI-driven coding assistance, making sophisticated autonomous agent functionality more accessible.
How It Works
deepclaude functions as a local proxy that intercepts API calls originating from the Claude Code CLI or VS Code extension. Instead of forwarding these requests to Anthropic's servers, it redirects them to alternative LLM backends configured via environment variables (e.g., DEEPSEEK_API_KEY, OPENROUTER_API_KEY). This approach preserves the entire Claude Code "body"—its tool loop, file editing capabilities, bash execution, and autonomous multi-step coding workflows—while swapping out the "brain" (the LLM) for a more cost-effective option. DeepSeek V4 Pro, for instance, offers strong performance on benchmarks like LiveCodeBench at a fraction of the cost of Anthropic's models.
Quick Start & Requirements
platform.deepseek.com and add credit.setx DEEPSEEK_API_KEY "sk-your-key-here"echo 'export DEEPSEEK_API_KEY="sk-your-key-here"' >> ~/.bashrc && source ~/.bashrcdeepclaude.ps1 to a directory in your PATH.chmod +x deepclaude.sh and sudo ln -s "$(pwd)/deepclaude.sh" /usr/local/bin/deepclaude.deepclaude in your terminal.Prerequisites:
claude auth login).Highlighted Details
--backend or), Fireworks AI (--backend fw), and Anthropic (--backend anthropic) for complex reasoning tasks. Backends can be switched mid-session via slash commands or CLI flags.Maintenance & Community
The provided README does not detail specific maintainers, community channels (like Discord/Slack), or a public roadmap. Information regarding sponsorships or partnerships is also absent.
Licensing & Compatibility
Limitations & Caveats
Image and vision input are not supported due to limitations in the DeepSeek endpoint. While DeepSeek supports parallel tool use, the Claude Code interface typically sends tools sequentially. Certain specialized tools, like MCP server tools, are not compatible with this proxy layer. For highly complex reasoning tasks, Claude Opus remains superior, necessitating a manual backend switch. DeepSeek's native caching functions independently, and Anthropic's cache_control directives are ignored.
1 week ago
Inactive
gptme
elizaOS