Documentation Index
Fetch the complete documentation index at: https://mintlify.com/21st-dev/1code/llms.txt
Use this file to discover all available pages before exploring further.
Choose your installation method
1Code offers two installation options to suit your needs:Download Pre-built
Recommended for most users
- Instant setup, no build tools required
- Automatic updates
- Background agents support
- Supports the project
Build from Source
For developers and contributors
- Full control over the build
- Latest unreleased features
- Contribute improvements
- Completely free
Option 1: Download Pre-built (Recommended)
Get the latest stable release with automatic updates and cloud features.Subscribe and download
- Visit 1code.dev
- Choose a subscription plan (Pro or Max)
- Download the installer for your platform
- Pre-built desktop apps for all platforms
- Background agents in cloud sandboxes
- Automations (GitHub, Linear, Slack triggers)
- API access for programmatic agent execution
- Priority support
Install on your platform
- macOS
- Windows
- Linux
System Requirements:
- macOS 11 (Big Sur) or later
- Apple Silicon (M1/M2/M3) or Intel processor
- Open the downloaded DMG file
- Drag 1Code to your Applications folder
- Launch 1Code from Applications or Spotlight
- On first launch, macOS may show a security warning:
- Go to System Preferences → Security & Privacy
- Click Open Anyway next to the 1Code message
- Confirm you want to open the app
Universal binaries are available - one download works for both Apple Silicon and Intel Macs.
Option 2: Build from Source (Free)
Build 1Code yourself from the open-source repository.Prerequisites
Before building, ensure you have these tools installed:- macOS
- Windows
- Linux
Build steps
Install dependencies
- Install all Node.js dependencies
- Rebuild native modules (better-sqlite3, node-pty)
- Apply necessary patches
The postinstall script automatically rebuilds native modules for Electron. This may take a few minutes.
Download agent binaries
Critical step - do not skip!These commands download the required agent binaries to
resources/bin/.What gets downloaded:- Claude Code v2.1.45 (licensed by Anthropic)
- Codex v0.98.0 (licensed by OpenAI/Zed)
- Platform-specific binaries for your system
Build the application
electron-vite to build:- Main process (
src/main/) - Preload scripts (
src/preload/) - Renderer (React UI in
src/renderer/)
out/ directory.Package for your platform
Choose the command for your platform:This uses
electron-builder to create:- macOS: DMG and ZIP files (both Intel and Apple Silicon)
- Windows: NSIS installer and portable EXE
- Linux: AppImage and DEB packages
release/ directory.Development workflow
For active development, use these commands:Post-installation setup
After installation, complete these steps to start using 1Code:1. Add API keys
Add your keys
For Claude:
- Get an API key from console.anthropic.com
- Paste it in the Anthropic API Key field
- Click Save
- Get an API key from platform.openai.com
- Paste it in the OpenAI API Key field
- Click Save
API keys are stored securely using your operating system’s credential storage (Keychain on macOS, Credential Manager on Windows, Secret Service on Linux).
2. Configure worktree settings
By default, each chat runs in an isolated Git worktree. You can customize this:- Go to Settings → Worktrees
- Configure:
- Enable worktrees: Toggle on/off
- Worktree location: Where worktrees are created (default:
.worktrees/in project root) - Auto-cleanup: Delete worktrees after chat ends
3. Optional: Set up MCP servers
Connect external tools and data sources to your agents:- Go to Settings → MCP Servers
- Browse the plugin marketplace
- Install servers with one click
- Configure server settings if needed
Troubleshooting
Build fails with 'claude:download' not found
Build fails with 'claude:download' not found
Cause: Agent download scripts failed or were skipped.Solution:
Native module rebuild errors
Native module rebuild errors
Cause: Python version incompatibility or missing build tools.Solution:
App builds but agents don't work
App builds but agents don't work
Cause: Agent binaries missing or in wrong location.Solution:
-
Verify binaries exist:
-
Re-download if missing:
-
Check binary permissions (Unix):
electron-builder fails on macOS
electron-builder fails on macOS
Cause: Code signing or notarization issues.Solution:
For development builds, disable signing:Or build without signing:
Database migration errors
Database migration errors
Cause: Schema changes without migration or corrupted database.Solution:
Bun install fails or hangs
Bun install fails or hangs
Cause: Network issues or corrupted cache.Solution:
Updating 1Code
- Pre-built (Auto-update)
- Built from Source
1Code automatically checks for updates on startup and when the window regains focus.When an update is available:
- You’ll see an Update Available banner
- Click Download to download in the background
- Once downloaded, click Restart Now to install
- Go to Settings → About → Check for Updates
Updates use the ZIP format, not DMG, for faster downloads and installation.
System requirements summary
| Platform | Minimum | Recommended |
|---|---|---|
| macOS | macOS 11 Big Sur | macOS 13 Ventura or later |
| Windows | Windows 10 (64-bit) | Windows 11 |
| Linux | Ubuntu 20.04, Debian 11 | Ubuntu 22.04+, Fedora 38+ |
| RAM | 4 GB | 8 GB or more |
| Disk Space | 500 MB | 1 GB (with agent binaries) |
| CPU | Dual-core | Quad-core or better |
- Bun 1.0.0 or later
- Python 3.11+ with setuptools
- C++ compiler (Xcode CLI Tools, Visual Studio Build Tools, or gcc)
Next steps
Quickstart Guide
Run your first agent in under 5 minutes.
Creating Your First Chat
Learn the basics of chat sessions and agent interaction.
Worktree Isolation
Understand how 1Code keeps your main branch safe.
Join Discord
Get help from the community and 1Code team.