code-server

Sign in to code-server on Cottage, set up your tools and extensions, preview what you build, and fix common problems.

Updated November 24, 2026

$4.40 a month on CottageStart code-serverAbout code-server
On this page

code-server is the VS Code editor running on a server, opened from any browser. It suits anyone who wants the same editor, files and terminal from a laptop, a tablet or a Chromebook. Cottage runs version 4.146.0.

Getting started

  1. Sign in. Open the app from its page in Cottage and enter the Password from Sign-in details there. code-server has a single password and no user accounts, so anyone with the password can use the editor and its terminal. Keep it to yourself.
  2. Find your files. The editor opens your home folder, /home/coder. Everything in it, including projects, settings and extensions, is kept between restarts and included in backups. Anything saved outside it is lost when the app restarts, so keep your work in your home folder.
  3. Bring in a project. Open a terminal with Terminal → New Terminal, where Git, curl and the usual shell tools are ready, and clone a repository with Git, or drag files from your computer into the Explorer.
  4. Install your tools. The app runs without root, so sudo and apt don't work. Install language runtimes into your home folder instead, for example with nvm, pyenv, rustup or a Go tarball from go.dev.
  5. Add extensions. Search the Extensions view as you would in VS Code. Extensions come from the Open VSX registry, not Microsoft's marketplace, so a few are missing. For those, download the extension's .vsix file into your home folder and run Extensions: Install from VSIX from the Command Palette.
  6. Install it as an app. Keyboard shortcuts like Ctrl+W are caught by the browser unless code-server runs as an installed web app. In Chrome or Edge, use the install icon in the address bar. On an iPad, open it in Safari, choose Share, then Add to Home Screen.

Frequently asked questions

How do I preview a web app I'm running?

Start your development server in the terminal, then open /proxy/<port>/ on your app's address. For a server on port 3000:

https://<your-app>.cottagehost.com/proxy/3000/

It sits behind code-server's password, so only you can see it. code-server removes /proxy/3000 from the path before passing the request on, so your app's links should be relative. If your app needs the full path, use /absproxy/3000/ instead. See code-server's guide to accessing web services.

Can I use my VS Code settings from my computer?

Yes. Copy your settings.json and keybindings.json into the editor (Command Palette → Preferences: Open User Settings (JSON)), and install the same extensions from Open VSX. code-server's FAQ has more options.

Can I run Docker or a database inside it?

Docker isn't available. Databases and services that install into your home folder and run as your user, such as SQLite or a Redis or PostgreSQL build in your home folder, can work, but they stop when the app restarts and need to be started again.

Do my programs keep running when I close the tab?

Yes, until the app restarts. Cottage restarts it when you change its settings or size, and when it installs an update. Anything you started in the terminal needs to be started again afterward.

Can I change the password?

The password is generated by Cottage when the app is created and shown in Sign-in details. To reveal it again, choose Show there on the app's page in Cottage. If you need it changed, contact support. For an extra layer, add an IP allowlist with access controls.

How do I take my work with me?

Push your projects to a Git remote, or right-click a folder in the Explorer and choose Download. For the whole home folder, download a backup from Backups on the app's page in Cottage (how).

Troubleshooting

The sign-in page says my login is rate limited

code-server allows two sign-in attempts a minute, plus twelve more an hour. Wait a few minutes, then copy the password from Sign-in details rather than typing it.

The page is blank after I added my own domain

If your domain's DNS is on Cloudflare with the proxy turned on, Cloudflare's Rocket Loader can break code-server's scripts. Turn Rocket Loader off for that hostname in your Cloudflare dashboard, or set the record to DNS only. See custom domains.

A command fails with "permission denied" or "sudo: not found"

The app runs as an ordinary user with no root access. Install the tool into your home folder instead, using a version manager or a prebuilt download, and add its folder to your PATH in ~/.bashrc.

The editor is slow or the app restarts by itself

Language servers, builds and test runs can use a lot of memory, and when the app runs out it restarts. Check the Technical log under Advanced on the app's page in Cottage, then give the app more memory or CPU with Change size there. Closing folders and turning off extensions you don't use also helps.

I've run out of disk space

node_modules folders, build output and caches add up. Delete what you don't need, or add disk with Change size on the app's page in Cottage.

Still stuck?

Email support@cottage.host. A person reads every message. If something seems down, check Cottage's status page.