Run Claude Code on local models via Ollama
A guide to setting up Claude Code in IntelliJ and connecting it to local models through Ollama for coding work. ·
Done withClaude Code
- What they did
- The author installed Claude Code with npm and ran it from IntelliJ's built-in terminal. They pulled the qwen3.5:9b model in Ollama and pointed Claude Code at Ollama's Anthropic-compatible local endpoint with environment variables. An ollama launch command is offered as a shortcut. As a test, they asked it to build a Java console task manager. The person approved each change.
- How it went
- Per the author, the agent planned the work, created the files, ran the program and fixed its own errors, and the app worked. The author rates local quality as good only for small tasks, and speed depends on your hardware.
- Worth knowing
- Speed depends on your hardware, and the author says the setup only works if your machine can handle the model. Start with a small project.
Try it yourself with Claude Code
Help me set up Claude Code to run against a local model through Ollama on my [Mac/Windows/Linux] machine, using [IntelliJ/my editor] as my IDE. Walk me through installing Ollama, pulling a suitable coding model for my hardware ([RAM/GPU]), and pointing Claude Code at it. You're done when Claude Code answers a simple request about a file in [my project folder] using the local model. Show me any config files or commands before you change or run them.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Source: DEV · Oct 21, 2026
Related use cases
Turn tickets into merged pull requests
Pulls tasks from GitHub Issues or Linear, then runs Claude Code or Codex in isolated Kubernetes pods to carry each one through to a PR.
Fill out 50 forms from public information
A user had Claude complete 50 individual work forms using public information, then proofread them and found them accurate.
Orchestrate multiple coding agent sessions from one Claude session
A developer talks to one Claude session that messages other agent sessions (including Codex) as orchestrator, reachable from CLI, mobile app and IRC, to load-balance token usage.
Build a C compiler with a team of parallel agents
Anthropic's engineering write-up on tasking Opus 4.6 agent teams with building a C compiler.
Ship a product in 72 hours with a bot team
Three SpaceX engineers used a Grok Bot team to go from an empty repo to a product with 433 PRs, with agents reproducing bugs and merging autonomously except for human gates on migrations and deploys.
Auto-file issues when your agent mishandles Svelte
An opt-in skill lets a coding agent open an issue on the Svelte AI tools repo whenever it gets something wrong while working with Svelte.
Custom agent
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.