PlaybookAdvanced5 min read11 June 2026

Free Local Claude Code

How developers run Claude Code 100% locally with Ollama

In short

This is the setup for running Claude Code locally with Ollama on Mac, free, on your own laptop. About 10 minutes to install. I'm not personally using this as my daily driver, frontier models are still ahead for what I do. But the operator point is bigger than the install. Companies like Airbnb run a lot of their AI on local and open-source models from China. Customer support, classification, routine tasks, none of it needs frontier-level reasoning. The savings are massive at scale. If you're tied to one model, you're at the mercy of one company's pricing. Knowing how to run local is operator diversification.

Here's the setup that's been going around for running Claude Code completely free on your laptop.

Heads up: this guide is Mac only. The terminal commands and the ~/.zshrc setup are written for macOS. The same install works on Linux with small tweaks, and on Windows via WSL, but neither is covered here. Mac users, you're good. Everyone else, this'll point you in the right direction but you'll need to translate the commands.

Quick honest note up front. I'm not personally using this as my daily driver. Frontier models are still ahead for the kind of work I'm doing right now. But the gap is closing fast, and the operator point here is bigger than whether you swap your daily setup tonight.

The bigger story is this. A lot of serious SaaS companies are already running on local and open-source models. Airbnb runs significant chunks of its AI infrastructure on Alibaba's Qwen models. A growing number of large startups are doing customer support and classification with DeepSeek. None of that work needs frontier-level reasoning. Classification, routine support tickets, internal tooling, automation pipelines, all of it runs perfectly well on cheaper open-source models. The unit economics are 50x better and the output quality is the same for those use cases.

The lesson for any operator: if you're tied to one model, you're at the mercy of one company's pricing, one company's rate limits, one company's roadmap. Knowing how to run local isn't about saving $20 a month. It's about diversifying your AI stack the same way you diversify suppliers, payment processors, or hosting providers. Concentration risk is concentration risk.

This setup takes about 10 minutes if you've never opened a terminal. Less if you have.

Setup, step by step (Mac)

You'll use your terminal once. Press Command + Space, type "Terminal", hit enter. That's it, you're in.

Step 1. Install Ollama

Go to ollama.com, click download, install like any other Mac app. It runs quietly in the background. You won't notice it's there.

Step 2. Pull a coding model

In your terminal, paste one of these and hit enter:

If your Mac is newer (last 3-4 years, with decent RAM):

ollama pull qwen3-coder:30b

If your Mac is older or lower-spec (8GB RAM or less):

ollama pull qwen2.5-coder:1.5b

Takes a few minutes to download. You only do this once. The 30B model is more capable. The 1.5B runs on almost anything.

The next one lands in your inbox before it lands here.

One email a week. What I tested.

Subscribe
Free Local Claude Code · Playbooks · Steve Tan