DeepClaude – Claude Code agent loop with DeepSeek V4 Pro, 17x cheaper
83 points by alattaran 2 hours ago | 32 comments

aftbit 37 minutes ago

    #!/bin/sh
    export ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic
    export ANTHROPIC_AUTH_TOKEN=sk-secret
    export ANTHROPIC_MODEL=deepseek-v4-flash
    export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
    exec claude $@
reply
aaurelions 12 minutes ago
It seems like any project that makes fun of Claude is bound to reach the top spot on Hacker News. Even if it’s just a project consisting of four lines of code.
reply
nadermx 18 minutes ago
The AI wars have begun
reply
vitaflo 46 minutes ago
I'm not exactly sure what the point of this is. Deepseek already has instructions to use its API with many CLI's including Claude Code directly:

https://api-docs.deepseek.com/quick_start/agent_integrations...

reply
2ndorderthought 45 minutes ago
There probably isn't a point. Someone didn't understand something, didn't research it, so they 1 shotted their first thought and sent it to the front page of HN and all of their socials. It's the future bruh
reply
ttoinou 35 minutes ago
I thought the tool format wasnt exactly the same ? So plugging any IA into claude code requires a conversion of format
reply
ricardobeat 25 minutes ago
Many of them expose “anthropic-compatible” APIs for this very purpose.
reply
justech 17 minutes ago
If you're looking for Claude Code alternatives, I would first suggest looking into pi.dev or opencode for your harness. And then for models, you can choose from OpenCode Go (IMO most cost effect at this moment), OpenRouter, or direct from DeepSeek. Better if you go the Kimi route IMO and just buy a subscription from kimi.com
reply
aaurelions 8 minutes ago
Another very cost-effective option is Ollama Cloud. In a month of use, I only hit the 5-hour limit once, when I ran 8 agents simultaneously for 2 hours.
reply
_345 51 minutes ago
If you're okay with sonnet level performance, this sounds like a straight upgrade. But I find that sonnet messes up too much, that it ends up not being worth cost optimizing down to using it or another sonnet-level model. Glad to have this as an option though
reply
chrsw 2 minutes ago
I keep re-learning this lesson: I chug along with a lesser model then throw a problem at it that's too complex. Then I try different models until I give up and bring in Opus 4.6 to clean up.
reply
2ndorderthought 48 minutes ago
A lot of people are having good experiences doing things like using opus for designing and using locally hosted qwen3.6 for implementation.

I could see a serious cost reduction story by using opus for design and deepseek for implementation.

Personally I would avoid anthropic entirely. But I get why people don't.

reply
girvo 44 minutes ago
Like me: that’s what I do. Either Opus 4.7 or GLM 5.1 for planning, write it out to a markdown file, then farm it out to Qwen 3.6 27B on my DGX Spark-alike using Pi. Works amusingly well all things considered.
reply
2ndorderthought 43 minutes ago
How is glm 5.1? I have t tried it yet but have been meaning too
reply
aftbit 34 minutes ago
What hardware are you using to power this?
reply
alexdns 47 minutes ago
obviously vibe coded ( co authored ) + the prices dont even match
reply
2ndorderthought 46 minutes ago
It's going to be real hard to find headlines that weren't vibe coded from here on out unfortunately.
reply
SchemaLoad 18 minutes ago
Unless I actually know the author I assume everything here is vibeslop and full of mistakes.

Maybe I need to switch to some news publication that actually does real research and writing still. Because public forums like this have been completely destroyed by LLMs.

reply
cyanydeez 40 minutes ago
welp, pack it it in boys, it was nice conceptualizing all you as real humans on the internet. I guess I'll just have to go touch grass if I want to feel parasocial.
reply
dragontamer 12 minutes ago
I mean, we have the tech and community to actually build in person meetups and sign CRT certificates, right?

If we touch grass in person and swap certificate requests, we can actually rebuild a trust network.

This is a pretty old problem with regards to clubs / secret societies and whatnot. And with certificates / PKI, our modern security tools have solved all the technical problems.

reply
orliesaurus 58 minutes ago
Is there a way to do this directly by using claudecode CLI (which I already have installed) and openrouter??
reply
vitaflo 45 minutes ago
reply
theanonymousone 56 minutes ago
Yes, from Claude Code themselves: https://code.claude.com/docs/en/llm-gateway
reply
gnat 55 minutes ago
This repo's README explains how it works and you can do it yourself. claude looks for environment variables that say which API endpoint to talk to, which key to pass, which model name to use for haiku/sonnet/opus-level workloads, etc.
reply
esafak 55 minutes ago
Why wouldn't you use something open source like OpenCode, which already support DSv4 and has more features than CC?
reply
dlx 22 minutes ago
As someone who does use other models with CC, I am curious about opencode, what extra features does it have that you find essential?
reply
esafak 13 minutes ago
I like being able to add a wide array of models, define perms for agents and subagents, turn MCPs on and off at will, and be able to fix bugs I find in it.
reply
ttoinou 38 minutes ago
More features than CC ?

Also opencode tracks you by default. Its not safe. Every first prompt you send is routed through their servers, logged and they can use your data however they want

reply
sedawkgrep 4 minutes ago
I thought this was debunked awhile ago. ?
reply
esafak 5 minutes ago
I could not find any evidence of prompt logging. The code is open; can you point me to it?
reply
2ndorderthought 49 minutes ago
Oh shoot now the next CC upgrade will blow your subscription for doing this
reply
morpheos137 28 minutes ago
anthropic messed up big time harness works with any muh commodity LLM, meanwhile VCs were duped on the myth of FOOM AGI, probably not a cooincidence Anthropic is enmeshed with the scifi fan fic forum known as lesswrong. The world wants useful tools. The bay area bubble in contrast thrives on Mythos.
reply
alattaran 2 hours ago
[flagged]
reply