Skip to main content

AMVKA 2.0 - Universal AI Assistant with 100+ providers via LangChain. Commands + Conversations in one intelligent tool.

Project description

๐Ÿš€ AMVKA 2.0 - Universal AI Command Assistant

PyPI version License: MIT Python 3.8+ LangChain Downloads

๐ŸŽฏ Universal AI Assistant - 100+ Providers, Real-time Intelligence, Zero Configuration Hassle!

AMVKA 2.0 is the next-generation AI-powered command assistant with universal provider support. Powered by LangChain, it works with 100+ AI providers and provides both intelligent command generation and conversational AI responses. Just ask naturally - get commands for system operations or direct answers for knowledge questions!

โšก Quick Start

# Install AMVKA 2.0
pip install amvka

# Install your preferred AI provider (choose one or multiple)
pip install langchain-openai        # OpenAI GPT-4/3.5
pip install langchain-google-genai  # Google Gemini 2.0
pip install langchain-anthropic     # Claude 3.5 Sonnet
pip install langchain-groq          # Ultra-fast Llama/Mixtral
pip install langchain-cohere        # Cohere Command R+

# One-time setup with real-time model discovery
amvka config
# โœจ Auto-detects available models from your API
# ๐Ÿ” Tests connection before saving
# ๐ŸŽฏ Shows only working chat models

# Universal AI interface ready!
amvka "who is the president of america"     # ๐Ÿค– Direct AI answer
amvka "list all python files"              # ๐Ÿ’ป System command 
amvka "what is machine learning"           # ๐Ÿ“š Educational response
amvka "create backup of current folder"    # ๐Ÿ› ๏ธ  File operation

โœจ Key Features

  • ๐ŸŒ Universal AI Support: 100+ providers via LangChain (OpenAI, Gemini, Claude, Groq, Azure, AWS, Ollama, HuggingFace, Cohere, etc.)
  • ๏ฟฝ Real-Time Intelligence: Live model fetching prevents outdated model errors
  • ๐Ÿค– Dual Response Mode: Commands for system operations + direct answers for knowledge questions
  • ๐ŸŽฏ Smart Model Filtering: Only shows working chat models (excludes TTS/Whisper/embeddings)
  • โšก Lightning Fast: Ultra-fast providers like Groq for instant responses
  • ๏ฟฝ Production Ready: Connection testing, fallback models, comprehensive error handling
  • ๐Ÿ›ก๏ธ Enhanced Safety: Multi-layer validation, timeout protection, dangerous command detection
  • ๐ŸŒ Cross-Platform: Windows (PowerShell), macOS, Linux with environment-specific optimization

๐ŸŒ Universal AI Provider Support (9 Core + 90+ Extended)

AMVKA 2.0 supports 100+ AI providers through LangChain with real-time model discovery:

๐Ÿ”ฅ Core Providers (Fully Integrated)

# Provider Speed Models Installation API Key
1 OpenAI Fast GPT-4o, GPT-3.5 pip install langchain-openai Get Key
2 Google Gemini Fast Gemini 2.0 Flash, 1.5 Pro pip install langchain-google-genai Get Key
3 Anthropic Claude Fast Claude 3.5 Sonnet, Haiku pip install langchain-anthropic Get Key
4 Groq โšก Ultra-Fast Llama 3.3, Mixtral, Gemma pip install langchain-groq Get Key
5 Cohere Fast Command R+, Command R pip install langchain-cohere Get Key
6 Azure OpenAI Enterprise GPT-4, GPT-3.5 pip install langchain-openai Setup Guide
7 AWS Bedrock Enterprise Claude, Llama, Titan pip install langchain-aws Setup Guide
8 Ollama ๐Ÿ  Local Llama, CodeLlama, Mistral pip install langchain-community No API Key (Local)
9 Hugging Face Variable Open Source Models pip install langchain-huggingface Get Key

โšก Real-Time Features

  • ๐Ÿ” Live Model Discovery: Fetches current available models from provider APIs
  • ๐ŸŽฏ Smart Filtering: Only shows working chat models (excludes TTS/Whisper/embeddings)
  • โœ… Connection Testing: Validates API keys and model access before saving
  • ๐Ÿ”„ Automatic Fallbacks: Switches to working models if primary model fails

๐Ÿš€ Extended Support (90+ Additional Providers)

Through LangChain ecosystem: Together AI, Replicate, Anyscale, Fireworks AI, Modal, Baseten, Banana, DeepInfra, ForefrontAI, GooseAI, NLP Cloud, Petals, PredictionGuard, PromptLayer, Runhouse, StochasticAI, Writer, and many more!

๏ฟฝ Installation & Setup

๐ŸŽฏ Method 1: PyPI Installation (Recommended)

# Install AMVKA 2.0 core
pip install amvka

# Choose and install your preferred AI provider(s)
pip install langchain-openai        # For OpenAI GPT models
pip install langchain-google-genai  # For Google Gemini 2.0
pip install langchain-anthropic     # For Claude models  
pip install langchain-groq          # For ultra-fast Groq inference
pip install langchain-cohere        # For Cohere Command models

# Or install multiple providers at once
pip install langchain-openai langchain-google-genai langchain-groq

๐Ÿ—๏ธ Method 2: Development Installation

# Clone the repository
git clone https://github.com/amvka/amvka.git
cd amvka

# Install in development mode
pip install -e .

# Install provider dependencies
pip install -r requirements.txt

๐Ÿ”ง Method 3: Docker Installation

# Pull and run AMVKA container
docker pull amvka/amvka:latest
docker run -it --rm amvka/amvka:latest

# Or build from source
docker build -t amvka .
docker run -it --rm amvka

โš™๏ธ Intelligent Setup Process

AMVKA 2.0 features an intelligent setup with real-time model discovery:

# Start configuration
amvka config

# ๐ŸŽฏ Interactive setup process:
# 1๏ธโƒฃ Choose from 9 AI providers
# 2๏ธโƒฃ Enter your API key  
# 3๏ธโƒฃ Real-time model fetching from provider API
# 4๏ธโƒฃ Connection testing with selected model
# 5๏ธโƒฃ Automatic configuration save

๐Ÿ” Real-Time Intelligence Features:

  • Live Model Discovery: Fetches current models from provider APIs
  • Smart Filtering: Shows only working chat models (excludes TTS/Whisper)
  • Connection Validation: Tests API key and model before saving
  • Fallback Detection: Identifies backup models for reliability
  • Provider Comparison: Shows speed, cost, and capability differences

Configuration Commands:

amvka config              # Full interactive setup
amvka config --show       # Display current configuration
amvka config --reset      # Reset and reconfigure
amvka config --test       # Test current configuration

๐ŸŽฏ Dual-Mode Usage Examples

AMVKA 2.0 intelligently handles both system commands and knowledge questions:

๐Ÿ–ฅ๏ธ System Command Mode

# File operations
amvka "list all python files"               # โ†’ Get-ChildItem -Filter *.py
amvka "create backup of current folder"     # โ†’ Copy-Item -Recurse . ./backup
amvka "find large files over 100MB"         # โ†’ Get-ChildItem -Recurse | Where-Object {$_.Length -gt 100MB}

# System monitoring  
amvka "check memory usage"                  # โ†’ Get-Process | Sort-Object WorkingSet -Desc
amvka "show running processes"              # โ†’ Get-Process | Format-Table
amvka "check disk space"                    # โ†’ Get-WmiObject -Class Win32_LogicalDisk

# Git operations
amvka "commit changes with message 'fix'"   # โ†’ git commit -am "fix"
amvka "push to main branch"                 # โ†’ git push origin main
amvka "show git status"                     # โ†’ git status --porcelain

# Development tasks
amvka "install numpy package"               # โ†’ pip install numpy
amvka "run python script test.py"          # โ†’ python test.py
amvka "build docker image"                  # โ†’ docker build -t app .

๐Ÿ’ฌ Conversational AI Mode

# Knowledge questions (direct AI responses)
amvka "who is the president of america"     # ๐Ÿค– "Joe Biden is the current President..."
amvka "what is machine learning"            # ๐Ÿค– "Machine learning is a subset of AI..."
amvka "explain quantum computing"           # ๐Ÿค– "Quantum computing uses quantum bits..."
amvka "how does blockchain work"            # ๐Ÿค– "Blockchain is a distributed ledger..."

# Greetings and help
amvka "hello"                               # ๐Ÿ‘‹ "Hello! I'm AMVKA, your AI assistant..."
amvka "help"                                # ๐Ÿ“‹ Shows comprehensive help information
amvka "what can you do"                     # ๐Ÿš€ Lists capabilities and examples

# Educational content
amvka "difference between python and java"  # ๐Ÿ“š Detailed comparison
amvka "best practices for git"             # ๐Ÿ’ก Professional development tips
amvka "explain REST APIs"                  # ๐Ÿ” Technical explanations

Command Line Options

amvka [OPTIONS] QUERY

Options:
  -y, --yes        Auto-confirm command execution (skip confirmation)
  --dry-run        Show suggested command without executing
  -v, --version    Show version information
  --help           Show help message

Commands:
  config           Configure API settings
    --reset        Reset configuration
    --show         Show current configuration

๐Ÿ”ง Configuration

API Providers

Amvka supports two AI providers:

Google Gemini (Recommended)

  1. Visit Google AI Studio
  2. Sign in with your Google account
  3. Create a new API key
  4. Run amvka config and paste your key

OpenAI

  1. Visit OpenAI API Keys
  2. Sign in to your OpenAI account
  3. Create a new API key
  4. Run amvka config and paste your key

Configuration File

Your configuration is stored in ~/.amvka/config.json:

{
  "provider": "gemini",
  "api_key": "your-api-key-here",
  "model": "gemini-pro",
  "safety_confirmation": true
}

Managing Configuration

# Show current configuration
amvka config --show

# Reset configuration
amvka config --reset

# Reconfigure
amvka config

๐Ÿ›ก๏ธ Enhanced Safety & Security

AMVKA 2.0 implements multi-layer security with production-grade safety measures:

๐Ÿ”’ 1. Provider-Level Security

  • Secure API Key Storage: Encrypted local configuration
  • Connection Validation: Real-time API key verification
  • Model Filtering: Only verified chat models (excludes dangerous tools)
  • Rate Limit Handling: Respects provider API limits

๐Ÿ›ก๏ธ 2. Command Safety Validation

# Multi-pattern dangerous command detection
โŒ Blocked: rm -rf /, sudo rm, dd if=, mkfs., shutdown
โŒ Blocked: curl | bash, wget | sh, eval $(dangerous)
โŒ Blocked: chmod 777, chown root, systemctl stop
โœ… Safe: ls, cat, grep, find, ps, df, git status

โšก 3. Execution Protection

  • Timeout Protection: 30-second maximum execution time
  • Environment Isolation: No direct root/admin access
  • User Confirmation: Interactive approval for all commands
  • Dry-Run Mode: Preview commands without execution
  • Emergency Cancellation: Ctrl+C support during execution

๐ŸŽฏ 4. Intelligent Risk Assessment

# Smart categorization
๐ŸŸข SAFE: File listing, information queries, git status
๐ŸŸก CAUTION: File modifications, package installation  
๐Ÿ”ด DANGEROUS: System changes, network operations, root commands
๐Ÿšซ BLOCKED: Destructive operations, security bypasses

๐Ÿ“Š 5. Audit & Monitoring

  • Command Logging: Optional execution history
  • Error Tracking: Detailed failure analysis
  • Performance Metrics: Response time monitoring
  • Usage Statistics: Provider and model analytics

๐Ÿ” How AMVKA 2.0 Works

๐Ÿง  Intelligent Processing Pipeline

graph LR
    A[Natural Language Input] --> B[Query Classification]
    B --> C{Command or Conversation?}
    C -->|Command| D[LangChain Provider]
    C -->|Conversation| E[Direct AI Response]
    D --> F[Safety Validation]
    F --> G[User Confirmation]
    G --> H[Secure Execution]
    E --> I[Display Answer]

๐ŸŽฏ Step-by-Step Process

  1. ๐Ÿ—ฃ๏ธ Natural Input: You ask in plain English
  2. ๐Ÿค– AI Classification: Determines if system command or knowledge question
  3. ๐ŸŒ Universal Provider: Routes to your configured AI (OpenAI/Gemini/Claude/Groq/etc.)
  4. ๐Ÿ” Real-Time Processing:
    • Commands: Generates platform-specific shell commands
    • Conversations: Provides direct informative responses
  5. ๐Ÿ›ก๏ธ Safety Validation: Multi-layer security checks
  6. โœ… User Confirmation: Interactive approval (unless --yes flag)
  7. โšก Secure Execution: Sandboxed command execution with timeout

๐Ÿš€ Advanced Features

  • ๐Ÿ”„ Fallback System: Auto-switches to backup models if primary fails
  • ๐ŸŽฏ Context Awareness: Remembers environment and previous interactions
  • ๐Ÿ“ฑ Cross-Platform: Adapts commands for Windows/macOS/Linux
  • โšก Performance Optimization: Caching and smart model selection

๐ŸŒŸ What Makes AMVKA 2.0 Special

๐Ÿ†š vs. Other AI Assistants

Feature AMVKA 2.0 ChatGPT CLI Other Tools
Universal Providers โœ… 100+ via LangChain โŒ OpenAI Only โŒ Limited
Real-Time Models โœ… Live API Fetching โŒ Static List โŒ Manual
Command + Chat โœ… Dual Mode โŒ Chat Only โŒ Commands Only
Safety Validation โœ… Multi-Layer โŒ Basic โŒ Minimal
Local Support โœ… Ollama Integration โŒ Cloud Only โŒ Limited
Production Ready โœ… Enterprise Grade โŒ Experimental โŒ Hobby Projects

๐ŸŽฏ Perfect For

  • ๐Ÿ‘ฉโ€๐Ÿ’ป Developers: Command generation, git operations, deployment tasks
  • ๐Ÿ”ง System Admins: Server management, monitoring, automation
  • ๐Ÿ“Š Data Scientists: File processing, environment setup, analysis tasks
  • ๐ŸŽ“ Students: Learning commands, understanding concepts, quick help
  • ๐Ÿข Enterprises: Standardized tooling, multi-provider flexibility

๐Ÿ“ Development

Building from Source

# Clone the repository
git clone https://github.com/amvka/amvka.git
cd amvka

# Create virtual environment
python3 -m venv venv
source venv/bin/activate

# Install in development mode
pip install -e .

# Install development dependencies
pip install -e .[dev]

Building Debian Package

# Install build dependencies
sudo apt-get install build-essential debhelper dh-python python3-setuptools

# Build the package
dpkg-buildpackage -us -uc

# Install the built package
sudo dpkg -i ../amvka_1.0.0-1_all.deb

Running Tests

# Run tests
python -m pytest tests/

# Run with coverage
python -m pytest --cov=amvka tests/

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

Areas for Contribution

  • Additional AI provider support
  • Enhanced safety checks
  • More comprehensive command validation
  • Better error handling
  • Documentation improvements

๐Ÿ“‹ System Requirements

๐Ÿ–ฅ๏ธ Platform Support

  • Windows: PowerShell 5.1+, CMD, Windows Terminal โœ…
  • macOS: Terminal.app, iTerm2, zsh, bash โœ…
  • Linux: bash, zsh, fish, any terminal โœ…

๐Ÿ Python Requirements

  • Python 3.8+ (recommended: 3.9+)
  • Internet connection for AI API calls
  • Optional: Local AI models via Ollama (offline mode)

๐Ÿ“ฆ Core Dependencies

# Core AMVKA 2.0 (auto-installed)
langchain>=0.1.0           # Universal AI interface
langchain-community>=0.0.10 # Extended provider support  
requests>=2.31.0           # HTTP API calls
click>=8.0.0               # CLI framework
colorama>=0.4.0            # Terminal colors

# Provider Dependencies (choose what you need)
langchain-openai           # OpenAI GPT models
langchain-google-genai     # Google Gemini
langchain-anthropic        # Claude models
langchain-groq             # Groq ultra-fast inference
langchain-cohere           # Cohere Command models
langchain-aws              # AWS Bedrock
langchain-huggingface      # Open source models

โš ๏ธ Important Disclaimers

Safety Notice

  • Always review commands before execution
  • Amvka is designed to be safe, but AI can make mistakes
  • Never run commands you don't understand
  • Be extra cautious with file operations and system commands

API Usage

  • You are responsible for your API usage and costs
  • Monitor your API usage on your provider's dashboard
  • Keep your API keys secure and never share them

Limitations

  • Requires internet connection for AI processing
  • Subject to AI provider rate limits
  • Command suggestions may not always be optimal
  • Some complex operations may require manual command crafting

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ“ž Support

๐Ÿ—บ๏ธ Roadmap & Future Vision

โœ… AMVKA 2.0 (Current - Released)

  • โœ… Universal AI provider support (100+ via LangChain)
  • โœ… Real-time model discovery and validation
  • โœ… Dual-mode: Commands + Conversational AI
  • โœ… Enhanced safety and security measures
  • โœ… Cross-platform support (Windows/macOS/Linux)
  • โœ… Production-grade error handling and fallbacks

๐Ÿš€ AMVKA 2.1 (Q1 2025)

  • Plugin System: Custom command extensions
  • Command History: Smart suggestions from past usage
  • Shell Integration: bash/zsh/PowerShell completion
  • Team Collaboration: Shared configurations and commands
  • Advanced Context: Project-aware command suggestions

๐ŸŒŸ AMVKA 2.5 (Q2 2025)

  • GUI Version: Desktop and web interface
  • Command Explanation: AI explains what commands do
  • Workflow Automation: Multi-step command sequences
  • Cloud Sync: Configuration synchronization
  • Enterprise Features: SSO, audit logging, governance

๐ŸŽฏ AMVKA 3.0 (Q4 2025)

  • Local AI Mode: Fully offline operation
  • Voice Interface: Speech-to-command
  • IDE Integration: VS Code, JetBrains plugins
  • Smart Monitoring: Proactive system suggestions
  • Multi-Agent System: Specialized AI agents for different domains

๐Ÿ”ฎ Long-term Vision

  • Universal DevOps Assistant: Complete infrastructure management
  • AI-Powered Documentation: Auto-generated guides and tutorials
  • Predictive Operations: AI suggests optimizations and fixes
  • Natural Language Programming: Code generation and debugging
  • Enterprise AI Platform: Complete organizational AI toolkit

๐Ÿ† Why Choose AMVKA 2.0?

๐ŸŽฏ For Individuals

  • โšก Lightning Fast: Ultra-fast providers like Groq for instant responses
  • ๐Ÿง  Smart Learning: Remembers your preferences and context
  • ๐Ÿ’ฐ Cost Effective: Choose from free (Ollama) to premium providers
  • ๐Ÿ”’ Privacy Focused: Local options available, secure key storage

๐Ÿข For Organizations

  • ๐ŸŒ Universal: Works with any AI provider, no vendor lock-in
  • ๐Ÿ›ก๏ธ Enterprise Security: Comprehensive safety and audit capabilities
  • ๐Ÿ“ˆ Scalable: From single developers to large teams
  • ๐Ÿ”ง Customizable: Extensible architecture for specific needs

๐ŸŒŸ Community & Support


๐Ÿš€ Made with โค๏ธ by the AMVKA Team

AMVKA 2.0 - Bridging the gap between human language and computer commands. Making AI accessible, powerful, and safe for everyone.

โญ Star us on GitHub | ๐Ÿ”— Share with friends | ๐ŸŽฏ Join the AI revolution

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

amvka-2.0.0.tar.gz (47.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

amvka-2.0.0-py3-none-any.whl (38.7 kB view details)

Uploaded Python 3

File details

Details for the file amvka-2.0.0.tar.gz.

File metadata

  • Download URL: amvka-2.0.0.tar.gz
  • Upload date:
  • Size: 47.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for amvka-2.0.0.tar.gz
Algorithm Hash digest
SHA256 7ba90f2aef4f13a15904f8f566bcb169d3a122fcdfbc4f2105cda3584c6606b3
MD5 9c3587545a5397b160b67ae440bce4d1
BLAKE2b-256 61ab53fc291493bd1556e44fa13d1d7fda6df7fa5c2dbe656e56651067e171a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for amvka-2.0.0.tar.gz:

Publisher: publish.yml on lalitt08/amvka-ai-assistant-terminal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amvka-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: amvka-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 38.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for amvka-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d481cac2c9faba228e7a922d673366756b5eb571431a8627ccb26229acd32f5
MD5 f035682b121ff852f2e5a4e6fc9e93df
BLAKE2b-256 1affc5cf89d0c42fdda4d312a63960f4208aece91f36e3ed9c72060966b73646

See more details on using hashes here.

Provenance

The following attestation bundles were made for amvka-2.0.0-py3-none-any.whl:

Publisher: publish.yml on lalitt08/amvka-ai-assistant-terminal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page