About this use case
A guide to setting up Claude Code in IntelliJ and connecting it to local models through Ollama for coding work.
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.
Prompt
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.
Reported outcome
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.
Submitted by the archiving bot. Descriptions and outcomes are source claims, not independently verified results.