The best offline code editors and IDEs for Mac
Almost every editor can open a file offline. Fewer can give you AI help with no connection, and some need to check a licence online. Here's how the main Mac options compare.
Writing code without an internet connection is easy: almost any editor opens files offline. The questions that matter are whether its AI features still work offline, and whether it needs to check a licence or sign in online. Here are the main options for Mac, from free editors to paid IDEs. To set up the local models themselves, see local AI coding on a Mac.
At a glance
| Editor | Price | AI offline? | Notes |
|---|---|---|---|
| VS Code | Free | Yes, with local models | Copilot's own suggestions need the internet |
| Zed | Free personal plan | Yes, with Ollama, LM Studio or llama.cpp | Its default edit predictions are online |
| Xcode | Free | Yes: local code completion and local model providers | Apple platforms; recent versions need macOS Tahoe |
| JetBrains IDEs | Free core (IntelliJ IDEA, PyCharm) or free for non-commercial use; paid tiers | Partly: local completion; AI Assistant chat with local models | Offline licence activation available |
| BBEdit | $59.99, or free mode | Yes, its AI worksheet supports Ollama | Keeps working free after the trial |
| Sublime Text | $99 USD once | No built-in AI | Three years of updates |
| Nova | $99 once | No built-in AI | A year of updates included |
| Neovim / Emacs | Free, open source | Yes, with plugins (CodeCompanion, gptel) | For keyboard-driven developers |
| Cursor | Free; paid plans | No | Cursor says it can't work totally offline |
Prices and features as listed by each vendor in November 2026.
VS Code
Free for personal and commercial use. Its documentation says bring-your-own-key local models work without a GitHub account, a Copilot plan or an internet connection, and Ollama offers an official VS Code extension. Copilot's own inline suggestions and semantic search still need its online service. You can turn telemetry off in settings.
Zed
A fast, open-source editor whose personal plan is free with your own keys or local models. Its agent and inline assistant can use Ollama, LM Studio, llama.cpp or any OpenAI-compatible server, and edit predictions can come from Ollama. Its default edit-prediction model runs online, and telemetry can be switched off.
Xcode
Apple's free IDE for iPhone, iPad and Mac apps. Its predictive code completion runs on your Mac (Apple silicon), and you can add a locally hosted model provider such as Ollama for chat. Recent versions need macOS Tahoe 26.6 or later.
JetBrains IDEs
IntelliJ IDEA, PyCharm, WebStorm and the rest can be activated offline with an activation code from your JetBrains Account. Full Line Code Completion uses a locally run model and doesn't send code over the internet (in IntelliJ IDEA it's an Ultimate feature). AI Assistant can use Ollama or LM Studio for chat, although JetBrains says AI Assistant's agents can't use local models. Its separate Junie Local runs JetBrains' agent offline on high-end Macs (M5, 64 GB of memory).
BBEdit
A long-standing Mac editor. After the 30-day trial it keeps working free, with some features needing a licence ($59.99). Its AI Chat Worksheet supports ChatGPT, Claude and Ollama, so it can use a local model offline.
Sublime Text and Nova
Two excellent editors you buy once: Sublime Text ($99 USD personal licence, three years of updates) and Panic's Nova ($99 with a year of updates, macOS 15.6 or later). Both work offline; neither has AI built in.
Neovim and Emacs
Free, open-source and fully offline. Plugins such as CodeCompanion for Neovim and gptel for Emacs can connect them to Ollama.
Cursor
Cursor is popular, but its AI isn't built for offline use: a reply on Cursor's forum says it cannot work when totally offline, because requests go through its servers even when pointed at a local model.
Nexus: an AI workspace that runs local models
Nexus is a native Mac app for building with AI, with its own engine for local models based on Apple's MLX, plus support for Ollama. Choose a local model and, once it's downloaded, the AI work happens on your Mac (Nexus may check its licence or trial online, but never sends your code, projects or conversations); switch to Claude Code by Anthropic or the Codex app by OpenAI when you're online. Projects are folders on your Mac, so you can open them in any editor above. Nexus will be a one-time purchase of $199 USD, with no Nexus subscription; it needs an Apple silicon Mac with macOS 12 or later (14 or later for local models and the Codex app, 13 or later for Claude Code). Connecting third-party AI services such as Claude Code or Codex is optional and at your own expense (see Nexus pricing). It's coming soon. See how to code with AI offline.
Frequently asked questions
Which code editors can use AI offline on a Mac?
VS Code, Zed, Xcode, JetBrains IDEs, BBEdit, Neovim and Emacs can all use a local model such as one running in Ollama. Cursor's AI needs an internet connection.
Do JetBrains IDEs work offline?
Yes. JetBrains lets you activate a licence offline with an activation code downloaded from your JetBrains Account, and Full Line Code Completion runs locally. JetBrains says AI Assistant's agents can't use local models; its separate Junie Local runs JetBrains' agent offline on high-end Macs (M5, 64 GB of memory).