Coder — Self-Hosted Cloud Development Environments
Deploy secure, reproducible dev environments on your own infrastructure with Coder. Supports Kubernetes, Docker, AWS, GCP, and Azure.
What it is
Coder is an open-source platform for provisioning self-hosted cloud development environments. Instead of coding on local machines with inconsistent setups, teams define environments as Terraform templates and spin them up on Kubernetes, Docker, AWS, GCP, or Azure.
Coder targets engineering teams that need reproducible, secure dev environments without vendor lock-in. Platform engineers use it to standardize tooling, while developers get instant workspaces with all dependencies pre-installed.
How it saves time or tokens
New developer onboarding drops from hours of local setup to minutes. A Terraform template defines the entire environment (OS, language runtimes, databases, IDE extensions), and Coder provisions it on demand. When something breaks, developers destroy and recreate the workspace instead of debugging local configuration drift.
Coder also centralizes secrets management. Database credentials and API keys live in the workspace template, not on individual laptops.
How to use
- Install and start the Coder server:
curl -L https://coder.com/install.sh | sh
coder server
- Open
http://localhost:3000and create your first template:
coder templates init
coder templates push my-template
- Create a workspace from the template:
coder create my-workspace --template my-template
Example
A minimal Terraform template for a Docker-based workspace:
resource "coder_agent" "main" {
os = "linux"
arch = "amd64"
}
resource "docker_container" "workspace" {
image = "codercom/enterprise-base:ubuntu"
name = "coder-${data.coder_workspace.me.name}"
command = ["sh", "-c", coder_agent.main.init_script]
env = ["CODER_AGENT_TOKEN=${coder_agent.main.token}"]
}
This creates a Linux container with the Coder agent pre-configured. Developers connect via VS Code Remote, JetBrains Gateway, or the built-in web terminal.
Related on TokRepo
- AI tools for DevOps -- Infrastructure automation and developer platform tools
- Self-hosted tools -- Self-hosted alternatives for development workflows
Common pitfalls
- Over-provisioning workspace resources. Start with small CPU/memory limits and let developers request more. Cloud compute costs scale linearly with workspace count.
- Ignoring template versioning. When you push a new template version, existing workspaces do not auto-update. Communicate breaking changes to your team.
- Skipping the idle timeout configuration. Workspaces left running overnight waste compute. Set auto-stop after 30-60 minutes of inactivity.
Frequently Asked Questions
GitHub Codespaces runs on Microsoft-managed infrastructure. Coder runs on your own infrastructure (Kubernetes, Docker, cloud VMs). You control the compute, networking, and data residency. Coder also supports any IDE, not just VS Code.
Yes. Coder integrates with JetBrains Gateway, which connects IntelliJ, GoLand, PyCharm, and other JetBrains IDEs to remote workspaces. The IDE runs locally while the backend runs in the Coder workspace.
Yes. If your infrastructure has GPU nodes (NVIDIA, AMD), you can configure Terraform templates to request GPU resources. This is common for ML/AI development teams who need CUDA-enabled environments.
Coder monitors workspace health and can auto-restart failed workspaces. Persistent volumes ensure that code and data survive container restarts. You can also configure automatic workspace rebuilds on failure.
Coder is open source (AGPL-3.0) and free for self-hosted deployments. Coder also offers an enterprise version with additional features like audit logging, RBAC, and premium support.
Citations (3)
- Coder GitHub— Coder provisions self-hosted cloud development environments
- Coder Documentation— Terraform templates define workspace infrastructure
- JetBrains Gateway Docs— JetBrains Gateway integration for remote development
Related on TokRepo
Discussion
Related Assets
Moodle — Open-Source Learning Management System
The most widely used open-source learning platform, providing course management, assessments, and collaboration tools for educators and organizations worldwide.
Sylius — Headless E-Commerce Framework on Symfony
An open-source headless e-commerce platform built on Symfony and API Platform, designed for developers who need a customizable and API-first commerce solution.
Akaunting — Free Self-Hosted Accounting Software
A free, open-source online accounting application built on Laravel for small businesses and freelancers to manage invoices, expenses, and financial reports.