npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, πŸ‘‹, I’m Ryan HefnerΒ  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you πŸ™

Β© 2025 – Pkg Stats / Ryan Hefner

recoder-code

v2.4.5

Published

πŸš€ Recoder Code - AI-powered CLI for developers. Chat with 40+ models (Claude, GPT-4, DeepSeek, Gemini, Qwen3) with tool calling support. Build projects, automate workflows. Free agentic models included! Features interactive mode, file operations, and opt

Readme

πŸš€ Recoder-Code

Complete AI-powered development platform - Chat with 40+ AI models, build projects, manage files, and automate workflows - all from your terminal

npm version License: Apache-2.0 Node.js

✨ Features

  • πŸ€– 40+ AI Models - GPT-4, Claude, Gemini, DeepSeek, Qwen, and more via OpenRouter
  • πŸ› οΈ Tool Calling & Agentic Workflows - Advanced function calling with specialized AI agents
  • 🎯 Specialized Agents - Create custom AI agents for specific tasks (e.g., @backend-expert, @code-reviewer)
  • πŸ’° Cost Optimization - Save 50-90% with automatic prompt caching & context compression
  • πŸ”Œ 17 Pre-configured MCP Servers - Git, GitHub, Playwright, Filesystem work out of the box
  • πŸ“ Smart File Operations - Create, edit, search files with AI assistance
  • 🎨 Image Generation - DALL-E, Gemini, and more image models integrated
  • πŸŽ™οΈ Audio & PDF Support - Text-to-speech and PDF analysis
  • 🌐 Web Integration - Fetch and analyze web content directly
  • ⚑ Free Models Available - Multiple high-quality models with $0 cost
  • πŸ”„ Interactive Chat UI - Beautiful terminal interface with autocomplete
  • πŸ”’ Sandbox Mode - Optional Docker/macOS isolation for safe execution
  • πŸ“Š Usage Analytics - Track costs, tokens, and model performance
  • 🌐 Multi-Platform - Windows, macOS, and Linux support

πŸš€ Quick Start

Installation

npm install -g recoder-code

Quick Setup (First-Time Users)

On first run, Recoder Code will automatically start an interactive setup wizard:

recoder-code

The wizard will guide you through:

  • API Key Setup: Get a free key from OpenRouter (30 seconds)
  • Model Selection: Choose from 30+ free and premium AI models
  • Optional Settings: Enable sandbox mode, IDE integration, etc.

That's it! You're ready to start coding with AI.

Re-run setup anytime:

recoder-code
> /setup

Or from command line:

recoder-code --setup

Usage

Interactive Mode (recommended):

recoder-code

One-shot Commands:

# Simple query
recoder-code "create a hello world in python"

# Build a project
recoder-code "build a REST API with Express.js"

# Use specific model
recoder-code --model anthropic/claude-3.5-sonnet "analyze this codebase"

πŸ“š Examples

Create a Web App

recoder-code "create a todo app with React and Tailwind CSS"

Build with Custom Agents

# Create a specialized agent
recoder-code
> /agents create backend-expert

# Use it in conversation
> @backend-expert design a REST API for user authentication

Generate Images

recoder-code
> /image a beautiful sunset over mountains --model dall-e-3 --quality hd

Analyze Code

recoder-code "review my authentication system and suggest improvements"

Debug Issues

recoder-code "why is my async function not working in app.js?"

Work with PDFs

recoder-code
> /pdf https://example.com/research-paper.pdf
> Summarize the key findings

🎯 Key Commands

recoder-code                    # Start interactive chat
recoder-code --setup            # First-time configuration
recoder-code --help             # Show all options
recoder-code --list-models      # List available AI models
recoder-code --stats            # View usage statistics

# πŸ†• OpenRouter Model Explorer
recoder-code --openrouter-explore                    # Explore all models with details
recoder-code --openrouter-tools                      # Find tool-capable models
recoder-code --openrouter-endpoints "model/name"     # View provider endpoints
recoder-code --openrouter-feature tools              # Filter by feature

πŸ”Œ MCP Server Integration

Recoder Code includes 17 pre-configured MCP servers that enhance AI capabilities:

Essential Servers (Work Out of the Box)

  • Git MCP - Accurate git operations, eliminates hallucination
  • GitHub MCP - Manage repos, issues, PRs without leaving your environment
  • Filesystem MCP - Safe file operations with permission control
  • Fetch MCP - HTTP requests and web content access
  • DuckDuckGo MCP - Free web search, no API key required
  • GitMCP Docs - Access documentation from any GitHub repository

Additional Capabilities

  • Playwright & Puppeteer - Browser automation and testing
  • PostgreSQL & SQLite - Database operations
  • Brave Search - Privacy-focused web search (API key needed)
  • Google Drive & Slack - External integrations
  • Memory Bank & Knowledge Graph - Context retention
  • Sequential Thinking - Structured problem-solving

View MCP Servers

# In interactive mode
recoder-code
> /mcp list              # Show all configured servers
> /mcp desc              # Show server descriptions  
> /mcp add <name> <cmd>  # Add custom MCP server
> /tools                 # View available tools

Learn more: See MCP Server Documentation for detailed setup and configuration.

Quick Reference: See DEFAULT_MCP_SERVERS.md for complete server list and examples.

Interactive Mode Commands

Once in interactive mode (recoder-code), use these slash commands:

🎯 Core Commands

  • /help - Show all available commands
  • /quit or /exit - Exit the application (or Ctrl+C)
  • /clear - Clear conversation history
  • /copy - Copy last AI response to clipboard

πŸ€– Model Management

  • /model - Switch AI models interactively
  • /model <name> - Switch to specific model
  • /browse-models - Browse and compare all available models
  • /compare-models - Compare two models side by side
  • /recent-models - View recently used models
  • /model-recommend - Get AI model recommendations for your task

πŸ”§ Settings & Configuration

  • /setup - Run setup wizard (API keys, preferences)
  • /setup-api - Configure API keys only
  • /settings - View/edit all settings
  • /approval-mode - Change approval mode (plan/default/auto-edit/yolo)
  • /theme - Change color theme
  • /vim - Toggle Vim keybindings

πŸ“ File Operations

  • /files - List tracked files in context
  • /tree - Show directory tree
  • /find <pattern> - Find files matching pattern
  • /search <query> - Search in files
  • /editor <file> - Open file in external editor
  • /ide - Open project in IDE

🧠 Memory & Context

  • /memory - View conversation memory
  • /summary - Get conversation summary
  • /compress - Compress context to save tokens

πŸ’¬ Chat Management

  • /chat save <name> - Save conversation checkpoint
  • /chat restore <name> - Restore saved conversation
  • /chat list - List saved conversations

🀝 Collaboration (Premium)

  • /agents - Manage subagents
  • /agents create <name> - Create specialized AI agent
  • /agents manage - View/edit/delete agents
  • @agent-name - Use an agent in conversation (e.g., @backend-expert help me)

🎨 Media Generation

  • /image <prompt> - Generate images with DALL-E or other models
  • /image models - List available image generation models
  • /audio <text> - Text-to-speech conversion
  • /pdf <url> - Extract and analyze PDF content
  • /web <url> - Fetch and analyze web content

πŸ”Œ MCP & Tools

  • /mcp or /mcp list - List configured MCP servers
  • /mcp desc - Show server descriptions
  • /mcp add <name> <cmd> - Add custom MCP server
  • /tools - View available tools

πŸ’° OpenRouter Features

  • /openrouter - OpenRouter dashboard
  • /openrouter models - Browse all OpenRouter models
  • /openrouter free - List free models
  • /openrouter cache - Check prompt caching status
  • /openrouter activity - View usage activity
  • /openrouter credits - Check credit balance
  • /openrouter estimate - Estimate costs

πŸ“Š Analytics

  • /stats - View usage statistics
  • /about - About Recoder Code
  • /docs - Open documentation
  • /bug - Report a bug

πŸ› οΈ Advanced

  • /terminal-setup - Configure terminal integration
  • /init - Initialize project configuration
  • /extensions - Manage extensions
  • /privacy - Privacy settings
  • /byok - Bring your own key settings

πŸ’‘ Tips:

  • Type / to see autocomplete suggestions
  • Use @agent-name to invoke custom agents (not /agent-name)
  • Press Tab to autocomplete commands and file paths
  • Use Ctrl+L to clear screen without losing history

πŸ’° Cost Optimization Commands

Save 50-90% on API costs with built-in optimizations:

# In interactive mode
recoder-code
> /openrouter cache      # Check caching status (90% savings on Claude)
> /openrouter transforms # View compression status
> /openrouter estimate anthropic/claude-3.5-sonnet 1000 500  # Estimate costs
> /openrouter activity   # Monitor usage
> /openrouter credits    # Check balance
> /openrouter free       # Find free models

πŸ“š Full Guide: Cost Optimization Quick Start

Features:

  • βœ… Automatic prompt caching (90% discount on Claude)
  • βœ… Smart context compression (no more errors)
  • βœ… Cost estimation before sending
  • βœ… Real-time usage tracking
  • βœ… Free models for development

πŸ” OpenRouter Model Explorer (New!)

Recoder Code now includes powerful tools to explore and compare OpenRouter models:

Explore All Models

# See all available models with detailed information
recoder-code --openrouter-explore

# Filter by category (programming, chat, etc.)
recoder-code --openrouter-explore --openrouter-category programming

# Filter by features
recoder-code --openrouter-feature tools      # Models with tool calling
recoder-code --openrouter-feature vision     # Models with image understanding
recoder-code --openrouter-feature streaming  # Models with streaming support

View Provider Endpoints

Check pricing, availability, and uptime for any model:

# See all providers offering Claude
recoder-code --openrouter-endpoints "anthropic/claude-3.5-sonnet"

# Compare DeepSeek providers
recoder-code --openrouter-endpoints "deepseek/deepseek-chat-v3.1"

Endpoint information includes:

  • Provider names and online status
  • Real-time uptime statistics
  • Pricing per million tokens (input/output)
  • Context length and token limits
  • Quantization details
  • Supported parameters

Find Tool-Capable Models

List all models supporting tool/function calling for agentic workflows:

recoder-code --openrouter-tools

Programmatic Access

import { getOpenRouterClient } from 'recoder-code-core';

const client = getOpenRouterClient();

// List all models
const models = await client.listModels();

// Get tool-capable models
const toolModels = await client.getModelsWithFeature('tools');

// View model endpoints
const endpoints = await client.listModelEndpoints('anthropic/claude-3.5-sonnet');

Learn more: See OPENROUTER_FEATURES.md for complete documentation and examples.

πŸ”§ Configuration

First-Time Setup

When you run recoder-code for the first time, you'll be automatically guided through an interactive setup wizard:

  1. API Key Configuration: Get a free key from OpenRouter (takes 30 seconds)

    • Choose from OpenRouter, OpenAI, or custom provider
    • Enter your API key (stored securely in ~/.recoder-code/.env)
    • Select your default AI model
  2. Model Selection: Choose from 30+ models including:

    • Free models (DeepSeek, Qwen, Mistral, etc.)
    • Premium models (GPT-4, Claude, Gemini)
  3. Optional Features: Configure sandbox mode, IDE integration, and more

Your configuration is stored securely and never published with your code.

OPENROUTER_API_KEY=sk-or-v1-...

Model Selection

Recoder Code supports 40+ AI models through OpenRouter. Switch models anytime:

# In interactive mode
> /model                              # Interactive model selector
> /browse-models                      # Browse all models with details
> /compare-models                     # Compare two models
> /model anthropic/claude-3.5-sonnet  # Switch directly

# Command line
recoder-code --model anthropic/claude-3.5-sonnet "your prompt"
recoder-code --list-models            # List all available models

Popular Free Models with Tool Calling:

  • deepseek/deepseek-chat-v3.1:free - Fast, excellent for coding (128K context)
  • qwen/qwen3-coder-480b-a35b:free - 480B MoE optimized for agentic coding (262K context)
  • qwen/qwen3-235b-a22b:free - 235B MoE with thinking mode (131K context)
  • z-ai/glm-4.5-air:free - Lightweight MoE for agents with tool use (131K context)
  • deepseek/deepseek-v3-0324:free - 685B MoE for complex tasks (164K context)
  • google/gemini-2.0-flash-exp:free - Fast multimodal with function calling (1M+ context)
  • alibaba/tongyi-deepresearch-30b-a3b:free - Optimized for research & multi-step reasoning (131K context)

Premium Models:

  • anthropic/claude-3.5-sonnet - Best for complex reasoning (200K context)
  • openai/gpt-4o - Great all-rounder with vision (128K context)
  • openai/gpt-4-turbo - Advanced reasoning and coding (128K context)

Sandbox Mode (Optional Security Feature)

Recoder Code includes optional sandbox isolation for running AI-generated code safely:

# Enable Docker sandbox (recommended)
export RECODER_SANDBOX=docker
recoder-code

# Or use macOS Seatbelt (macOS only, lightweight)
export RECODER_SANDBOX=sandbox-exec
recoder-code

# Make it permanent (add to ~/.bashrc or ~/.zshrc)
echo 'export RECODER_SANDBOX=docker' >> ~/.bashrc

Benefits:

  • πŸ”’ Isolates code execution from your system
  • βœ… Prevents accidental system changes
  • πŸ§ͺ Creates reproducible environments
  • πŸ›‘οΈ Adds security for untrusted code

When sandbox is enabled, you'll see πŸ”’ docker or πŸ”’ macOS Seatbelt in the footer instead of "πŸ’» Interactive Mode".

Setup Requirements:

  • Docker: Install Docker Desktop (all platforms)
  • macOS Seatbelt: Built-in on macOS, no installation needed

See SANDBOX_SETUP_GUIDE.md for detailed setup instructions.

Advanced Options

# Use faster model
recoder-code --fast "quick question"

# Use cheapest model
recoder-code --cheap "simple task"

# Enable streaming
recoder-code --stream "long response"

# Debug mode
RECODER_DEBUG=true recoder-code "test query"

🌟 Why Recoder-Code?

  • βœ… No Configuration Hell - Works immediately after 30-second setup
  • βœ… 40+ AI Models - Free and premium models, switch instantly
  • βœ… Specialized Agents - Create custom AI experts for your workflow
  • βœ… Tool Calling & MCP - Advanced agentic workflows with 17+ integrations
  • βœ… Rich Media Support - Images, PDFs, audio, web content
  • βœ… Smart File Operations - AI-powered file creation and editing
  • βœ… Cost Optimized - Save 50-90% with automatic caching & compression
  • βœ… Beautiful Terminal UI - Intuitive interface with 40+ commands
  • βœ… Sandbox Mode - Optional secure code execution
  • βœ… Production Ready - Used in real development workflows daily

πŸ“– Documentation

πŸ› Troubleshooting

"Command not found"

npm install -g recoder-code

"API Key Required"

recoder-code --setup

"Module not found"

npm install -g recoder-code --force

πŸ’‘ Pro Tips

  1. Use Free Models First - DeepSeek, Qwen, and Gemini are free and powerful
  2. Create Specialized Agents - Use /agents create to make expert assistants
  3. Image Generation - Try /image your prompt with DALL-E or Gemini
  4. Browse Models - Use /browse-models to discover new models
  5. Cost Tracking - Check /openrouter activity to monitor spending
  6. Save Conversations - Use /chat save <name> to checkpoint progress
  7. File Operations - Use /files, /tree, /find for project navigation
  8. Keyboard Shortcuts - Ctrl+L clear screen, Tab autocomplete, Ctrl+C cancel
  9. Debug Mode - Set RECODER_DEBUG=true for detailed logs
  10. Use @mentions - Invoke agents with @agent-name (not /agent-name)

🀝 Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

# Clone the repo
git clone https://github.com/caelum0x/recoder-code.git

# Install dependencies
npm install

# Run locally
node cli/run.js "test query"

πŸ“œ License

Apache-2.0 Β© Recoder Code Team

πŸ”— Links

⭐ Star Us!

If you find Recoder-Code useful, please star the repo on GitHub! It helps others discover the project.


Made with ❀️ by developers, for developers