A universal orchestration layer that sits between you and AI coding assistants (Claude, Gemini, Aider, etc.), adding safety features, memory, cost controls, and workflow automation.
Imagine you hired a brilliant programmer to help you write code, but:
- They might accidentally delete important files
- They could spend too much money (API costs)
- They might forget what you discussed yesterday
- They could introduce security bugs
- You have no "undo" button if something goes wrong
Coda is like a safety harness and toolkit for AI programmers. It adds:
- 🛡️ Safety features - Automatic backups and rollback
- 💰 Cost controls - Set spending limits
- 🧠 Memory - Remembers context between sessions
- 🔒 Security checks - Scans for vulnerabilities
- 🤝 Multi-AI support - Use the best tool for each task
- ⏮️ Checkpoint/Rollback System - Create restore points before changes
- 💰 Cost Tracking & Limits - Monitor API usage and set daily/monthly limits
- 🔒 Security Scanner - Automatic detection of hardcoded secrets and vulnerabilities
- 👁️ Diff Preview - See changes before applying them
- 🧠 Persistent Memory - Save and recall important context across sessions
- 🤖 Claude Code - Anthropic's CLI-based assistant
- 🌟 Gemini - Google's AI coding assistant
- 🎯 Aider - Git-aware pair programming
- 🐙 GitHub Copilot CLI - GitHub's command line AI
- 🚀 Cline.ai - Autonomous coding agent
- 📝 Cody - Sourcegraph's context-aware assistant
- 🔧 Amazon Q - AWS coding assistant
- 🎨 Continue.dev - Open-source extensible AI
- 📋 Workflow Templates - Automate repetitive task sequences
- 🧪 Test Generation - AI-powered test creation with coverage tracking
- 📚 Documentation Search - RAG-powered project documentation search
- 🌐 Offline Mode - Cached responses for working without internet
- 🎨 Preset Configurations - Quick switching between safety levels
- 🔧 Interactive Wizard - Easy setup for beginners
- Node.js 18+ (Download)
- Git (for version control features)
- At least one AI provider installed
# Using npm (recommended)
npm install -g coda-cli
# Using yarn
yarn global add coda-cli
# Using pnpm
pnpm add -g coda-cli
# On macOS with Homebrew
brew tap coda/tap
brew install coda-cli# Run the interactive wizard
coda wizard
# Or quick setup
coda initThe wizard will:
- Detect installed AI providers
- Configure safety settings
- Set up cost limits
- Create your first preset
# Start a conversation with your default AI
coda
# Send a specific request
coda "Fix the error in my React component"
# Use a specific provider
coda --provider aider "Refactor this function"
# Check your setup
coda doctor# Morning routine
coda checkpoint create "morning-start"
coda costs show --yesterday
# Before big changes
coda checkpoint create "before-refactor"
coda "Refactor the authentication system"
coda security scan
coda test generate
# Oops, something broke!
coda checkpoint rollback# Safe learning environment
coda preset apply cautious
coda checkpoint create "learning-python"
# Ask questions freely
coda "Explain Python decorators with examples"
coda "Help me write a web scraper"
# Save important lessons
coda memory save "python-tips" "Use requests.get() for HTTP requests"# Set spending limits
coda costs set-limit --daily 10
coda costs set-limit --monthly 200
# Work efficiently with caching
coda offline enable
coda "Create a REST API endpoint" # Uses AI
coda "Create a REST API endpoint" # Uses cache!
# Track spending
coda costs show --this-month
coda costs export january-invoice.json| Command | Description |
|---|---|
coda |
Start interactive AI session |
coda wizard |
Run setup wizard |
coda doctor |
Check system health |
coda switch |
Switch AI providers |
| Command | Description |
|---|---|
coda checkpoint create <name> |
Create restore point |
coda checkpoint rollback |
Undo to last checkpoint |
coda checkpoint list |
Show all checkpoints |
coda security scan |
Scan for vulnerabilities |
coda diff preview |
Preview changes |
| Command | Description |
|---|---|
coda memory save <key> <value> |
Save information |
coda memory recall <key> |
Retrieve saved info |
coda memory list |
Show all memories |
coda docs index |
Index project docs |
coda docs search <query> |
Search documentation |
| Command | Description |
|---|---|
coda costs show |
View current costs |
coda costs set-limit --daily 20 |
Set daily limit |
coda costs export <file> |
Export cost report |
| Command | Description |
|---|---|
coda workflow create <name> |
Create workflow |
coda workflow run <name> |
Execute workflow |
coda preset apply <name> |
Apply configuration preset |
coda test generate |
Generate tests for code |
- Built-in defaults
- Global config:
~/.coda/config.yaml - Project config:
./.coda/config.yaml - Command line flags (highest priority)
# ~/.coda/config.yaml
provider: claude-code # Default AI provider
yolo: false # Auto-accept prompts
quiet: false # Suppress info messages
# Safety settings
security:
auto_scan: true # Scan after each change
block_on_critical: true # Stop on critical issues
# Cost controls
costs:
daily_limit: 10.00
monthly_limit: 200.00
warning_at: 80 # Warn at 80% of limit
# Workflow
checkpoint:
auto_create: true # Auto-checkpoint before changes
keep_last: 10 # Number to retain
# Memory
memory:
max_size_mb: 100
eviction_policy: lru # least-recently-usedCoda automatically scans for:
- Hardcoded passwords and API keys
- SQL injection vulnerabilities
- Cross-site scripting (XSS) risks
- Insecure cryptography
- Path traversal vulnerabilities
- Exposed environment variables
Configure security scanning:
security:
patterns_file: ~/.coda/security-patterns.yaml
custom_patterns:
- name: 'AWS Keys'
pattern: 'AKIA[0-9A-Z]{16}'
severity: critical# See available providers
coda switch
# Switch interactively
coda switch --interactive
# Switch to specific provider
coda switch aider
# Use provider for one command
coda --provider gemini "Optimize this algorithm"| Provider | Best For | Key Features |
|---|---|---|
| Claude Code | Complex reasoning | Deep understanding, multi-file edits |
| Aider | Git workflows | Auto-commits, git-aware |
| Gemini | Fast responses | Quick suggestions, image support |
| GitHub Copilot | Terminal commands | Command explanations |
| Cline.ai | Autonomous tasks | Multi-step execution |
"Coda command not found"
# Check Node.js installation
node --version
# Reinstall Coda
npm install -g coda-cli
# Add to PATH manually (if needed)
export PATH="$PATH:$(npm root -g)/bin""AI provider not found"
# Check what's available
coda doctor
# Install missing provider
# Example for Aider:
pip install aider-install"Spending limit reached"
# Check current usage
coda costs show --today
# Increase limit temporarily
coda costs set-limit --daily 20
# Use offline mode
coda offline enableCreate .coda/workflows/deploy.yaml:
name: 'Safe Deployment'
steps:
- checkpoint: 'pre-deploy'
- security_scan:
fail_on: ['critical', 'high']
- test:
coverage_threshold: 80
- command: 'npm run build'
- command: 'npm run deploy'
- notification: 'Deployment complete!'# Add to config.yaml
mcp_servers:
postgres:
command: 'npx'
args: ['@modelcontextprotocol/server-postgres']
env:
DATABASE_URL: 'postgresql://localhost/mydb'# View usage statistics
coda stats
# Monitor in real-time
coda monitor
# Export metrics
coda stats export --format json > metrics.jsonWe welcome contributions! See CONTRIBUTING.md for guidelines.
# Setup development environment
git clone https://github.com/gnanirahulnutakki/coda
cd coda
npm install
npm testThis project is licensed under the MIT License.
Built with inspiration from:
- Claude Code by Anthropic
- Aider by Paul Gauthier
- Continue.dev team
- The amazing AI coding community
Made with ❤️ to make AI coding safe and accessible for everyone