replit-agent
v1.1.0
Published
A fancy TUI that connects to OpenRouter AI for interactive chat
Downloads
17
Maintainers
Readme
Replit Agent
A fancy Terminal User Interface (TUI) that connects to OpenRouter AI for interactive chat sessions.
Features
- 🎨 Beautiful ASCII art banner on startup
- 🔄 Animated loading sequences
- 🤖 Chat with AI through OpenRouter API
- 🛠️ Environment configuration support
- 🎯 Global CLI installation
Installation
Install globally via npm:
npm install -g replit-agentSetup
Get an API key from OpenRouter
Create a
.envfile in one of these locations:- Current directory:
./.env - Home directory:
~/.replit-agent.env - Home directory:
~/.env
- Current directory:
Add your API key to the
.envfile:OPENROUTER_API_KEY=your_openrouter_api_key_here
Usage
Run the command from anywhere:
replit-agentThe application will:
- Display a fancy welcome banner
- Load your environment configuration
- Test connection to OpenRouter API
- Launch interactive chat mode (if connected successfully)
Chat Commands
- Type any message to chat with the AI
- Type
exitto quit the application - Use
Ctrl+Cto force quit at any time
Requirements
- Node.js >= 14.0.0
- Valid OpenRouter API key
License
MIT
