Skip to content

code-server ​

code-server is the open source VS Code that runs in a browser. You use it without accepting Microsoft's terms, and you can write code with it on a phone too.

SystemsLinuxWindowsmacOS
EditionsInternationalChina
Sincev0.5.0

Its extensions come from Open VSX, and each account runs one instance. On Windows its card is grey, because code-server has no Windows version. On Windows, you can use VS Code.

Supported systems ​

SystemArchitectureFirst Neutrino Hub version
Linuxamd64, arm640.5.0
macOSApple silicon, Intel0.5.0

Install ​

  1. Open the panel in a browser, sign in, and select the system to install on in the lower half of the sidebar. Check that Available accounts lists your account. If it does not, add it first with the steps in Add an account.

  2. In the Module configuration area, select + Add module. In the dialog, select the code-server card, then select Close after the card is highlighted.

    The module list with the Add module button boxed in red
    1Select + Add module
    The Add module dialog with the code-server card boxed in red
    2Select code-server
    The code-server card highlighted, with the Close button boxed in red
    3Select Close
  3. After the dialog closes, select the code-server row in the list on the left, and its tab appears on the right. Select Install.

    The module list with the code-server row boxed in red
    1Select code-server
    The code-server tab showing not installed, with the Install button boxed in red
    2Select Install
  4. The tab lists every step while it downloads an archive and unpacks it, which usually takes less than a minute. When the tab shows installed, select Start.

    The tab showing installing, with every step listed
    1Installing
    The tab showing installed, with the Start button boxed in red
    2Select Start
  5. The tab shows running, no accounts. Select Configure, and the settings open under it. Under Enabled accounts, select your account.

    The tab showing running, no accounts, with the Configure button boxed in red
    1Select Configure
    The Enabled accounts field with the lab row boxed in red
    2Select lab
  6. Select Apply code-server. The account shows running, and Applied. appears under it. The install is complete.

    lab selected, with the Apply code-server button boxed in red
    1Select Apply code-server
    lab showing running, with Applied. under it
    2Applied

Use ​

Before you start, add your phone or computer to the hub, as Join the hub describes.

Open the client, go to the Apps page, and find the code-server (lab) row, with the account name in parentheses. Select Use. The row gains a local address, and its buttons become Stop, Configure and Open. Select Open.

The client's Apps page with the Use button boxed in red
1Select Use
The row with a local address, and the Open button boxed in red
2Select Open

The browser opens the editor, with no password to enter. The first open shows a welcome page; select open a folder in it and choose your project folder to start writing code. The menu in the top-left corner has Terminal, which opens this account's terminal.

code-server in a browser, showing the welcome page

When you finish, return to the client and select Stop, and the local address closes with it. When the sign-in expires, return to the client and select Open again.

On a phone, the steps are the same: on the Apps page, select Use, then Open.

Share ​

code-server can generate a link with App share, and the other person opens it in a browser without installing any software.

  1. In the panel sidebar, select Services, find the code-server (lab) row, and select Share.

    The Services page with the Share button of the code-server (lab) row boxed in red
  2. In the dialog, enter a Name that helps you identify the share; the other person does not see it. The yellow notice under it says that the other person uses this app as this account. Expires defaults to 7 days, and you can choose another option before you select Generate link. Select Copy right away, send the link, then select Done; after the dialog closes, the panel no longer shows the link.

    The share dialog with the Name field boxed in red
    1Enter a name
    The completed share dialog with the Generate link button boxed in red
    2Select Generate link
    The share dialog showing the link and a QR code, with the link row boxed in red
    3Select Copy

The other person opens the link without signing in, goes straight to the editor described earlier, and uses the same account as you.

Risks and limits ​

If the other person opens the terminal inside, they can read and write this account's files and run commands. Send the link only to people you trust.

A development server you start in code-server does not appear in the client. To use one, declare it as Add an existing service describes.

Settings ​

Apart from enabling accounts, the following settings can stay at their defaults:

SettingWherePurpose
Enabled accountsConfigure on the tabEach selected account runs one instance
Update, Install another version…Under the tab's stateChange the version; for the steps, see Change the version
AI tools use the hub's gatewayAccount form in Available accountsThis account's tools use the AI gateway
ExtensionsExtensions on the left of the editorSearch, then select Install

Uninstall ​

On the code-server tab, select Uninstall. The dialog states that each account's settings and extensions stay in its home folder. Select Uninstall to confirm.

The code-server tab with the Uninstall button boxed in red
1Select Uninstall
The uninstall dialog with the Uninstall button boxed in red
2Confirm

If an error appears, see Troubleshooting.