ai-cli-chat
v1.0.0
Published
AI-powered command-line chat tool using Google Gemini.
Readme
AI Chat CLI
AI-powered command-line chat tool using Google Gemini.
Installation
From npm (when published)
npm install -g ai-chat-cliLocal development
npm install
npm linkSetup
- Configure your API key
ai-chat configGet your API key from: https://aistudio.google.com/app/apikey
- Start chatting
ai-chat chatOr simply:
ai-chatCommands
ai-chat- Start chat (if configured)ai-chat config- Configure API keyai-chat chat- Start chat sessionai-chat --version- Show versionai-chat --help- Show help
Chat Commands
While in chat:
- Type your message and press Enter
exitorquit- End chat sessionclear- Clear conversation history
Features
- ✅ Secure API key storage in user home directory
- ✅ Conversation history (maintains context)
- ✅ Interactive chat interface
- ✅ Colored output for better readability
- ✅ Easy configuration
Example
$ ai-chat config
Enter your Gemini API key: your-api-key-here
✅ API key saved successfully!
$ ai-chat chat
=== AI Chat CLI Tool ===
You: Explain how AI works
AI: AI learns patterns from data to make predictions...
You: exit
👋 Goodbye!License
MIT
