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.
General Questions
What is 1Code?
What is 1Code?
Is 1Code free to use?
Is 1Code free to use?
- Build from source
- Use local AI chat
- Work with git worktrees
- Use the integrated terminal
- Access Claude Code and Codex integration
- Sign in / Sync across devices
- Background agents that run in the cloud
- Auto-updates
- Private Discord support
- Early access to new features
- Automations (Pro/Max plans)
What's the difference between 1Code and Cursor/Windsurf?
What's the difference between 1Code and Cursor/Windsurf?
- Multi-agent support (Claude Code, Codex, custom models)
- Git worktree isolation per chat (never touch main)
- Background agents that run in cloud sandboxes
- MCP server management UI
- Plan mode with structured thinking
- Open source with self-hosting option
- More polished IDE experience
- Better inline editing
- Larger community and ecosystem
What are git worktrees and why should I use them?
What are git worktrees and why should I use them?
- Your main branch stays clean and untouched
- You can review changes before merging
- Multiple agents can work in parallel without conflicts
- Failed experiments don’t pollute your main codebase
Does 1Code work offline?
Does 1Code work offline?
- All UI and local features
- Terminal and file operations
- Git operations
- Claude Code API calls (requires Anthropic API key)
- Codex API calls (requires OpenRouter or other provider)
- Background agents (cloud sandboxes)
- MCP server installations from marketplace
- Auto-updates (if using 1code.dev subscription)
Installation & Setup
What are the system requirements?
What are the system requirements?
- macOS 10.15+, Windows 10+, or Linux
- 4GB RAM (8GB recommended)
- 500MB disk space
- Node.js 19+ (for development only)
- Bun (for development only)
- Bun package manager
- Python 3.11 (3.12+ requires setuptools)
- Xcode Command Line Tools (macOS only)
- Git
How do I install 1Code?
How do I install 1Code?
Do I need my own API keys?
Do I need my own API keys?
- Anthropic API key (for Claude Code)
- OpenRouter, OpenAI, or other provider (for Codex and custom models)
Can I use 1Code with my company's LLM?
Can I use 1Code with my company's LLM?
- Go to Settings → Models & Providers
- Add a custom provider with your API endpoint
- Configure authentication (API key, headers, etc.)
- Select your custom model in the model picker
Features & Usage
What's the difference between Plan mode and Agent mode?
What's the difference between Plan mode and Agent mode?
- Agent asks clarifying questions first
- Creates a structured plan before execution
- You review and approve the plan
- Good for complex or ambiguous tasks
- Agent executes immediately
- Faster for straightforward tasks
- Full tool permissions (bash, file edits, etc.)
/plan and /agent commands.How do background agents work?
How do background agents work?
- Clone your repo to a cloud VM
- Run agents with full tool access
- Live browser previews of dev branches
- Notification when tasks complete
- Works on mobile via PWA
- Pro or Max subscription at 1code.dev
What are MCP servers?
What are MCP servers?
- Database access (PostgreSQL, MySQL)
- Cloud providers (AWS, GCP, Azure)
- Project management (Linear, Jira)
- Communication (Slack, Discord)
- File systems and APIs
- Built-in MCP server management UI
- Plugin marketplace for one-click installs
- Rich tool call display with formatted I/O
Can I fork a chat to try different approaches?
Can I fork a chat to try different approaches?
- Try different approaches without losing the original
- Compare results side-by-side
- Experiment with different prompts
How do I queue multiple prompts?
How do I queue multiple prompts?
- Type your message in the input box
- The “Send” button changes to “Queue”
- Click Queue to add to the queue
- The agent processes queued messages in order
- Adding follow-up instructions
- Correcting the agent mid-task
- Chaining multiple tasks
Can I use voice input?
Can I use voice input?
- Hold the Space key (or click the mic icon)
- Speak your message
- Release to stop recording
- The transcribed text appears in the input box
Automations & API
What are automations?
What are automations?
- GitHub PR comments (@1code)
- Linear task mentions (@1code)
- Slack messages (@1code)
- Git events (push, PR, CI failures)
- Manual triggers
- Auto-review PRs
- Fix failing CI tests
- Generate documentation on PR
- Sync Linear tasks with code changes
- Pro or Max subscription
Can I use 1Code programmatically?
Can I use 1Code programmatically?
- Remote sandboxes with repo cloned
- Automatic PR creation
- Async execution with status polling
- Follow-up messages to running tasks
- API access (Max plan)
Troubleshooting
The app builds but agents don't work
The app builds but agents don't work
I'm getting Python/setuptools errors
I'm getting Python/setuptools errors
Git worktree operations are failing
Git worktree operations are failing
- Uncommitted changes in main branch
- Existing worktree with the same name
- Corrupted git repository
Where can I get help?
Where can I get help?
Discord
GitHub
Privacy & Analytics
Does 1Code collect telemetry?
Does 1Code collect telemetry?
.env.local.1code.dev builds:
Basic usage analytics are enabled to help improve the product. We collect:- Feature usage (anonymized)
- Error reports (via Sentry)
- Performance metrics
- Your code or file contents
- API keys or credentials
- Personal conversations with agents
- Repository contents
Where is my data stored?
Where is my data stored?
- Database:
~/Library/Application Support/1Code/data/agents.db(macOS) - Projects: In your specified local folders
- Worktrees: In
.git/worktrees/of your repo
- Account info and settings
- Background agent session metadata
- Automation configurations
Can I self-host 1Code?
Can I self-host 1Code?
- No cloud features (background agents, sync, automations)
- No auto-updates
- You need to manage your own API keys