This is a community fork of 21st-dev/1code with automatic sync and build capabilities.
Fork this repo to get automatic sync whenever upstream main changes, and automatic releases on upstream release tags β no manual rebuilding required.
The official 1Code repo requires you to manually build the app every time there's an update. This fork solves that:
| Feature | Official Repo | This Fork |
|---|---|---|
| Auto-sync with upstream | β | β On upstream commits |
| Auto-build on upstream release tags | β | β GitHub Actions |
| Auto-update in app | β CDN only | β From your fork's releases |
| Manual builds needed | β Every update | β Never |
Click the Fork button above to create your own copy.
In your fork:
- Go to Settings β Actions β General
- Select "Allow all actions and reusable workflows"
- Under "Workflow permissions", select "Read and write permissions"
- Click Save
- If your
mainbranch is protected, allow GitHub Actions to bypass it or disable "Require a pull request before merging" for this fork (auto-sync pushes directly tomain)
- Go to Actions tab
- Click "Build and Release" workflow
- Click Run workflow β Run workflow
Wait for the build to complete (~10-15 min). Your release will appear at:
https://github.com/YOUR_USERNAME/1code/releases
Download the DMG from your releases and install. Then configure the app to check your fork for updates:
# Clone your fork
git clone https://github.com/YOUR_USERNAME/1code.git
cd 1code
bun install
# Configure auto-updates from your fork
bun run setup:fork YOUR_USERNAMEOr manually create ~/Library/Application Support/1Code/update-config.json:
{
"source": "github",
"githubRepo": "YOUR_USERNAME/1code"
}βββββββββββββββββββββββ
β 21st-dev/1code β (upstream)
β pushes new commits β
ββββββββββββ¬βββββββββββ
β checked every 6 hours
βΌ
βββββββββββββββββββββββ
β New upstream commitsβ
β to sync? β
ββββββββββββ¬βββββββββββ
β yes β sync
βΌ
βββββββββββββββββββββββ
β Your fork β (auto-synced)
β merges changes β
ββββββββββββ¬βββββββββββ
β upstream release tag changed?
βΌ
βββββββββββββββββββββββ
β GitHub Actions β
β builds on new tag β
ββββββββββββ¬βββββββββββ
β creates release
βΌ
βββββββββββββββββββββββ
β Your local app β
β shows "Update" β (on window focus)
βββββββββββββββββββββββ
| Workflow | Trigger | Purpose |
|---|---|---|
sync-fork.yml |
Every 6 hours | Syncs upstream main; triggers release build only when upstream tag changes |
build-release.yml |
Manual or from sync-fork.yml |
Builds app and creates GitHub Release |
The file .last-synced-version tracks the latest upstream main commit SHA that was synced.
The file .last-released-upstream-tag tracks the latest upstream release tag already built in your fork.
Edit .github/workflows/sync-fork.yml:
schedule:
- cron: "0 */6 * * *" # Every 6 hours (default)
- cron: "0 */12 * * *" # Every 12 hours
- cron: "0 0 * * *" # Once dailyEdit .github/workflows/build-release.yml:
build-windows:
if: true # Change from false
build-linux:
if: true # Change from falsebun run setup:fork --cdn-
Unsigned builds: These builds aren't code-signed. macOS will show a warning or "damaged" message.
Fix for "damaged" error:
xattr -cr /Applications/1Code.app
This removes the quarantine attribute. Then open the app normally.
-
Claude binary: The build downloads Claude CLI automatically. If it fails, agent chat won't work but the app will still build.
1Code.dev β Best UI for Claude Code with local and remote agent execution.
By 21st.dev team
Platforms: macOS, Linux, and Windows. Windows support improved thanks to community contributions.
| Feature | 1Code | Claude Code |
|---|---|---|
| Visual UI | β Cursor-like desktop app | β |
| Git Worktree Isolation | β Each chat runs in isolated worktree | β |
| Background Execution | β Run multiple agents in parallel | β |
| Built-in Git Client | β Visual staging, commits, branches | β CLI git commands only |
| Integrated Terminal | β | β |
| Plan Mode | β | β |
| MCP Support | β | β |
| Memory (CLAUDE.md) | β | β |
| Skills & Slash Commands | β | β |
| Custom Subagents | β | β |
| Subscription & API Key Support | β | β |
| Custom Models & Providers (BYOK) | β | β |
| Voice Input | β Hold-to-talk dictation | β |
| Checkpointing | π§ Beta | β |
| Tool Approve | π Backlog | β |
| Hooks | β | β |
Run agents locally, in worktrees, in background β without touching main branch.
- Git Worktree Isolation - Each chat session runs in its own isolated worktree
- Background Execution - Run agents in background while you continue working
- Local-first - All code stays on your machine, no cloud sync required
- Branch Safety - Never accidentally commit to main branch
Cursor-like UI for Claude Code with diff previews, built-in git client, and the ability to see changes before they land.
- Diff Previews - See exactly what changes Claude is making in real-time
- Built-in Git Client - Stage, commit, and manage branches without leaving the app
- Change Tracking - Visual diffs and PR management
- Real-time Tool Execution - See bash commands, file edits, and web searches as they happen
Claude asks clarifying questions, builds structured plans, and shows clean markdown preview β all before execution.
- Clarifying Questions - Claude asks what it needs to know before starting
- Structured Plans - See step-by-step breakdown of what will happen
- Clean Markdown Preview - Review plans in readable format
- Review Before Execution - Approve or modify the plan before Claude acts
- Plan & Agent Modes - Read-only analysis or full code execution permissions
- Project Management - Link local folders with automatic Git remote detection
- Integrated Terminal - Full terminal access within the app
bun install
bun run claude:download
bun run codex:download
bun run build
bun run package:mac # or package:win, package:linuxImportant: The
claude:downloadandcodex:downloadsteps 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
setuptoolsis installed (pip install setuptools).
bun install
bun run claude:download # First time only
bun run codex:download # First time only
bun run dev- Discord for support and discussions
- Original repo for upstream issues
Apache License 2.0 - see LICENSE for details.


