Remix.run Logo
aftbit 2 days 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 $@
rapind 2 days ago | parent | next [-]

ANTHROPIC_MODEL=deepseek-v4-pro[1m] ANTHROPIC_SUBAGENT_MODEL=deepseek-v4-flash

This is what I’ve been using for non-confidential projects for about a week now (soon after v4 came out). I honestly can’t tell the difference, but I’m not doing anything crazy with it either.

Worth noting that I don’t think DeepSeek‘s API lets you opt out of training. Once this is up on other providers though… (OpenRouter is just proxying to DeepSeek atm)

lhl 2 days ago | parent | next [-]

For those that don't want their data trained on, OpenRouter allows you to have account-wide or per-request routing with either provider.data_collection: "deny" or zdr: true (zero data retention).

Also, you can use HuggingFace Inference for DeepSeek V4 or Kimi K2.6, both of which work quite well and route through providers that you can enable/disable (like Together AI, DeepInfra, etc) - you'll have to check their policies but I think most of those commercial inference providers claim to not train on your data either.

jorvi 2 days ago | parent | next [-]

That doesn't work, if you do that it will mark DeepSeek's models with a warning symbol along with the error "paid model training violation".

striking 2 days ago | parent | next [-]

In those cases, OpenRouter just chooses providers that agree not to train / offer ZDR. Which sometimes means you start off without access to the model until some other providers start offering it.

BeetleB 2 days ago | parent | prev [-]

In a sense, it's working as intended. If you set zdr to true, you currently can't use DeepSeek v4. However, once other providers offer it (it is an open model, after all), some may allow zdr.

specproc 2 days ago | parent [-]

Yeah, OR gives a bunch of providers, including Deepseek, which does train.

I set ZDR to true, and it only calls from the third party ZDR Deepseek APIs. Bit more expensive, but my client wants it.

miroljub 2 days ago | parent | prev | next [-]

I wonder why the question about data security and training comes often with DeepSeek, Kimi, Glm and never with Anthropic, OpenAI, and Google models.

Why is that?

IIRC, USA data protection protects data of US citizens only, foreigners data is not protected, and the companies are not even allowed to disclose when they collect those data.

zeendo 2 days ago | parent | next [-]

Because Anthropic, at least, gives you the option to opt out of training? I think Google and OpenAI do, too.

Matl 2 days ago | parent | prev [-]

> USA data protection protects data of US citizens only, foreigners data is not protected

HN is an American site. If you look at the US government, it is going to fearmonger about anything China related, because they haven't had a genuine competitor for decades and they're scared and lashing out. Most US news just parrot the government line, sometimes more so than state TV would, and so it reflects here.

I also feel comfortable saying that many Americans don't care one bit what happens to foreigners, be it by action of their government or companies.

giwook 2 days ago | parent | next [-]

> I also feel comfortable saying that many Americans don't care one bit what happens to foreigners, be it by action of their government or companies.

This is true. There are also many of us who do care.

This brings to mind something I heard recently about the so-called "Rule of 10". There will always be 3 people who support you, 3 people who are against you, and 4 people who have no idea what's going on and don't care.

Don't just focus on the 3 people who are being negative.

Matl 2 days ago | parent [-]

Oh absolutely.

boondongle 2 days ago | parent | prev | next [-]

Wolf Warrior diplomacy isn't even 10 years dead. The HK treaty was violated and continues to be. Taiwan gets threatened every other week.

People can have problems with America and I'm fine with that. But pretending China isn't subsidizing industry (land, education, transportation) in a predatory fashion is silly. Too many companies have gone out of business because of it. We can all have our friends in China without pretending the CCP is playing the ballgame fairly. The government doesn't need to point it out. That doesn't even get into influence operations (which are especially easy on platforms like this.)

Seriously - there may be a day in the future where Western nations and China get along but it really can't/won't happen while it's holding all the industry and trying to take the Services income as well.

Matl 2 days ago | parent [-]

The US assisted a genocide, literally kidnapped the president of a sovereign country so it could take its oil, threatened its own allies with invasion and started a war of aggression against another so that it can take their oil, all in a span of a few months.

But tell me more.

lostdog 2 days ago | parent [-]

Yes, if you just list 3 more problems about the US then it means that China has no problems at all.

Matl 2 days ago | parent [-]

No it means that perhaps the US should finally start looking at itself instead of just asserting that it doesn't need to because China.

That doesn't mean China should not be criticized. But to me it's clear that the China blame game is not about a genuine concern for Chinese people or its neighbors, it's about trying to keep it down because China should never dared to rise in the first place.

Anglo Saxons and maybe the French should be in charge and the rest should be resource colonies. It very much feels like that Western mentality is still there.

beedeebeedee 2 days ago | parent [-]

> No it means that perhaps the US should finally start looking at itself instead of just asserting that it doesn't need to because China.

Agreed, the US definitely needs to do some introspection to sort out its own shit (and stop spraying it on everyone else).

However, that does not mean that China gets a pass. Fundamentally, the Chinese model of governance does not protect the individual. For all its faults, the US model is based upon the idea of individual liberty, which acts as a touchstone and allows it to self-correct whenever it goes to far in the wrong direction. That's something the Chinese model does not do, and means that, short of a revolution, it will continue to be an authoritarian state with all of the malignant features that entails.

Matl 2 days ago | parent [-]

> Fundamentally, the Chinese model of governance does not protect the individual. For all its faults, the US model is based upon the idea of individual liberty

Look, am not here to defend the Chinese model but I find it interesting how convinced you seem that individualism is the right model for everyone.

While I would generally agree with you, I have spoken to many from poorer countries who say that they prefer to trade some individualism for a steady hand of economic development and lifting the population from poverty. That is the Chinese model.

These people would argue that they can reclaim more and more individual freedom as the country gets richer and more self confident.

I am not saying they are right, but looking at a nominal democracy like India and a nominal autocracy like China, I know which government works better as far as raising the living standards of its population and it's not the Indian one.

My hope is that China will continue to liberalize on its own. Forcing it will likely only reverse the gains.

Individualism also leads to the sort of healthcare system the US had or Skid Row. So it's not all roses.

SJMG 2 days ago | parent | prev [-]

> also feel comfortable saying that many Americans don't care one bit what happens to foreigners, be it by action of their government or companies

What's the point of this kind of statement for you? Does this help you understand others or just continue to drive the wedge in? Where are you from? Ask yourself can the statement,

"many {of my country} don't care one bit what happens to foreigners, be it by action of the government or companies" not be read as true?

There are self-absorbed, disinterested, uncompassionate people in every country which will satisfy your "many" qualifier.

Matl 2 days ago | parent [-]

I am from Europe. I feel comfortable saying that many in Europe do not care about what their governments or companies do to foreigners, (at least not enough to inform themselves about it).

However looking at the polls in the US gives you a fairly decent idea that there's a decent chunk of people that seem to get off on violence towards non-Americans. Why do you think ICE went with the violent tactics it did?

As to

> What's the point of this kind of statement for you? Does this help you understand others or just continue to drive the wedge in?

The point is to maybe make some Americans ask what it is that they can do to reform the government they have the most direct influence over (their own) instead of trying to reassure themselves that theirs is still better than country's X.

cedws a day ago | parent | prev [-]

[dead]

ricardobeat 2 days ago | parent | prev | next [-]

ANTHROPIC_SUBAGENT_MODEL is not a valid setting, should be CLAUDE_CODE_SUBAGENT_MODEL.

rapind 2 days ago | parent [-]

This is correct. Sorry I was using my phone to post. Here's what my bash alias verbatim looks like (.bashrc / .zshrc). The DEEPSEEK_API_KEY var is setup separately (so claude doesn't see it):

----

alias clauded='ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic ANTHROPIC_AUTH_TOKEN=$DEEPSEEK_API_KEY ANTHROPIC_MODEL=deepseek-v4-pro[1m] ANTHROPIC_DEFAULT_OPUS_MODEL=deepseek-v4-pro[1m] ANTHROPIC_DEFAULT_SONNET_MODEL=deepseek-v4-pro[1m] ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-v4-flash CLAUDE_CODE_SUBAGENT_MODEL=deepseek-v4-flash CLAUDE_CODE_EFFORT_LEVEL=max claude'

----

I doubt that the opus, sonnet, and haiku model args actually matter if you want to omit them.

I run this on a VPS that has no other credentials or project access so I can give it the skip permissions arg.

maxgashkov 2 days ago | parent | prev | next [-]

As of now, OpenRouter offers multiple providers for DeepSeek with ZDR (not sure if they respect it but still).

vidarh 2 days ago | parent [-]

At several times the price of DeepSeek, though, so it's a tradeoff... Even then Pro is still cheaper than Haiku.

tariky 2 days ago | parent | prev [-]

I wanted to try this. To bring back opus and sonnet do I just reset those env's?

snqb 2 days ago | parent | next [-]

yes, this is pretty much just rerouting Claude to call Deepseek's Anthropic-style-compatible endpoints instead of its own defaults Once removed, it'll work just like before

ianmurrays 2 days ago | parent | prev [-]

Correct.

aaurelions 2 days ago | parent | prev | next [-]

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.

2 days ago | parent | next [-]
[deleted]
oblio 2 days ago | parent | prev | next [-]

You're just mean. I count 6 lines of code!

ihsw 2 days ago | parent | prev [-]

[dead]

varenc 2 days ago | parent | prev | next [-]

The more interesting part of deepclaude is the local proxy it runs to switch models mid-session and do combined cost tracking. Though these features seem quite buried in the LLM-generated readme. Looking at the history, it appears they were added later, and the readme wasn't restructured to highlight this.

Also, the author checked in their apparently effective social media advertising plan: https://github.com/aattaran/deepclaude/commit/a90a399682defc... (which seems to be working)

yard2010 2 days ago | parent | next [-]

How come such slop is allowed here, what value do these vibe coded zero shot "projects" add? Why not just post the prompt?

throwatdem12311 2 days ago | parent | next [-]

Seriously. When I first looked this project had been pushed the first commit two hours prior. Projects should be at least 3 months old or automatically removed.

ulimn 2 days ago | parent | next [-]

But then that would have the downside of falsely blocking projects that were developed in private and then just pushed to Github (or any public repo). Like I always use my own, self-hosted Forgejo for everything by default.

throwatdem12311 2 days ago | parent | next [-]

If you develop on your own private instance and then mirror to GitHub to release it then there will be 3 months of git history in the logs.

2 days ago | parent | prev | next [-]
[deleted]
sumeno 2 days ago | parent | prev [-]

If it's a project you actually care about and are actively working on it'll be just as good 3 months from now.

If it's something that'll be irrelevant in 3 months why should anyone care about it?

ulimn 2 days ago | parent [-]

That is true in most cases I guess but just look at the current product in OP. In 3 months, at the pace AI products evolve, we might "all" be using the next AI coding harness and Claude Code could be a thing of the past. So it's not a long lasting tool like curl for example.

All I'm trying to say that generalizing like suggested might exclude some useful things.

2 days ago | parent [-]
[deleted]
KallDrexx 2 days ago | parent | prev [-]

Fwiw git history can be forged pretty easily. You can re-timestamp commits

fragmede 2 days ago | parent | prev | next [-]

Convenience? Am I supposed to take the prompt and use my own tokens on it? Why should I have to do that?

woctordho 2 days ago | parent | prev | next [-]

For the same reason that GitHub has a releases page for uploading binaries.

jpadkins 2 days ago | parent | prev | next [-]

is the value the working outputs or the inputs? A prompt alone would not let you recreate this project.

otabdeveloper4 2 days ago | parent | prev [-]

Recruiters used to use the candidate's Github "sources" page for evaluating candidates as a kind of proof-of-work.

groestl 2 days ago | parent [-]

And recruiter agents still do.

jimmypk 2 days ago | parent | prev [-]

[flagged]

spirit23 2 days ago | parent | prev | next [-]

So I created https://getaivo.dev, one can use model in the coding agent directly. Just `aivo claude -m deepseek-v4-pro`

Tanxsinxlnx 2 days ago | parent [-]

does it support aws bedrock provider support,does i can use any model in this

spirit23 2 days ago | parent | next [-]

Ah, for aws bedrock, just use `aivo keys add` add baseurl and apikey, everything is ready, `aivo models` to see models

Tanxsinxlnx a day ago | parent [-]

will check

spirit23 2 days ago | parent | prev [-]

Currently no, but it can be added

btbuildem 2 days ago | parent | prev | next [-]

This in essence is what allows one to use any model with CC -- including local.

neutrinobro 2 days ago | parent [-]

I know. I'm struggling to understand how this is a github repo/HN article. I've been using claude-code with a llama.cpp server and a dummy API key, and all that is required is to define 2 environmental variables to point claude at the local endpoint. Am I missing something?

KronisLV 2 days ago | parent | prev | next [-]

Wonder if there's a way to launch the desktop Claude app like that, especially on Windows, not just the Claude Code TUI/CLI. Might not be possible and you'd just have to use --remote as a workaround.

nadermx 2 days ago | parent | prev | next [-]

The AI wars have begun

heisenbit 2 days ago | parent | next [-]

And they are enticing human agents to further their agendas using techniques learned from the white mice.

stingraycharles 2 days ago | parent | prev | next [-]

This has been possible since the beginning.

2 days ago | parent | prev [-]
[deleted]
port11 2 days ago | parent | prev | next [-]

DeepClaude doesn't support MCP tool use; does your solution work with MCP tools such as Serena?

faangguyindia 2 days ago | parent | prev | next [-]

those who use deepseek v4, what level of output you get? Codex 5.3 or GPT 5.4?

is flash version on level of gpt 5.4 mini

adonese 2 days ago | parent | next [-]

I tried it on a non trivial, but also well documented and self contained task. It did amazingly well. I used deepseek v4 pro via deepseek platform. The model is very fast and also it is super cheap. I burned only 0.06 USD (I reckon how the same task would have cost me had I used e.g., amp).

PS. mentioning amp because i used to use it and I pay directly for token. I topped up 5 usd so I will be going to use it and see how far can it take me. But my impression so far is even when model subsidization is done, those open source models are quite viable alternatives.

zozbot234 2 days ago | parent | next [-]

> But my impression so far is even when model subsidization is done, those open source models are quite viable alternatives.

My understanding is that DeepSeek V4 Pro is going to be uniquely good at working on consumer platforms with SSD offload, due to its extremely lean KV cache. Even if you only have a slow consumer platform, you should be able to just let it grind on a huge batch of tasks in parallel entirely unattended, and wake up later to a finished job.

AIUI, people are even experimenting with offloading the KV cache itself to storage, which may unlock this batching capability even beyond physical RAM limits as contexts grow. (This used to be considered a bad idea with bulky KV caches, due to concerns about wearout and performance, but the much leaner KV cache of DeepSeek V4 changes the picture quite radically.)

torginus 2 days ago | parent | next [-]

Good. It's hard to overstate how nervous most executives are about relying on cloud-based providers.

AI currently works basically by sending your entire codebase and workflow, and internal communication over the internet to some third party provider, and your only protection is some legal document say they pinky promise they won't train on your data.

And said promise is made by people whose entire business model relies on being able to slurp up all the licensed content on the internet and ignore said licensing, on the defense of being too big to fail.

zozbot234 2 days ago | parent [-]

Yes, this is the most straightforward argument for local AI inference. "Why buy cloud-based SOTA AI? We have SOTA AI at home." It's great that DeepSeek may now be about to make this possible, once the support in local inference frameworks is up to the task.

adonese 2 days ago | parent | prev [-]

Is there any place I can read about KV? Excuse my ignorance as I'm not familiar with this topic and I read scattered notes that deepseek's cost are well optimized due to how their kv cache work. But I want to read more how kv cache relates to the inference stack and where does it actually sit.

> AIUI, people are even experimenting with offloading the KV cache itself to storage, which may unlock this batching capability even beyond physical RAM limits as contexts grow.

Especially this point. Any reason that this idea was considered bad? Is it due to the speed difference between the GPU VRAM to the RAM?

zozbot234 2 days ago | parent [-]

KV cache generally grows linearly with your current context; it gets filled-in with your prompts during prompt processing, and newly created context gets tacked on during token generation. LLM inference uses it to semantically relate the currently-processed token to its pre-existing context.

> Any reason that this idea was considered bad?

Because the KV cache was too big, even for a small context. This is still an issue with open models other than DeepSeek V4, though to a somewhat smaller extent than used to be the case. But the tiny KV of DeepSeek V4 is genuinely new.

spaceman_2020 2 days ago | parent | prev | next [-]

have you used it for non coding tasks via MCP, like Figma/Paper for design or Ableton MVP for sound design?

The token cost makes it tempting to use for token-heavy tasks like this

miroljub 2 days ago | parent | prev [-]

> even when model subsidization is done, those open source models are quite viable alternatives.

Model inference was never subsidized. Inference is highly profitable with today's prices. That's why you have many inference providers. My guess, the prices for inference will go down, as more competition starts cutting the margin.

It's model training, development and R&D that cost a lot, and companies creating closed models don't have any business model except astroturfing and trying to recover training costs through overpriced inference.

63stack 2 days ago | parent | prev [-]

It's close to Opus 4.5 for me

klaussilveira a day ago | parent | prev | next [-]

Damn, we need something like this for Ollama.

bhelkey a day ago | parent [-]

Ollama works with Claude Code:

$ ollama launch claude --model qwen3.5 [1]

[1] https://docs.ollama.com/integrations/claude-code

Daunk a day ago | parent | prev | next [-]

You mean `exec claude "$@"`

niobe 2 days ago | parent | prev | next [-]

thanks, that was super easy.

I have been wanting to try CC with different models since Opus went downhill last month..

What limitations or issues have you noticed when using DeepSeek with Claude Code if any?

thatxliner a day ago | parent | prev | next [-]

how do subagents work?

guluarte 2 days ago | parent | prev [-]

I'm using this

    deepseek() {
      unset ANTHROPIC_AUTH_TOKEN
      local -x ANTHROPIC_BASE_URL="https://api.deepseek.com/anthropic"
      local -x ANTHROPIC_AUTH_TOKEN="${DEEPSEEK_API_KEY}"
      local -x ANTHROPIC_MODEL="deepseek-v4-pro"
      local -x ANTHROPIC_SMALL_FAST_MODEL="deepseek-v4-flash"
      local -x API_TIMEOUT_MS=600000
      local -x CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
      TMUX= command claude "$@"
    }