By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: How to Run Claude Code With Local Models Using Ollama | HackerNoon
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > How to Run Claude Code With Local Models Using Ollama | HackerNoon
Computing

How to Run Claude Code With Local Models Using Ollama | HackerNoon

News Room
Last updated: 2026/01/25 at 7:56 PM
News Room Published 25 January 2026
Share
How to Run Claude Code With Local Models Using Ollama | HackerNoon
SHARE

In January 2026, Ollama added support for the Anthropic Messages API, enabling Claude Code to connect directly to any Ollama model. This tutorial explains how to install Claude Code, pull and run local models using Ollama, and configure your environment for a seamless local coding experience.

Installing Ollama

Ollama is a locally deployed AI model runner that lets you download and run large language models on your own machine. It provides a command-line interface and an API, supports open models such as Mistral and Gemma, and uses quantization to make models run efficiently on consumer hardware. A model file allows you to customise base models, system prompts, and parameters (temperature, top-p, top-k). Running models locally gives you offline capability and protects sensitive data.

To use Claude Code with local models, you need Ollama v0.14.0 or later. The January 2026 blog notes that this version implements Anthropic Messages API compatibility. For streaming tool calls (used when Claude Code executes functions or scripts), a pre-release such as 0.14.3‑rc1 may be required.

curl -fsSL https://ollama.com/install.sh | sh

After installation, verify the version with ollama version.

Pulling a model

Choose a local model suitable for coding tasks. You can see the full list on https://ollama.com/search website. Pulling a model downloads and configures it. For example:

# Pull the 20 B parameter GPT‑OSS model
ollama pull gpt-oss:20b
# Pull Qwen Coder (a general coding model)
ollama pull qwen3-coder

To use Claude Code’s advanced tool features locally, the article Running Claude Code fully local recommends GLM-4.7-flash because it supports tool-calling and provides a 128K context length. Pull it with:

ollama pull glm-4.7-flash:latest

Installing Claude Code

Claude Code is Anthropic’s agentic coding tool. It can read and modify files, run tests, fix bugs, and even handle merge conflicts across your entire code base. It uses large language models to act as a pair of autonomous hands in your terminal, letting you vibe-code (describing what you want in plain language and letting the AI generate the code).

curl -fsSL https://claude.ai/install.sh | bash

From your terminal, run:

export ANTHROPIC_AUTH_TOKEN=ollama
export ANTHROPIC_BASE_URL=http://localhost:11434
# Launch the integration interactively
ollama launch claude

Then you will see the model list that you installed in the previous step. Select the one you want to test, then hit Enter.

Press enter or click to view image in full size

And that’s it! Now your Claude code works with Ollama and local models.

Now your Claude code works with Ollama

Video Tutorial

Watch on YouTube: Claude Code with Ollama

Summary

By pairing Claude Code with Ollama, you can run agentic coding workflows entirely on your own machine. Don’t expect the same experience as with the Anthropic models!

Experiment with different models and share with me which one worked the best for you!

Cheers! 😉

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Waymo Self-Driving Taxi Blocks A Bike Lane And The Company Blames The Human Driver – BGR Waymo Self-Driving Taxi Blocks A Bike Lane And The Company Blames The Human Driver – BGR
Next Article Report: Amazon Set for Another Round Of Layoffs, Thousands Expected to Lose Jobs Report: Amazon Set for Another Round Of Layoffs, Thousands Expected to Lose Jobs
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

NVIDIA CEO Jensen Huang visits China, inspects new Shanghai office · TechNode
NVIDIA CEO Jensen Huang visits China, inspects new Shanghai office · TechNode
Computing
Best Teeth Whitening Strips of 2026
Best Teeth Whitening Strips of 2026
News
How To Use AI Workflows To Automate Your Marketing
How To Use AI Workflows To Automate Your Marketing
Gadget
The Best Sony PlayStation 4 Games for 2026
The Best Sony PlayStation 4 Games for 2026
News

You Might also Like

NVIDIA CEO Jensen Huang visits China, inspects new Shanghai office · TechNode
Computing

NVIDIA CEO Jensen Huang visits China, inspects new Shanghai office · TechNode

1 Min Read
Alibaba launches preorders for its first in-house AI glasses, featuring AR navigation and visual payment integration across its ecosystem · TechNode
Computing

Alibaba launches preorders for its first in-house AI glasses, featuring AR navigation and visual payment integration across its ecosystem · TechNode

1 Min Read
China’s Moonshot AI reportedly raising several hundred million dollars in new funding round · TechNode
Computing

China’s Moonshot AI reportedly raising several hundred million dollars in new funding round · TechNode

1 Min Read
BYD’s Yangwang U9 becomes first Chinese supercar in Gran Turismo 7 · TechNode
Computing

BYD’s Yangwang U9 becomes first Chinese supercar in Gran Turismo 7 · TechNode

1 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?