>_CLI agent· 11 local models ranked
Best Local LLMs for Claude Code
Anthropic's terminal coding agent, driven by a local model
Claude Code is Anthropic's agentic terminal coder, and out of the box it talks only to Anthropic's API. But its Messages API can be translated by a local proxy (LiteLLM) onto any OpenAI-compatible server, and the fully open-source Open Claude Code reimplementation exposes an OpenAI-compatible base URL directly. That is how the "Claude Code locally" guides actually run: an open-weight model with reliable structured tool-calling, doing the same 25-tool agentic loop without any code leaving your machine. This page ranks the local models that hold up in Claude Code's tool-call-heavy loop, where tool-calling reliability comes first.
