AI for Linux: The Best Official Assistants and Local Models in 2026
Which AI tools actually run on Linux in November 2026: Claude Desktop beta, terminal agents like Claude Code and Codex, and local models with Ollama or LM Studio.
Yes, you can get very capable AI on Linux in 2026, and you have two good routes: official cloud assistants (Claude Desktop in beta, plus terminal agents like Claude Code and OpenAI’s Codex CLI) or fully local models through Ollama or LM Studio. Which one fits depends on whether you care more about raw model quality or about keeping everything on your own machine.
Below is what is officially supported right now, how to install each option the supported way, and the trade-offs. Everything here reflects vendor documentation as of November 2026; Linux support in this space is moving fast, so check the linked pages before you rely on a specific version or requirement.
The quick answer: which AI tool for which Linux user
| Option | Runs where | Linux support | Account needed | Best for |
|---|---|---|---|---|
| Claude Desktop (beta) | Cloud | Ubuntu 22.04+, Debian 12+ (x86_64, arm64) | claude.ai subscription or org SSO | A full desktop chat and coding app |
| Claude Code CLI | Cloud | Ubuntu 20.04+, Debian 10+, Alpine 3.19+; apt, dnf and apk repos | Pro, Max, Ultra, Team, Enterprise or Console | Coding agents in the terminal, any distro |
| OpenAI Codex CLI | Cloud | x86_64 and arm64 static builds | ChatGPT plan or API key | Terminal coding agent for ChatGPT users |
| Gemini CLI | Cloud | npm, Homebrew | Code Assist license or paid API/Vertex key | Teams already on Google Cloud |
| Ollama | Local | Install script or tarball, systemd service | None | Private, offline models with an API |
| LM Studio | Local | AppImage, x64 and ARM64 | None | Point-and-click local models |
Cloud AI assistants that officially support Linux
Claude Desktop for Linux (beta)
The biggest change this year is that Anthropic now ships a native desktop app for Linux. According to the official Linux page, it gives you the same Chat, Cowork and Claude Code experience as on macOS and Windows. It is labeled beta and currently supports only Debian-based systems: Ubuntu 22.04 or later, or Debian 12 or later, on x86_64 or arm64.
To install it the supported way:
- Make sure
curlandgnupgare installed (sudo apt install curl gnupg). - Download Anthropic’s signing key into
/usr/share/keyrings/as described in the docs, then verify it withgpg --show-keys. The docs say the only fingerprint shown should be31DDDE24DDFAB679F42D7BD2BAA929FF1A7ECACE. - Add the repository line from the docs to
/etc/apt/sources.list.d/claude-desktop.list. - Run
sudo apt update && sudo apt install claude-desktop. - Launch Claude from your app menu (or run
claude-desktop) and sign in.
The app does not update itself on Linux; updates arrive through your normal apt upgrade. A few things are missing from the beta: Computer Use, dictation, and Fedora/RHEL support. The Quick Entry hotkey works on X11, but on Wayland it depends on your desktop’s GlobalShortcuts portal. Cowork, the part of the app for longer agentic tasks, runs inside a QEMU/KVM virtual machine, so it needs hardware virtualization enabled and your user in the kvm group.
Claude Code CLI
If you are on Fedora, Arch, Alpine or a server, the Claude Code CLI is the more flexible option. Officially supported Linux systems are Ubuntu 20.04+, Debian 10+ and Alpine Linux 3.19+, with at least 4 GB of RAM on an x64 or ARM64 processor and an internet connection.
You have two official install paths:
- Native installer:
curl -fsSL https://claude.ai/install.sh | bash, then open a new terminal and runclaude --version. This version updates itself in the background. - Signed package repositories: Anthropic publishes apt (Debian/Ubuntu), dnf (Fedora/RHEL) and apk (Alpine) repositories, each with a
stablechannel (typically about a week behind) and alatestchannel. These don’t auto-update; you upgrade with your normal package manager.
Note the account requirement: the docs state Claude Code needs a Pro, Max, Ultra, Team, Enterprise or Console account, and the free claude.ai plan does not include it. You can also connect it to Amazon Bedrock, Google Cloud or Microsoft Foundry. If something seems off, claude doctor prints read-only install diagnostics.
OpenAI Codex CLI
ChatGPT subscribers can use OpenAI’s open-source Codex CLI. The project lists Linux builds for x86_64 and arm64 and offers an install script, an npm package (npm install -g @openai/codex), Homebrew, or tarballs from GitHub Releases. Run codex and choose “Sign in with ChatGPT”; the README recommends this for Plus, Pro, Business, Edu and Enterprise plans, with API-key sign-in as an alternative that needs extra setup.
Gemini CLI (and the Antigravity change)
Gemini CLI still installs on Linux with npm install -g @google/gemini-cli or Homebrew. But its README now says free individual access, along with Google AI Pro and Ultra, moved to Antigravity CLI on June 18, 2026. Gemini CLI is positioned for organizations with Gemini Code Assist Standard or Enterprise, Code Assist for GitHub, or paid API and Vertex AI keys. If you were using it for free with a personal Google account, read Google’s migration notes before reinstalling. We didn’t check Antigravity CLI’s Linux details against Google’s own documentation, so we don’t cover them here.
Running AI locally on Linux
Cloud agents give you frontier models, but every prompt goes to someone else’s server. If privacy, offline work or cost control matters more to you, run open-weight models locally.
Ollama
Ollama’s Linux docs give a one-line installer: curl -fsSL https://ollama.com/install.sh | sh. If you’d rather not pipe a script into your shell, there is a manual route: download the release tarball, extract it into /usr, and create a systemd service that runs ollama serve as a dedicated ollama user.
GPU acceleration is where most of the setup effort goes:
- NVIDIA: install the CUDA drivers and confirm with
nvidia-smithat your GPU is detected. - AMD: install ROCm v7. The docs also recommend the latest AMD Linux driver, because the kernel’s built-in
amdgpudriver may lack some ROCm features. Manual installs also need a separate ROCm package.
To update, rerun the install script or extract the new tarball over /usr. Logs are available with journalctl -e -u ollama. Because Ollama runs as a background service with a local API, other apps and editor plugins on your machine can use your local models too.
LM Studio
If you want a graphical app instead of a command line, LM Studio’s official system requirements say the Linux version ships as an AppImage for x64 and ARM64 systems and requires Ubuntu 20.04 or newer. The docs recommend at least 16 GB of RAM and at least 4 GB of dedicated VRAM. Some third-party tutorials list stricter hardware figures; treat those as rough community estimates rather than official requirements. If the AppImage won’t launch on a recent Ubuntu, community guides point to the missing libfuse2 package as the usual cause.
How to choose
- You want the best model quality and use a Debian or Ubuntu desktop: try Claude Desktop, keeping in mind it is still a beta.
- You live in the terminal, run another distro, or work on servers: use Claude Code (signed apt/dnf/apk repos are handy for fleets) or Codex CLI if you already pay for ChatGPT.
- Your company already uses Google Cloud: Gemini CLI with your organization’s Code Assist license or Vertex AI credentials.
- Your data can’t leave the machine, or you want to work offline: Ollama for a scriptable service, LM Studio for a GUI. Expect lower quality than the top cloud models unless you have a lot of VRAM.
Plenty of Linux users combine them: a local model for quick, private tasks, and a cloud agent for heavier coding work.
A word on security
Several of these tools install via curl ... | sh. That is the vendors’ official method, but if it makes you uneasy, use the alternatives they document: Anthropic’s signed apt/dnf/apk repositories (with published key fingerprints you can check), Ollama’s manual tarball install, or Codex’s GitHub Release binaries. Download only from the official domains linked above, and be wary of unofficial “Claude for Linux” repackages now that an official package exists.
Free apps worth trying
SponsoredSponsored links. Installing through them can earn us a commission, at no cost to you. Apps are free to download; some offer optional in-app purchases.
Frequently asked questions
Is there an official Claude desktop app for Linux? +
Yes, as a beta. Anthropic publishes a claude-desktop package for Ubuntu 22.04+ and Debian 12+ on x86_64 and arm64, installed from its apt repository. Fedora, Arch and other non-Debian distros should use the Claude Code CLI instead for now.
Can I run AI completely offline on Linux? +
Yes. Tools such as Ollama and LM Studio download open-weight models and run them on your own CPU or GPU, so prompts never leave your machine once the model is downloaded. Speed depends heavily on your RAM and graphics card.
Do I need a GPU to use AI on Linux? +
Not for cloud tools like Claude Code or Codex, which run the model on the provider's servers. For local models a GPU helps a lot: Ollama supports NVIDIA via CUDA drivers and AMD via ROCm, and falls back to the CPU otherwise.
Is Gemini CLI still free on Linux? +
As of November 2026 the official Gemini CLI repository says free individual access moved to Antigravity CLI on June 18, 2026. Gemini CLI itself is now aimed at organizations with Gemini Code Assist licenses or paid API and Vertex AI keys.
Sources
- Claude Code docs: Advanced setup (system requirements and Linux package managers) (code.claude.com)
- Claude Code docs: Claude Desktop on Linux (beta) (code.claude.com)
- Ollama on GitHub: Linux documentation (github.com)
- OpenAI Codex CLI on GitHub (github.com)
- Gemini CLI on GitHub (github.com)
- LM Studio docs: System requirements (lmstudio.ai)