kimiai-cli
v1.0.0
Published
A beautiful CLI for Kimi AI with rich terminal interface
Maintainers
Readme
Kimi CLI 🤖

A beautiful command-line interface for Kimi AI with rich visuals and interactive features
✨ Features
- 🎨 Beautiful Terminal UI - Rich colors, gradients, and ASCII art
- 💬 Interactive Chat - Real-time conversations with Kimi AI
- ❓ Quick Questions - Ask single questions instantly
- 📚 Chat History - Save and manage conversation sessions
- ⚙️ Easy Configuration - Simple setup and customization
- 🎯 Multiple Models - Support for various Kimi AI models
- 🚀 Cross-Platform - Works on Windows, macOS, and Linux

🚀 Quick Start
Installation
# Install globally via npm
npm install -g kimiai-cli
# Or directly from GitHub
npm install -g git+https://github.com/MoAftaab/kimi-cli.gitSetup
- Get your API key from OpenRouter
- Configure the CLI:
kimi config set-key - Start using:
kimi ask "Hello, how are you?"
💬 Usage
Basic Commands
kimi chat # Interactive chat session
kimi ask "your question" # Single question
kimi config show # View configuration
kimi history list # View chat history
kimi models # List available models
kimi about # Developer informationAdvanced Usage
# Use specific model
kimi ask "Explain AI" --model moonshotai/moonshot-v1-32k
# Adjust creativity
kimi chat --temperature 1.5
# Limit response length
kimi ask "Brief explanation" --max-tokens 100🎯 Available Models
| Model | Context | Type | Best For |
|-------|---------|------|----------|
| moonshotai/kimi-k2:free | 8K | Free | Quick questions, testing |
| moonshotai/moonshot-v1-8k | 8K | Paid | Standard conversations |
| moonshotai/moonshot-v1-32k | 32K | Paid | Long documents, analysis |
| moonshotai/moonshot-v1-128k | 128K | Paid | Complex tasks, large files |
⚙️ Configuration
# API Key Management
kimi config set-key # Interactive setup
kimi config set-key sk-or-v1-your-key # Direct setup
# Settings
kimi config set defaultModel moonshotai/moonshot-v1-32k
kimi config set maxTokens 2000
kimi config set temperature 0.8
kimi config reset # Reset to defaults🛠️ Development
# Clone and setup
git clone https://github.com/MoAftaab/kimi-cli.git
cd kimi-cli
npm install
npm run build
# Development
npm run dev
npm link🤝 Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
📞 Support
📄 License
MIT License - see LICENSE file for details.
Made with ❤️ by MOHD AFTAAB
📧 [email protected] • 🐙 GitHub
