5 ms·
#!/bin/sh export ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic export ANTHROPIC_AUTH_TOKEN=sk-secret export ANTHROPIC_MODEL=deepseek-v4-flas
by aftbit 5mo 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 $@
- nadermx 5mo agoThe AI wars have begun
- stingraycharles 5mo agoThis has been possible since the beginning.
- deleted 5mo ago[deleted]
- heisenbit 5mo agoAnd they are enticing human agents to further their agendas using techniques learned from the white mice.
- aaurelions 5mo agoIt 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.
- btbuildem 5mo agoThis in essence is what allows one to use any model with CC -- including local.
- neutrinobro 5mo agoI 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?
- rapind 5mo agoANTHROPIC_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.
- faangguyindia 5mo agothose 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 5mo agoI 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 5mo ago> 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.)
- adonese 5mo agoIs 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?
- spirit23 5mo agoSo I created https://getaivo.dev https://getaivo.dev, one can use model in the coding agent directly. Just `aivo claude -m deepseek-v4-pro`
- Tanxsinxlnx 5mo agodoes it support aws bedrock provider support,does i can use any model in this
- spirit23 5mo agoCurrently no, but it can be added
- spirit23 5mo agoAh, for aws bedrock, just use `aivo keys add` add baseurl and apikey, everything is ready, `aivo models` to see models
- Tanxsinxlnx 5mo agowill check
- varenc 5mo agoThe 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/a90a399682defc88d810b1e9063343d9f9a7192f https://github.com/aattaran/deepclaude/commit/a90a399682defc... (which seems to be working)
- yard2010 5mo agoHow come such slop is allowed here, what value do these vibe coded zero shot "projects" add? Why not just post the prompt?
- otabdeveloper4 5mo agoRecruiters used to use the candidate's Github "sources" page for evaluating candidates as a kind of proof-of-work.
- groestl 5mo agoAnd recruiter agents still do.
- fragmede 5mo agoConvenience? Am I supposed to take the prompt and use my own tokens on it? Why should I have to do that?
- woctordho 5mo agoFor the same reason that GitHub has a releases page for uploading binaries.
- throwatdem12311 5mo agoSeriously. 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.
- niobe 5mo agothanks, 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?
- port11 5mo agoDeepClaude doesn't support MCP tool use; does your solution work with MCP tools such as Serena?
- KronisLV 5mo agoWonder 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.
- guluarte 5mo agoI'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 "$@" }
- klaussilveira 5mo agoDamn, we need something like this for Ollama.
- bhelkey 5mo agoOllama works with Claude Code: $ ollama launch claude --model qwen3.5 [1] [1] https://docs.ollama.com/integrations/claude-code https://docs.ollama.com/integrations/claude-code
- thatxliner 5mo agohow do subagents work?
- Daunk 5mo agoYou mean `exec claude "$@"`