Skip to main content
Community Scripts logo
Skip to Content
Tools & Add-onsAdd-ons

Coder Code Server

Install code-server (VS Code in the browser) from its release package, with a generated password and an update helper.

coder-code-server.sh installs the code-server_*_<arch>.deb package from the coder/code-server GitHub releases and runs it for the current user.

Run itInside the container or VM. On a Proxmox VE host confirm_not_pve_host warns and asks Continue anyway? (y/N)
Supported OSDebian or Ubuntu (require_debian_like: Alpine and systems without apt-get exit with code 238)
Port8680
Sourcetools/addon/coder-code-server.sh

Run

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/addon/coder-code-server.sh)"

Prompts

PromptAnswer
This will Install Coder Code Server. Proceed (y/n)?y installs, n exits. Anything else asks again

When code-server is already installed:

PromptAnswer
Uninstall Coder Code Server? (y/N):y removes it
Update Coder Code Server? (y/N):y updates. Anything else exits with No action selected

What it creates

ItemValue
Packagescurl, git, and the code-server .deb
Configuration~/.config/code-server/config.yaml (mode 600) with bind-addr: 0.0.0.0:8680, auth: password, cert: false
Servicecode-server@<user>, enabled and started for the user running the script
Update helper/usr/local/bin/update_coder-code-server
LoginRandom 20-character password, saved to ~/coder-code-server.creds (mode 600)
Addresshttp://<ip>:8680

If ~/.config/code-server/config.yaml already exists, the script keeps it and generates no password. Port and password are then whatever that file says.

If the service is not active after the install, the script exits with code 150.

Update

Run update_coder-code-server, answer y to the update prompt, or let the container's update command offer it (see how update finds add-ons). If a newer release exists, the new .deb is installed and the service is restarted.

Remove

The uninstall prompt disables and stops code-server@<user> and removes the code-server package with apt remove.

~/.config/code-server/config.yaml, ~/coder-code-server.creds and /usr/local/bin/update_coder-code-server are not removed.