recoder-code
v2.5.2
Published
Recoder Code - AI-powered coding assistant CLI
Readme
Recoder Code CLI
AI-powered coding assistant that generates production-ready code
Installation
Quick Install (Recommended)
# One-line installer (macOS/Linux)
curl -fsSL https://recoder.xyz/api/install | bashPackage Managers
npm (All platforms)
npm install -g recoder-codeHomebrew (macOS/Linux)
brew install https://recoder.xyz/api/brew/recoder-code.rbpnpm
pnpm add -g recoder-codeyarn
yarn global add recoder-codeManual Installation
# Clone repository
git clone https://github.com/recoderxyz/recoder-code.git
cd recoder-code/cli
# Install dependencies and build
npm install
npm run build
# Link globally
npm linkDocker
docker run -it --rm -v $(pwd):/workspace ghcr.io/recoderxyz/recoder-code:latestRequirements
- Node.js 20+
- npm, pnpm, or yarn
Quick Start
# Start interactive mode
recoder
# Initialize project configuration
recoder init
# Create a project plan
recoder plan create "My App" -t web-app
# Get help
recoder --helpCommands
Core Commands
| Command | Description |
|---------|-------------|
| recoder | Start interactive AI chat |
| recoder init | Initialize .recoder folder |
| recoder plan | Project planning module |
Planning Commands
recoder plan create <name> # Create new plan
recoder plan create <name> -t web-app # Use template
recoder plan create <name> -i # Interactive mode
recoder plan list # List all plans
recoder plan show <id> # View plan
recoder plan scaffold <id> # Generate folder structureTemplates: web-app, api, cli
MCP Server Management
recoder mcp list # List configured servers
recoder mcp add <name> <cmd> # Add server
recoder mcp remove <name> # Remove server
recoder mcp detect # Auto-detect from other tools
recoder mcp detect --add # Detect and add serversWeb IDE Integration
recoder web launch # Open recoder.xyz
recoder web launch -n # Create new project
recoder web list # List your projects
recoder web open <id> # Open project in browser
recoder web sync <id> # Sync local ↔ web
recoder web push <id> # Push local to web
recoder web download <id> # Download from webAuthentication
recoder auth login # Login to recoder.xyz
recoder auth logout # Logout
recoder auth status # Check auth status
recoder auth whoami # Show current userAI Commands
recoder ai chat # Start AI chat
recoder ai models # List available models
recoder ai usage # Show usage statsConfiguration
.recoder Folder
Initialize with recoder init:
.recoder/
├── config.json # Project configuration
├── plans/ # Project plans
├── context/ # Context files (rules, instructions)
└── cache/ # Temporary cacheSettings File
Create settings.json in .recoder/ or ~/.recoder/:
{
"defaultModel": "claude-3-sonnet",
"theme": "dark",
"mcpServers": {
"my-server": {
"command": "node",
"args": ["server.js"]
}
}
}Project Planning
Create comprehensive AI-executable plans:
# Create plan with template
recoder plan create "My SaaS" -t web-app -d "A SaaS with auth and billing"
# Generated files:
# .recoder/plans/plan-xxx.json - Full plan data
# .recoder/plans/plan-xxx.md - Human-readable
# .recoder/plans/plan-xxx.ai.md - AI-executable instructionsPlans include:
- Technical architecture with diagrams
- Technology stack with versions
- Folder/file structure
- Implementation phases with tasks
- API design and database schema
- Dependencies and environment variables
- Step-by-step AI execution instructions
Environment Variables
# API Keys (optional - for direct API access)
ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-...
GROQ_API_KEY=gsk_...
# Configuration
RECODER_MODEL=claude-3-sonnet
RECODER_THEME=darkExamples
Interactive Development
$ recoder
> Build a REST API with Express and PostgreSQL
🤖 I'll create a production-ready REST API...Project Planning
$ recoder plan create "E-commerce API" -t api
✅ Created plan: E-commerce API
Files: .recoder/plans/plan-xxx.md
$ recoder plan scaffold plan-xxx
🏗️ Created 12 directories and filesMCP Server Detection
$ recoder mcp detect
🔍 Found 3 MCP servers:
📦 claude-server (Claude Desktop)
📦 cursor-mcp (Cursor)
📦 custom-tools (Project)
💡 Use --add to add all serversTroubleshooting
Command not found
# Ensure npm global bin is in PATH
export PATH="$PATH:$(npm config get prefix)/bin"
# Or reinstall
npm install -g recoder-codeNode.js version
# Check version (requires 20+)
node --version
# Install with fnm
curl -fsSL https://fnm.vercel.app/install | bash
fnm install 20
fnm use 20Permission errors
# Fix npm permissions
sudo chown -R $(whoami) ~/.npm
npm install -g recoder-codeLinks
- Website: https://recoder.xyz
- Documentation: https://recoder.xyz/docs
- GitHub: https://github.com/recoderxyz/recoder-code
- npm: https://www.npmjs.com/package/recoder-code
License
MIT © Recoder Team
