Coder is an open-source platform that lets organizations deploy secure, self-hosted cloud development environments on their own infrastructure—whether public cloud, private data centers, or air-gapped networks. It solves the pain of slow, inconsistent developer onboarding and fragile local setups by replacing VDI and manual environment configuration with infrastructure-as-code (Terraform) templates. Engineering teams gain control over compute, access, and compliance while developers get instant, reproducible environments.
Built in Go, Coder integrates with Terraform, Docker, Kubernetes, VS Code, JetBrains IDEs, and Dev Containers. It supports deployment via Docker, Helm, or direct binary, and automatically shuts down idle workspaces to reduce cloud costs. The platform is designed for enterprises needing governance over AI coding agents, secure source code handling, and scalable development workflows across global teams.
What You Get
- Terraform-based Templates - Define development environments as code using Terraform to provision EC2 VMs, Kubernetes Pods, Docker containers, or OpenShift resources with full infrastructure control.
- Automatic Idle Shutdown - Workspaces automatically shut down after inactivity to reduce cloud compute costs by up to 90%, as demonstrated by Skydio and J.B. Hunt.
- VS Code & JetBrains Integration - Seamlessly open Coder workspaces in VS Code via the official extension or in JetBrains IDEs via Toolbox and Gateway plugins.
- Dev Container Builder (envbuilder) - Build development environments from devcontainer.json files on Docker, Kubernetes, and OpenShift without manual configuration.
- AI Agent Governance - Securely run AI coding agents (like GitHub Copilot or CodeLlama) inside governed environments with controlled access to sensitive systems and data.
- Self-Hosted VS Code Marketplace - Deploy a private extension marketplace for VS Code in air-gapped or restricted networks using code-server integration.
Common Use Cases
- Running AI coding agents securely - A machine learning team uses Coder to run LLM-based coding assistants inside isolated, policy-governed workspaces without exposing proprietary code to public cloud APIs.
- Replacing VDI for developers - A financial services firm eliminates expensive VDI systems by deploying Coder workspaces on AWS, reducing costs by 90% while improving developer experience.
- Onboarding developers in minutes - A government agency provisions standardized, compliant development environments for 500+ engineers using Terraform templates, cutting onboarding from days to seconds.
- Managing ML workloads with GPU access - An AI startup allocates cloud GPUs to data scientists via Coder workspaces, offloading training jobs while maintaining data sovereignty on private cloud infrastructure.
Under The Hood
Architecture
- Monolithic service design with tightly coupled API, business logic, and data access layers within a single binary
- Absence of dependency injection and configuration abstraction leads to brittle initialization and poor testability
- No clear service or repository boundaries; database schema, queries, and HTTP handlers are intermixed
- Frontend and backend are deployment-decoupled but lack formal API contracts or interface definitions
Tech Stack
- Go backend with custom HTTP middleware and protobuf-generated APIs for type-safe communication
- PostgreSQL with extensive codegen-driven migrations and schema validation
- Docker and makefile-based tooling for consistent builds, cross-platform packaging, and Helm chart generation
- Next.js frontend with TypeScript-generated clients and automated documentation via quicktype
- Comprehensive tooling including golangci-lint, pnpm, and MCP for integrated language server support
Code Quality
- Extensive test coverage across unit, integration, and end-to-end scenarios with robust mocking and assertions
- Clear module separation with dedicated test suites mirroring production components
- Consistent, descriptive naming conventions and structured error handling improve readability and reliability
- Strong type safety enforced through protobuf structs, interface contracts, and TypeScript annotations
- Automated linting and testing pipelines ensure high standards of correctness and maintainability
What Makes It Unique
- Native integration of Tailnet and DERP protocols enables secure, low-latency peer-to-peer remote workspaces without external tunnels
- Dynamic agent authentication via cloud metadata allows zero-touch, cryptographically secure provisioning
- AI bridge icon system dynamically renders vendor-specific IDE icons for a unified AI tooling taxonomy
- Provisioner daemon provides real-time infrastructure status and offline filtering for enterprise visibility
- Stateful RPC-based workspace agent endpoints enable persistent bidirectional communication for live development