Local Code AI agent explained in one sentence: it is a free, open-source AI agent from the Draw Things team that runs powerful AI models directly on your Mac, so your code and files never leave your desk. No subscription, no per-token bill, no cloud server in the middle — and it works even when your Wi-Fi is off.
That promise sounds almost too good, and it deserves a careful look before you download a model that weighs more than a hundred gigabytes. This local code AI agent explained guide covers what it can do, what your Mac needs to run it, what it costs, and where a local agent still falls short of the cloud tools most developers pay for — with every price and requirement checked against the official site on 8 November 2026.

Local Code AI Agent Explained: What It Actually Does
Local Code is a private AI agent for Mac, iPad and iPhone, made by Draw Things, Inc. — the team behind the Draw Things image app. The Mac version matters most: it needs Apple Silicon with at least 16 GB of memory and macOS 26.0 or later. The app is free to download, and its source code is public under the GPL-3.0 licence, so anyone can read exactly what it does with your files.
The important distinction is between a chat assistant and an agent. A chat assistant answers questions about code you paste in. Local Code works on your files directly: you give it a workspace folder, describe a task in plain language, and it reads files, runs commands, edits code, and produces finished work for you to review. The official Local Code about page describes it as combining model inference with an agent runtime containing Python, Node.js, a shell and tools for working with documents, spreadsheets and code.
In practice, that means Local Code can take on whole tasks rather than single questions. It can analyse a spreadsheet and chart the results, prepare a report or a slide deck, clean up a folder of documents, or build a small piece of software. It can generate images and video through the built-in Draw Things command-line tool, drive a WebKit browser to test a web page, and — only with your permission — read your calendar, photos, notes, mail and messages. Those personal-data commands can read but not change or send anything, which is a deliberate limit rather than a missing feature.
That is the local code AI agent explained at its simplest: an agent that does work, not a chatbot that talks about it.
Developers get something extra: the source repository includes build instructions and a skills system, so you can inspect the code and add your own skills. That openness is the point — Local Code is built for people who want to see what their assistant is doing, not just trust a marketing page.
How Local Code Runs on Your Mac
Three pieces work together inside the local code AI agent explained in this guide. The first is the inference engine: a local model runner for Apple Silicon that loads a downloaded model onto your Mac’s GPU. The second is a coding harness tuned to each model, which shapes how the model plans work and calls tools. The third is the agent runtime — the shell, language runtimes and command-line tools the agent uses to get things done.
The runtime is unusually complete. Everything is compiled into the app and runs inside Apple’s App Sandbox, protected by the Hardened Runtime. The agent never runs as a free process on your computer: it cannot read your whole disk, it cannot launch other apps, and it cannot touch the cloud unless you choose a cloud model. Each project lives in a folder inside a workspace you choose, and the agent can read and write inside that workspace plus the app’s temporary folder. Packages and caches stay inside the project folder, which keeps experiments contained.
The built-in toolbox covers more ground than most coding agents. It includes a shell with common Unix commands; Python 3.14 with NumPy, pandas, Matplotlib, Pillow and the Office file libraries; Node.js 24; Lean 4 and Z3 for checking proofs; LibreOffice for converting Word, Excel, PowerPoint and PDF files; FFmpeg and tools for making videos from HTML; web search and a browser the agent can drive; and the Draw Things CLI for image and video generation. Commands that use the network, such as web search, curl and ssh, connect out when the agent runs them — everything else stays local.
On top of the tools sit built-in skills — small instruction packs that show the agent how to do common jobs well. They cover office documents and spreadsheets, data charts with Python and Matplotlib, motion graphics, image and video generation, driving the web browser, publishing static files to a temporary public URL, connecting to Model Context Protocol servers, and proving claims about code with Lean. You can add your own skills, so the agent grows without waiting for the developer to ship a feature.
Tasks and chat threads are saved, so you can close the app and pick up later. An interrupted reply continues where it stopped instead of starting over. You can steer the agent mid-task by sending a message while it works. And the model’s context is saved to disk, so a long conversation is not read again from the start. These are the details that separate a tool you use once from one you keep open all day.
How to Set Up Local Code, Step by Step
Getting started with the local code AI agent explained here is straightforward, but the model download is the slow part, so it helps to know the sequence before you begin.
Step 1 — Check your Mac. You need an Apple Silicon Mac with at least 16 GB of memory and macOS 26.0 or later. The official site is clear that 16 GB is the floor, not the comfortable middle: the smallest model runs from 16 GB, and the larger ones want far more. Check your memory in Apple menu > About This Mac before downloading anything.
Step 2 — Download the app. Get Local Code from the official Local Code site, which offers a direct disk image for Mac; the App Store listing is described as coming soon. The download itself is small — around 600 MB with its tools, according to independent coverage of the launch.
Step 3 — Pick a model. During setup, Local Code suggests a model based on your Mac’s memory: under 32 GB, Qwen 3.8 27B; 32 GB and up, the larger Qwen quantisation; 48 GB and up, DeepSeek 4 Flash; 64 GB and up, DeepSeek 4.1 Flash 1017. You can switch models later. The next section walks through the choice in detail.
Step 4 — Wait for the download. This is the step people underestimate: the smallest model is roughly 10 to 21 GB on disk, and the largest is 376 GB. Start the download on a fast connection and let it finish before judging the app. Once a model is downloaded, Local Code works with no connection at all.
Step 5 — Share a workspace folder. Point Local Code at a folder you want it to work in. Keep the first project small and unimportant — a folder of notes, a spreadsheet to analyse, or a side project you know well. The agent can only reach the folders you share, so a narrow workspace is your first safety habit.
Step 6 — Give it one small, checkable task. Ask for something with a clear finish line: summarise a spreadsheet into a one-page report, rename a concept across a few files, or write a script with tests. Review the result like a colleague’s work — read the diff, run the tests, check the scope. That review habit is what makes an agent useful instead of risky.

Which Model Should You Pick? Qwen 3.8 vs DeepSeek
The local code AI agent explained in this guide downloads its own quantised checkpoints of each model, and the choice comes down to how much memory and disk your Mac has. The official site lists three models, and the differences are large enough to matter.
| Model | Minimum memory | Recommended memory | Download size |
|---|---|---|---|
| Qwen 3.8 27B | 16 GB | 32 GB | 10–21 GB |
| DeepSeek 4 Flash | 32 GB | 64 GB | 89 GB |
| DeepSeek 4.1 Flash 1017 | 32 GB | 96 GB | 376 GB |
Qwen 3.8 27B is the sensible start for most Macs: a 27-billion-parameter model that understands images and is strong at coding and long-horizon work, according to the project’s documentation. Its downloads are 9.6 GB, 21.3 GB or 29.2 GB depending on quantisation, and Local Code suggests it for devices with less than 48 GB of memory. If your Mac has 16 or 24 GB, this is your model.
DeepSeek 4 Flash is the middle step: an 89 GB download that wants 32 GB minimum and 64 GB recommended. DeepSeek 4.1 Flash 1017 is the flagship — a 376 GB download that includes a 203 GB engram file shared by both of its quantisations, with 32 GB minimum and 96 GB recommended.
Both DeepSeek models are mixtures of experts, which means each token uses only a few of their experts. That is what makes them runnable at all on a Mac: Local Code keeps the most-used experts in memory and streams the rest from your SSD, a technique the app calls Weights Streaming. With 40 GB of memory, 94% of the experts DeepSeek 4 Flash needs are already in memory, according to the official site. More memory makes the model faster; less memory leaves more room for your other apps.
The project’s own published benchmarks give a sense of what the flagship can do: Draw Things reports its 2-bit quantisation of DeepSeek 4.1 Flash 1017 scoring 30 out of 30 on AIME 2026 and 93.4% on GPQA Diamond, against 90.9% reported for the original model. Those are the developer’s own figures from the repository, not independent tests, so treat them as a signal rather than a guarantee.
Speed figures are published the same way: on an M5 Ultra with 256 GB, DeepSeek 4.1 Flash 1017 is listed at roughly 4,600 tokens per second of prefill and about 58 tokens per second of decode. Real speed on your Mac will depend on your chip, your memory and how much context is already loaded.
The practical rule for the local code AI agent explained here is simple. If your Mac has 16 to 32 GB, take Qwen and enjoy a fast, private agent. If you have 48 GB or more, try DeepSeek 4 Flash. Only reach for the 376 GB flagship if you have 64 GB or more, a large and fast SSD, and a reason to need the strongest local model — and remember you can switch models later without reinstalling the app.
Local Code AI Agent Explained: Pricing and the Free Tier
Pricing is where the local code AI agent explained in this guide looks most different from the tools it competes with, because there is no monthly plan at all for local use. The app is free to download, on-device models cost nothing per token, and your own API keys carry no markup. That is the whole local story: you pay with hardware and disk space, not with a subscription.
| Option | Price | What you get |
|---|---|---|
| On-device models | $0 per token | Qwen and DeepSeek models running on your Mac, offline |
| Your own API keys | $0 markup | Use your own keys with cloud providers at their own rates |
| Cloud credit top-ups | From $9.99 | Hosted models, in $9.99, $19.99 or $99.99 top-ups |
| Teams | Custom | Setup, custom skills and on-premises options — contact the team |
Cloud access exists for the moments when a local model is not enough. Local Code offers 32 hosted models, including ChatGPT, Claude and OpenRouter options plus OpenAI-compatible servers. You can use your own API keys at no markup, or buy prepaid credit in $9.99, $19.99 or $99.99 top-ups. There is no subscription to cancel and no monthly fee while you are not using it. That pay-as-you-go shape suits occasional heavy jobs: run locally all month, top up once for a task that needs a frontier model, and go back to free local use.
One warning belongs here, because it is the trade that defines the product. The moment you switch to a cloud model, the privacy story changes: your prompts, file contents and tool output go to that provider. Local Code’s privacy advantage applies to on-device sessions. A cloud session is a normal cloud session — keep sensitive files out of it, or keep the work local.
For teams, the site lists a custom option covering setup, custom skills and on-premises deployment, with no public price — it is a conversation with the Draw Things team rather than a checkout page. For individual users, the honest summary is that the free tier is the product: the app costs nothing, the local models cost nothing per token, and the only recurring cost is one you choose to take on.
Local Code vs Cloud Coding Agents
Local Code does not exist in a vacuum. Cursor, Devin, Replit and Claude Code all promise an agent that writes and edits code for you, and most charge a monthly fee for it. The comparison below puts the local code AI agent explained in this guide side by side with those cloud tools. The difference is where the work happens, and that one fact changes almost everything else.

| Local Code | Cloud coding agents | |
|---|---|---|
| Where it runs | On your Mac, offline | On the provider’s servers |
| Cost to use | $0 per token on-device | Monthly subscription or usage billing |
| Privacy | Code never leaves your Mac | Code is sent to the provider |
| Models | Qwen, DeepSeek, or your own keys | Frontier models included in the plan |
| Platforms | Mac, iPad, iPhone only | Mac, Windows, Linux, web |
| Collaboration | Solo, local workspaces | Cloud sessions, teams, shared review |
Against Cursor, the contrast is sharpest. Our Cursor free plan guide shows a $0 tier with limited Agent and Chat requests on a weekly-refreshed usage pool, and paid plans from $8 a month. Cursor gives you cloud agents, code reviews and frontier models inside a polished editor — and it meters every request. Local Code gives you unlimited local runs at $0, but the model is the one your Mac can carry, and there is no cloud agent to keep working while your laptop is closed.
Devin draws a similar line from the other side. Our Devin free plan guide covers a $0 tier with a light agent quota but unlimited Tab completions and inline edits, with Pro at $20 a month adding cloud agents and frontier models. Devin’s strength is autonomous work that returns as a pull request, often from the cloud. Local Code’s strength is the opposite: work that never leaves the machine. If your code cannot leave the building — client work under NDA, health data, unreleased products — that difference alone can decide the choice.
Replit sits further away, as a browser-based builder rather than an editor agent. Our Replit free plan guide covers its Starter tier: $0 with daily Agent credits and one published project, including hosting, authentication and database. Replit’s finish line is a live app on the web; Local Code’s finish line is finished work on your own files. They solve different problems, and many developers will use both.
So who should choose the local code AI agent explained in this guide? Pick it if you own a capable Apple Silicon Mac, you value privacy over raw model power, you dislike subscriptions, or you work with sensitive code. Pick a cloud agent instead if you need the strongest available model on every task, you work on Windows or Linux, you collaborate with a team in shared sessions, or you want agents that keep running after you close your laptop. The honest answer for many developers is both: Local Code for private, everyday work, and a cloud agent for the jobs that genuinely need frontier capability.
Pros and Cons of Local Code
The pros and cons of the local code AI agent explained so far come down to one trade: privacy and zero running cost on one side, hardware demands and a Mac-only footprint on the other.
Pros: genuinely free local use with $0 per token and no subscription; full privacy on-device, with offline work once a model is downloaded; open source under GPL-3.0, so the code can be inspected; a strong built-in toolbox — Python, Node.js, shell, documents, spreadsheets, browser and image tools — with no extra installs; Apple’s sandbox limits what the agent can reach; and credit top-ups instead of a monthly fee when you occasionally need a cloud model.
Cons: Mac, iPad and iPhone only — no Windows or Linux version; the hardware bar is real, with 16 GB minimum and very large model downloads up to 376 GB; local models, even good ones, trail frontier cloud models on the hardest tasks; there is no cloud agent that keeps working while your laptop is closed; collaboration features are thin compared with team-oriented cloud tools; and the product is young — it entered public beta in September 2026 and reached its public release in late October 2026 (reported), so expect rough edges and fast changes.
That last point deserves emphasis for anyone reading the local code AI agent explained here: a tool this new will change quickly, so model lists, download sizes and even the App Store status can move between releases. The official site and the Local Code source repository on GitHub are the places to check before you commit disk space or money, and this guide’s figures are a snapshot from 8 November 2026 rather than a permanent record.
Local Code AI Agent Explained: Frequently Asked Questions
Readers ask the same questions about the local code AI agent explained here, so here are the straight answers, each checked against the official site.
Is Local Code really free? Yes. The local code AI agent explained here is free to download, and on-device models cost nothing per token — there is no subscription for local use. Optional cloud models are paid either through your own API keys at no markup or through prepaid credit top-ups starting at $9.99. Teams pricing is custom.
Does Local Code work offline? Yes. Once a model is downloaded, Local Code works with no connection at all. Only steps that go online — web research, or a cloud model you choose — need a connection. That is why the first download matters so much: the 376 GB flagship model is the price of true offline capability at the highest quality.
Which Macs can run Local Code? Apple Silicon Macs with 16 GB of memory or more, running macOS 26.0 or later. Qwen 3.8 27B runs from 16 GB (32 GB recommended); DeepSeek 4 Flash from 32 GB (64 GB recommended); DeepSeek 4.1 Flash 1017 from 32 GB (96 GB recommended), streaming model weights from your SSD. Intel Macs are not supported, and there is no Windows or Linux version.
Is Local Code open source? Yes. The source code is public on GitHub under the GNU General Public License v3.0, in the drawthingsai/local-code-community repository, which was created in October 2026. You can read the code, build it yourself — including iPhone and iPad builds, for which the repository carries instructions — and add your own agent skills.
Can Local Code replace Cursor or Claude Code? For private, everyday coding on a capable Mac, it can cover much of the same ground at $0. It will not match a frontier cloud model on the hardest tasks, it has no cloud agent that works while your laptop is closed, and it runs only on Apple devices. Many developers will find it a strong complement to a cloud agent rather than a full replacement — local for sensitive and routine work, cloud for the biggest jobs.
The bottom line on Local Code AI agent explained is simple: it is the first coding agent that treats your Mac as the whole platform — model, tools and workspace — instead of a thin client for someone else’s server. If you have the hardware, the download is worth the disk space, and the free tier is generous enough to judge it on real work before you spend anything. Start with Qwen on a small project, review every change like a pull request, and let a week of private, offline work tell you whether the local route fits the way you build.