GuidesHosting choices

code-server: VS Code in the browser on your own server

Install code-server 4.146 (VS Code 1.146), run it as a service, find its password, reach it over SSH or Tailscale, and add Claude Code or Codex from Open VSX.

December 2, 2026The Everpod team
The short answer

code-server is VS Code running on your server and opened in a browser, open source under the MIT licence. Install it with curl -fsSL https://code-server.dev/install.sh | sh (try -s -- --dry-run first), start it with sudo systemctl enable --now code-server@$USER, and it listens on 127.0.0.1:8080 with a password stored in ~/.config/code-server/config.yaml. Keep it on 127.0.0.1 and reach it through an SSH tunnel or Tailscale Serve: it gives whoever logs in a terminal on the machine. Extensions come from Open VSX, where Claude Code, Codex, OpenCode and Cline are all published. The current release is v4.146.0 (November 20, 2026), built on VS Code 1.146.0.

Three ways to get VS Code onto a server

Someone running coding agents on a server usually wants an editor beside them: to read the diffs, open the files the agent wrote, and click through an extension’s panel instead of a terminal UI. There are three common routes, and they differ in what you need on your own device and who sits in the middle.

code-serverVS Code tunnel (code tunnel)Remote-SSH
On your device
Any browser, a tablet includedDesktop VS Code, or a browser at vscode.devDesktop VS Code and an SSH client
Sign-in
A password you set (or none)The same GitHub or Microsoft account on both endsYour SSH key
Path of the traffic
Your own: SSH, a private network, or your proxyThrough Microsoft’s dev tunnels service in AzureDirect SSH to the server
Extensions from
Open VSXMicrosoft’s marketplaceMicrosoft’s marketplace
Licence
MITMicrosoft’s VS Code Server licenceMicrosoft’s VS Code Server licence

VS Code tunnels and Remote-SSH both install Microsoft’s VS Code Server on the remote machine. Its licence allows it only alongside a licensed copy of VS Code and forbids hosting it for others, and Microsoft’s server docs say one instance is meant for a single user. A tunnel needs no open port, and an account can currently register 10 of them. Remote-SSH is the choice when you already work in desktop VS Code; how the agent extensions behave there is in Claude Code in VS Code and Codex in VS Code. code-server is the one that needs nothing installed on the device you sit at and sends nothing through a third party. It is made by Coder, which also sells a separate commercial platform; code-server itself is the free, open-source project.

Installing it

The install script picks a method for your system: the .deb package on Debian, Ubuntu and Raspbian, the .rpm on Fedora, CentOS, RHEL and openSUSE, the AUR package on Arch, Homebrew on a Mac that has it, and otherwise a standalone release in ~/.local. Its --dry-run flag prints the commands it would run without running them, which is worth reading before piping anything into a shell:

curl -fsSL https://code-server.dev/install.sh | sh -s -- --dry-run
Copied

Then install for real:

curl -fsSL https://code-server.dev/install.sh | sh
Copied

If you would rather fetch the package yourself, the same page gives the .deb route. Set the version from the releases page (use arm64 in place of amd64 on an ARM server):

VERSION=4.146.0
curl -fOL https://github.com/coder/code-server/releases/download/v$VERSION/code-server_${VERSION}_amd64.deb
sudo dpkg -i code-server_${VERSION}_amd64.deb
Copied

The project asks for a Linux machine with 1 GB of RAM and 2 vCPUs. That is the editor’s share; the agents and whatever they build need their own on top.

Running it as a service

The package ships a systemd template unit, code-server@.service, whose instance name is the user it runs as. It is a system service that runs under your account, not a systemctl --user unit, so it starts at boot without you being logged in:

sudo systemctl enable --now code-server@$USER
Copied

Because it runs as you, everything opened in it, the integrated terminal included, has your permissions and your home directory: the agents you start from its terminal find the same sign-ins and settings as in an SSH session. Logs are in the journal:

journalctl -u code-server@$USER -f
Copied

To try it without a service, run code-server in a terminal instead; it stops when you close that terminal.

The config file and the password

The first start writes ~/.config/code-server/config.yaml (it follows $XDG_CONFIG_HOME, and --config or $CODE_SERVER_CONFIG point elsewhere). Per the FAQ, it holds four settings:

bind-addr: 127.0.0.1:8080
auth: password
password: <random, generated for each config.yaml>
cert: false
Copied

The login page asks for that generated password. To print it:

grep '^password:' ~/.config/code-server/config.yaml
Copied

To choose your own, edit the password line and restart with sudo systemctl restart code-server@$USER. To keep it out of the file in plain text, replace password with hashed-password and an argon2 hash; the hashed field wins when both are present. The FAQ makes the hash with npx argon2-cli -e, reading the password on standard input. code-server has one password, not user accounts, and allows two login attempts a minute plus twelve more an hour. For several people, the project recommends a separate machine each.

Why it stays on 127.0.0.1

Whoever gets past the login page has a terminal on the server as your user, which is exactly how the project’s setup guide explains its warning:

Never expose code-server directly to the internet without some form of authentication and encryption
Copied

Setting bind-addr: 0.0.0.0:8080 on a server with a public address does both wrong at once: a login page anyone can find, behind one password and over plain HTTP, so the password crosses the network readable. Two routes reach it without changing the bind address at all.

An SSH tunnel

On your own computer, this makes the server’s port 8080 appear at 127.0.0.1:8080 for as long as it runs:

ssh -N -L 8080:127.0.0.1:8080 you@your-server
Copied

Open http://127.0.0.1:8080 in the browser. The project’s guide also adds ServerAliveInterval 5 and ExitOnForwardFailure yes to ~/.ssh/config so a dead connection is noticed, and goes on to switch auth to none, since SSH already decides who gets in. That holds only while nothing else on the server can reach its loopback address: another user account, a container on the host’s network, or an agent running as someone else could otherwise open your terminal without a password. Leaving the password on costs one login. Tunnels in general, and keeping one open, are in opening a localhost app on a remote server.

Tailscale Serve

With the server and your devices on one tailnet, Tailscale Serve puts code-server behind an HTTPS address that only the tailnet can reach, with a certificate Tailscale provisions, while code-server stays on 127.0.0.1:

tailscale serve --bg 8080
Copied

tailscale serve status prints the address, of the form https://your-server.your-tailnet.ts.net. This is the route that works from a phone or a tablet without an SSH client. Keep auth: password here: every device and user the tailnet’s rules let through can reach the page. What has to be switched on in the tailnet first, and how Serve differs from the public Funnel, is in Tailscale Serve and Funnel.

The address decides whether agent panels load

Extension panels in VS Code are web views, and code-server’s FAQ explains that web views depend on service workers, which browsers allow only in a secure context. The Claude Code, Codex and Cline panels are all web views. So the same code-server can work on one address and show blank panels on another:

How you open itSecure contextPanels
http://127.0.0.1:8080 through an SSH tunnel
Yes: browsers treat localhost as secureLoad
Tailscale Serve’s https://...ts.net
Yes: a real certificateLoad
Your own domain behind a proxy with a real certificate
YesLoad
http:// and a tailnet or LAN IP address
NoFail to load

The browser’s console shows a service worker registration error when this is the cause. The FAQ also lists a trusted self-signed certificate (made with mkcert) and a browser flag that treats one insecure origin as secure, but on a server, the tunnel or Serve is the shorter road. A third thing the browser changes: some VS Code shortcuts belong to the browser first. The FAQ suggests installing code-server as an app from the browser’s menu, which hands more of them to the editor.

Extensions come from Open VSX

code-server cannot use Microsoft’s marketplace. The FAQ is direct: “Microsoft prohibits the use of any non-Microsoft VS Code from accessing their marketplace.” It searches the Open VSX Registry instead, and Microsoft’s own Remote extensions (SSH, Containers, WSL) are not available. For coding agents this matters less than it used to: as of December 2, 2026, all four of the common agent extensions are on Open VSX, each from a verified publisher:

AgentOpen VSX IDVersion (Dec 2, 2026)What it adds
Claude Code
Anthropic.claude-code2.1.334A chat panel with its own bundled copy of Claude Code
Codex
openai.chatgpt26.51123.91003OpenAI’s Codex panel
OpenCode
sst-dev.opencode1.0.1Opens the OpenCode CLI in a split terminal and passes it your selection
Cline
saoudrizwan.claude-dev4.1.28Cline’s agent panel

Install from the Extensions view, or from a terminal on the server:

code-server --install-extension Anthropic.claude-code
code-server --install-extension openai.chatgpt
Copied

Claude Code needs VS Code 1.94 or later and Codex 1.96.2, both far below what code-server ships. Claude Code and Codex publish separate builds for x64 and ARM64 Linux, which the registry picks between. An extension that is not on Open VSX can still be installed from a .vsix file with the same flag, though its licence may not allow use outside Microsoft’s editor.

Signing the agents in from a browser

The extensions run on the server, not in your browser. A browser sign-in that returns to a callback on the server, as Codex’s does on localhost:1455, has nowhere to land from your laptop’s browser. The dependable route is the agent’s CLI in code-server’s own terminal:

Updating

Each release of code-server is built on one release of VS Code and says which in its notes: v4.146.0, published November 20, 2026, is VS Code 1.146.0, and four releases came out between October 29 and November 20 (v4.144.0, v4.145.0, v4.145.2, v4.146.0). The upgrade page has one instruction, “install the new version over the old version”, so run the install script again, or install the newer .deb over the old one, then restart:

curl -fsSL https://code-server.dev/install.sh | sh
sudo systemctl restart code-server@$USER
Copied

The script’s --version flag installs a specific release instead of the latest. User data is kept in ~/.local/share/code-server and the config in ~/.config/code-server, so neither is touched by an upgrade.

Run Claude Code, Codex, OpenCode, Pi, Hermes or OpenClaw on an always-on developer pod.

A developer pod is a permanent cloud computer (VPS), set up and secured for you, with your pick of Claude Code, Codex, OpenCode, Pi, Hermes and OpenClaw installed. Run more agents at once than your laptop can hold, and keep them working when it’s closed. From $24 a month, built in about ten minutes.