Autonomous AI CLI agent with file operations, web search, and 33+ free AI models
npm install infnt-aiA powerful AI-powered CLI with autonomous file operations, web search, and multi-model support.
- 🤖 33+ Free AI Models: Switch between DeepSeek, Google Gemini, Meta Llama, Mistral, and more
- 🛠️ Autonomous Operations:
- Create, read, update, delete files and folders
- Web search using Apify API
- Write and modify code
- 💬 Persistent Chat: Conversation history maintained across model switches
- 🎯 Visual Feedback: Real-time progress indicators for all operations
- ⚡ Streaming Responses: See AI responses as they generate
``bash`
npm install -g infnt-ai
1. Get your OpenRouter API Key
2. (Optional) Get Apify API Token for web search
3. Configure:
`bash`
infnt config --api-key YOUR_OPENROUTER_KEY
`bash`
infnt chat
- /model - Switch AI models (33+ free models available)/clear
- - Clear conversation history/help
- - Show help/exit
- - Exit chat
The AI can execute operations directly:
`bashFile operations
"create a hello.js file with hello world function"
"delete fix_summary.md"
"read package.json file"
"list files in directory"
$3
`bash
infnt ask "How do I use async/await in JavaScript?"
`$3
`bash
infnt models # Show default models
infnt models --all # Fetch all free models from API
`Configuration
Set default model:
`bash
infnt config --default-model google/gemini-2.0-flash-exp:free
`Add Apify token for web search:
`bash
Add to .env file
APIFY_API_TOKEN=your_token_here
``- DeepSeek R1 (Reasoning)
- Google Gemini 2.0 Flash (Fast, 1M context)
- Meta Llama 3.3 70B (General purpose)
- Mistral Devstral (Coding specialist)
- OpenAI GPT-OSS 120B
- And 28+ more free models!
MIT