4 ms·
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
by rapind 5mo ago
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)
- tariky 5mo agoI wanted to try this. To bring back opus and sonnet do I just reset those env's?
- ianmurrays 5mo agoCorrect.
- snqb 5mo agoyes, 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
- maxgashkov 5mo agoAs of now, OpenRouter offers multiple providers for DeepSeek with ZDR (not sure if they respect it but still).
- vidarh 5mo agoAt several times the price of DeepSeek, though, so it's a tradeoff... Even then Pro is still cheaper than Haiku.
- deleted 5mo ago[deleted]
- lhl 5mo agoFor 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.
- miroljub 5mo agoI 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.
- Matl 5mo ago> 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 5mo ago> 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.
- ricardobeat 5mo agoANTHROPIC_SUBAGENT_MODEL is not a valid setting, should be CLAUDE_CODE_SUBAGENT_MODEL.
- rapind 5mo agoThis 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 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.