开源项目 GitHub Trending 2026-09-17T12:01 正文 ok 426 words

Coder:为开发者及其 AI Agent 提供安全环境的平台

英文标题:🔥 coder/coder

Coder 是一个自托管的云开发环境与 AI 编码 Agent 平台,开发工作区通过 Terraform 定义,并经由安全的 Wireguard® 隧道连接。平台可自动关闭闲置资源以节省成本,并支持在自有基础设施上运行原生 AI 编码 Agent,兼容 Anthropic、OpenAI、Google、Bedrock 及自托管模型。其核心特点包括:工作区内不保存 LLM API 凭据、每项操作均关联用户身份,以及集中化的模型治理、成本追踪与审计日志。开发者可通过安装脚本快速部署,也可在生产环境中接入 PostgreSQL 和外部访问 URL。
打开原文相关 3 · 机会 3
media9.7 KB media7.6 KB media10.9 KB media10.9 KB media1.3 KB media1.3 KB media6.3 KB media1.2 KB media1.3 KB media1.3 KB media544.4 KB media443.0 KB

中文

Coder 是一个用于云开发环境和 AI 编码 Agent 的自托管平台。工作区通过 Terraform 定义,经由安全的 Wireguard® 隧道连接,并会在未使用时自动关闭。Coder Agents 运行原生 AI 编码 Agent,其循环在您的基础设施控制平面中执行,工作区内无需保存 API 密钥。

  • 使用 Terraform 定义云开发环境
    • EC2 虚拟机、Kubernetes Pod、Docker 容器等
  • 自动关闭闲置资源以节省成本
  • 将开发者接入时间从数天缩短至数秒
  • 将编码工作委派给在您的基础设施上运行的 AI Agent
    • 支持接入任意模型(Anthropic、OpenAI、Google、Bedrock、自托管)
    • 工作区内不存放 LLM 凭据,每项操作均带有用户身份
    • 集中化模型治理、成本追踪与审计日志

展示模板和运行中工作区的 Coder 平台

如需了解其他安装方式和完整教程,请查看我们的安装指南。

可在 Linux 和 macOS 上通过安装脚本试用 Coder;Windows 用户可从 GitHub Releases 获取最新二进制文件或安装程序:

curl -L https://coder.com/install.sh | sh

启动服务器,并打开 http://localhost:3000,以创建初始用户、创建 Docker 模板并配置首个工作区:

对于生产部署,请添加 PostgreSQL 数据库(版本 13 或更高)和外部访问 URL;有关容量规划和基础设施指导,请参阅我们的经验证架构:

coder server --postgres-url <url> --access-url <url>

未使用这些标志时,Coder 会使用内置数据库,并为评估用途设置一个 *.try.coder.app 访问 URL。使用 coder --help 可查看完整的标志和环境变量列表。

浏览文档,或访问以下特定章节:

  • 工作区:工作区包含软件开发所需的 IDE、依赖项和配置信息
  • 模板:模板使用 Terraform 编写,用于描述工作区的基础设施
  • Coder Agents:将编码工作委派给运行在自托管基础设施上的 AI Agent
  • AI Gateway:为 AI 工具集中管理身份验证、审计和成本控制
  • 管理:了解如何运营 Coder
  • Premium:了解面向大型团队打造的付费功能
  • IDE:将现有编辑器连接至工作区

如发现漏洞或有功能需求,请提交 issue。

如需社区支持、展示您构建的成果,或为开发中的功能提供反馈,请加入我们的 Discord 或 GitHub Discussions。

Coder Premium 包含专属支持。详情请访问 coder.com/pricing。

新集成始终在开发中。您可以提交 issue 请求集成。欢迎为任何官方或社区仓库贡献代码。

社区

我们始终欢迎新贡献者。如果您刚接触 Coder 代码库,请参阅贡献指南以开始参与。

如果您有兴趣加入团队,请在招聘页面申请。

English / 原文

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

Coder platform showing templates and a running workspace

Check out our install guides for other methods and a complete tutorial.

Try Coder with the install script on Linux and macOS, or grab the latest binary or installer from GitHub Releases on Windows:

curl -L https://coder.com/install.sh | sh

Start the server and open http://localhost:3000 to create your initial user, create a Docker template, and provision your first workspace:

For a production deployment, add a PostgreSQL database (version 13 or later) and an external access URL, and see our validated architectures for sizing and infrastructure guidance:

coder server --postgres-url <url> --access-url <url>

Without these flags, Coder uses a built-in database and sets up a *.try.coder.app access URL for evaluation. Use coder --help for the full list of flags and environment variables.

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
  • AI Gateway: Centralize authentication, auditing, and cost controls for AI tooling
  • Administration: Learn how to operate Coder
  • Premium: Learn about paid features built for large teams
  • IDEs: Connect your existing editor to a workspace

Open an issue for bugs and feature requests.

For community support, showcasing what you built, and feedback on in-progress features, join our Discord or GitHub Discussions.

Dedicated support is included in Coder Premium. For more information, visit coder.com/pricing.

New integrations are always in progress. Open an issue to request one. Contributions are welcome in any official or community repository.

Community

New contributors are always welcome. If you are new to the Coder codebase, see the contribution guide to get started.

Apply on the careers page if you are interested in joining the team.