selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

code-server logo

Self-host code-server

v4.145.2
ReleaseOpen SourceMIT
curl -L https://coder.com/install.sh | sh
Updatedlast week
LanguageTypescript
Setup difficultyAdvanced
MobileResponsive
ThemeDark mode
Stars
79 884
CPU
2 cores
RAM
4GB
Port
3000
Requires
PostgreSQL
Docker
ghcr.io/coder/coder:latest

What is code-server?

code-server alternatives

Should you self-host code-server?

code-server scores 83/100 on selfhost.directory (how scoring works) and ranks #3 of 167 in Developer Tools. It has 79 884 GitHub stars, +291 in the last 30 days.

It shipped 33 stable releases in the past year. The latest, v4.145.2, came out on 7 November 2026. New versions land roughly every 7 days.

Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is MIT-licensed and written mostly in Typescript.

Its closest alternative on selfhost.directory is openhands (87/100, 93 581 stars). It scores higher overall, so compare the two before you pick. See code-server vs openhands side by side.

Features

  • AI Coding Agents
  • Audit Logging
  • Custom Templates
  • Docker support
  • GPU Acceleration
  • High Availability
  • IDE Integration
  • Kubernetes support
  • Multi-user support
  • OAuth/SSO
  • Terraform Integration

code-server README

code-server

"GitHub Discussions" "Join us on Slack" Twitter Follow Discord codecov See latest

Run VS Code on any machine anywhere and access it in the browser.

Screenshot Screenshot

Highlights

How to install code-server

Install code-server with Docker Compose

Docker Engine 20.10+, Docker Compose 1.29+
version: '3'
services:
  coder:
    image: ghcr.io/coder/coder:latest
    container_name: coder
    restart: unless-stopped
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    ports:
      - "3000:3000"
    environment:
      - CODER_ACCESS_URL=http://localhost:3000
      - CODER_PG_CONNECTION_URL=postgres://coder:coder@postgres:5432/coder?sslmode=disable
    depends_on:
      - postgres

  postgres:
    image: postgres:13
    container_name: coder-postgres
    restart: unless-stopped
    environment:
      - POSTGRES_USER=coder
      - POSTGRES_PASSWORD=coder
      - POSTGRES_DB=coder
    volumes:
      - coder-postgres-data:/var/lib/postgresql/data

volumes:
  coder-postgres-data:
  1. Save the above as docker-compose.yml.
  2. Update the group_add in the compose file with the gid of the docker group: getent group docker | cut -d: -f3.
  3. Start Coder: docker compose up -d.
  4. Access the web UI at http://localhost:3000 and follow the setup instructions.

Requires Docker and Docker Compose. PostgreSQL is included as a dependency.

How to configure code-server

  • CODER_ACCESS_URLThe external URL users and workspaces use to connect to Coder.

    values: Any valid URL

  • CODER_PG_CONNECTION_URLThe connection URL for the PostgreSQL database.

    values: Any valid PostgreSQL connection string

  • CODER_HTTP_ADDRESS0.0.0.0:3000The address and port Coder listens on for HTTP traffic.

    values: Any valid IP:port combination

  • CODER_TLS_ENABLEfalseEnable TLS for secure connections.

    values: true, false

  • CODER_TLS_ADDRESSThe address and port Coder listens on for TLS traffic.

    values: Any valid IP:port combination

code-server releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

Can Coder be used for AI development?

Yes, Coder supports AI coding agents and provides governance and security controls for running AI workloads in isolated environments.

What are the system requirements for Coder?

Coder requires a minimum of 2 CPU cores and 4GB of RAM. For production deployments, additional resources may be needed depending on the number of users and workspaces.

Is Coder open-source?

Yes, Coder is fully open-source under the MIT license. It also offers an enterprise edition with additional features and support.

How does Coder work?

Coder uses Terraform templates to define development environments. These templates are used to create workspaces, which are isolated, reproducible environments for developers. Coder supports Docker, Kubernetes, and cloud providers, and integrates with popular IDEs like VS Code and JetBrains.

What is Coder?

Coder is a self-hosted platform for creating and managing cloud-based development environments and AI coding agents. It allows teams to define, provision, and govern secure, reproducible workspaces using Terraform.

More in Developer Tools

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…