4 stable releases
new 1.1.6 | Jan 20, 2025 |
---|---|
1.1.4 | Jan 19, 2025 |
#355 in Development tools
85 downloads per month
375KB
3K
SLoC
The easiest way to bring powerful AI capabilities to your local machine. Built with Rust for maximum performance and reliability, codai lets you harness the power of various AI models directly from your terminal - no complex setup required.
🌟 Key Features
-
🚀 Powerful AI Integration
- Multiple AI providers support (OpenAI, Anthropic, Google, Groq, Ollama)
- Smart context handling and token optimization
- Real-time cost monitoring and analytics
-
💻 Developer-Centric Tools
- Intelligent code generation with context awareness
- Automated code review and analysis
- Direct code execution capabilities
- Multi-language support
- Built-in cost tracking for each AI provider
-
⚡ Performance & Reliability
- Built with Rust for maximum speed and stability
- Efficient memory management
- Optimized token usage
- Automatic context summarization
-
🔧 Easy Setup & Use
- One-command installation
- Zero configuration to start
- Intuitive CLI interface
- Cross-platform support
Why codai?
-
Simple to Install: One command to install, zero configuration needed to start
-
Multiple AI Providers: Ready-to-use integrations with leading AI models
- OpenAI (GPT-4, GPT-3.5)
- Anthropic (Claude-3)
- Google (Gemini)
- Groq (Mixtral)
- Ollama (Local models)
-
Developer-Focused Features
- Instant code generation with context awareness
- Automated code review and analysis
- Direct code execution support
- Multi-language compatibility
- Cost tracking and usage analytics for each AI provider
-
Smart Resource Management
- Optimized context handling for each AI provider
- Efficient token usage
- Dynamic conversation management
- Automatic context summarization
- Real-time token usage and cost monitoring
🚀 Quick Start
One-Line Installation
# Linux/macOS
curl -sSL https://raw.githubusercontent.com/hamonikr/codai/main/install.sh | bash
Basic Usage
# Generate code with AI
codai code "create a web scraper for news headlines" -r
# Get instant programming help
codai chat "explain async/await in Rust"
# Execute complex task from file
echo "1. Create a REST API server
2. Add user authentication
3. Implement CRUD operations for posts
4. Add API documentation" > task.txt && codai task < task.txt
Dependencies
~17–31MB
~459K SLoC