Skip to main content

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.

Get your first agent running in 3 steps

This guide will help you install 1Code, create your first chat session, and run an AI coding agent on your local project.
1

Download and install 1Code

Choose your installation method:
2

Create your first chat session

When you first launch 1Code, you’ll be prompted to:
  1. Select a project folder - Choose any local Git repository or project directory
  2. Configure your API keys - Add your Anthropic API key for Claude, or OpenAI key for Codex
    • Click SettingsAPI Keys
    • Enter your API key and save
Don’t have an API key? Get one from Anthropic or OpenAI.
  1. Start a new chat - Click the New Chat button or press Cmd/Ctrl + N
3

Run your first agent

Now let’s give your agent a task!Try these example prompts:
Add a README file with project setup instructions
Watch your agent work:
  • See real-time tool execution (bash commands, file edits)
  • Review diffs before they’re applied
  • View file changes with syntax highlighting
  • Approve or reject changes
Each chat runs in its own Git worktree by default, keeping your main branch safe. You can disable this in settings if you prefer.

What’s next?

Now that you have 1Code running, explore these powerful features:

Git Worktree Isolation

Run agents in isolated worktrees without touching your main branch.

Plan Mode

Let agents ask clarifying questions and show plans before execution.

Background Agents

Run agents in cloud sandboxes that work while you sleep.

MCP Integration

Connect external tools and data sources to your agents.

Common first-run issues

Error: “Claude binary not found” or “Codex binary not found”Solution: If you built from source, make sure you ran the download scripts:
bun run claude:download
bun run codex:download
The binaries should be in resources/bin/ after download.
Error: “Invalid API key” or authentication failuresSolution:
  1. Verify your API key is correct in SettingsAPI Keys
  2. Check your API key has sufficient credits/quota
  3. For Anthropic, ensure you’re using a valid Claude API key (not Console key)
Error: “1Code can’t be opened because it is from an unidentified developer”Solution:
  1. Go to System PreferencesSecurity & Privacy
  2. Click Open Anyway next to the 1Code warning
  3. Confirm you want to open the app
For builds from source, you may need to remove quarantine:
xattr -cr /Applications/1Code.app
Error: Build fails with Python-related errorsSolution:
  1. Ensure Python 3.11+ is installed: python --version
  2. Install setuptools: pip install setuptools
  3. On Python 3.12+, setuptools is required for native module rebuilds

Need more help?

Join our Discord community for support and discussions.

Build docs developers (and LLMs) love