Coder — Self-Hosted Cloud Development Environments
Deploy secure, reproducible dev environments on your own infrastructure with Coder. Supports Kubernetes, Docker, AWS, GCP, and Azure.
Installation avec revue préalable
Cet actif nécessite une revue. Le prompt copié demande un dry-run, affiche les écritures, puis continue seulement après confirmation.
npx -y tokrepo@latest install 333a1243-3974-11f1-9bc6-00163e2b0d79 --target codexDry-run d'abord, confirmez les écritures, puis lancez cette commande.
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.
Questions fréquentes
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.
Sources citées (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
En lien sur TokRepo
Fil de discussion
Actifs similaires
Shlink — Self-Hosted URL Shortener with Analytics
Shlink is a self-hosted URL shortener that lets you create short links with full analytics, QR codes, and API access. Built with PHP, it supports custom domains and provides detailed visit tracking.
RustDesk — Self-Hosted Open Source Remote Desktop
RustDesk is a full-featured open-source remote desktop application written in Rust. It offers a self-hosted alternative to TeamViewer and AnyDesk, giving you full control over your data with your own relay and rendezvous servers.
Runtipi — Self-Hosted Home Server App Manager
A personal home server manager that lets you install and manage dozens of self-hosted apps with one click, backed by Docker Compose and a clean web dashboard.
Flame — Self-Hosted Startpage for Your Server
Flame is a self-hosted startpage and application dashboard that lets you organize bookmarks, monitor Docker containers, and customize your home server landing page with a clean, themeable interface.