mellow-ai
v1.0.1
Published
Terminal based AI assistant
Maintainers
Readme
MELLOW CLI
███╗ ███╗███████╗██╗ ██╗ ██████╗ ██╗ ██╗
████╗ ████║██╔════╝██║ ██║ ██╔═══██╗██║ ██║
██╔████╔██║█████╗ ██║ ██║ ██║ ██║██║ █╗ ██║
██║╚██╔╝██║██╔══╝ ██║ ██║ ██║ ██║██║███╗██║
██║ ╚═╝ ██║███████╗███████╗███████╗╚██████╔╝╚███╔███╔╝
╚═╝ ╚═╝╚══════╝╚══════╝╚══════╝ ╚═════╝ ╚══╝╚══╝Crafted Intelligence
A calm, terminal-native AI assistant powered by OpenRouter, Ink, and TypeScript.
Philosophy
Mellow is about collaboration, not commands. A cool, capable assistant that lives in your terminal. No friction, no noise—just thoughtful responses and smooth workflows.
Quick Start
Install from npm
npm install -g mellow-ai
mellow-aiOn first run, you'll be prompted to enter your OpenRouter API key. Get one from openrouter.ai.
Development Setup
# Install deps
bun install
# Configure secrets
cp .env.example .env
# Add your OpenRouter API key to .env
# Run in dev mode (Node runtime)
bun run dev
# or run with Bun runtime
bun run dev:bunGrab an API key from openrouter.ai and set OPENROUTER_API_KEY. Optionally set OPENROUTER_MODEL to choose a default model.
What You Get
- Streaming chat — Responses flow in character-by-character with a live preview.
- Command palette — Type
/to reveal commands, autocomplete withTabor→. - Model selector — Browse OpenRouter models inline and swap instantly with
/model. - Search controls — Toggle web search with
Shift+Tabor fine-tune it in/settings. - Grayscale UI — A quiet interface with an ASCII banner, status line, and message markers.
Commands & Shortcuts
/model— Open the model selector (type to search,↑/↓to move,Enterto choose)./clear— Reset the conversation./settings— Adjust search engine and max results.Shift+Tab— Toggle web search without leaving the prompt.Esc— Clear the current input.Ctrl+C— Exit immediately.- Arrow keys — Navigate command suggestions, settings, and model lists.
Built With
- OpenRouter + OpenAI SDK — Unified access to hosted models.
- Ink — React for terminal UIs.
- React 19 — Component-driven interface.
- TypeScript — Type-safe codebase.
- Bun — Fast runtime and task runner.
Scripts
bun run dev # Development mode (tsx)
bun run dev:bun # Development mode (Bun runtime)
bun run build # Compile TypeScript
bun run start # Run compiled build with Node
bun run start:bun # Run compiled build with BunProject
src/
├── components/
│ ├── App.tsx # Main application shell
│ ├── Header.tsx # ASCII banner and tagline
│ ├── ChatMessage.tsx # Conversation rendering
│ ├── InputPrompt.tsx # Prompt input field
│ ├── ModelSelector.tsx # OpenRouter model browser
│ ├── CommandSuggestions.tsx # Slash-command helper
│ └── SettingsPanel.tsx # Inline search configuration
├── index.ts # Entry point & API key guard
├── types/settings.ts # Settings shape & defaults
└── utils/openrouter.ts # OpenRouter helpersLicense
MIT
Stay mellow.
