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.

Coder logo

Self-host Coder

v2.29.27

Governed cloud dev environments with native AI coding agents

ReleaseOpen CoreAGPL-3.0
curl -fsSL https://coder.com/install.sh | sh
Updated3 days ago
LanguageGo
Setup difficultyModerate
Stars
17 378
CPU
2 CPU cores
RAM
4 GB
Ports
3000 (Default HTTP address of the coder server when run as a standalone binary (http://localhost:3000)), 7080 (HTTP address used by the official Docker image in the published compose example (CODER_HTTP_ADDRESS 0.0.0.0:7080))
Docker
ghcr.io/coder/coder
Admin settings page (general)Coder Agents UI showing a list of AI agent tasksWorkspace view with IDE and terminal

What is Coder?

Coder lets teams spin up remote development machines and autonomous coding assistants on hardware they administer themselves. Each environment is described as code with Terraform and can target EC2 instances, Kubernetes pods or Docker containers; the platform tunnels connections over WireGuard and reclaims resources by powering down machines that sit unused. Its built-in agent keeps model credentials out of the environments, while the AI gateway applies budgets, identity and audit trails to LLM traffic. Installation options include a shell script, a container image on ghcr.io, or a Helm chart; production setups add Postgres 13 or newer, a public access URL and TLS termination through a reverse proxy. Workspaces and templates are unlimited in the free AGPL edition, whereas paid tiers gate high availability, multi-organization RBAC, more concurrent agents and SLA support.

Should you self-host Coder?

Coder scores 76/100 on selfhost.directory (how scoring works) and ranks #11 of 167 in Developer Tools. It has 17 378 GitHub stars, +458 in the last 30 days.

It shipped 86 stable releases in the past year. The latest, v2.37.11, came out on 10 November 2026.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is AGPL-3.0-licensed and written mostly in Go.

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

Features

  • AI gateway / centralized LLM governance
  • Air-gapped deployment
  • Audit Logging
  • Automatic idle shutdown
  • Bring-your-own model support
  • Dev Containers support
  • High availability and workspace proxiesPremium tier only.
  • Multi-infrastructure provisioning
  • Native AI coding agentsCommunity/Premium cap of 5 concurrent Coder Agents; unlimited in AI Premium.
  • Prometheus Metrics
  • Secure tunnel connectivity
  • Terraform-defined environments
  • User dotfiles personalization
  • Web and desktop IDE access

Coder README

Coder Logo Light Coder Logo Dark

Self-Hosted Cloud Development Environments and AI Agents

Coder Banner Light Coder Banner Dark

Quickstart | Docs | Why Coder | Premium

discord release godoc OpenSSF Best Practices OpenSSF Scorecard license Ask DeepWiki

Coder is a self-hosted platform for cloud development environments and AI coding agents. Workspaces are defined with Terraform, connected through a secure Wireguard® tunnel, and automatically shut down when not used. Coder Agents runs a native AI coding agent whose loop executes in the control plane on your infrastructure, with no API keys in workspaces.

  • Define cloud development environments in Terraform
    • EC2 VMs, Kubernetes Pods, Docker Containers, etc.
  • Automatically shutdown idle resources to save on costs
  • Onboard developers in seconds instead of days
  • Delegate coding work to AI agents on your infrastructure
    • Bring any model (Anthropic, OpenAI, Google, Bedrock, self-hosted)
    • No LLM credentials in workspaces, user identity on every action
    • Centralized model governance, cost tracking, and audit logging

How to install Coder

Install Coder with Docker

Environment variables
CODER_PG_CONNECTION_URL, CODER_HTTP_ADDRESS, CODER_ACCESS_URL
  • Make sure you have Docker Compose installed.
  • Update group_add: in docker-compose.yaml with the gid of docker group. You can get the docker group gid by running the below command:

getent group docker | cut -d: -f3

  • Start Coder with docker compose up
  • Visit the web UI via the configured url.

Official images published on GitHub Container Registry (ghcr.io/coder/coder); guide is for Linux hosts; download the docker-compose.yaml file from the release branch first.

How to configure Coder

  • CODER_ACCESS_URLExternal URL users and workspaces use to reach Coder; required when not using the built-in tunnel.
  • CODER_HTTP_ADDRESSAddress and port the control plane listens on for HTTP.
  • CODER_PG_CONNECTION_URLPostgreSQL connection URL the control plane stores users and workspace metadata in; unset means a built-in database is downloaded and used.
  • CODER_TLS_ENABLEEnable TLS termination in the control plane itself.
  • CODER_WILDCARD_ACCESS_URLWildcard hostname resolving to Coder, needed for port forwarding and absolute-path workspace apps.

Coder releases & version history

@ Every self-hosted release, weekly

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

More in Developer Tools

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…