@bonginkan/maria
Version:
Intelligent CLI Assistant with Multi-Model AI Support - Zero Configuration, Privacy First
250 lines (187 loc) ⢠6.57 kB
Markdown
# MARIA CLI - Intelligent Development Assistant
[](https://www.npmjs.com/package/@maria/cli)
[](https://www.npmjs.com/package/@maria/cli)
[](https://opensource.org/licenses/MIT)
[](https://nodejs.org)
š¤ **MARIA CLI** is an advanced AI development assistant that brings senior engineer-level capabilities to your terminal. With support for 22+ AI models, intelligent routing, and comprehensive development tools.
## ā ļø Node.js Compatibility Notice
**Recommended: Node.js v22 or lower for best experience**
```bash
# Check your Node.js version
node --version
# If using Node.js v24, switch to v22:
nvm install 22
nvm use 22
```
## š Quick Start
```bash
# Install globally (Node.js 18-22 recommended)
npm install -g @maria/cli
# Update to latest version
npm update -g @maria/cli
# Start interactive mode
maria
```
## ⨠Key Features
### š§ Interactive Router System
- **Natural Language Understanding**: Interprets developer intentions and automatically routes to optimal commands
- **Context Awareness**: Uses conversation history and project state for intelligent decision making
- **Multi-Step Execution**: Decomposes complex tasks into executable steps
- **Auto Mode**: Natural language ā Automatic command execution
### š¤ Multi-Model AI Support
- **Cloud Providers**: OpenAI GPT-4o, Anthropic Claude, Google Gemini, Groq
- **Local Models**: LM Studio, vLLM, Ollama (GPT-OSS, Qwen, Mistral)
- **Automatic Fallback**: Seamlessly switches between providers
- **Task-Based Selection**: Chooses optimal model for each task type
### š¬ Media Generation
- **Video Generation**: Text-to-Video and Image-to-Video with Wan 2.2
- **Image Generation**: High-quality images with Qwen-Image
- **Batch Processing**: Generate multiple variations
- **Resolution Control**: 720p/1080p video, up to 1024x1024 images
### ā” Development Tools
- **Code Generation**: Create entire features with context awareness
- **Code Review**: Comprehensive analysis with actionable suggestions
- **Test Generation**: Unit, integration, and E2E tests
- **Smart Commits**: AI-generated conventional commit messages
## š Commands
### Core Commands
```bash
maria init # Initialize MARIA in your project
maria chat # Interactive mode (40+ slash commands)
maria code "prompt" # Generate code with AI
maria vision image.png # Analyze images with vision models
maria review # Review code changes
maria test # Generate tests
maria commit # Create AI commit messages
```
### Media Generation
```bash
maria video "A futuristic city" # Generate AI video
maria image "Abstract art" # Generate AI image
```
### Interactive Slash Commands
In `maria chat` mode, use these commands:
- `/help` - Show all commands
- `/status` - System status
- `/model` - Select AI model
- `/clear` - Clear conversation
- `/config` - Configuration panel
- `/video` - Generate video
- `/image` - Generate image
- `/pr-comments` - Analyze PR comments
- `/review` - Execute PR review
- `/exit` - Exit interactive mode
## š§ Configuration
MARIA uses `.maria-code.toml` for configuration:
```toml
[project]
name = "my-project"
type = "typescript"
[ai]
default_provider = "openai"
fallback_provider = "local"
[ai.providers.openai]
api_key = "${OPENAI_API_KEY}"
model = "gpt-4o"
[ai.providers.local]
endpoint = "http://localhost:1234"
model = "gpt-oss-20b"
```
## š Example Usage
### Create a REST API
```bash
maria code "Create a REST API with user authentication" --language typescript
```
### Generate Tests
```bash
maria test src/ --framework jest --coverage
```
### AI Video Generation
```bash
maria video "A red sports car racing through mountains" --model wan22-14b
```
### Code Review
```bash
maria review --diff --suggestions --severity warning
```
## š¦ Installation Options
```bash
# Latest stable (Node.js 18-22)
npm install -g @maria/cli
# Update existing installation
npm update -g @maria/cli
# Development version
npm install -g @maria/cli@alpha
# Beta version
npm install -g @maria/cli@beta
# Run without installing
npx @maria/cli
```
## š AI Provider Setup
### OpenAI
```bash
export OPENAI_API_KEY=your_key
```
### Anthropic
```bash
export ANTHROPIC_API_KEY=your_key
```
### Local Models (LM Studio)
1. Download [LM Studio](https://lmstudio.ai)
2. Load a model (e.g., GPT-OSS, Mistral)
3. Start the server
4. MARIA auto-detects at `http://localhost:1234`
## šÆ Use Cases
### For Developers
- Generate boilerplate code instantly
- Review code for best practices
- Create comprehensive test suites
- Debug complex issues with AI assistance
### For Teams
- Standardize commit messages
- Automate code reviews
- Generate documentation
- Create consistent APIs
### For Learning
- Understand new codebases quickly
- Learn best practices
- Get explanations for complex code
- Practice with AI pair programming
## š ļø System Requirements
- **Node.js**: 18.0.0 - 22.x.x (v22 recommended, v24 not yet supported)
- **npm**: 6.0.0 or higher
- **OS**: macOS, Linux, Windows (WSL recommended)
- **Memory**: 4GB RAM minimum (8GB+ for local models)
- **Storage**: 500MB for CLI, varies for local models
## š¤ Contributing
We welcome contributions! See [Contributing Guide](https://github.com/bonginkan/maria/blob/main/CONTRIBUTING.md) for details.
## š License
MIT License - see [LICENSE](https://github.com/bonginkan/maria/blob/main/LICENSE) for details.
## š Troubleshooting
### Node.js v24 Compatibility
If you encounter warnings with Node.js v24:
```bash
# Recommended solution: Switch to Node.js v22
nvm install 22
nvm use 22
npm install -g @maria/cli
```
### Installation Issues
```bash
# Clear npm cache
npm cache clean --force
# Reinstall
npm uninstall -g @maria/cli
npm install -g @maria/cli
```
## š Links
- [GitHub Repository](https://github.com/bonginkan/maria)
- [NPM Package](https://www.npmjs.com/package/@maria/cli)
- [Documentation](https://maria-code.vercel.app)
- [Report Issues](https://github.com/bonginkan/maria/issues)
## š¬ Support
- Email: maria@bonginkan.ai
- GitHub Issues: [Create an issue](https://github.com/bonginkan/maria/issues/new)
---
**MARIA CODE** - Your AI-Powered Senior Engineer in the Terminal
Ā© 2025 Bonginkan Inc. All rights reserved.