Skip to content

Signals/ Claude & Anthropic/ Reel /

You Can Run Claude Code Without a Claude Plan. Here's How, and the Catch

Ollama can plug open AI models into Claude Code, Anthropic's coding agent. Install Ollama 0.15 or newer, type one command, raise the context window to 64K, and the AI runs on your own computer. Here's the full setup, the manual settings, which model to pick, what works, what costs money, and a free plain-English guide.

Cover of the free guide: run Claude Code on a local AI model, and the catch

Free guide · 9 pages · PDF

Claude Code local setup guide

Plain-English steps: what you need, the one-command setup, the manual settings, 64K context, picking a model, what works, what costs money, the privacy fine print, and every source.

⬇ Download the PDF

Claude Code is Anthropic’s coding agent. Normally you need a paid plan to use it. Anthropic’s setup page says so: “Claude Code requires a Pro, Max, Ultra, Team, Enterprise, or Console account. The free claude.ai plan does not include Claude Code access.”

Ollama is an app that runs AI models on your own computer. Its Claude Code docs put the trick in one line: “Ollama connects Claude Code to local and cloud models through its Anthropic-compatible API.” Put the two together, and Claude Code talks to Ollama instead of Anthropic.

That’s real, and it works. But the brain inside is an open model, not Claude, and there are a few catches worth knowing before you start. Below is the full setup, taken from Ollama’s and Anthropic’s own pages on November 2, 2026.

Reel frame: a Claude Code card with Claude plan crossed out, a big $0 and a NO CLAUDE PLAN sticker, above three step pills: Install, Launch, Context 64K

What this actually is

Think of Claude Code as the app and the AI model as the brain. Normally the brain is Claude. With Ollama, the Claude Code app stays the same, but the brain becomes an open model like Qwen, running on your machine.

Why no paid Claude plan? Ollama’s setup replaces the Anthropic login with its own setting, ANTHROPIC_AUTH_TOKEN=ollama. Anthropic’s gateway page describes the effect: requests “carry that credential in place of a developer’s claude.ai subscription login, and the subscription’s usage limits don’t apply.” Neither company says “you don’t need a Claude plan” word for word. That’s our plain reading of how it works.

What you get:

  • The Claude Code app, talking to Ollama instead of Anthropic.
  • The AI on your own computer when you use a local model.
  • No usage cap on local models. Ollama’s pricing page: “Running models on your own hardware is always unlimited.”

What you don’t get:

  • Claude itself. You’re using an open model inside the Claude Code app.
  • Claude’s quality. No source says open models match it, so we won’t either.
  • Every feature. More on that further down.

Use case

You’ve watched people build things with Claude Code and you want to learn the workflow (asking it to read a project, explain files, make edits) before you decide whether to pay for a plan. If your computer is strong enough, this lets you practice on an open model first.

Takeaway

Same app, different brain. Keep that in mind and the rest of the setup makes sense.

What you need

Three things: Ollama 0.15 or newer, Claude Code installed, and a computer that can carry the model.

1. Ollama, version 0.15 or newer. Ollama’s January 16 post says “Ollama v0.14.0 and later are now compatible with the Anthropic Messages API.” But the one-command setup needs “Ollama v0.15+,” per its January 23 launch post. Use 0.15 or newer and you’re covered for both. Get it from ollama.com/download.

2. Claude Code. It installs with one command. Pick the line for your computer from Anthropic’s setup page:

# Mac, Linux
curl -fsSL https://claude.ai/install.sh | bash

# Windows PowerShell
irm https://claude.ai/install.ps1 | iex

# With Homebrew (Mac)
brew install --cask claude-code

# With npm (needs Node.js 22 or newer)
npm install -g @anthropic-ai/claude-code

3. A computer that can carry the model. Claude Code itself needs “4 GB+ RAM, x64 or ARM64 processor” and an “internet connection.” The AI model is the heavy part. Ollama gives no general minimum, but its launch post has one example: glm-4.7-flash needs “~23 GB VRAM required with 64000 tokens context length.” VRAM is your graphics card’s memory. And per Ollama’s context docs, “Setting a larger context length will increase the amount of memory required to run a model.”

Be honest about that last point. Small laptops will struggle, and bigger local models need a strong graphics card. This won’t run well on any old laptop.

Workflow

  1. Check your graphics card’s memory first. If it’s small, plan on a smaller local model, or on Ollama’s paid cloud models.
  2. Install Ollama from the download page.
  3. Install Claude Code with the line for your computer.
  4. Only then move on to the setup below.

Takeaway

The software is the easy part. Your hardware decides how good the experience is.

The one-command setup

Once both apps are installed, open a terminal (the Terminal app on a Mac, PowerShell or Terminal on Windows) and type:

ollama launch claude

That’s the whole setup. It’s documented on Ollama’s Claude Code docs page and in its launch post. You choose a model, and Ollama connects Claude Code to it.

If you’d rather skip the menus, Ollama’s docs show a version that answers everything up front. --yes skips the selectors, pulls the model when needed, and requires --model. Their example uses a cloud model, which costs money:

ollama launch claude --model gemma4:cloud --yes -- -p "how does this repository work?"

For a local model, swap in a local model name (see Pick a model).

Reel frame: step 2 of 3, a terminal with the command ollama launch claude typed in and the line Claude Code now talks to Ollama, with a THAT'S THE WHOLE SETUP sticker

Prompt to try

Once Claude Code opens inside a project folder, start with something low-risk that only reads:

Read this project and explain in plain English what it does, which files matter most, and where I would start if I wanted to change the home page.

It’s a good first test: you’ll see whether the model can read your files and give a sensible answer before you let it edit anything.

Takeaway

One line does the wiring. Before you use it on a real project, raise the context window (two sections down).

The manual setup

The one command sets three settings for you. You can set them yourself instead. These are the exact values from Ollama’s docs. The export lines are for a Mac or Linux terminal.

Local model:

export ANTHROPIC_AUTH_TOKEN=ollama
export ANTHROPIC_API_KEY=""
export ANTHROPIC_BASE_URL=http://localhost:11434
claude --model qwen3.5

localhost:11434 is Ollama running on your own computer.

The same thing on one line (Ollama’s own example uses a cloud model here):

ANTHROPIC_AUTH_TOKEN=ollama ANTHROPIC_BASE_URL=http://localhost:11434 ANTHROPIC_API_KEY="" claude --model kimi-k2.7-code:cloud

Straight to Ollama’s cloud. Ollama says “No Ollama installation required” for this route, but you need an Ollama account and API key, and it costs money:

ANTHROPIC_BASE_URL=https://ollama.com \
ANTHROPIC_AUTH_TOKEN="$OLLAMA_API_KEY" \
ANTHROPIC_API_KEY="" \
claude --model glm-5.3-flash

What each setting means, from Anthropic’s environment variables page:

  • ANTHROPIC_BASE_URL: “Override the API endpoint to route requests through a proxy or gateway.” This is what points Claude Code at Ollama.
  • ANTHROPIC_AUTH_TOKEN: “Custom value for the Authorization header.” For local Ollama it’s just the word ollama.
  • ANTHROPIC_API_KEY: “When set, this key is used instead of your Claude Pro, Max, Ultra, Team, or Enterprise subscription.” Ollama sets it to empty.

One gotcha from Ollama’s docs: Claude’s own settings can override these shell settings. If you change something and nothing happens, type /status inside Claude Code to see what it’s really using.

Workflow

  1. Start Ollama.
  2. Paste the three export lines into your terminal.
  3. Start Claude Code with claude --model and your model name.
  4. Type /status to confirm it’s pointed at Ollama.

Takeaway

The manual way is the same three settings the one command sets. Use it when you want to see exactly what’s going on, and never paste a real API key into a chat or screenshot.

Set the context window to 64K

The context window is how much the model can read at once: your files, your request, its own notes. Ollama is clear about this: “Tasks which require large context like web search, agents, and coding tools should be set to at least 64000 tokens.” And on the Claude Code page: “For larger repositories, set the context length to 64k or higher.”

Here’s why it matters. Ollama’s default depends on your graphics memory:

  • Under 24 GiB of VRAM: 4K. That’s most normal computers.
  • 24 to 48 GiB: 32K.
  • 48 GiB or more: 256K.

So on a typical machine you start at 4K and need to raise it.

In the Ollama app: “Change the slider in the Ollama app under settings to your desired context length.” Set it to 64K or more.

On the command line:

OLLAMA_CONTEXT_LENGTH=64000 ollama serve

Cloud models are different. Ollama’s January post says “Ollama’s cloud models always run at their full context length.”

Use case

You point Claude Code at a small website folder and ask it to fix a broken link. At 4K, the model can only hold a sliver of the project at a time. At 64K, it has room to read the files, your request and its own working notes together.

Takeaway

Do this before anything else. It’s one slider, and skipping it is the easiest way to make a decent model look bad. Remember that a bigger context also uses more memory.

Pick a model

Ollama’s current Claude Code docs use these model names in their examples. It’s not an official “best” list:

  • Local: qwen3.5
  • Cloud (paid): glm-5.3-flash, gemma4:cloud, kimi-k2.7-code:cloud

For cloud models, Ollama adds: “Choose a cloud model that supports tools.”

Model names change often. Ollama’s January posts recommended older names (like glm-4.7-flash and qwen3-coder), and the current docs have already moved on. Check the list in your own Ollama app before you pick.

Prompt to try

Once your model is running with 64K context, try a small, contained edit and check the result yourself:

In this project, find the file that sets the page title. Show me the current title, then change it to “My Test Site” and tell me exactly which file and line you changed.

Asking it to name the file and line makes it easy to check what it did.

Takeaway

Start with the local example from the docs, confirm the name in your Ollama app, and match the model’s size to your graphics memory.

What works and what costs money

What works, per Ollama: “Basic chat and file edits work with compatible models.” Local models have no usage cap, and Ollama’s Free plan includes “Run models locally.”

What doesn’t, or not fully:

  • On the direct cloud route, “Hosted WebSearch and advanced tool controls are not fully supported.”
  • Remote Control is turned off when Claude Code points at a non-Anthropic address (Anthropic’s env-vars page).
  • You’re not getting Claude’s quality. It’s an open model.

Ollama’s cloud models cost money. If your computer is too weak, the cloud runs the AI on Ollama’s servers. From the download page: “Cloud models need usage credits or a paid plan.” Current prices from the pricing page:

  • Pay as you go: $0 to start, then “Pay per token for every cloud model.”
  • Pro: $20 a month.
  • Max: $100 a month.
  • Team: $500 a month.

You also need to sign in to an Ollama account. An older January post talked about “generous limits even at the free tier,” but the current pricing page replaces that.

Reel frame: The catch list: the brain is an open model, not Claude; some advanced features don't work; big models need a strong GPU; Ollama cloud models cost money; Anthropic doesn't officially support it, with a NOT OFFICIAL sticker

Use case

Your laptop has a small graphics card and a local model crawls. You could try a cloud model instead, but now you’re paying Ollama per use or monthly. At that point, compare the cost with a Claude plan and decide which you’d rather pay for.

Takeaway

Local model on your own machine: no Ollama bill. Cloud model: pay per use or a plan.

Privacy and support

“Local” is about where the AI model runs. It doesn’t mean nothing leaves your computer.

  1. With a local model, the AI runs on your machine. The local setup sends Claude Code’s requests to http://localhost:11434, which is Ollama on your own computer. No source says this word for word, but it follows from the setup.
  2. Claude Code still uses the internet. Anthropic’s setup page lists “internet connection required,” and Claude Code sends telemetry and checks for updates by default unless you set CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC (see Anthropic’s env-vars page).
  3. With a cloud model, your prompts go to Ollama. Ollama says “Prompt or response data is never logged or trained on,” and in its cloud docs, “We do not use them to train models.” Its servers are hosted “primarily in the United States.”
  4. Anthropic doesn’t officially support this. From the gateway page: “Anthropic doesn’t endorse, maintain, or audit third-party gateway products, and doesn’t support routing Claude Code to non-Claude models through any gateway.”

Workflow

  1. Use a local model if keeping the AI on your machine is the point.
  2. Look up CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC on Anthropic’s env-vars page if you want to cut the extra traffic.
  3. Keep private work off the cloud models unless you’re happy with Ollama’s terms.
  4. Don’t expect Anthropic’s help if something breaks. Ollama’s docs are the place to look.

Takeaway

Say “the AI runs on my machine,” not “my code never leaves my computer.” The first is true for local models. The second isn’t.

The fine print

  • Same app, different brain: you’re using an open model inside the Claude Code app, not Claude.
  • “No paid Claude plan” is our reading of how the setup works. Neither company says it word for word.
  • Model names and prices change often. Check your Ollama app and the pricing page before you choose.
  • Not supported by Anthropic: it works and Ollama documents it, but Anthropic doesn’t back it.
  • Not connected: AI Stack Signal isn’t connected to Anthropic or Ollama.

Takeaway

Every fact here comes from Ollama’s and Anthropic’s own pages, checked on November 2, 2026. Grab the free PDF guide above for the full setup on paper.

Would you run Claude Code on your own machine, or stick with the real Claude?

Sources & links 10

  1. Ollama docs: Claude Code integration docs.ollama.com ↗
  2. Ollama docs: Context length docs.ollama.com ↗
  3. Ollama docs: Cloud docs.ollama.com ↗
  4. Ollama blog: Claude Code with Ollama (Jan 16, 2026) ollama.com ↗
  5. Ollama blog: ollama launch (Jan 23, 2026) ollama.com ↗
  6. Ollama pricing ollama.com ↗
  7. Ollama download ollama.com ↗
  8. Anthropic: Claude Code setup code.claude.com ↗
  9. Anthropic: Claude Code LLM gateway code.claude.com ↗
  10. Anthropic: Claude Code environment variables code.claude.com ↗

More on Claude AI News

More signals

Reel

Claude Detox: Clean Up Your Claude Setup, Plus 3 Steps to Add First

Creator Ben AI built a free skill that audits your whole Claude setup. Here is what it does, and the three steps I would add before you run it.

Helps Anyone whose Claude has picked up lots of skills, connectors, memory notes and scheduled tasks, and who wants it cleaned up without losing anything

  • Claude
  • Claude Code
  • AI Tools
Reel

Run a Giant AI on Your Own Computer With Colibri: The Trick, the Setup and the Catch

Colibri is a free, open-source tool that runs very large AI models on a normal computer, with no graphics card required. Here's how the trick works, how to set it up, which model fits your machine, and the catch. We did not test it, so every number here is Colibri's own.

Helps Curious people with a decent computer who want to try AI on their own machine, without buying a graphics card

  • Colibri
  • Local AI
  • Open Source
Reel

ChatGPT Can Reach Your Gmail, Slack and Notion Through One Plugin. Here's the Setup and the Catch

Composio is a plugin in ChatGPT's plugin directory. Install it, sign in, connect your apps, and one request can run a multi-step job across Gmail, Slack, Notion and more. Here's what it is, the setup step by step, prompts to try, what ChatGPT shares with it, what the free plan covers and what Pro costs, and the approval setting to keep on.

Helps ChatGPT users who bounce between Gmail, Slack, Notion and other work apps and want one request to do a multi-step job across them, plus anyone who wants to know what they're sharing before they connect

  • ChatGPT
  • Composio
  • Productivity

Free weekly email

The Weekly Signal

Once a week: the AI news that matters, explained in plain English, with one tool you can try that day. No spam. Unsubscribe any time.

By subscribing you agree to get the weekly email. See our Privacy Policy.