[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C4NYACT178XZC3BGQ8ESQH":3,"skill-same:01M7C4NYACT178XZC3BGQ8ESQH":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":13,"repositoryHtmlUrl":31,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M7C4NYACT178XZC3BGQ8ESQH","code-server-setup",null,"Sets up VS Code in your web browser so you can write and edit code from anywhere","SillyHippy\u002Fzo-skills","SillyHippy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F159052837?v=4","01M7C43A8PDYMCDPTNFYF2RSC1","01M7C43A9CBS76QPH4PPTKXX54",0,"MIT","https:\u002F\u002Fgithub.com\u002FSillyHippy\u002Fzo-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzo-code-server-setup\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: code-server-setup\ndescription: Sets up VS Code in your web browser so you can write and edit code from anywhere\nmetadata:\n  author: Zo\n  category: Official\n  display-name: Set up code-server (VS Code in browser)\n  emoji: 💻\n---\n\n## How to Use This File\n\nThis file will be included in a user request. If it is, and the user has provided the necessary inputs (password for code-server authentication), Zo should interpret this as the current task at hand and use its tools to carry out the task until completion. Zo should not ask for user confirmation to continue if it has all required parameters to execute this function. Zo should effectively treat the inclusion of this file as a user request to \"run\" this task.\n\n## Purpose\n\nThis document codifies the procedure for setting up code-server on Zo Computer, enabling a full VS Code development environment accessible through your web browser. The setup includes installing code-server, configuring it with password authentication, installing essential extensions, and registering the service to run persistently with automatic restarts.\n\n---\n\n# code-server Setup Guide on Zo\n\nThis guide will walk you through setting up code-server on your Zo Computer instance, giving you a full VS Code development environment in your browser.\n\n## What You'll Have When Done\n\n- A code-server instance running at `https:\u002F\u002Fcode-\u003Cyour-username>.zocomputer.io`\n- Password-protected access to your development environment\n- Full VS Code editor in your browser with essential extensions\n- Direct access to your `\u002Fhome\u002Fworkspace` files\n- Integrated terminal with shell access to your Zo Computer\n- A persistent service that auto-restarts if it crashes\n\n---\n\n## Prerequisites\n\nBefore beginning setup, you must provide:\n\n- **Password**: A strong password for code-server authentication (e.g., a secure passphrase)\n\n**Important**: If you're having Zo set this up for you and haven't provided a password, Zo should ask you for a password before proceeding with the setup.\n\n**Security Warning**: code-server provides full shell access to your Zo Computer through the integrated terminal. Anyone with access to your code-server instance can run any command as root on your machine. Authentication is REQUIRED, not optional.\n\n---\n\n## Setup Instructions\n\n### Step 1: Install code-server\n\ncode-server will be automatically installed via the official installation script.\n\n```bash\ncurl -fsSL https:\u002F\u002Fcode-server.dev\u002Finstall.sh | sh\n```\n\n**Verify**: Check that code-server is installed:\n\n```bash\ncode-server --version\n```\n\n**Expected Result**: You should see a version number (e.g., `4.x.x`).\n\n---\n\n### Step 2: Create Configuration Directory\n\nSet up the configuration directory for code-server:\n\n```bash\nmkdir -p \u002Froot\u002F.config\u002Fcode-server\n```\n\n**Verify**: Check the directory exists:\n\n```bash\nls -la \u002Froot\u002F.config\u002Fcode-server\n```\n\n---\n\n### Step 3: Create Configuration File\n\nCreate the code-server configuration:\n\n```bash\ncat > \u002Froot\u002F.config\u002Fcode-server\u002Fconfig.yaml \u003C\u003C 'EOF'\nbind-addr: 0.0.0.0:8900\nauth: password\ncert: false\ndisable-telemetry: true\ndisable-update-check: true\nuser-data-dir: \u002Froot\u002F.vscode-data\nextensions-dir: \u002Froot\u002F.vscode-extensions\ndisable-workspace-trust: true\ndisable-getting-started-override: true\napp-name: zo.computer\nwelcome-text: \"zo.computer code mode\"\nEOF\n```\n\n**Important**: The `auth: password` setting requires password authentication. The password will be provided via the `$PASSWORD` environment variable when starting the service. According to code-server documentation, the password can only be set via the `$PASSWORD` environment variable or in the config file - it cannot be passed as a command-line argument.\n\n**Verify**: Check the configuration file:\n\n```bash\ncat \u002Froot\u002F.config\u002Fcode-server\u002Fconfig.yaml\n```\n\n---\n\n### Step 4: Install Essential Extensions\n\nInstall commonly used VS Code extensions:\n\n```bash\ncode-server --install-extension ms-python.python --extensions-dir \"\u002Froot\u002F.vscode-extensions\"\ncode-server --install-extension dbaeumer.vscode-eslint --extensions-dir \"\u002Froot\u002F.vscode-extensions\"\ncode-server --install-extension esbenp.prettier-vscode --extensions-dir \"\u002Froot\u002F.vscode-extensions\"\ncode-server --install-extension redhat.vscode-yaml --extensions-dir \"\u002Froot\u002F.vscode-extensions\"\n```\n\n**Optional**: Install Vim extension if desired:\n\n```bash\ncode-server --install-extension vscodevim.vim --extensions-dir \"\u002Froot\u002F.vscode-extensions\"\n```\n\n**Verify**: List installed extensions:\n\n```bash\ncode-server --list-extensions --extensions-dir \"\u002Froot\u002F.vscode-extensions\"\n```\n\n---\n\n### Step 5: Configure VS Code Settings\n\nCreate the VS Code settings file with sensible defaults:\n\n```bash\nmkdir -p \u002Froot\u002F.vscode-data\u002FUser\ncat > \u002Froot\u002F.vscode-data\u002FUser\u002Fsettings.json \u003C\u003C 'EOF'\n{\n  \"vsicons.dontShowNewVersionMessage\": true,\n  \"vim.enable\": false,\n  \"workbench.startupEditor\": \"none\",\n  \"workbench.colorTheme\": \"Default Light Modern\",\n  \"telemetry.telemetryLevel\": \"off\",\n  \"security.workspace.trust.enabled\": false,\n  \"security.workspace.trust.startupPrompt\": \"never\",\n  \"workbench.welcome.enabled\": false,\n  \"workbench.welcomePage.walkthroughs.openOnInstall\": false,\n  \"workbench.tips.enabled\": false,\n  \"update.mode\": \"none\",\n  \"extensions.autoCheckUpdates\": false,\n  \"extensions.autoUpdate\": false,\n  \"editor.minimap.enabled\": false\n}\nEOF\n```\n\n**Verify**: Check the settings file:\n\n```bash\ncat \u002Froot\u002F.vscode-data\u002FUser\u002Fsettings.json\n```\n\n---\n\n### Step 6: Register the Service\n\nRegister code-server as a persistent user service:\n\n```bash\n# Zo will use tool register_user_service with:\n# - label: code-server\n# - protocol: http\n# - local_port: 8900\n# - entrypoint: code-server --config \u002Froot\u002F.config\u002Fcode-server\u002Fconfig.yaml \u002Fhome\u002Fworkspace\n# - env_vars: {\"PASSWORD\": \"\u003CUSER_PROVIDED_PASSWORD>\"}\n# - workdir: \u002Fhome\u002Fworkspace\n```\n\n**Important**: Replace `\u003CUSER_PROVIDED_PASSWORD>` with the password provided by the user. The authentication mode is set to `password` in the config file, and the actual password is provided via the `PASSWORD` environment variable.\n\n**Verify**: Use `tool list_user_services` to confirm the `code-server` service is registered with an HTTPS URL.\n\n---\n\n### Step 7: Test the Service\n\nWait a few seconds for the service to start, then test it:\n\n```bash\ncurl -I https:\u002F\u002Fcode-\u003Cyour-username>.zocomputer.io\n```\n\nReplace `\u003Cyour-username>` with your Zo username.\n\n**Expected Result**: You should get an HTTP 200 response or be redirected to a login page.\n\n**Check Logs**: If something goes wrong, check the logs:\n\n```bash\ncat \u002Fdev\u002Fshm\u002Fcode-server.log\ncat \u002Fdev\u002Fshm\u002Fcode-server_err.log\n```\n\n---\n\n## Accessing code-server\n\nOnce the service is running, simply open your browser and navigate to:\n\n```markdown\nhttps:\u002F\u002Fcode-\u003Cyour-username>.zocomputer.io\n```\n\nYou will be prompted to enter your password. Use the password you provided during setup.\n\nYou should then see a full VS Code interface with your `\u002Fhome\u002Fworkspace` directory already open.\n\n---\n\n## What's Running\n\nAfter completing this setup, you have:\n\n- **code-server**: VS Code backend running on port 8900\n- **Public URL**: `https:\u002F\u002Fcode-\u003Cyour-username>.zocomputer.io`\n- **Authentication**: Password-based authentication (REQUIRED for security)\n- **Workspace**: `\u002Fhome\u002Fworkspace\u002F` - all your files are accessible\n- **Auto-restart**: Zo's service manager will restart the server if it crashes\n- **Persistent**: Service survives across system reboots\n- **Extensions**: Python, ESLint, Prettier, YAML support pre-installed\n\n**Protocol Details**:\n\n- HTTP server running on port 8900 internally\n- Exposed via HTTPS on port 443 (standard web port)\n- WebSocket connections for live editing\n- Compatible with all modern web browsers\n\n---\n\n## Using code-server\n\n### Basic Features\n\n- **File Explorer**: Navigate your workspace in the left sidebar\n- **Search**: Full-text search across all files (Cmd\u002FCtrl+Shift+F)\n- **Terminal**: Integrated terminal (Ctrl+\\` or View → Terminal)\n- **Git Integration**: Built-in git support for version control\n- **Extensions**: Install additional extensions from the Extensions marketplace\n- **Settings Sync**: Customize your editor preferences\n- **Multi-file Editing**: Open multiple files in tabs or split view\n\n### Keyboard Shortcuts\n\nAll standard VS Code shortcuts work:\n\n- `Cmd\u002FCtrl+P` - Quick file open\n- `Cmd\u002FCtrl+Shift+P` - Command palette\n- `Cmd\u002FCtrl+B` - Toggle sidebar\n- `Cmd\u002FCtrl+J` - Toggle terminal panel\n- `Cmd\u002FCtrl+Shift+F` - Search across files\n- `Cmd\u002FCtrl+Shift+E` - Focus file explorer\n\n### Installing Additional Extensions\n\n1. Click the Extensions icon in the left sidebar (or press `Cmd\u002FCtrl+Shift+X`)\n2. Search for the extension you want\n3. Click **Install**\n4. Extensions are saved to `\u002Froot\u002F.vscode-extensions` and persist across restarts\n\n---\n\n## Troubleshooting\n\n### Service Not Starting\n\nCheck the logs:\n\n```bash\ncat \u002Fdev\u002Fshm\u002Fcode-server.log\ncat \u002Fdev\u002Fshm\u002Fcode-server_err.log\n```\n\nCommon issues:\n\n- code-server not installed: Run `curl -fsSL https:\u002F\u002Fcode-server.dev\u002Finstall.sh | sh`\n- Port already in use: Change `8900` to another port in the config and service registration\n- Permission issues: Ensure `\u002Fhome\u002Fworkspace` exists and is readable\n\n### Can't Connect in Browser\n\n- Verify the URL is correct: `https:\u002F\u002Fcode-\u003Cyour-username>.zocomputer.io`\n- Wait 10-15 seconds after service registration for the URL to become active\n- Check that the service is running: Ask Zo to \"list my user services\"\n- Try opening the URL in an incognito\u002Fprivate window\n\n### Extensions Not Loading\n\n- Check that extensions are installed: `code-server --list-extensions --extensions-dir \"\u002Froot\u002F.vscode-extensions\"`\n- Manually install missing extensions from the Extensions marketplace in the browser\n- Check extension logs in the Output panel (View → Output)\n\n### Terminal Not Working\n\n- The integrated terminal should work by default\n- If it doesn't load, try refreshing the browser page\n- Check that shell is available: `echo $SHELL` should show `\u002Fbin\u002Fbash` or similar\n\n---\n\n## Managing the Service\n\n### View Service Status\n\nAsk Zo: \"List my user services\"\n\n### Stop\u002FDelete the Service\n\nAsk Zo: \"Delete the code-server service\"\n\n### Change Port\n\n1. Edit the `bind-addr` in `\u002Froot\u002F.config\u002Fcode-server\u002Fconfig.yaml`\n2. Update the service registration with the new port\n3. Restart the service\n\n### Enable Vim Mode\n\nIf you prefer Vim keybindings:\n\n1. Edit `\u002Froot\u002F.vscode-data\u002FUser\u002Fsettings.json`\n2. Change `\"vim.enable\": false` to `\"vim.enable\": true`\n3. Restart code-server or reload the browser window\n\n---\n\n## Advanced Usage\n\n### Remote File Access\n\nYour workspace at `\u002Fhome\u002Fworkspace` is the same as your main Zo workspace:\n\n- Files edited in code-server appear instantly in the Zo UI\n- Files created in Zo appear instantly in code-server\n- Both interfaces share the same underlying filesystem\n\n---\n\n## Security Notes\n\n**CRITICAL SECURITY INFORMATION:**\n\n- code-server provides full shell access to your Zo Computer through the integrated terminal\n- Anyone who gains access to your code-server instance has root access to your entire system\n- They can read, modify, or delete any files, install software, access other services, and execute arbitrary commands\n- **Password authentication is REQUIRED** - running without authentication is extremely dangerous\n\n**Best Practices:**\n\n- Use a strong, unique password (at least 16 characters with mixed case, numbers, and symbols) if the user likes, Zo can generate a random alphanumeric password on the fly\n- Never share your code-server URL or password with anyone you don't trust completely\n- If you suspect your password has been compromised, immediately delete the service and recreate it with a new password\n- Consider using a password manager to generate and store a secure password\n- All traffic is encrypted in transit (HTTPS)\n- The server is exposed to the public internet via the Zo URL\n- Do not reuse passwords from other services\n\n**Changing Your Password:**\n\nIf you need to change your password:\n\n1. Ask Zo to update the service with a new password in the entrypoint\n2. Or delete and recreate the service with a new password\n\n### Forgot Password\n\nIf you forget your password:\n\n1. Ask Zo: \"Delete the code-server service\"\n2. Set up the service again with a new password using this guide\n\n---\n\n## Comparison to Local VS Code\n\n**Advantages of code-server:**\n\n- Access from any device with a browser\n- No local installation required\n- Server-side computing power\n- Consistent environment across devices\n- Easy collaboration by sharing URLs (with caution)\n\n**Limitations:**\n\n- Some extensions may not work (especially those requiring native code)\n- No native file system access (everything goes through the browser)\n- Performance depends on internet connection\n- Some keyboard shortcuts may conflict with browser shortcuts\n\n**Workaround for limitations**: You can also use VS Code's built-in Remote-SSH extension to connect to your Zo Computer from local VS Code.\n\n---\n\n## Alternatives and Related Tools\n\n### VS Code Remote-SSH\n\nInstead of code-server in the browser, you can use local VS Code with Remote-SSH:\n\n1. Install VS Code locally\n2. Install the \"Remote - SSH\" extension\n3. Connect to your Zo Computer via SSH\n4. Full native VS Code experience with remote files\n\n### Other Code Editors on Zo\n\n- **Vim\u002FNeovim**: Already available in the terminal\n- **Emacs**: Install with `apt install emacs-nox`\n- **Nano**: Already available (simple terminal editor)\n- **JupyterLab**: Set up a similar service for notebook-based development\n\n---\n\n## Summary\n\nYou now have a fully functional code-server instance that provides a complete VS Code development environment in your browser. Access your editor at `https:\u002F\u002Fcode-\u003Cyour-username>.zocomputer.io`, and start coding directly in your workspace!\n\nFor questions or issues, refer to the troubleshooting section or consult the Zo Discord community.\n\n","## How to Use This File\n\nThis file will be included in a user request. If it is, and the user has provided the necessary inputs (password for code-server authentication), Zo should interpret this as the current task at hand and use its tools to carry out the task until completion. Zo should not ask for user confirmation to continue if it has all required parameters to execute this function. Zo should effectively treat the inclusion of this file as a user request to \"run\" this task.\n\n## Purpose\n\nThis document codifies the procedure for setting up code-server on Zo Computer, enabling a full VS Code development environment accessible through your web browser. The setup includes installing code-server, configuring it with password authentication, installing essential extensions, and registering the service to run persistently with automatic restarts.\n\n---\n\n# code-server Setup Guide on Zo\n\nThis guide will walk you through setting up code-server on your Zo Computer instance, giving you a full VS Code development environment in your browser.\n\n## What You'll Have When Done\n\n- A code-server instance running at `https:\u002F\u002Fcode-\u003Cyour-username>.zocomputer.io`\n- Password-protected access to your development environment\n- Full VS Code editor in your browser with essential extensions\n- Direct access to your `\u002Fhome\u002Fworkspace` files\n- Integrated terminal with shell access to your Zo Computer\n- A persistent service that auto-restarts if it crashes\n\n---\n\n## Prerequisites\n\nBefore beginning setup, you must provide:\n\n- **Password**: A strong password for code-server authentication (e.g., a secure passphrase)\n\n**Important**: If you're having Zo set this up for you and haven't provided a password, Zo should ask you for a password before proceeding with the setup.\n\n**Security Warning**: code-server provides full shell access to your Zo Computer through the integrated terminal. Anyone with access to your code-server instance can run any command as root on your machine. Authentication is REQUIRED, not optional.\n\n---\n\n## Setup Instructions\n\n### Step 1: Install code-server\n\ncode-server will be automatically installed via the official installation script.\n\n```bash\ncurl -fsSL https:\u002F\u002Fcode-server.dev\u002Finstall.sh | sh\n```\n\n**Verify**: Check that code-server is installed:\n\n```bash\ncode-server --version\n```\n\n**Expected Result**: You should see a version number (e.g., `4.x.x`).\n\n---\n\n### Step 2: Create Configuration Directory\n\nSet up the configuration directory for code-server:\n\n```bash\nmkdir -p \u002Froot\u002F.config\u002Fcode-server\n```\n\n**Verify**: Check the directory exists:\n\n```bash\nls -la \u002Froot\u002F.config\u002Fcode-server\n```\n\n---\n\n### Step 3: Create Configuration File\n\nCreate the code-server configuration:\n\n```bash\ncat > \u002Froot\u002F.config\u002Fcode-server\u002Fconfig.yaml \u003C\u003C 'EOF'\nbind-addr: 0.0.0.0:8900\nauth: password\ncert: false\ndisable-telemetry: true\ndisable-update-check: true\nuser-data-dir: \u002Froot\u002F.vscode-data\nextensions-dir: \u002Froot\u002F.vscode-extensions\ndisable-workspace-trust: true\ndisable-getting-started-override: true\napp-name: zo.computer\nwelcome-text: \"zo.computer code mode\"\nEOF\n```\n\n**Important**: The `auth: password` setting requires password authentication. The password will be provided via the `$PASSWORD` environment variable when starting the service. According to code-server documentation, the password can only be set via the `$PASSWORD` environment variable or in the config file - it cannot be passed as a command-line argument.\n\n**Verify**: Check the configuration file:\n\n```bash\ncat \u002Froot\u002F.config\u002Fcode-server\u002Fconfig.yaml\n```\n\n---\n\n### Step 4: Install Essential Extensions\n\nInstall commonly used VS Code extensions:\n\n```bash\ncode-server --install-extension ms-python.python --extensions-dir \"\u002Froot\u002F.vscode-extensions\"\ncode-server --install-extension dbaeumer.vscode-eslint --extensions-dir \"\u002Froot\u002F.vscode-extensions\"\ncode-server --install-extension esbenp.prettier-vscode --extensions-dir \"\u002Froot\u002F.vscode-extensions\"\ncode-server --install-extension redhat.vscode-yaml --extensions-dir \"\u002Froot\u002F.vscode-extensions\"\n```\n\n**Optional**: Install Vim extension if desired:\n\n```bash\ncode-server --install-extension vscodevim.vim --extensions-dir \"\u002Froot\u002F.vscode-extensions\"\n```\n\n**Verify**: List installed extensions:\n\n```bash\ncode-server --list-extensions --extensions-dir \"\u002Froot\u002F.vscode-extensions\"\n```\n\n---\n\n### Step 5: Configure VS Code Settings\n\nCreate the VS Code settings file with sensible defaults:\n\n```bash\nmkdir -p \u002Froot\u002F.vscode-data\u002FUser\ncat > \u002Froot\u002F.vscode-data\u002FUser\u002Fsettings.json \u003C\u003C 'EOF'\n{\n  \"vsicons.dontShowNewVersionMessage\": true,\n  \"vim.enable\": false,\n  \"workbench.startupEditor\": \"none\",\n  \"workbench.colorTheme\": \"Default Light Modern\",\n  \"telemetry.telemetryLevel\": \"off\",\n  \"security.workspace.trust.enabled\": false,\n  \"security.workspace.trust.startupPrompt\": \"never\",\n  \"workbench.welcome.enabled\": false,\n  \"workbench.welcomePage.walkthroughs.openOnInstall\": false,\n  \"workbench.tips.enabled\": false,\n  \"update.mode\": \"none\",\n  \"extensions.autoCheckUpdates\": false,\n  \"extensions.autoUpdate\": false,\n  \"editor.minimap.enabled\": false\n}\nEOF\n```\n\n**Verify**: Check the settings file:\n\n```bash\ncat \u002Froot\u002F.vscode-data\u002FUser\u002Fsettings.json\n```\n\n---\n\n### Step 6: Register the Service\n\nRegister code-server as a persistent user service:\n\n```bash\n# Zo will use tool register_user_service with:\n# - label: code-server\n# - protocol: http\n# - local_port: 8900\n# - entrypoint: code-server --config \u002Froot\u002F.config\u002Fcode-server\u002Fconfig.yaml \u002Fhome\u002Fworkspace\n# - env_vars: {\"PASSWORD\": \"\u003CUSER_PROVIDED_PASSWORD>\"}\n# - workdir: \u002Fhome\u002Fworkspace\n```\n\n**Important**: Replace `\u003CUSER_PROVIDED_PASSWORD>` with the password provided by the user. The authentication mode is set to `password` in the config file, and the actual password is provided via the `PASSWORD` environment variable.\n\n**Verify**: Use `tool list_user_services` to confirm the `code-server` service is registered with an HTTPS URL.\n\n---\n\n### Step 7: Test the Service\n\nWait a few seconds for the service to start, then test it:\n\n```bash\ncurl -I https:\u002F\u002Fcode-\u003Cyour-username>.zocomputer.io\n```\n\nReplace `\u003Cyour-username>` with your Zo username.\n\n**Expected Result**: You should get an HTTP 200 response or be redirected to a login page.\n\n**Check Logs**: If something goes wrong, check the logs:\n\n```bash\ncat \u002Fdev\u002Fshm\u002Fcode-server.log\ncat \u002Fdev\u002Fshm\u002Fcode-server_err.log\n```\n\n---\n\n## Accessing code-server\n\nOnce the service is running, simply open your browser and navigate to:\n\n```markdown\nhttps:\u002F\u002Fcode-\u003Cyour-username>.zocomputer.io\n```\n\nYou will be prompted to enter your password. Use the password you provided during setup.\n\nYou should then see a full VS Code interface with your `\u002Fhome\u002Fworkspace` directory already open.\n\n---\n\n## What's Running\n\nAfter completing this setup, you have:\n\n- **code-server**: VS Code backend running on port 8900\n- **Public URL**: `https:\u002F\u002Fcode-\u003Cyour-username>.zocomputer.io`\n- **Authentication**: Password-based authentication (REQUIRED for security)\n- **Workspace**: `\u002Fhome\u002Fworkspace\u002F` - all your files are accessible\n- **Auto-restart**: Zo's service manager will restart the server if it crashes\n- **Persistent**: Service survives across system reboots\n- **Extensions**: Python, ESLint, Prettier, YAML support pre-installed\n\n**Protocol Details**:\n\n- HTTP server running on port 8900 internally\n- Exposed via HTTPS on port 443 (standard web port)\n- WebSocket connections for live editing\n- Compatible with all modern web browsers\n\n---\n\n## Using code-server\n\n### Basic Features\n\n- **File Explorer**: Navigate your workspace in the left sidebar\n- **Search**: Full-text search across all files (Cmd\u002FCtrl+Shift+F)\n- **Terminal**: Integrated terminal (Ctrl+\\` or View → Terminal)\n- **Git Integration**: Built-in git support for version control\n- **Extensions**: Install additional extensions from the Extensions marketplace\n- **Settings Sync**: Customize your editor preferences\n- **Multi-file Editing**: Open multiple files in tabs or split view\n\n### Keyboard Shortcuts\n\nAll standard VS Code shortcuts work:\n\n- `Cmd\u002FCtrl+P` - Quick file open\n- `Cmd\u002FCtrl+Shift+P` - Command palette\n- `Cmd\u002FCtrl+B` - Toggle sidebar\n- `Cmd\u002FCtrl+J` - Toggle terminal panel\n- `Cmd\u002FCtrl+Shift+F` - Search across files\n- `Cmd\u002FCtrl+Shift+E` - Focus file explorer\n\n### Installing Additional Extensions\n\n1. Click the Extensions icon in the left sidebar (or press `Cmd\u002FCtrl+Shift+X`)\n2. Search for the extension you want\n3. Click **Install**\n4. Extensions are saved to `\u002Froot\u002F.vscode-extensions` and persist across restarts\n\n---\n\n## Troubleshooting\n\n### Service Not Starting\n\nCheck the logs:\n\n```bash\ncat \u002Fdev\u002Fshm\u002Fcode-server.log\ncat \u002Fdev\u002Fshm\u002Fcode-server_err.log\n```\n\nCommon issues:\n\n- code-server not installed: Run `curl -fsSL https:\u002F\u002Fcode-server.dev\u002Finstall.sh | sh`\n- Port already in use: Change `8900` to another port in the config and service registration\n- Permission issues: Ensure `\u002Fhome\u002Fworkspace` exists and is readable\n\n### Can't Connect in Browser\n\n- Verify the URL is correct: `https:\u002F\u002Fcode-\u003Cyour-username>.zocomputer.io`\n- Wait 10-15 seconds after service registration for the URL to become active\n- Check that the service is running: Ask Zo to \"list my user services\"\n- Try opening the URL in an incognito\u002Fprivate window\n\n### Extensions Not Loading\n\n- Check that extensions are installed: `code-server --list-extensions --extensions-dir \"\u002Froot\u002F.vscode-extensions\"`\n- Manually install missing extensions from the Extensions marketplace in the browser\n- Check extension logs in the Output panel (View → Output)\n\n### Terminal Not Working\n\n- The integrated terminal should work by default\n- If it doesn't load, try refreshing the browser page\n- Check that shell is available: `echo $SHELL` should show `\u002Fbin\u002Fbash` or similar\n\n---\n\n## Managing the Service\n\n### View Service Status\n\nAsk Zo: \"List my user services\"\n\n### Stop\u002FDelete the Service\n\nAsk Zo: \"Delete the code-server service\"\n\n### Change Port\n\n1. Edit the `bind-addr` in `\u002Froot\u002F.config\u002Fcode-server\u002Fconfig.yaml`\n2. Update the service registration with the new port\n3. Restart the service\n\n### Enable Vim Mode\n\nIf you prefer Vim keybindings:\n\n1. Edit `\u002Froot\u002F.vscode-data\u002FUser\u002Fsettings.json`\n2. Change `\"vim.enable\": false` to `\"vim.enable\": true`\n3. Restart code-server or reload the browser window\n\n---\n\n## Advanced Usage\n\n### Remote File Access\n\nYour workspace at `\u002Fhome\u002Fworkspace` is the same as your main Zo workspace:\n\n- Files edited in code-server appear instantly in the Zo UI\n- Files created in Zo appear instantly in code-server\n- Both interfaces share the same underlying filesystem\n\n---\n\n## Security Notes\n\n**CRITICAL SECURITY INFORMATION:**\n\n- code-server provides full shell access to your Zo Computer through the integrated terminal\n- Anyone who gains access to your code-server instance has root access to your entire system\n- They can read, modify, or delete any files, install software, access other services, and execute arbitrary commands\n- **Password authentication is REQUIRED** - running without authentication is extremely dangerous\n\n**Best Practices:**\n\n- Use a strong, unique password (at least 16 characters with mixed case, numbers, and symbols) if the user likes, Zo can generate a random alphanumeric password on the fly\n- Never share your code-server URL or password with anyone you don't trust completely\n- If you suspect your password has been compromised, immediately delete the service and recreate it with a new password\n- Consider using a password manager to generate and store a secure password\n- All traffic is encrypted in transit (HTTPS)\n- The server is exposed to the public internet via the Zo URL\n- Do not reuse passwords from other services\n\n**Changing Your Password:**\n\nIf you need to change your password:\n\n1. Ask Zo to update the service with a new password in the entrypoint\n2. Or delete and recreate the service with a new password\n\n### Forgot Password\n\nIf you forget your password:\n\n1. Ask Zo: \"Delete the code-server service\"\n2. Set up the service again with a new password using this guide\n\n---\n\n## Comparison to Local VS Code\n\n**Advantages of code-server:**\n\n- Access from any device with a browser\n- No local installation required\n- Server-side computing power\n- Consistent environment across devices\n- Easy collaboration by sharing URLs (with caution)\n\n**Limitations:**\n\n- Some extensions may not work (especially those requiring native code)\n- No native file system access (everything goes through the browser)\n- Performance depends on internet connection\n- Some keyboard shortcuts may conflict with browser shortcuts\n\n**Workaround for limitations**: You can also use VS Code's built-in Remote-SSH extension to connect to your Zo Computer from local VS Code.\n\n---\n\n## Alternatives and Related Tools\n\n### VS Code Remote-SSH\n\nInstead of code-server in the browser, you can use local VS Code with Remote-SSH:\n\n1. Install VS Code locally\n2. Install the \"Remote - SSH\" extension\n3. Connect to your Zo Computer via SSH\n4. Full native VS Code experience with remote files\n\n### Other Code Editors on Zo\n\n- **Vim\u002FNeovim**: Already available in the terminal\n- **Emacs**: Install with `apt install emacs-nox`\n- **Nano**: Already available (simple terminal editor)\n- **JupyterLab**: Set up a similar service for notebook-based development\n\n---\n\n## Summary\n\nYou now have a fully functional code-server instance that provides a complete VS Code development environment in your browser. Access your editor at `https:\u002F\u002Fcode-\u003Cyour-username>.zocomputer.io`, and start coding directly in your workspace!\n\nFor questions or issues, refer to the troubleshooting section or consult the Zo Discord community.\n\n",{"name":5,"metadata":23,"description":7},{"emoji":24,"author":25,"category":26,"display-name":27},"💻","Zo","Official","Set up code-server (VS Code in browser)","main","3641543f81ae80504027d6b012e0dadce4e2de40","skills\u002Fzo-code-server-setup","https:\u002F\u002Fgithub.com\u002FSillyHippy\u002Fzo-skills","https:\u002F\u002Fgithub.com\u002FSillyHippy","2026-09-18 11:42:22",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add SillyHippy\u002Fzo-skills --skill code-server-setup",{"tool":40,"command":41},"bunx","bunx skills add SillyHippy\u002Fzo-skills --skill code-server-setup",{"tool":43,"command":44},"pnpm","pnpm dlx skills add SillyHippy\u002Fzo-skills --skill code-server-setup","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSillyHippy\u002Fzo-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzo-code-server-setup\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"DISPLAY.json","REFERENCE","参考文档",78,"https:\u002F\u002Fgithub.com\u002FSillyHippy\u002Fzo-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzo-code-server-setup\u002FDISPLAY.json",[55,62,69,76,83,90],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M7C4RK2ZCHPKQT393RVSC6ER","zopack","Export and import zo.space route setups as shareable .zopack.md files. Use when the user wants to package their zo.space routes for sharing, or when they receive a .zopack.md file to deploy. Triggers on \"export my zo.space\", \"create a zopack\", \"import this zopack\", or any mention of .zopack.md files.","https:\u002F\u002Fgithub.com\u002FSillyHippy\u002Fzo-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzopack\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M7C4REH5EJ22X3C1SF88X6KQ","zoho-mail-inbox","Full inbox management for Zoho Mail (info@justlegalsolutions.org) — list unread, mark all as read, delete by sender\u002Fkeyword, search, send from aliases, list folders. Fully self-contained — zero setup needed.","https:\u002F\u002Fgithub.com\u002FSillyHippy\u002Fzo-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzoho-mail-inbox\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M7C4RAJF1N9R8ZRT25GMHFBF","weekly-meeting-reminder","Get an email every Sunday evening listing your meetings for the coming week.","https:\u002F\u002Fgithub.com\u002FSillyHippy\u002Fzo-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzo-weekly-meeting-reminder\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M7C4R65Q9T6TPBRFQPWJSW4Z","twitter","Let Zo use your X (Twitter) account","https:\u002F\u002Fgithub.com\u002FSillyHippy\u002Fzo-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzo-twitter\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M7C4R358YM59EZRM3SW763VK","zo-tools","Internal process tools for Zo and Hermes — local search, document processing, OCR, and embeddings. All services run on localhost, zero HTTP slots consumed.","https:\u002F\u002Fgithub.com\u002FSillyHippy\u002Fzo-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzo-tools\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":18},"01M7C4R0J4C3RQWKZ5W5W3CZ3X","ssh-setup","Sets up secure remote access to your Zo Computer so you can connect from anywhere","https:\u002F\u002Fgithub.com\u002FSillyHippy\u002Fzo-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzo-ssh-setup\u002FSKILL.md",[],[]]