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

openrouter-cli-v2

v1.3.0

Published

The AI coding CLI powered by OpenRouter.

Readme

openrouter-cli

The AI coding CLI powered by OpenRouter.

openrouter-cli is a professional terminal coding agent for real codebases. It can chat about a project, build smart local context, stream OpenRouter responses, continue after tool calls, propose structured file edits, show diffs before writing, and protect untrusted workspaces with a project trust system.

Highlights

  • Interactive terminal chat with orc
  • Slash command autocomplete in interactive chat
  • File and folder mentions with @path autocomplete
  • Trust Project, Trust Folder, and Restricted workspace security
  • First-run setup UI with API key verification and live model selection
  • Single-shot questions with orc ask
  • Approved AI editing workflow with professional diffs and optional auto mode
  • Live OpenRouter model discovery with global cache and offline fallback
  • Plugin architecture with local plugin loading, lifecycle hooks, and slash commands
  • MCP server configuration, connection checks, and dynamic tool discovery
  • Local provider architecture for Ollama, LM Studio, llama.cpp, and OpenAI-compatible APIs
  • VS Code extension MVP powered by the orc backend
  • OS app-data storage for global state and project-local .openrouter-cli/ state
  • Safety protections for commands, files, secrets, credentials, plugins, and MCP
  • Git-aware commit message generation

Install

npm install -g openrouter-cli-v2@latest

Quickstart

orc
orc ask "explain this project"
orc ask "explain @src/index.ts"
orc edit "fix TypeScript errors"
orc models --free

On first run, orc starts a guided setup that stores the OpenRouter API key globally, verifies the key, downloads live models, creates .openrouter-cli/project-config.json, and asks whether to trust the current project. A project .env can still override the global key.

In interactive mode, type / for slash commands or @ to mention files and folders.

Commands

orc
orc setup
orc ask "explain this project"
orc edit "add jwt authentication"
orc edit "fix tests" --yes
orc explain
orc context
orc models --search claude
orc providers
orc provider setup
orc trust
orc trust list
orc plugins
orc plugin install ./my-plugin
orc mcp add filesystem npx @modelcontextprotocol/server-filesystem ./
orc mcp connect filesystem
orc voice
orc agents
orc workflow "build auth system"
orc dashboard
orc doctor
orc commit

Interactive Features

  • /help, /models, /context, /files, /trust, /doctor, /plugins, /mcp, /exit
  • @src/index.ts injects a file into AI context
  • @src/commands injects matching text files from a folder
  • orc edit "fix bugs" --yes enables auto edits and commands for trusted projects only
  • orc edit "fix bugs" --auto-edits
  • orc edit "run tests" --auto-cmds

Storage

Global state is stored in the OS app-data directory:

  • Windows: %APPDATA%\openrouter-cli
  • Linux: $XDG_CONFIG_HOME/openrouter-cli or ~/.config/openrouter-cli
  • macOS: ~/Library/Application Support/openrouter-cli

Project state stays under .openrouter-cli/.

Documentation

Start with the documentation hub:

Roadmap

  • [x] First-run setup UI
  • [x] Live OpenRouter model discovery
  • [x] Approved AI file editing workflow
  • [x] Plugin system MVP
  • [x] MCP support MVP
  • [x] Local providers architecture MVP
  • [x] Plugin marketplace registry MVP
  • [x] Voice mode architecture MVP
  • [x] Multi-agent workflows architecture MVP
  • [x] VS Code extension MVP
  • [x] Web dashboard shell MVP
  • [x] Team collaboration architecture planning
  • [x] Agent tool loop continuation after tool calls
  • [x] Auto accept edits and commands
  • [x] Slash command autocomplete
  • [x] File mention autocomplete
  • [x] Trust project/folder security
  • [x] OS app-data storage
  • [ ] Full plugin marketplace hosting
  • [ ] Full voice streaming implementation
  • [ ] Production web dashboard app
  • [ ] Team collaboration SaaS

Contributing

See CONTRIBUTING.md.

License

MIT