Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hello, and thank you for providing such an excellent project. I am currently using code-server for a product demo and would like to ask a few questions regarding commercial use and custom VS Code builds.

My product’s service model is to provide users with an ECS image. Users deploy this image on their own servers and then access the customized VS Code service running inside it through a provided URL.

1. Questions Regarding Commercial Use

Given this deployment model, if I plan to commercialize the product in the future, what additional requirements or work should I consider?

  • Do I need to purchase a commercial license or obtain any additional authorization?
  • Are there requirements or considerations related to user scale or concurrent usage?
  • Should I perform extra security hardening (e.g., network isolation, stronger authentication, per-user data separation)?
  • Is there a recommended deployment architecture for commercial or production scenarios (e.g., Kubernetes, multi-instance, load balancing)?

Any guidance on typical best practices or obligations for commercial use of code-server would be greatly appreciated.

2. Running a Customized VS Code (e.g., a Cursor-like Edition) on code-server

I would like to integrate a customized VS Code distribution—such as a fork with UI or functional modifications, or something similar to Cursor—into code-server. Could you provide guidance on the following:

  • Does code-server support running custom builds of VS Code compiled from modified source code?

  • If supported, what adaptations are needed during the build process? For example:

    • Do specific build flags need to match those used by code-server?
    • Can I directly replace the vscode source directory and rebuild code-server?
    • Are there compatibility constraints at the API/protocol level (extension host, webview, workbench, etc.)?
  • Are there documents, examples, or recommended workflows for making custom VS Code builds work with code-server?

My goal is that:

When users access code-server in the browser, they see my fully customized VS Code version (UI changes, additional features, extension behaviors, etc.).

Thank you very much for your time. I appreciate any further guidance or suggestions from the community.

You must be logged in to vote

Do I need to purchase a commercial license or obtain any additional authorization?

No, you can use and deploy code-server however you wish.

Are there requirements or considerations related to user scale or concurrent usage?

The base requirements we have for code-server are 1 GB of RAM and 2 CPU cores, so I would use that as a starting step.

I think the points here are good in general: https://coder.com/docs/tutorials/best-practices/scale-coder#workspaces-per-node (technically this is for Coder, not code-server, but from what I can tell Coder might be doing what you are trying to do, or is similar at least).

Should I perform extra security hardening (e.g., network isolation, stronger …

Replies: 1 comment · 1 reply

Comment options

Do I need to purchase a commercial license or obtain any additional authorization?

No, you can use and deploy code-server however you wish.

Are there requirements or considerations related to user scale or concurrent usage?

The base requirements we have for code-server are 1 GB of RAM and 2 CPU cores, so I would use that as a starting step.

I think the points here are good in general: https://coder.com/docs/tutorials/best-practices/scale-coder#workspaces-per-node (technically this is for Coder, not code-server, but from what I can tell Coder might be doing what you are trying to do, or is similar at least).

Should I perform extra security hardening (e.g., network isolation, stronger authentication, per-user data separation)?

With Coder, we run code-server in separate Docker containers on a single node and I think this is probably the ideal way to do it. If you need to run multiple instances without containerization, I would run them as separate users and listen on sockets instead of ports.

The built-in password authentication should be OK, but personally I would put something in front to handle auth in a case like this, ideally something that unifies with whatever else you might be building (in our case, Coder handles the auth).

Is there a recommended deployment architecture for commercial or production scenarios (e.g., Kubernetes, multi-instance, load balancing)?

I think generally the recommendation would probably be Kubernetes (we do recommend it for Coder), but there are no official recommendations for code-server. As for the rest, it will really depend on your needs I think.

Does code-server support running custom builds of VS Code compiled from modified source code?

No, firstly each version of code-server only supports a specific version of VS Code. The reason for this is that our patches will generally not cleanly apply from one version to the next, so supporting multiple versions is simply not possible unless we also maintained separate versions of the patches.

It might help to think of code-server less like it "bundles" VS Code and more like it forks VS Code. You might be able to swap the underlying VS Code and the patches will still apply successfully, but there is no guarantee.

Secondly, you would have to swap in the actual source code, so our patches can apply. This makes building code-server off something like Cursor impossible since Cursor's source is not available (at least not last I checked).

Are there documents, examples, or recommended workflows for making custom VS Code builds work with code-server?

Not as far as I am aware. I think generally I would recommend that your custom VS Code build targets the same version that code-server targets, and it should be mostly OK unless you modify an area that one of our patches also modifies. If you can, it might make the most sense to maintain your custom VS Code changes as patches in a code-server fork alongside our own patches.

You must be logged in to vote
1 reply
@code-asher
Comment options

It may be helpful to note that you can run VS Code web directly without code-server (and maybe Cursor, although I have not tried) via code serve-web. It lacks our patches of course, but it might suit your needs.

https://github.com/coder/code-server/blob/main/docs/FAQ.md#whats-the-difference-between-code-server-and-vs-code-web

Answer selected by FZR95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.