1code README

The project's README from github.com/21st-dev/1code. As one markdown file: README.md.

1Code

1Code.dev

Open-source coding agent client. Run Claude Code, Codex, and more - locally or in the cloud.

By 21st.dev team

Highlights

Features

Run coding agents the right way

Run agents locally, in worktrees, in background - without touching main branch.

Worktree Demo


UI that finally respects your code

Cursor-like UI with diff previews, built-in git client, and the ability to see changes before they land.

Cursor UI Demo


Plan mode that actually helps you think

The agent asks clarifying questions, builds structured plans, and shows clean markdown preview - all before execution.

Plan Mode Demo


Background agents that never sleep

Close your laptop. Your agents keep running in isolated cloud sandboxes with live browser previews.


Connect anything with MCP

Full MCP server lifecycle management with a built-in plugin marketplace. No config files needed.


Automations that work while you sleep

Trigger agents from GitHub, Linear, Slack, or manually from git events. Auto-review PRs, fix CI failures, and complete tasks - all configurable.

Automations require a Pro or Max subscription. Learn more at 1code.dev/agents/async.

API

Run coding agents programmatically. Point at a repo, give it a task - the agent runs in a sandbox and delivers a PR.

curl -X POST https://1code.dev/api/v1/tasks \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "repository": "https://github.com/your-org/your-repo",
    "prompt": "Fix the failing CI tests"
  }'

Learn more at 1code.dev/agents/api

Installation

Option 1: Build from source (free)

# Prerequisites: Bun, Python 3.11, setuptools, Xcode Command Line Tools (macOS)
bun install
bun run claude:download  # Download Claude binary (required!)
bun run codex:download   # Download Codex binary (required!)
bun run build
bun run package:mac  # or package:win, package:linux

Important: The claude:download and codex:download steps download required agent binaries. If you skip them, the app may build but agent functionality will not work correctly.

Python note: Python 3.11 is recommended for native module rebuilds. On Python 3.12+, make sure setuptools is installed (pip install setuptools).

Get pre-built releases + background agents support by subscribing at 1code.dev.

Your subscription helps us maintain and improve 1Code.

Development

bun install
bun run claude:download  # First time only
bun run codex:download   # First time only
bun run dev

Feedback & Community

Join our Discord for support and discussions.

License

Apache License 2.0 - see LICENSE for details.

1code (21st-dev/1code)

Searching Database…

5.6K ·GitHub
archived
这是什么?1Code 是一款开源桌面客户端,让你可以在本地或云端运行 Claude Code、Codex 等编程智能体,并通过一个类似 Cursor 的界面统一管理。
它本身是编程智能体,还是管理其他智能体的应用?它是一个编排层和桌面应用,在现有编程智能体(Claude Code、Codex)外面包了一层类似 Cursor 的界面,并内置 git 客户端和终端,它本身不运行自己的模型。
我该怎么把它跑起来?可以免费从源代码构建:运行 claude:download 和 codex:download 步骤来拉取智能体二进制文件;或者在 1code.dev 订阅,获取预构建版本以及后台智能体支持。
在它能用之前,我需要单独下载智能体二进制文件吗?需要。claude:download 和 codex:download 构建步骤会获取所需的智能体二进制文件;跳过这些步骤,应用仍能构建,但智能体功能将无法使用。重新编译原生模块时推荐使用 Python 3.11。
跨 GitHub、Linear 和 Slack 的自动化功能是免费的吗?不是。从 GitHub、Linear 或 Slack 触发智能体,以及其他异步自动化,都需要付费的 Pro 或 Max 订阅;从源代码构建只能获得本地应用。
它实际能在哪些平台上运行?1Code 提供 macOS 桌面应用和网页应用,同时也支持 Windows 和 Linux 版本。
默认情况下,我的代码会被发送到别处吗?不会。在本地模式下,所有内容都留在你的机器上,无需云同步;云端沙盒仅用于你明确触发的后台智能体。
BYOK 支持是做什么用的?1Code 允许你使用自己的 API 密钥来接入自定义模型和服务商,而不被锁定在某一家供应商上。
关闭笔记本后,后台智能体如何继续工作?它们运行在隔离的云端沙盒中,而不是你的机器上,因此即使笔记本休眠也会继续运行,你还可以实时查看开发分支的浏览器预览。
不打开应用也能触发智能体吗?可以。在 GitHub、Linear 或 Slack 中标记 @1code,或者在 push、PR 等 git 事件发生时触发,都可以自动启动一个智能体会话。
完全不用桌面界面也能运行智能体吗?可以,有一个 API:指定一个仓库和一项任务,智能体就会在远程沙盒中运行,并为你提交一个 PR。
Creator
21st-dev
Size
16.1 MB
Stars
5.6K
Age
9mo
Commits · 90 Days