Self-hosted app·Websites, APIs and internal tools
code-server hosting on a Swiss VPS.
code-server hosting in ALP1, Swiss Alps: Standard VPS (4 vCPU, 4 GB RAM) for $12.99/mo, Docker Compose, Caddy TLS, sizing and the rules that matter.
- Debian
- Docker
- Caddy
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port15 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $116.99 a year, about 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 4 vCPU, 4 GB RAM
- 160 GB NVMe local storage
- 15 TB transfer on a 1 Gbps port
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/06
Short answer.
Yes. code-server runs on any of our Cloud VPS plans in ALP1, and for one developer we recommend Standard: 4 vCPU, 4 GB RAM, 160 GB NVMe and 15 TB of monthly transfer for $12.99 a month. Starter will run it, but 2 GB leaves little headroom once a language server and a build are busy at the same time. Sizing is the smaller question. code-server gives whoever logs in a terminal on your server, so it has to stay bound to 127.0.0.1 and be reached through an SSH tunnel or a reverse proxy with TLS. Coder's own setup guide is explicit that an instance exposed without authentication and encryption lets someone take over the machine through that terminal.
02/06
What code-server is, and who runs it.
code-server is VS Code running on a server and used from a browser tab. Coder Technologies maintains it under the MIT licence. It pulls the open-source VS Code core in as a submodule and carries its own patch set on top, which is the main difference from OpenVSCode Server, a direct fork. The current stable release is 4.141.0, published on 8 October 2026 and built on Code 1.141.0; since August there has been roughly one release a week, tracking upstream. The patches are what a self-hoster cares about: password authentication, hosting under a sub-path, a built-in proxy for ports on the server, and web views that do not call out to Microsoft's servers.
Not being Microsoft's build has two practical consequences. Extensions come from Open VSX, because the Visual Studio Marketplace terms limit its extensions to Microsoft's own products; most open-source extensions are available, Live Share and the Remote (SSH, Containers, WSL) extensions are not. Authentication is a single password for the whole instance, rate-limited to two attempts a minute plus twelve more per hour, with no user accounts behind it. For several people Coder recommends one VM per user, and we agree.
People put code-server on a VPS to keep one development environment off the laptop. It looks the same from a work machine, a tablet or a borrowed computer, and the source stays on the server when the laptop goes missing. Microsoft's own browser route, Remote Tunnels, needs a GitHub or Microsoft account on both ends and relays through a service hosted in Azure. With code-server the path is your browser, your domain and your VPS in the Swiss Alps.
That server is operated by Hosta AG (IDE CHE-107.875.655), a Swiss société anonyme in Riehen, so the frame is Swiss law. The revised Federal Act on Data Protection has applied since 1 September 2023, and on 15 January 2024 the European Commission confirmed that Switzerland still provides an adequate level of protection, so copying a database extract from an EU production system to a dev box in ALP1 needs no extra transfer mechanism. The US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia. That is a narrower fact than "outside US jurisdiction", which we do not promise; the offshore hosting page sets out what Swiss jurisdiction does and does not cover.

Our servers are in Switzerland and answer to Swiss law. We act only on orders from competent Swiss authorities, and a request from abroad has to pass through one of them first.
03/06
Requirements and sizing.
Coder's stated minimum is 1 GB of RAM, 2 CPU cores and working WebSockets. That covers the editor. The memory that decides your plan belongs to what the editor starts for you: tsserver on a large TypeScript project, rust-analyzer indexing a workspace, a Python language server, and whatever runs in the integrated terminal, from a test suite to docker compose up. On 4 GB those coexist for one developer and a couple of repositories. On 2 GB the kernel's OOM killer eventually picks a victim, usually the largest process, which tends to be the language server you were relying on.
| Plan | vCPU / RAM / NVMe | Transfer / port | Price | Suits |
|---|---|---|---|---|
| Starter | 2 / 2 GB / 80 GB | 10 TB / 1 Gbps | $6.99/mo | Scripts, one small project, no container builds |
| Standard | 4 / 4 GB / 160 GB | 15 TB / 1 Gbps | $12.99/mo | One developer, a few repos, a Compose dev stack |
| Pro | 6 / 8 GB / 320 GB | 20 TB / 1 Gbps | $22.99/mo | Rust, C++ or a large monorepo, several containers |
| Power | 12 / 16 GB / 640 GB | 40 TB / 2 Gbps | $42.99/mo | Long parallel builds, CI-style workloads |
Whatever the plan, a 2 GB swap file on the NVMe disk is cheap insurance; it turns an OOM kill into a slow minute.
Only three ports need to be open: 22 for SSH, and 80 and 443 if Caddy fetches a Let's Encrypt certificate. code-server itself listens on 127.0.0.1:8080 and should never be published. An editing session moves very little data, and VPS transfer is metered per plan rather than unmetered, but you would have to re-pull images and package caches with real dedication to approach 15 TB in a month.
Distance matters less than people expect.
04/06
How to deploy it with us.
There are two reasonable installs. The Debian package with its systemd unit runs code-server as your own user, sees every toolchain you install on the host, and upgrades with one dpkg -i; for a personal box it is the one we would choose. Docker pins the version and makes the IDE disposable, but the official image is a minimal Debian, so you end up maintaining a Dockerfile with your compilers in it.
- 01Deploy Standard with Debian 13: deploy Cloud VPS Standard.
- 02Create a normal user (
adduser dev, thenusermod -aG sudo dev), install your SSH key for it and setPasswordAuthentication noinsshd_config(more in cloud VPS). - 03Install the package and start the service:
VERSION=4.141.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
sudo systemctl enable --now code-server@dev- 04The first start writes
~/.config/code-server/config.yamlwithbind-addr: 127.0.0.1:8080,auth: passwordand a random password. Replace the plain password with an argon2 hash (sudo apt install argon2, thenecho -n 'your passphrase' | argon2 "$(head -c 12 /dev/urandom | base64)" -e), put the result in quotes underhashed-password:, delete thepassword:line and restart the service. - 05Choose how you reach it. The SSH tunnel is Coder's own first recommendation and needs nothing else on the server:
ssh -N -L 8080:127.0.0.1:8080 dev@<your-ip>, then openhttp://127.0.0.1:8080. For a tablet or a machine without SSH, point a domain at the VPS, install Caddy from its Debian repository and use this/etc/caddy/Caddyfile:
code.example.com {
reverse_proxy 127.0.0.1:8080
}Caddy obtains the certificate and passes WebSocket upgrades without extra configuration. A real certificate also matters for the editor itself: web views rely on service workers, which browsers only allow in a secure context, so a bare IP over plain HTTP breaks them.
- 06Allow only 22, 80 and 443 in nftables or ufw.
- 01
code-server with Docker Compose
services: code-server: image: codercom/code-server:4.141.0 restart: unless-stopped user: "1000:1000" environment: DOCKER_USER: dev # every $ in the argon2 hash must be written as $$ HASHED_PASSWORD: "$$argon2i$$v=19$$m=4096,t=3,p=1$$REPLACE$$REPLACE" volumes: - ./config:/home/coder/.config - ./local:/home/coder/.local - ./project:/home/coder/project ports: - "127.0.0.1:8080:8080"Create the three directories as the
devuser (UID 1000 on a fresh Debian) before the firstdocker compose up -d, and keep Caddy on the host as above. The127.0.0.1:prefix on the port is not optional: Docker writes its own firewall rules for published ports, and a plain8080:8080would reach the internet regardless of what ufw says. Coder's FAQ suggests mounting/var/run/docker.sockto use Docker from inside the container; that socket is root on the host, so anyone who gets past the password gets the whole VPS.
05/06
Cost.
code-server costs nothing; you pay for the VPS. Standard is $12.99 a month with 4 vCPU, 4 GB RAM, 160 GB NVMe, 15 TB of transfer on a 1 Gbps port, and outbound port 25 open as on every VPS.
| Item | Price |
|---|---|
| Cloud VPS Standard | $12.99/mo |
| Daily backups | +20 % (theoretical total $15.59/mo) |
| Extra IPv4 | $2/mo |
| Priority support | $10/mo |
| Yearly billing | about −25 % ($116.99/year) |
Payment is in crypto only (Monero, Bitcoin, USDT, Ethereum, Litecoin and other coins), with prices and balances in US dollars, and business customers can pay the same way. Top-ups run from $25 to $5,000 and carry a bonus of 5 % from $50, 10 % from $100, 15 % from $250 and 20 % from $500; the unused part you paid for is refundable within 14 days. As a theoretical example, a $100 top-up becomes a $110 balance, about eight and a half months of Standard. No-KYC: an email address is enough to open an account, as described on the no-KYC hosting page. All plans are on the pricing page.
Some downsides are ours to state. We have one location, ALP1, so a developer in Singapore will feel every terminal round trip. Crypto-only billing suits some finance departments less than others. A team needs one VPS per person, because code-server has no user separation.
06/06
Limits and acceptable use.
You are the administrator of this box, and code-server is a shell in a browser. A leaked password or a proxy that forwards to the wrong address is a compromised server, and what a compromised server does, whether port scans, mail through the open port 25 or someone else's miner, is traffic from your VPS and your responsibility under our terms. Mining itself is permitted on our servers, so nobody will flag a miner as abuse on your behalf; one you did not start is the usual sign of an instance left listening on 0.0.0.0.
Third-party code in your repositories stays under its licence. Swiss law allows downloading a work for private use but excludes software from that rule, so a cracked SDK in your home directory is not covered, and making other people's work available online without permission is not allowed either. A DMCA notice has no direct legal effect in Switzerland. We forward complete complaints to the customer (who must remove the content or justify it) and we act on a decision of a competent Swiss authority, or where the content is manifestly unlawful (Swico Code of Conduct Hosting 2025). Since 1 April 2020 the Copyright Act requires a host to prevent a work from reappearing only when it was already made available unlawfully through the same service, the host was notified, and the service creates a particular risk of infringement.
If what you build here is a crypto-asset service, Swiss sanctions in force since 26 February 2026 prohibit providing it to Russian nationals, to people residing in Russia and to entities established there, subject to the exceptions in the ordinance; keeping those users out is your obligation. If the box holds production extracts with personal data, you remain the controller under the FADP. For anything not covered here, open a support ticket from the client panel.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardRecommendedSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| SummitDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Summit |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions people ask first.
Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.
Can I use extensions from the Microsoft marketplace?
Not legitimately. The marketplace terms restrict its extensions to Microsoft's products, so code-server uses Open VSX. An extension that is missing there can usually be installed from a .vsix file with code-server --install-extension. If you depend on the official marketplace, Microsoft's own code serve-web is the better fit, under Microsoft's terms.
Will it feel slow from outside Switzerland?
Typing in the editor is local to your browser. From most of Europe the difference from a local editor is small; from another continent the terminal is where you notice it.
Can several people share one instance?
They can share the password, but they would share one Unix user, one home directory and one terminal history, with no way to tell who did what. Give each person a separate VPS; for larger teams the maintainers point to Coder, their product for provisioning per-user workspaces.
Can I run Docker from inside code-server?
With the Debian package, yes: install Docker on the VPS and add your user to the docker group, accepting that this group is equivalent to root. In the container setup you would mount the host's Docker socket, with the same consequence. Either way the password in front of code-server is now the password to the whole server.
How do I back up my workspace?
For the rest, such as the home directory, dotfiles and local databases, use the daily VPS backup option or send restic snapshots to an S3-compatible bucket on our object storage, which starts at $1.99 a month for 250 GB. Use restic or rclone against the S3 API; do not mount the bucket as a working directory.
How do I upgrade code-server?
Download the new .deb, run sudo dpkg -i and restart code-server@dev; with Compose, change the image tag and run docker compose up -d. Releases follow VS Code closely, so read the changelog for the occasional behaviour change.
Sources
Every fact on this page, with its source
Checked 4 Nov 2026 unless noted.
Swiss law and authorities
- Revised FADP in force since 1 September 2023Fedlex, RS 235.1
- Hosting provider stay-down duty under CopA art. 39d, in force since 1 April 2020 (RO 2020 1003)Fedlex, Copyright Act · checked 31 Oct 2026
- Private-use downloading allowed except software; making works available online requires permissionige.ch
- Crypto-asset services to Russian nationals, residents and entities prohibited since 26 February 2026 (SR 946.231.176.72, art. 20(2))SECO press release, 25 February 2026
EU and other countries
- EU adequacy for Switzerland confirmed on 15 January 2024 (decision 2000/518/EC)European Commission, adequacy decisions
- CLOUD Act executive agreements only with the United Kingdom and Australiajustice.gov · checked 31 Oct 2026
Industry, providers and software
- code-server 4.141.0 release, 8 October 2026, based on Code 1.141.0; release cadence August–October 2026GitHub, coder/code-server releases
Other references
- Minimum of 1 GB RAM and 2 CPU cores; WebSockets requiredcode-server docs, Requirements
- Default config.yaml, Open VSX and marketplace terms, unavailable extensions, login rate limit, argon2 hashed-password and $$ escaping in Compose, one VM per user, Docker socket, web views and secure context, differences from OpenVSCode Server and Codespaces, code serve-webcode-server docs, FAQ
- Never expose without authentication and encryption; SSH port forwarding; Caddy reverse proxycode-server docs, Setup guide
- Debian package install and code-server@$USER systemd unit; official Docker image codercom/code-servercode-server docs, Install
- VS Code tunnels and port forwarding use Microsoft dev tunnels, an Azure-hosted service, with GitHub or Microsoft sign-inVS Code docs, Port forwarding
ALP1·Swiss Alps
Your server in the Alps, ready when you are.
Cloud VPS start at $6.99 a month and are usually set up within minutes of your order.
