Live data from Hacker News

Claude Code: connect to a local model when your quota runs out

boxc.net

21–30 of 223 posts

Re: Claude Code: connect to a local model when your quota runs out

#21
post #19
post #14

Earlier quoted context omitted.

End users -- people who use harnesses -- have subscriptions so that makes no sense. General API usage is for production.

"Production" what? The API is for using the model directly with your own tools. It can be in dev, or experiments, or anything. Subscriptions are for using the apps Claude + code. That's what it always said when you sign up.

Production code, of course; deployed software. For when you need to make LLM calls.

Re: Claude Code: connect to a local model when your quota runs out

#22
> Reduce your expectations about speed and performance!

Wildly understating this part.

Even the best local models (ones you run on beefy 128GB+ RAM machines) get nowhere close to the sheer intelligence of Claude/Gemini/Codex. At worst these models will move you backwards and just increase the amount of work Claude has to do when your limits reset.

Re: Claude Code: connect to a local model when your quota runs out

#23
post #7
post #4

Earlier quoted context omitted.

can you recommend a setup with ollama and a cli tool? Do you know if I need a licence for Claude if I only use my own local LLM?

What are your needs/constraints (hardware constraints definitely a big one)? The one I mentioned called continue.dev [1] is easy to try out and see if it meets your needs. Hitting local models with it should be very easy (it calls APIs at a specific port) [1] - https://github.com/continuedev/continue

I've also made decent experiences with continue, at least for autocomplete. The UI wants you to set up an account, but you can just ignore that and configure ollama in the config file

For a full claude code replacement I'd go with opencode instead, but good models for that are something you run in your company's basement, not at home

Re: Claude Code: connect to a local model when your quota runs out

#24
Since Llama.cpp/llama-server recently added support for the Anthropic messages API, running Claude Code with several recent open-weight local models is now very easy. The messy part is what llama-server flags to use, including chat template etc. I've collected all of that setup info in my claude-code-tools [1] repo, for Qwen3-Coder-next, Qwen3-30B-A3B, Nemotron-3-Nano, GLM-4.7-Flash etc.

Among these, I had lots of trouble getting GLM-4.7-Flash to work (failed tool calls etc), and even when it works, it's at very low tok/s. On the other hand Qwen3 variants perform very well, speed wise. For local sensitive document work, these are excellent; for serious coding not so much.

One caviat missed in most instructions is that you have to set CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC = 1 in your ~/.claude/settings.json, otherwise CC's telemetry pings cause total network failure because local ports are exhausted.

[1] claude-code-tools local LLM setup: https://github.com/pchalasani/claude-code-tools/blob/main/do...

Re: Claude Code: connect to a local model when your quota runs out

#26
post #13

My experience thus far is that the local models are a) pretty slow and b) prone to making broken tool calls. Because of (a) the iteration loop slows down enough to where I wander off to do other tasks, meaning that (b) is way more problematic because I don't see it for who knows how long. This is, however, a major improvement from ~6 months ago when even a single token `hi` from an agentic CLI could take >3 minutes t…

Open models are trained more generically to work with "Any" tool.

Closed models are specifically tuned with tools, that model provider wants them to work with (for example specific tools under claude code), and hence they perform better.

I think this will always be the case, unless someone tunes open models to work with the tools that their coding agent will use.

Re: Claude Code: connect to a local model when your quota runs out

#29
post #22

> Reduce your expectations about speed and performance! Wildly understating this part. Even the best local models (ones you run on beefy 128GB+ RAM machines) get nowhere close to the sheer intelligence of Claude/Gemini/Codex. At worst these models will move you backwards and just increase the amount of work Claude has to do when your limits reset.

The best open models such as Kimi 2.5 are about as smart today as the big proprietary models were one year ago. That's not "nothing" and is plenty good enough for everyday work.

Re: Claude Code: connect to a local model when your quota runs out

#30
post #22

> Reduce your expectations about speed and performance! Wildly understating this part. Even the best local models (ones you run on beefy 128GB+ RAM machines) get nowhere close to the sheer intelligence of Claude/Gemini/Codex. At worst these models will move you backwards and just increase the amount of work Claude has to do when your limits reset.

The best open models such as Kimi 2.5 are about as smart today as the big proprietary models were one year ago. That's not "nothing" and is plenty good enough for everyday work.

Which takes a $20k thunderbolt cluster of 2 512GB RAM Mac Studio Ultras to run at full quality…
Post reply on HN