🌐
npm
npmjs.com › package › @openrouter › cli
openrouter/cli
SDK DevTools and utilities for OpenRouter development. Latest version: 1.0.0, last published: 4 days ago. Start using @openrouter/cli in your project by running `npm i @openrouter/cli`. There are no other projects in the npm registry using @openrouter/cli.
      » npm install @openrouter/cli
    
Published   Dec 20, 2025
Version   1.0.0
Author   openrouter
🌐
GitHub
github.com › oop7 › OrChat
GitHub - oop7/OrChat: A powerful, feature-rich command-line interface for interacting with AI models through OpenRouter.
A powerful CLI for chatting with AI models through OpenRouter with streaming responses, token tracking, auto-update checking, multi-line input, conversation management with AI-generated summaries, and extensive customization options.
Starred by 66 users
Forked by 5 users
Languages   Python
🌐
Reddit
reddit.com › r/python › project] orchat: a cli tool for chatting with ai models through openrouter
r/Python on Reddit: Project] OrChat: A CLI tool for chatting with AI models through OpenRouter
March 19, 2025 -

I've just released OrChat, a powerful CLI tool that lets you chat with any AI model available on OpenRouter directly from your terminal.

What My Project Does

OrChat is a terminal-based interface for interacting with various AI models through OpenRouter's API. It features:

  • 📊 Advanced token counter for both input and output - perfect for prompt engineering practice

  • 🎛️ Dynamic temperature adjustment to fine-tune model creativity on the fly

  • 🖼️ Multimodal support for sharing images and files with compatible models

  • 🧠 Smart thinking mode to see the AI's reasoning process

  • 🎨 Rich markdown rendering in the terminal (code blocks, tables, etc.)

  • 🔌 Plugin system for extending functionality

  • 💾 Multiple export formats (MD, HTML, JSON, TXT, PDF)

Here's what it looks like in action: OrChat screenshot

Target Audience

This tool is designed for:

  • Developers and prompt engineers who need precise token counting and model output testing

  • Users who prefer a lightweight, distraction-free terminal interface over web apps

  • Anyone who needs to test prompts across different AI models without switching interfaces

  • People who want a customizable interface that can be extended with plugins

  • Users looking for a fast, efficient way to interact with AI without the overhead of web browsers

Comparison

Unlike existing alternatives, OrChat:

  • Focuses specifically on the terminal experience with rich markdown rendering, unlike web-based interfaces

  • Provides real-time token counting for both input and output, which many interfaces lack

  • Offers dynamic temperature adjustment during conversations, a feature missing in most clients

  • Supports a plugin system that makes it more extensible than standard OpenAI clients

  • Combines multimodal capabilities with terminal efficiency, unlike most CLI tools that sacrifice features for simplicity

  • Offers multiple export formats in one interface, where other tools typically support only one or two formats

Getting Started

pip install orchat
orchat --setup

The setup wizard will guide you through connecting your OpenRouter API key and selecting your preferred model.

Practical Uses

  • Prompt engineering practice with precise token counting

  • Temperature experimentation to optimize model outputs

  • Quick prototyping and ideation

  • Code assistance with syntax highlighting

  • Document analysis by attaching files

  • Testing prompts across different models

  • Saving conversations in various formats

The plugin system makes it easy to extend functionality - I've already added a few helpful plugins and am working on more.

Check out the GitHub repo for full documentation and let me know what you think! I'm actively looking for feedback and feature suggestions.

GitHub: https://github.com/oop7/OrChat

🌐
Apify
apify.com › apify › openrouter › api › cli
OpenRouter API through CLI · Apify
June 4, 2025 - To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console. ... The Apify CLI is the official tool that allows you to use OpenRouter locally, providing convenience functions and automatic ...
🌐
OpenRouter
openrouter.ai › docs › quickstart
OpenRouter Quickstart Guide | Developer Documentation | OpenRouter | Documentation
Get started with OpenRouter's unified API for hundreds of AI models. Learn how to integrate using OpenAI SDK, direct API calls, or third-party frameworks.
🌐
PyPI
pypi.org › project › openrouter-cli
openrouter-cli · PyPI
An Ollama-like CLI tool for OpenRouter that provides simple command-line access to various AI models.
      » pip install openrouter-cli
    
Published   May 22, 2025
Version   0.1.4
🌐
npm
npmjs.com › package › @letuscode › openrouter-cli
@letuscode/openrouter-cli - npm
CLI tool for OpenRouter (OpenAI-compatible). Latest version: 0.3.4, last published: 3 months ago. Start using @letuscode/openrouter-cli in your project by running `npm i @letuscode/openrouter-cli`. There are no other projects in the npm registry using @letuscode/openrouter-cli.
      » npm install @letuscode/openrouter-cli
    
Published   Sep 24, 2025
Version   0.3.4
🌐
OpenRouter
openrouter.ai › cohere › command-a
Command A - API, Providers, Stats | OpenRouter
Command A is an open-weights 111B parameter model with a 256k context window focused on delivering great performance across agentic, multilingual, and coding use cases. Compared to other leading proprietary and open-weights models Command A ...
🌐
GitHub
github.com › rahulvrane › groq-code-cli-openrouter
GitHub - rahulvrane/groq-code-cli-openrouter: A highly customizable, lightweight, and open-source coding CLI powered by Groq AND OPENROUTER for instant iteration.
A highly customizable, lightweight, and open-source coding CLI powered by Groq AND OPENROUTER for instant iteration. - rahulvrane/groq-code-cli-openrouter
Author   rahulvrane
Find elsewhere
🌐
OpenRouter
openrouter.ai
OpenRouter
Better prices, better uptime, no subscriptions · Access all major models through a single, unified interface. OpenAI SDK works out of the box
🌐
GitHub
github.com › knoxai › openrouter-cli
GitHub - knoxai/openrouter-cli: OpenRouter CLI - A powerful terminal-based AI assistant for software development
# Start OpenRouter CLI or # Start in a specific directory or -c /path/to/project
Starred by 26 users
Forked by 3 users
Languages   Shell 99.0% | Go 1.0%
🌐
GitHub
github.com › blackopsinc › openrouter-cli
GitHub - blackopsinc/openrouter-cli: Openrouter CLI
A powerful command-line interface for sending prompts to OpenRouter's API with advanced features and configuration management. This CLI tool allows you to send prompts to various language models via OpenRouter's API.
Author   blackopsinc
🌐
Aider
aider.chat › docs › llms › openrouter.html
OpenRouter | aider
Aider can connect to models provided by OpenRouter: You’ll need an OpenRouter API key.
🌐
GitHub
github.com › GITLAGGUI › Openrouter-CLI › blob › master › TOOLS_GUIDE.md
Openrouter-CLI/TOOLS_GUIDE.md at master · GITLAGGUI/Openrouter-CLI
# Start interactive chat python -m openrouter_cli.main chat interactive # Analyze existing code /tools code_analyze path="src/main.py" detailed=true # Get AI code review /tools code_review path="src/main.py" focus="performance" # Modify code based on review /tools code_modify path="src/main.py" instruction="Optimize the main loop for better performance" # Search for related files /tools fs_search directory="src" extension=".py" content="main" # Fetch documentation /tools web_fetch url="https://docs.python.org/3/library/os.html" extract_text=true save_to="docs.txt" # Summarize documentation /tools ai_summarize file_path="docs.txt" length="medium" # Check system info /tools env_info
Author   GITLAGGUI
🌐
GitHub
github.com › bazoocaze › openrouter-cli
GitHub - bazoocaze/openrouter-cli: OpenRouter CLI
OpenRouter CLI provides a straightforward way to interact with various AI models through the OpenRouter API, giving you access to models from providers like Anthropic, Google, and others—all from your command line.
Author   bazoocaze
🌐
piwheels
piwheels.org › project › openrouter-cli
piwheels - openrouter-cli
The piwheels project page for openrouter-cli: Ollama-like CLI tool for openrouter
🌐
Cline
docs.cline.bot › provider-config › openrouter
OpenRouter - Cline
Learn how to use OpenRouter with Cline to access a wide variety of language models through a single API.
🌐
GitHub
github.com › roman-bogdziievych › openrouter-cli
GitHub - roman-bogdziievych/openrouter-cli: An open-source AI agent that brings the power of Gemini directly into your terminal.
An open-source AI agent that brings the power of Gemini directly into your terminal. - roman-bogdziievych/openrouter-cli
Author   roman-bogdziievych
🌐
GitHub
github.com › simonw › llm-openrouter
GitHub - simonw/llm-openrouter: LLM plugin for models hosted by OpenRouter
You will need an API key from OpenRouter.
Starred by 293 users
Forked by 35 users
Languages   Python