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
Quickstart
The most convenient way to try Coder is to install it on your local machine and experiment with provisioning cloud development environments using Docker (works on Linux, macOS, and Windows).
# First, install Coder
curl -L https://coder.com/install.sh | sh
# Start the Coder server (caches data in ~/.cache/coder)
coder server
# Navigate to http://localhost:3000 to create your initial user,
# create a Docker template and provision a workspace
Install
The easiest way to install Coder is to use the
install script for Linux
and macOS. For Windows, use the latest ..._installer.exe file from GitHub
Releases.
curl -L https://coder.com/install.sh | sh
You can run the install script with --dry-run to see the commands that will be used to install without executing them. Run the install script with --help for additional flags.
Once installed, you can start a production deployment with a single command:
# Automatically sets up an external access URL on *.try.coder.app
coder server
# Requires a PostgreSQL instance (version 13 or higher) and external access URL
coder server --postgres-url <url> --access-url <url>
Use coder --help to get a list of flags and environment variables. See the install guides for a complete tutorial.
Documentation
Browse the documentation or visit a specific section below:
Workspaces: Workspaces contain the IDEs, dependencies, and configuration information needed for software development
Templates: Templates are written in Terraform and describe the infrastructure for workspaces
Coder Agents: Delegate coding work to AI agents running on your self-hosted infrastructure
GitHub Actions: An action to set up the Coder CLI in GitHub workflows
Community
Community Templates: Community-contributed workspace templates in the Coder Registry
Community Modules: Community-contributed modules to extend Coder templates
Provision Coder with Terraform: Provision Coder on Google GKE, Azure AKS, AWS EKS, DigitalOcean DOKS, IBMCloud K8s, OVHCloud K8s, and Scaleway K8s Kapsule with Terraform
Package httpapiconstraints contain types that can be used and implemented across the application to return specific HTTP status codes without pulling in large dependency trees.
Package httpapiconstraints contain types that can be used and implemented across the application to return specific HTTP status codes without pulling in large dependency trees.
This program generates an input.json file containing action, object, and subject fields to be used as input for `opa eval`, e.g.: > opa eval --format=pretty "data.authz.allow" -d policy.rego -i input.json This helps verify that the policy returns the expected authorization decision.
This program generates an input.json file containing action, object, and subject fields to be used as input for `opa eval`, e.g.: > opa eval --format=pretty "data.authz.allow" -d policy.rego -i input.json This helps verify that the policy returns the expected authorization decision.