Skip to content

About

Maverick AGI v2.5 – a fully offline, terminal‑first personal AI assistant that runs locally on your machine. It speaks, listens, sees, searches the web, executes terminal commands, solves math, manages goals, and remembers everything you teach it. Works entirely offline by default, with optional cloud‑LLM acceleration for speed.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

38 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

🧠 Maverick AGI (EARLY STAGE PROJECT KEEP IN MIND!)

A fully offline, terminal‑first personal AI that runs everywhere.
Talks, thinks, searches the web, runs terminal commands, solves maths, watches your camera, and learns from every conversation — locally or via cloud APIs.

Linux macOS Windows

Offline by default. The only things that require internet are web searches, Reddit lookups, and optional cloud LLM providers.


✨ Features

  • Conversation — Local GGUF model (Gemma, Llama, etc.) or any cloud provider.
  • Web Search — DuckDuckGo with three parallel queries, then synthesised by the central model.
  • Terminal Agent — Safely runs shell commands, analyses output, and follows up autonomously.
  • Maths — Converts natural language into SageMath expressions and explains step‑by‑step.
  • Vision — Ultralytics YOLOv8 camera feed analysis, describing what it sees.
  • Voice In — Offline speech recognition with faster‑whisper.
  • Voice Out — Offline text‑to‑speech using Kokoro‑ONNX.
  • Long‑Term Memory — ChromaDB vector store with continuous learning and self‑correction.
  • Reddit Search — Optional, needs API credentials.

🔧 Hardware requirements

Minimum Recommended
RAM 8 GB 16 GB+
Disk 15 GB free 20 GB+
CPU 4 cores 8+ cores
GPU Not required NVIDIA / AMD / Apple Silicon
OS Linux, macOS, Windows Linux / macOS

⚡ Quick setup

git clone https://github.com/yourusername/maverick.git
cd maverick
python3 -m venv maverick_env && source maverick_env/bin/activate
pip install -r requirements.txt

Maverick will automatically download the necessary models on first use (~600 MB).
This includes the embedding model for long‑term memory and the Whisper speech model.


🧪 Running Maverick

# Terminal chat (default)
python3 maverick.py

# Launch the API server (for cloud deployment)
python3 maverick.py --api

The API server listens on http://127.0.0.1:5000. You can expose it to your LAN with a reverse proxy.

A desktop GUI (GTK/Cocoa/Edge) and browser‑based UI are under development.


☁️ Cloud LLM providers (optional)

If you prefer not to run a local model, you can set a cloud provider:

# Set these environment variables before launching
export MAVERICK_LLM_PROVIDER=openai       # or anthropic, google, openrouter, github, opencode
export MAVERICK_CLOUD_API_KEY=sk-...
export MAVERICK_CLOUD_API_URL=https://api.openai.com/v1   # (optional, for custom endpoints)
export MAVERICK_PRIMARY_CLOUD_MODEL=gpt-4o-mini

Then run as usual. The cloud LLM will handle all conversation and reasoning while local tools (vision, voice, terminal) remain available.


📦 Model files (for local / GGUF mode)

Maverick expects two GGUF file paths configured in config.py:

  • PRIMARY_MODEL_PATH — for conversation / primary talker.
  • CENTRAL_MODEL_PATH — for deep reasoning, search synthesis, terminal analysis.

You can override them via environment variables MAVERICK_PRIMARY_MODEL and MAVERICK_CENTRAL_MODEL.

Recommended models:

Slot Example Size
Primary Gemma-4-4B-it-Q4_K_M.gguf ~4.7 GB
Central Gemma-4-E4B-it-Q4_K_M.gguf ~4.7 GB

💡 You can use the same GGUF file for both slots — just copy or symlink it.

Maverick does not auto‑discover GGUF files; you must set the paths explicitly.


⚙️ Configuration

All settings are read from config.py or overridden with environment variables.

Key ones:

Variable Description
MAVERICK_LLM_PROVIDER local (default), openai, anthropic, ...
MAVERICK_CLOUD_API_KEY API key for the selected cloud provider
MAVERICK_CLOUD_API_URL Custom endpoint (for proxies/compatible APIs)
MAVERICK_PRIMARY_CLOUD_MODEL Model name passed to the cloud API
MAVERICK_PRIMARY_MODEL Path to the primary GGUF file
MAVERICK_CENTRAL_MODEL Path to the central GGUF file

🚀 GPU acceleration

Install llama-cpp-python with GPU support after setting up the virtual environment:

NVIDIA (CUDA)

CMAKE_ARGS="-DGGML_CUDA=on" pip install llama-cpp-python --force-reinstall --no-cache-dir

Apple Silicon (Metal)

CMAKE_ARGS="-DGGML_METAL=on" pip install llama-cpp-python --force-reinstall --no-cache-dir

AMD (ROCm)

CMAKE_ARGS="-DGGML_HIPBLAS=on" pip install llama-cpp-python --force-reinstall --no-cache-dir

🌐 What runs offline vs online

Component Offline Needs internet
Conversation (local provider) ✅
Terminal commands ✅
Maths (SageMath) ✅
Vision (YOLOv8) ✅
Voice in (Whisper) ✅
Voice out (Kokoro) ✅
Long‑term memory (ChromaDB) ✅
Chat (cloud providers) ✅ provider API
Web search ✅ DuckDuckGo
Reddit search ✅ Reddit API
URL fetching ✅ any URL

🛠️ Troubleshooting

Problem Solution
model not found Set MAVERICK_PRIMARY_MODEL / MAVERICK_CENTRAL_MODEL or edit config.py.
ChromaDB disabled The embedding model auto‑downloads on first run. Wait for it, or run python download_embedding_model.py.
Voice not working python -c "import sounddevice; print(sounddevice.query_devices())"
Slow inference Install GPU support (see GPU section) or switch to a cloud provider.
ModuleNotFoundError Activate virtual environment and run pip install -r requirements.txt.

📚 Key dependencies & links

Dependency Purpose Link
llama-cpp-python LLM inference github.com/abetlen/llama-cpp-python
faster-whisper Speech recognition github.com/SYSTRAN/faster-whisper
kokoro-onnx Text‑to‑speech github.com/thewh1teagle/kokoro-onnx
ChromaDB Vector store / memory github.com/chroma-core/chroma
sentence-transformers Embedding model github.com/UKPLab/sentence-transformers
Ultralytics YOLOv8 Computer vision github.com/ultralytics/ultralytics
OpenCV Image processing github.com/opencv/opencv
psutil System monitoring github.com/giampaolo/psutil
sounddevice Audio I/O github.com/spatialaudio/python-sounddevice
duckduckgo_search Web search github.com/deedy5/duckduckgo_search
praw Reddit API wrapper github.com/praw-dev/praw
Gemma GGUF models Local LLM huggingface.co/google

🤝 Credits

Maverick is built and maintained by Rudransh.
Special thanks to the open‑source community for the incredible tools that make this possible.


Maverick AGI v2.5 — Your personal AI. Offline. Uncensored. Yours.

About

Maverick AGI v2.5 – a fully offline, terminal‑first personal AI assistant that runs locally on your machine. It speaks, listens, sees, searches the web, executes terminal commands, solves math, manages goals, and remembers everything you teach it. Works entirely offline by default, with optional cloud‑LLM acceleration for speed.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages