ðŧ Code Server
![]()
Code Server runs Visual Studio Code in the browser â giving you a full development environment accessible from any device. It combines the simplicity of a code editor with comprehensive editing, navigation, debugging and extensibility features.
ð·ïļ Category: Productivity
ðģ Image: lscr.io/linuxserver/code-server
ð Links
| Â | Â |
|---|---|
| ðĶ Project | github.com/microsoft/vscode |
| ð Support | GitHub Issues |
| ð Website | code.visualstudio.com |
ð Ports
| Port | Protocol | Description |
|---|---|---|
8443 | TCP | VS Code Web Interface |
ðū Volumes
| Host Path | Container Path | Mode | Description |
|---|---|---|---|
/mnt/cache/appdata/code-server/config | /config | RW | Config & workspace files |
âïļ Environment Variables
ð Authentication
| Variable | Default | Masked | Description |
|---|---|---|---|
PASSWORD | `` | â | Password for web interface login |
HASHED_PASSWORD | `` | â | Pre-hashed password (alternative to PASSWORD) |
SUDO_PASSWORD | `` | â | Password for sudo commands inside container |
SUDO_PASSWORD_HASH | `` | â | Pre-hashed sudo password (alternative to SUDO_PASSWORD) |
ð General
| Variable | Default | Masked | Description |
|---|---|---|---|
PROXY_DOMAIN | code-server.my.domain | â | Domain for reverse proxy |
DEFAULT_WORKSPACE | /config/workspace | â | Default workspace folder on startup |
PWA_APPNAME | code-server | â | Progressive Web App name in browser |
ðĪ Permissions
| Variable | Default | Masked | Description |
|---|---|---|---|
PUID | 500 | â | User ID for file permissions |
PGID | 500 | â | Group ID for file permissions |
UMASK | 022 | â | File creation mask |
ð Quick Start
- Open the MOS Hub and search for Code Server
- Set a secure
PASSWORD - Set
SUDO_PASSWORDif you need terminal access inside the container - Adjust
PUIDandPGIDto match your server user (runidin terminal to check) - Click Install
- Access VS Code at
http://your-server-ip:8443
ð Security Tip: Always set a strong
PASSWORDâ Code Server gives full terminal access to your server from the browser!
ðĄ Tip: Use
HASHED_PASSWORDinstead ofPASSWORDfor better security. Generate a hash with:echo -n "yourpassword" | npx argon2-cli -e