1code

Orchestration layer for coding agents (Claude Code, Codex)

21st-dev
作者 21st-dev
自动化 · Apache-2.0 · TypeScript · 更新时间: 3 months ago
5,532
星标
598
Forks
已验证
AA
安全:
优秀
A
质量:

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).

Option 2: Subscribe to 1code.dev (recommended)

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.

🔓 登录解锁更多
使用 GitHub 登录