Skip to content

codewithdark-git/OmniDev

Repository files navigation

๐Ÿš€ OmniDev

Your Multi-Model AI Development Assistant - Free, Intelligent, Autonomous

License: MIT Python 3.10+ Status: In Development

OmniDev is an intelligent CLI-based AI coding assistant that brings the power of multiple AI models to your terminal - with a free tier. It combines autonomous operation, strategic planning, and smart model selection to help you code faster and better.


โœจ What OmniDev Does

OmniDev is your AI pair programmer that:

  • ๐Ÿค– Creates, edits, and manages files automatically based on natural language instructions
  • ๐Ÿง  Plans complex changes before executing them, showing you the full impact
  • ๐ŸŽฏ Intelligently selects the best AI model for each task (coding, debugging, refactoring, testing)
  • ๐Ÿ”„ Maintains dynamic project context - automatically includes relevant files without manual selection
  • ๐Ÿ’ฐ Free tier available using Groq (30 requests/minute), with optional premium API upgrades
  • ๐Ÿ›ก๏ธ Keeps your code safe with automatic backups and Git integration
  • ๐ŸŽจ Modern Rich CLI with colorful UI, loading spinners, slash commands, and interactive REPL mode
  • ๐Ÿค CrewAI Agent System for intelligent orchestration of all internal operations
  • โš™๏ธ Project-specific configuration with .env file support for API keys

๐ŸŽฎ Four Operational Modes

1. Agent Mode ๐Ÿค–

Full autonomy - tell it what you want, and it handles everything automatically.

$ omnidev "Build a REST API for user authentication with JWT"

โ†’ Creating project structure...
โœ“ Created 5 files
โœ“ Implemented authentication logic
โœ“ Generated tests
โœ“ All tests passing

Done! Your API is ready.

2. Planning Mode ๐Ÿ“‹

Strategic approach - shows you the plan first, then executes with your approval.

$ omnidev --mode planning "Refactor authentication to use OAuth2"

โ†’ Creating refactoring plan...

PLAN: OAuth2 Migration
โ”œโ”€ Phase 1: Setup (5 files, ~15 min)
โ”œโ”€ Phase 2: Core migration (4 files, ~20 min)  
โ”œโ”€ Phase 3: Integration (3 files, ~10 min)
โ””โ”€ Phase 4: Testing (6 files, ~10 min)

Proceed? (yes/no/modify):

3. Auto-Select Mode ๐ŸŽฏ

Smart model routing - automatically picks the best AI model for each task.

$ omnidev "Fix this performance issue"

๐ŸŽฏ Selected: Claude Sonnet 4 (best for optimization)
โ†’ Analyzing code...
โ†’ Found bottleneck in database query
โœ“ Applied optimization (35x faster)

4. Manual Mode ๐ŸŽฎ

Full control - you approve every step and choose which AI model to use.

$ omnidev --mode manual "Create a new component"

Which model? (gpt-4o/claude/deepseek): gpt-4o
Should I create new file? (yes/no): yes
Filename: components/UserProfile.tsx
โœ“ Created

๐Ÿš€ Quick Start

Installation

For Users:

# Install OmniDev
pip install git+https://github.com/codewithdark-git/OmniDev.git

# Run interactive setup wizard
omnidev -i

For Developers: See README_SETUP.md for detailed setup instructions using Miniconda and UV package manager.

Interactive Mode (Recommended)

Start OmniDev in interactive REPL mode for a chat-like experience:

omnidev -i
# or
omnidev --interactive

This launches an interactive shell with:

  • ๐Ÿ’ฌ Chat-style interface
  • ๐Ÿ”„ Loading spinners while waiting for responses
  • โš™๏ธ In-REPL setup wizard (/setup)
  • ๐ŸŽจ Beautiful terminal UI with panels and colors
  • ๐Ÿ“œ Command history and auto-suggestions
  • ๐Ÿ”ง Slash commands for quick actions

Available Slash Commands:

Command Description
/help Show all available commands
/setup Run full setup wizard
/provider Change AI provider
/model Change AI model
/mode Change operational mode
/status Show current configuration
/clear Clear the screen
/exit Exit the REPL

Provider Setup

OmniDev supports multiple AI providers. On first run, you'll be guided through setup:

Supported Providers:

Provider Free Tier API Key Required
Groq โœ… Yes (30 req/min) โœ… Yes (free at console.groq.com)
OpenAI โŒ No โœ… Yes
Anthropic โŒ No โœ… Yes
Google โŒ No โœ… Yes
OpenRouter โœ… Yes โœ… Yes

Quick Setup:

# Interactive setup (recommended)
omnidev -i
# Then type: /setup

# Or run setup directly
omnidev --setup

Manual Setup: Create a .env file in your project root:

# .env
GROQ_API_KEY=your-groq-api-key-here
# or
OPENAI_API_KEY=your-openai-api-key-here

Important: Add .env to your .gitignore to keep your API keys secure.

Basic Usage

# Start interactive mode (recommended)
omnidev -i

# Run a single query
omnidev "create a Python FastAPI server with authentication"

# Agent mode (full autonomy)
omnidev --mode agent "add user registration endpoint"

# Planning mode (review before execution)
omnidev --mode planning "refactor the database layer"

# Use specific model
omnidev --model gpt-4o "explain how this algorithm works"

๐ŸŽฏ Core Features

Intelligent File Operations

  • Create new files with proper structure and conventions
  • Edit existing files with surgical precision
  • Delete files safely with confirmation
  • Multi-file coordination for complex refactoring

Dynamic Context Management

  • Automatically includes relevant files based on your task
  • Learns which files you work on together
  • Optimizes token usage to fit more context
  • Updates context in real-time as you work

Smart Model Routing

  • Analyzes each task and selects the optimal AI model
  • Balances quality, speed, and cost automatically
  • No automatic fallback - shows clear errors when provider fails
  • Respects your provider/model selection

Safety & Reliability

  • Automatic backups before any destructive operation
  • Git integration with smart commit messages
  • Easy rollback with one command
  • Validates code before applying changes

๐Ÿ’ก Example Workflows

Create a New Feature

$ omnidev "add password reset functionality to the auth system"

โ†’ Planning implementation...
โ†’ Creating email templates...
โ†’ Adding reset token logic...
โ†’ Updating API endpoints...
โ†’ Generating tests...
โœ“ Feature complete! 8 files modified, 247 lines added

Debug an Issue

$ omnidev "why is the /users endpoint returning 500 errors?"

๐ŸŽฏ Selected: GPT-4 Turbo (best for debugging)
โ†’ Analyzing error logs...
โ†’ Found: Missing database migration
โ†’ Solution: Run migration 'add_user_email_index'

Apply fix? (yes/no): yes
โœ“ Migration applied
โœ“ Tests passing

Interactive Session

$ omnidev -i

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚  Welcome to OmniDev Interactive Mode       โ”‚
โ”‚                                            โ”‚
โ”‚    โšก Provider: groq                       โ”‚
โ”‚    ๐Ÿค– Model:    llama-3.3-70b-versatile    โ”‚
โ”‚    ๐Ÿ“‹ Mode:     agent                      โ”‚
โ”‚                                            โ”‚
โ”‚    Type /help for commands!                โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

โฏ tell me about the current project structure

๐Ÿ’ญ Thinking with llama-3.3-70b-versatile via Groq (Free)...

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚  The project follows a modular structure   โ”‚
โ”‚  with clear separation of concerns...      โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

๐Ÿ”ง Configuration

OmniDev works out of the box, but you can customize it:

Interactive Setup (Recommended)

# Start interactive mode and run setup
omnidev -i
โฏ /setup

Global Configuration

# Set your preferred default model
omnidev config set default-model llama-3.3-70b-versatile

# Add your API keys
omnidev config add-key groq YOUR_API_KEY
omnidev config add-key openai YOUR_API_KEY
omnidev config add-key anthropic YOUR_API_KEY

Project Configuration

Create .omnidev.yaml in your project root:

project_name: "My API Project"

mode:
  default_mode: agent

models:
  preferred: llama-3.3-70b-versatile
  fallback: groq

context:
  always_include:
    - "config/*.py"
    - "models/*.py"
  exclude:
    - "*.log"
    - "node_modules/*"

๐ŸŒŸ Why OmniDev?

vs. Claude Code

  • โœ… Free tier available (Groq offers 30 req/min free)
  • โœ… Multiple AI models (not locked to one provider)
  • โœ… Smart model selection (uses best model for each task)
  • โœ… Planning mode (see changes before they happen)

vs. Cursor

  • โœ… CLI-first design (works with any editor)
  • โœ… Autonomous modes (less manual intervention)
  • โœ… Free to start (no subscription required)
  • โœ… Open source (customize and extend)

vs. GitHub Copilot

  • โœ… Full file operations (not just autocomplete)
  • โœ… Project-wide context (understands your entire codebase)
  • โœ… Multi-model support (not limited to OpenAI)
  • โœ… Intelligent planning (thinks before acting)

๐Ÿ› ๏ธ Technology

Built with:

  • Python 3.10+ for core logic
  • Groq for fast, free AI inference
  • Official APIs: OpenAI, Anthropic, Google, OpenRouter (optional)
  • Rich for beautiful terminal interface
  • prompt_toolkit for interactive REPL
  • GitPython for version control integration
  • CrewAI for agent orchestration

Supported AI Models:

  • LLaMA 3.3 70B, LLaMA 3.1 8B, Mixtral (Groq - Free)
  • GPT-4o, GPT-4 Turbo, GPT-4o-mini (OpenAI)
  • Claude Sonnet 4, Claude Opus 4 (Anthropic)
  • Gemini 2.0 Flash, Gemini 2.5 Pro (Google)
  • Many more through OpenRouter

Supported Languages & Frameworks:

  • Python (Django, FastAPI, Flask)
  • JavaScript/TypeScript (React, Node.js, Express, Next.js)
  • Go, Rust, Java, C#, PHP, Ruby
  • And more...

๐Ÿ“‹ Requirements

  • Python 3.10 or higher
  • Git (for version control features)
  • Internet connection (for AI models)

Required:

  • API key from at least one provider (Groq is free!)

Optional (for premium models):

  • OpenAI API key (for GPT-4, GPT-4o)
  • Anthropic API key (for Claude models)
  • Google API key (for Gemini models)
  • OpenRouter API key (for access to many models)

๐Ÿ—บ๏ธ Roadmap

โœ… Current (v0.1 - MVP)

  • Agent, Planning, Auto-Select, and Manual modes
  • File create, edit, delete operations
  • Groq integration (free tier)
  • Interactive REPL mode with loading spinners
  • Basic context management
  • Git integration
  • In-REPL setup wizard

๐Ÿšง In Progress (v0.2)

  • Web search integration
  • Documentation fetching
  • Enhanced context scoring
  • Streaming responses

๐Ÿ“… Coming Soon (v0.3+)

  • MCP server support
  • IDE integrations (VS Code, JetBrains)
  • Advanced testing capabilities
  • Performance profiling
  • Team collaboration features

๐Ÿค Contributing

We welcome contributions! Whether it's:

  • ๐Ÿ› Bug reports
  • ๐Ÿ’ก Feature suggestions
  • ๐Ÿ“ Documentation improvements
  • ๐Ÿ”ง Code contributions

Please see CONTRIBUTING.md for guidelines.


๐Ÿ“„ License

MIT License - see LICENSE for details.


๐Ÿ™ Acknowledgments

  • Groq for providing fast, free AI inference
  • Rich for the beautiful terminal UI
  • CrewAI for agent orchestration
  • The open-source community for inspiration and support

๐Ÿ’ฌ Community & Support


โšก Quick Examples

# Start interactive mode (recommended)
omnidev -i

# Create a complete web application
omnidev "build a todo app with React frontend and FastAPI backend"

# Debug production issues
omnidev "analyze why the server is slow and fix it"

# Refactor legacy code
omnidev --mode planning "modernize this codebase to use async/await"

# Learn from your code
omnidev "explain how the authentication flow works"

# Generate documentation
omnidev "create API documentation for all endpoints"

# Add new features
omnidev "add user profile editing with avatar upload"

Made with โค๏ธ for developers who want AI assistance without the premium price tag

โญ Star us on GitHub โ€ข ๐Ÿ“– Read the Docs โ€ข ๐Ÿฆ Follow Updates

About

Your Multi-Model AI Development Assistant - Free, Intelligent, Autonomous

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages