Showing results for
🌐
Reddit
reddit.com › r/localllama › use claudecode with local models
r/LocalLLaMA on Reddit: Use claudecode with local models
July 16, 2025 -

So I have had FOMO on claudecode, but I refuse to give them my prompts or pay $100-$200 a month. So 2 days ago, I saw that moonshot provides an anthropic API to kimi k2 so folks could use it with claude code. Well, many folks are already doing that with local. So if you don't know, now you know. This is how I did it in Linux, should be easy to replicate in OSX or Windows with WSL.

Start your local LLM API

Install claude code

install a proxy - https://github.com/1rgs/claude-code-proxy

Edit the server.py proxy and point it to your OpenAI endpoint, could be llama.cpp, ollama, vllm, whatever you are running.

Add the line above load_dotenv
+litellm.api_base = "http://yokujin:8083/v1" # use your localhost name/IP/ports

Start the proxy according to the docs which will run it in localhost:8082

export ANTHROPIC_BASE_URL=http://localhost:8082

export ANTHROPIC_AUTH_TOKEN="sk-localkey"

run claude code

I just created my first code then decided to post this. I'm running the latest mistral-small-24b on that host. I'm going to be driving it with various models, gemma3-27b, qwen3-32b/235b, deepseekv3 etc

🌐
Medium
medium.com › @luongnv89 › setting-up-claude-code-locally-with-a-powerful-open-source-model-a-step-by-step-guide-for-mac-84cf9ab7302f
Setting Up Claude Code Locally with a Powerful Open-Source Model: A Step-by-Step Guide for Mac Users | by Luong NGUYEN | Nov, 2025 | Medium
November 20, 2025 - In your terminal, run: npm install -g @anthropic-ai/claude-code. Verify the install: Type claude—it might ask for an Anthropic key, but we'll override that soon. That’s it for installation.
People also ask

Does Claude Code work with the Claude desktop app?
Yes. Max, Pro, Team, and Enterprise users can access Claude Code on the Claude desktop app.
🌐
claude.com
claude.com › product › claude-code
Claude Code - AI coding agent for terminal & IDE | Claude
Is Claude Code secure?
Yes. Claude Code runs locally in your terminal and talks directly to model APIs without requiring a backend server or remote code index. It also asks for permission before making changes to your files or running commands.
🌐
claude.com
claude.com › product › claude-code
Claude Code - AI coding agent for terminal & IDE | Claude
Which models does Claude Code use?
Claude Code works with the Opus 4.5, Sonnet 4.5, and Haiku 4.5 models. Enterprise users can run Claude Code using models in existing Amazon Bedrock or Google Cloud Vertex AI instances.
🌐
claude.com
claude.com › product › claude-code
Claude Code - AI coding agent for terminal & IDE | Claude
🌐
Justin Searls
justin.searls.co › posts › how-to-run-claude-code-against-a-free-local-model
How to run Claude Code against a free local model
Thirty minutes later and I have a totally-free, locally-hosted version of the Claude Code experience demonstrated in the video above working on my machine (an MacBook Pro with M4 Pro and 48GB of RAM). I figured other people would like to try this too, so here are step-by-step instructions.
Discussions

[Claude Code] Tutorial for running Claude Code with a local model
Thank you for the great write-up, mate! As a heavy vim user, I’m not yet willing to make the switch to windsurf/cline/cursor etc, this I am extremely happy with the simplicity and CLI focus of Claude code. Pushing $30+ per day through the Claude API does become cost prohibitive, though [even though I feel that I‘m getting more value back than the 30 bucks]. Now I can continue viming with local models More on reddit.com
🌐 r/ClaudeAI
6
15
March 5, 2025
Running Claude Code with a local model or groq.
Someone cloned their code to a repo on GitHub, I’ll find it later, it works with any model More on reddit.com
🌐 r/ClaudeAI
15
9
March 9, 2025
Running Claude Code with a local model or groq. : ClaudeAI
I've been absolutely amazed by Claude Code, it's like travelling to the future. But the price is insane, their claim of $100/day is not a lie,... More on old.reddit.com
🌐 r/ClaudeAI
Use claudecode with local models
Its a bit easier with https://github.com/musistudio/claude-code-router More on reddit.com
🌐 r/LocalLLaMA
53
146
July 16, 2025
🌐
Claude
claude.com › product › claude-code
Claude Code - AI coding agent for terminal & IDE | Claude
November 24, 2025 - Yes. Claude Code runs locally in your terminal and talks directly to model APIs without requiring a backend server or remote code index.
🌐
Claude
code.claude.com › docs › en › setup
Set up Claude Code - Claude Code Docs
rmdir /s /q "%LOCALAPPDATA%\Programs\claude-code" del "%LOCALAPPDATA%\Microsoft\WindowsApps\claude.exe"
🌐
Anthropic
anthropic.com › engineering › claude-code-best-practices
Claude Code: Best practices for agentic coding
There’s no required format for CLAUDE.md files. We recommend keeping them concise and human-readable. For example: # Bash commands - npm run build: Build the project - npm run typecheck: Run the typechecker # Code style - Use ES modules (import/export) syntax, not CommonJS (require) - Destructure imports when possible (eg.
🌐
Shawnmayzes
shawnmayzes.com › product-engineering › running-claude-code-with-local-llm
Running Claude Code with a Local LLM: A Step-by-Step Guide
Learn how to set up Claude Code with a local large language model (LLM) using the code-llmss project. This guide walks you through installation, configuration, and real-world use cases for developers who want AI-powered coding assistance without relying on cloud-based services.
Find elsewhere
🌐
Substack
lennysnewsletter.com › p › everyone-should-be-using-claude-code
Everyone should be using Claude Code more
October 14, 2025 - The key is to forget that it’s called Claude Code and instead think of it as Claude Local or Claude Agent.
🌐
GitHub
github.com › anthropics › claude-code
GitHub - anthropics/claude-code: Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.
October 29, 2025 - Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows -- all through natural language commands.
Starred by 48.5K users
Forked by 3.4K users
Languages   Shell 46.4% | Python 33.8% | TypeScript 12.9% | PowerShell 4.7% | Dockerfile 2.2%
🌐
MCP Market
mcpmarket.com › home › agent skills › local skills mcp repository guide
Local Skills MCP Repository Guide | Claude Code Skill
4 days ago - Guides developers through the internal architecture, codebase structure, and implementation details of the Local Skills MCP server.
🌐
Reddit
reddit.com › r/claudeai › [claude code] tutorial for running claude code with a local model
r/ClaudeAI on Reddit: [Claude Code] Tutorial for running Claude Code with a local model
March 5, 2025 - I was eager to get rolling with Claude Code but wary of how expensive it'd be to do anything serious, so when I found this anon-kode and made a minimal PR to get it working with LM Studio, I was pretty pleased to kick the tires on the basic experience using a local model.
🌐
GitHub
github.com › FarhanAliRaza › claude-context-local
GitHub - FarhanAliRaza/claude-context-local: Code search MCP for Claude Code. Make entire codebase the context for any coding agent. Embeddings are created and stored locally. No API cost.
Claude Context without the cloud. Semantic code search that runs 100% locally using EmbeddingGemma.
Starred by 144 users
Forked by 16 users
Languages   Python 94.6% | Shell 2.0% | C# 0.6% | Rust 0.5% | C++ 0.4% | TypeScript 0.4%
🌐
Anthropic
anthropic.com › claude-code
Claude Code - AI coding agent for terminal & IDE
Yes. Claude Code runs locally in your terminal and talks directly to model APIs without requiring a backend server or remote code index.
🌐
Sid Bharath
siddharthbharath.com › home › blog › cooking with claude code: the complete guide
Cooking with Claude Code: The Complete Guide - Sid Bharath
July 8, 2025 - When you start a chat and ask Claude to do something in the app, it clones your Git repo into a virtual sandbox and starts writing code. It can autonomously run until the task is complete, at which point you can create a Pull Request and review ...
🌐
Builder.io
builder.io › blog › claude-code
How I use Claude Code (+ my best tips)
September 29, 2025 - You can also save this to global user memory preferences you want to apply everywhere, or local project memory that's specific to you and gets git-ignored. Add it to any of these files and it'll write it for you. Claude Code definitely has more features than OpenAI's Codex, though their agents ...
🌐
Reddit
reddit.com › r/claudeai › running claude code with a local model or groq.
r/ClaudeAI on Reddit: Running Claude Code with a local model or groq.
March 9, 2025 -

I've been absolutely amazed by Claude Code, it's like travelling to the future.

But the price is insane, their claim of $100/day is not a lie, once you get going, the price can be crazy.

Has anyone figured out a way to get it to talk to a local model (and which would work well), or with the Groq API?

I tried searching Reddit and Google, and asking Perplexity, and asking OAI Deep Research, and so far nothing, so I don't hold much hope, but asking just in case.

Thanks!

🌐
Intellectronica
everything.intellectronica.net › p › claude-code-for-non-coders
“Claude Code” for Non-Coders - by Eleanor Berger
4 days ago - The Claude Desktop app has two tabs: one for the regular Claude chat (which uses the cloud), and another called ‘Code’. Don’t let the name put you off — you won’t be writing any code yourself. Switch to the Code tab, open any folder on your computer, and you’re running a local agent.