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 🙏

© 2026 – Pkg Stats / Ryan Hefner

recoder-code-cli

v2.4.4

Published

Recoder Code - AI-powered coding assistant CLI

Downloads

106

Readme

🤖 Recoder Code CLI

AI-Powered Coding Assistant for Your Terminal

Recoder Code CLI is an intelligent coding assistant that helps you write, debug, and understand code directly from your terminal. Powered by advanced AI models, it provides contextual assistance while you code.

Version License

✨ Features

  • 🎯 Interactive AI Assistant - Natural language conversations about your code
  • 📁 File Context Awareness - Understands your project structure and files
  • 🔄 Multi-Turn Conversations - Maintains context across multiple interactions
  • 💻 Multiple AI Providers - Supports OpenAI, Anthropic, Google GenAI, and more
  • 🎨 Syntax Highlighting - Beautiful code formatting in terminal
  • 🔧 IDE Integration - Works seamlessly with VS Code extension
  • 🚀 Fast & Efficient - Optimized for quick responses
  • 🔒 Privacy Focused - Your code stays on your machine

📦 Installation

Global Installation (Recommended)

npm install -g recoder-code-cli

Local Installation

npm install recoder-code-cli

From Source

git clone https://github.com/caelum0x/recoder-code.git
cd recoder-code/packages/cli
npm install
npm run build
npm link

🚀 Quick Start

1. Run Recoder Code

recoder-code

Or use the short alias:

recoder

2. Start Asking Questions

You: How do I read a file in Node.js?

Recoder: Here's how to read a file in Node.js...

3. Get Help with Your Code

You: Can you review the code in main.js?

Recoder: I'll analyze main.js for you...

🎯 Usage Examples

Basic Conversation

$ recoder-code

🤖 Recoder Code - AI Coding Assistant
Type your question or 'exit' to quit

You: Write a function to calculate fibonacci numbers

Recoder: Here's an efficient fibonacci function...
[Code example provided]

You: Can you optimize it?

Recoder: Sure! Here's an optimized version using memoization...

Working with Files

You: Read the package.json file and explain the dependencies

Recoder: I'll analyze package.json...
[Detailed explanation of dependencies]

You: How can I update outdated packages?

Recoder: Here are the steps...

Code Review

You: Review the code in src/index.ts for potential issues

Recoder: I'll review src/index.ts...
[Code review with suggestions]

Debugging Help

You: I'm getting an error: "Cannot find module 'express'"

Recoder: This error means...
[Troubleshooting steps provided]

⚙️ Configuration

Environment Variables

Create a .env file or set environment variables:

# AI Provider API Keys (at least one required)
OPENAI_API_KEY=your_openai_key
ANTHROPIC_API_KEY=your_anthropic_key
GOOGLE_API_KEY=your_google_key

# Model Selection (optional)
RECODER_MODEL=gpt-4  # or claude-3-opus, gemini-pro, etc.

# Custom API Endpoints (optional)
RECODER_API_URL=https://custom-endpoint.com

# Logging
RECODER_LOG_LEVEL=info  # debug, info, warn, error

Configuration File

Create ~/.recoder/config.json:

{
  "model": "gpt-4",
  "maxTokens": 4000,
  "temperature": 0.7,
  "provider": "openai",
  "logLevel": "info"
}

🎨 Commands

Interactive Mode

recoder-code

Start interactive conversation mode.

Direct Query

recoder-code "How do I sort an array in JavaScript?"

Get a direct answer without entering interactive mode.

File Analysis

recoder-code analyze src/**/*.ts

Analyze TypeScript files in the src directory.

Debug Mode

recoder-code --debug

Run with detailed debug logging.

Help

recoder-code --help

Show all available commands and options.

🔧 Advanced Features

Multi-Model Support

Switch between different AI models:

# Use GPT-4
export RECODER_MODEL=gpt-4

# Use Claude
export RECODER_MODEL=claude-3-opus

# Use Gemini
export RECODER_MODEL=gemini-pro

Context Management

Recoder Code automatically tracks:

  • Open files in your editor
  • Recent conversations
  • Project structure
  • Git status

IDE Integration

Works with the VSCode extension for enhanced features:

  • Inline code suggestions
  • Diff view for changes
  • File context synchronization

📚 API Keys

You'll need at least one AI provider API key:

OpenAI

Get your key: https://platform.openai.com/api-keys

export OPENAI_API_KEY=sk-...

Anthropic (Claude)

Get your key: https://console.anthropic.com/

export ANTHROPIC_API_KEY=sk-ant-...

Google (Gemini)

Get your key: https://makersuite.google.com/app/apikey

export GOOGLE_API_KEY=AIza...

🐛 Troubleshooting

"No API key found"

Make sure you've set at least one API key:

export OPENAI_API_KEY=your_key_here

"Command not found: recoder-code"

If installed globally, make sure npm global bin is in your PATH:

npm config get prefix
export PATH=$(npm config get prefix)/bin:$PATH

"Module not found" errors

Reinstall dependencies:

cd /path/to/recoder-code-cli
npm install
npm run build

Slow Responses

Try a faster model or reduce max_tokens:

export RECODER_MODEL=gpt-3.5-turbo

Debug Logs

Enable debug mode:

recoder-code --debug

Logs are saved to ~/.recoder/logs/

🔒 Privacy & Security

  • Your code never leaves your machine unless sent to AI provider
  • API keys are stored locally and never transmitted except to respective AI services
  • No telemetry or usage tracking
  • Open source - audit the code yourself

📊 System Requirements

  • Node.js: >= 18.0.0
  • npm: >= 9.0.0
  • OS: macOS, Linux, Windows
  • Memory: 512MB+ recommended
  • Disk: 100MB for installation

🤝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

📄 License

MIT License - see LICENSE for details

🔗 Links

  • GitHub: https://github.com/caelum0x/recoder-code
  • Website: https://recoder.xyz
  • Issues: https://github.com/caelum0x/recoder-code/issues
  • VSCode Extension: Recoder Code Companion

📞 Support

  • Documentation: https://recoder.xyz/docs
  • Discord: https://discord.gg/recoder (if available)
  • Email: [email protected]
  • Issues: https://github.com/caelum0x/recoder-code/issues

🎓 Examples

Example 1: Quick Code Generation

$ recoder "Create a REST API endpoint for user login"

Example 2: Code Review

$ recoder "Review src/auth.ts for security issues"

Example 3: Debugging

$ recoder "Why is my React component not re-rendering?"

Example 4: Learning

$ recoder "Explain async/await in JavaScript"

🗺️ Roadmap

  • [ ] Plugin system for custom tools
  • [ ] Code refactoring suggestions
  • [ ] Automated testing generation
  • [ ] Multi-language support
  • [ ] Team collaboration features
  • [ ] Custom model fine-tuning

⭐ Show Your Support

If you find Recoder Code helpful, please give it a star on GitHub!


Built with ❤️ by the Recoder Code Team

Making coding with AI accessible to everyone