Claude Code on Linux: Desktop App (Beta) or CLI, and How to Install Each

David IyaDavid Iya October 19, 2026 7 min read

Claude Code on Linux: the short answer

Yes, Claude Code runs on Linux, and you have two ways to use it. The first is the Claude desktop app, which is in beta on Linux for Ubuntu 22.04 or later and Debian 12 or later, on x86_64 or arm64. It gives you the same Code tab as on Mac and Windows: parallel sessions, visual diff review, an integrated terminal and editor, and live app preview. The second is the Claude Code CLI, which runs in your terminal and supports a wider range of distributions, including Fedora, RHEL and Alpine. Both run the same Claude Code engine.

My recommendation: if you are on a supported Ubuntu or Debian release, start with the desktop app. It is the friendliest way to review what Claude changed before you keep it. Use the CLI if your distribution is not supported by the desktop beta, or if you work over SSH on a server with no desktop at all.

Desktop app or CLI: which one fits your machine

Claude Code on Linux, from Anthropic's docs

Desktop app (beta)CLI
DistributionsUbuntu 22.04+ or Debian 12+ (other Debian-based distros may work but are not officially tested)Ubuntu 20.04+, Debian 10+, Alpine 3.19+, plus Fedora and RHEL through dnf
Architecturex86_64 or arm64x64 or ARM64
Installapt from Anthropic's repository, or a downloaded .debOne-line installer, or apt, dnf or apk
UpdatesThrough your normal apt upgradesNative install updates itself in the background. Package manager installs update with your system
Sign-inA claude.ai subscription or your organization's SSOSubscription or a Claude Console API key

Either way, Claude Code itself needs a Pro, Max, Team or Enterprise plan. The desktop app does not accept a Console API key, so if you bill through an API key, the CLI is your path. If you are on Windows with WSL 2, do not install the Linux app inside WSL. Install the Windows desktop app and run sessions in your WSL distribution instead.

How to install the Claude desktop app on Ubuntu or Debian

Anthropic installs the Linux app from its own apt repository, so updates arrive with the rest of your system. Open a terminal once for setup. After that you can launch Claude from your application launcher like any other app.

  • Make sure curl and gnupg are installed. Fresh installs may not include them: sudo apt install curl gnupg.
  • Download Anthropic's signing key: sudo curl -fsSLo /usr/share/keyrings/claude-desktop-archive-keyring.asc https://downloads.claude.ai/claude-desktop/key.asc
  • Check the key with gpg --show-keys on that file. The fingerprint should be 31DDDE24DDFAB679F42D7BD2BAA929FF1A7ECACE. If it does not match, stop and download it again.
  • Register the repository with the deb line from Anthropic's Linux install page, written to /etc/apt/sources.list.d/claude-desktop.list.
  • Install: sudo apt update && sudo apt install claude-desktop
  • Launch Claude from your app launcher (or run claude-desktop), sign in, and click the Code tab.

To update later, run sudo apt update && sudo apt upgrade, or let your graphical software updater do it. The Linux app does not update itself the way the Mac and Windows versions do.

How to install the Claude Code CLI on any Linux distro

The quickest route is Anthropic's native installer: curl -fsSL https://claude.ai/install.sh | bash. It shows no progress while it downloads. When it finishes, open a new terminal and run claude --version. If you get claude: command not found, the install folder is not on your PATH yet, and Anthropic's install troubleshooting page has the fix. The native install keeps itself updated in the background.

If you prefer your package manager, Anthropic publishes signed apt (Debian and Ubuntu), dnf (Fedora and RHEL) and apk (Alpine) repositories. Each has a stable channel, which runs about a week behind and skips releases with major regressions, and a latest channel that gets every release as it ships. For most people, stable is the right pick. Package manager installs update with your normal system upgrades, not on their own.

Once it is installed, cd into your project folder and run claude. If the terminal is new to you, Claude Code terminal setup covers the basics, and Claude Code day one setup covers what to do in your first session.

Linux problems you are most likely to hit

  • Unable to locate package claude-desktop. You added the repository but did not run sudo apt update afterward, or your architecture is not amd64 or arm64. dpkg --print-architecture tells you which.
  • Unmet dependency on libc6 (>= 2.34). Your release is too old for the desktop app. Ubuntu 20.04 is the common case. Upgrade to 22.04 or later, or use the CLI, which still supports 20.04.
  • You have to sign in every time. The app saves your sign-in in your desktop keyring, such as GNOME Keyring or KDE Wallet. Install a keyring if you have none, unlock it if it is locked, and on KDE Plasma remove GNOME Keyring if both are installed.
  • The app exits when launched as root. Log in as a normal user and launch it from there.

The Cowork tab has its own requirements on Linux. It runs tasks in a virtual machine, so it needs hardware virtualization turned on, the QEMU packages that apt installs by default, and your user in the kvm group (sudo usermod -aG kvm $USER, then log out and back in). That only matters for Cowork. The Code tab does not need it.

What the Linux beta does not have yet, and my take

  • Computer Use, where Claude controls apps and your screen, is not available on Linux. Claude Code computer use explains what it does on other systems.
  • Dictation is not in the Linux desktop app. Voice dictation works in the CLI instead.
  • The Quick Entry hotkey works on X11. On Wayland it depends on your desktop environment's GlobalShortcuts portal.
  • Fedora and RHEL are not supported by the desktop app yet. Use the CLI there.

My take: a beta label should not stop you. The Code tab is where most of the value is, and on Linux it has the features I care about day to day, especially the visual diff and parallel sessions. If you hit a gap, the CLI is one command away and runs the same engine, so you are never stuck. One Linux upside worth knowing: Claude Code's sandbox is supported on Linux, which makes it easier to let Claude run commands with fewer prompts.

Free Claude Code drops, straight to your inbox

Short, practical drops on skills, MCP, agents, prompts, and more. No spam, unsubscribe anytime.

Frequently asked questions

Does Claude Code work on Linux?

Yes. The Claude desktop app is in beta on Ubuntu 22.04+ and Debian 12+ on x86_64 or arm64, and the Claude Code CLI runs on more distributions, including Ubuntu 20.04+, Debian 10+, Alpine 3.19+, Fedora and RHEL.

How do I install Claude Code on Ubuntu?

For the desktop app, add Anthropic's apt repository and signing key, then run sudo apt update && sudo apt install claude-desktop. For the CLI, run curl -fsSL https://claude.ai/install.sh | bash, or install claude-code from Anthropic's apt repository.

Is there a Claude desktop app for Fedora or Arch?

Not yet. The Linux desktop beta only supports Debian-based distributions. On Fedora, RHEL, Arch and other distributions, use the Claude Code CLI, which runs the same engine.

How do I update Claude Code on Linux?

The desktop app updates through your system package updates, with sudo apt update && sudo apt upgrade. The CLI's native install updates itself in the background, while apt, dnf and apk installs update with your normal system upgrades.

What plan do I need for Claude Code on Linux?

A Pro, Max, Team or Enterprise plan. The desktop app signs in with a claude.ai subscription or your organization's SSO. If you want to use a Console API key, use the CLI.

Last reviewed by David Iya on October 19, 2026

David Iya

Written by

David Iya

Forbes 30 Under 30 · Y Combinator

Keep reading

Claude CodeTools

Claude Code in Slack: Setup, How It Works, and When to Use It

Claude Code in Slack lets you tag @Claude in a channel with a coding task and get back a cloud session that can open a pull request. It needs a Pro or Max plan, a GitHub repo connected at claude.ai/code, and the Claude app installed in your workspace. Team and Enterprise workspaces now use Claude Tag instead. Here is how the setup works, what happens when you tag Claude, and when I would use it over the desktop app.

David Iya 7 min
Read article
Claude CodeGetting Started

Claude Code Terminal Setup: Fix Shift+Enter, Notifications, tmux and Themes

Claude Code works in any terminal without setup, but a few things trip people up: Shift+Enter sending the prompt, Option-key shortcuts doing nothing on a Mac, no alert when Claude finishes, and tmux swallowing keys. Most of it is fixed by running /terminal-setup once or changing one setting. Here is how I would set up a terminal for Claude Code, symptom by symptom.

David Iya 7 min
Read article

Ready to build it yourself?

Join Claude Code Club, the #1 community for learning claude code, for $9/month.

← Back to the blog