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

@tiendung-betapcode/openrouter-cli

v1.1.24

Published

A CLI for OpenRouter with Agentic capabilities - AI coding assistant

Readme

OpenRouter CLI

English | Tiếng Việt

English

A powerful AI coding assistant CLI powered by OpenRouter. Features agentic capabilities with file system access, command execution, and smart context management.

Installation

npm install -g @tiendung-betapcode/openrouter-cli

Setup & Usage

Option 1: Quick Start (Recommended)

  1. Run the login command:
    openrouter login
  2. Follow the instructions:
    • Go to the Dashboard URL shown.
    • Get your Access Code (8 characters).
    • Paste the code into the terminal.
  3. Start chatting!
    openrouter

Option 2: Manual API Key (Fallback)

If you cannot use the login server, create a .env file in your working directory:

OPENROUTER_API_KEY=sk-or-v1-your-api-key-here

Commands

| Command | Description | |---------|-------------| | /model | Switch AI model (Presets or Fetch from OpenRouter) | | /history | Save chat history to Documents/openrouter | | /clear | Clear chat history | | /exit | Exit CLI | | /help | Show help |


Tiếng Việt

Trợ lý lập trình AI mạnh mẽ sử dụng OpenRouter. Tích hợp khả năng Agent (tác nhân) với quyền truy cập hệ thống tệp, thực thi lệnh và quản lý ngữ cảnh thông minh.

Cài đặt

npm install -g @tiendung-betapcode/openrouter-cli

Thiết lập & Sử dụng

Cách 1: Khởi động nhanh (Khuyên dùng)

  1. Chạy lệnh đăng nhập:
    openrouter login
  2. Làm theo hướng dẫn:
    • Truy cập URL Dashboard hiển thị trên màn hình.
    • Lấy Mã Truy Cập (Access Code) (8 ký tự).
    • Dán mã vào terminal.
  3. Bắt đầu chat!
    openrouter

Cách 2: Nhập API Key thủ công (Dự phòng)

Nếu không dùng được server đăng nhập, hãy tạo file .env tại thư mục làm việc:

OPENROUTER_API_KEY=sk-or-v1-your-api-key-here

Các lệnh hỗ trợ

| Lệnh | Mô tả | |---------|-------------| | /model | Đổi model AI (Chọn có sẵn hoặc tải từ OpenRouter) | | /history | Lưu lịch sử chat vào Documents/openrouter | | /clear | Xóa bộ nhớ đệm đoạn chat | | /exit | Thoát CLI | | /help | Xem trợ giúp |

Architecture / Kiến trúc

┌─────────────────┐     ┌──────────────────┐     ┌───────────────┐
│  OpenRouter CLI │────>│  API Server      │────>│  Firebase     │
│  (Public/npm)   │     │  (Private/Vercel)│     │  (Keys/History)│
└─────────────────┘     └──────────────────┘     └───────────────┘

License

MIT © TIENDUNG