ai-console
v2.1.0
Published
Console and Terminal Command AI Assistant
Maintainers
Readme
AI Console
Console and Terminal Command AI Assistant | A command-line tool designed for developers. Get terminal command help, debugging suggestions and technical support.
Certainly: General Q&A support for non-technical questions
Features
- Terminal Command Expert: AI assistant optimized for command-line operations
- Automatic platform detection: Works seamlessly across Windows, Linux and macOS
- Supports major AI service providers (OpenAI, OpenRouter, DeepSeek, Local Ollama)
- Customizable API endpoints
- Real-time streaming response
- Multi-language support (English, Chinese)
Installation
# Install globally
npm install -g ai-consoleUsage
Configuration
Before using the tool, you need to configure it with your AI provider details:
ai configThis will prompt you to:
- Choose an AI provider (OpenRouter, OpenAI, DeepSeek, Local Ollama, or custom)
- Enter your API key (if required)
- Specify the model name to use
Asking Questions
Once configured, you can ask questions directly:
ai How to find all files modified in the last 24 hours?The AI will respond with streaming text directly in your terminal.
Supported AI Providers
- OpenRouter (
https://openrouter.ai/api) - OpenAI (
https://api.openai.com) - DeepSeek (
https://api.deepseek.com) - Local Ollama (
http://localhost:11434) - Custom OpenAI-compatible API (any compatible endpoint)
Examples
# Configure the tool
ai config
# Get terminal command help
ai How to find all files modified in the last 24 hours?
# Debug command issues
ai Why is my git push command failing?
# Learn new commands
ai How to batch rename files in Linux?License
MIT © Wuyu
