---
title: Deploy code-server with AI on Blossom
url: "/deploy/code-server/"
canonical_url: https://blossom88.com/deploy/code-server/
markdown_url: https://blossom88.com/deploy/code-server.md
summary: Open a private VS Code workspace in your browser and keep project files across
  updates.
categories:
- deployment
- developer-tools
- code-editor
stack:
- TypeScript
- Node.js
- VS Code
---

# Deploy code-server with AI on Blossom

[code-server](https://github.com/coder/code-server) runs VS Code in a browser
and keeps the files on your server. Open it to work on a project without
installing the editor on each device.

![A release checklist open in the code-server editor.](/deploy/assets/images/code-server/edit-a-checklist.webp)

![The saved checklist reopened after Container replacement.](/deploy/assets/images/code-server/reopen-the-workspace.webp)

## Ask Your Agent

> **Ask your AI agent:** Deploy code-server on Blossom and help me open a private workspace for a small project.
>
> Follow this guide: https://blossom88.com/deploy/code-server/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and choose a Blossom Cloud Location when you log in. You can also use [Blossom BYOC (bring your own cloud)](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#blossom-byoc).

## How It Runs

| Part | Role | Where |
|---|---|---|
| code-server | Serve the VS Code editor and connect it to your workspace | One Persistent Service behind Blossom Account access |
| Volume | Keep the project, editor data and extensions | Mounted at /workspace |

## Deploy code-server

Keep the editor behind Blossom Account access and set a code-server
password before signing in.

<details class="optional-reading" markdown="1">
<summary>Deployment details</summary>

Use the [official image](https://github.com/coder/code-server/blob/main/docs/install.md#docker)
with a [Persistent Service Volume](https://docs.blossom88.com/docs/apps/persistent-services/)
at `/workspace`. Keep the image's unprivileged user, bind the editor to
port 8080, use `/healthz` for readiness, and set a strong, stable
`PASSWORD` as a runtime secret. Place the project, editor data and
extensions beneath the Volume.

    blossom service:create --data code-server.yml
    blossom environment:deploy --id environment-100 --follow

</details>

## Open a Sample Project

Sign in and open the workspace folder. Start with a small release checklist
in a `README.md` file.

> **Ask your AI agent:** Make a small release checklist and open it in my workspace.

> Follow this guide: https://blossom88.com/deploy/code-server/



## Save a Change

Add a checklist item in the browser and save the file.

> **Ask your AI agent:** Add a staging deployment check and save it to the README.

> Follow this guide: https://blossom88.com/deploy/code-server/



## Reopen the Workspace

Keep the Volume when you update code-server. Sign in from a fresh browser
session and reopen the same file.

> **Ask your AI agent:** After updating code-server, reopen the checklist and confirm the saved item is still there.

> Follow this guide: https://blossom88.com/deploy/code-server/



## What You Get

- A browser-based editor with an HTTPS address
- A private workspace for one user
- Project files and editor data on a Persistent Volume

Tested on Blossom: The saved checklist reopened in a fresh browser session after the editor Container changed.
