Claude Code on Linux: install, sign in, and the interfaces you can use
How to install Claude Code on Ubuntu, Debian, Fedora or Alpine, sign in with your Claude plan on a desktop or over SSH, keep it updated, and which graphical interfaces run on Linux today.
Claude Code runs natively on Linux. One command installs it, claude signs you in with your Claude plan, and from then on it works the same as on a Mac. The choices are in the details: which install method fits your distribution, how to sign in on a machine with no browser, and which window to put around it if you don't want to live in a terminal. Everything below comes from Anthropic's setup and authentication pages, read on November 27, 2026.
#What do you need?
Anthropic lists these requirements:
- A distribution: Ubuntu 20.04 or later, Debian 10 or later, or Alpine 3.19 or later, on x64 or ARM64.
- 4 GB of RAM or more, and an internet connection.
- Bash or Zsh. On Alpine and other musl systems, run
apk add bash curlbefore the installer. - A paid Claude account: a Pro, Max, Team or Enterprise plan, or a Console account billed by the API. The free plan doesn't include Claude Code.
Node.js isn't needed for the native installer. Git is optional, but you'll want it: worktrees, diffs and most real work assume a repository. Fedora and Arch aren't on that list, though Anthropic does publish an RPM repository for Fedora and RHEL.
#How do you install Claude Code on Linux?
#The native installer (recommended)
curl -fsSL https://claude.ai/install.sh | bash
It puts a claude launcher in ~/.local/bin and updates itself in the background. Make sure ~/.local/bin is on your PATH. To follow the slower stable channel, or pin a version:
curl -fsSL https://claude.ai/install.sh | bash -s stable
curl -fsSL https://claude.ai/install.sh | bash -s 2.1.89
#apt, dnf or apk
If you'd rather have updates come with the rest of the system, Anthropic publishes signed repositories at downloads.claude.ai/claude-code/. After adding the key and the repository as the setup page shows:
sudo apt install claude-code # Debian, Ubuntu
sudo dnf install claude-code # Fedora, RHEL
apk add bash claude-code # Alpine
These don't update themselves. Run sudo apt upgrade claude-code (or the dnf and apk equivalents) when you want the new version.
#npm
npm install -g @anthropic-ai/claude-code@latest
This needs Node.js 22 or later. Never run it with sudo: a global install as root leaves files your user can't update. The package installs the same native binary, so Node isn't used once it runs.
Homebrew on Linux also works (brew install --cask claude-code), with the same caveat as the package managers: it updates when you upgrade it.
#How do you sign in on a desktop, or over SSH?
Run claude in a project folder. It opens your browser to sign in with your Claude account, and you're done. The credentials are stored in ~/.claude/.credentials.json, readable by your user only.
On a server or over SSH, no browser opens. Press c to copy the sign-in link, open it on any machine, and if the page shows a code, paste it back at the prompt. For CI and scripts, claude setup-token creates a long-lived token tied to your subscription, which you set as CLAUDE_CODE_OAUTH_TOKEN.
One trap: if ANTHROPIC_API_KEY is set in your environment, Claude Code uses it instead of your subscription, and you pay API prices. Unset it if you meant to use your plan. More on how plans and limits work in Claude Code usage limits.
#How do you update it and check that it's healthy?
claude updateinstalls the newest version right away.claude doctorchecks the install without starting a session: whether the binary is where it should be, whether your settings files parse, how the last update went, with a fix for each warning.- The
autoUpdatesChannelsetting chooseslatestorstable;DISABLE_AUTOUPDATER=1stops background updates.
On Windows, the same applies inside WSL: install the Linux version in your WSL distribution. WSL 2 supports Claude Code's sandboxing; WSL 1 doesn't.
#Which interfaces can you use on Linux?
The terminal is the full version, and on Linux it's where most people stay. If you want a window around it, these run on Linux today:
| Interface | On Linux | Notes |
|---|---|---|
Terminal (claude) | Yes | Every command and setting |
| VS Code extension | Yes | Also in Cursor and other VS Code forks through Open VSX |
| JetBrains plugin | Yes | Needs the CLI installed separately |
| Claude desktop app | Beta | Ubuntu 22.04+ and Debian 12+, through Anthropic's apt repository; not Fedora or RHEL |
| Zed | Yes | Claude through its external agents (ACP) |
| T3 Code | Yes | Free, MIT; a .deb, an Arch package and Nix |
| opcode | From source | AGPL-3.0; no Linux release binaries, you build it |
Sources: Anthropic's pages for the desktop app on Linux, VS Code and JetBrains; Zed's docs; the T3 Code and opcode repositories. For what each kind of interface is good at, see Do you need a Claude Code GUI?. If you're picking an app on a Mac, The best Claude Code apps for Mac goes through them one by one.
#What should you set up first?
Once claude runs, the same few things pay off on any system:
- A
CLAUDE.mdat the root of each repository, with how to build, test and what not to touch. See the CLAUDE.md guide. - Permissions that let Claude run your test command without asking each time: permission modes.
- Worktrees if you run more than one session on a repository:
claude --worktree <name>gives each its own checkout. See git worktrees with Claude Code. - Notifications, since a terminal tab won't tell you a session is waiting: Claude Code notifications.
#In Relais
Relais is a Mac app first. Linux builds exist, an .rpm for Fedora and an AppImage for the other distributions, and they're sent on request to anyone who asks at hello@getrelais.app. They aren't on the download page yet and have been tried on fewer machines than the Mac version. They run the Claude Code installed on your computer, under your own Claude plan, the same as on a Mac: your sessions stay real Claude Code sessions in ~/.claude/projects, and Relais keeps its own settings in ~/.config/Relais. What it adds is described on the features page; the price is on pricing.