๐Ÿ‘พ LuciferAI

February 25, 2026 ยท View on GitHub

The only AI coding assistant that runs 100% locally, works offline, self-heals errors, and needs zero API keys.

GitHub Stars GitHub Forks GitHub Last Commit License: MIT Python 3.9+ Open Source Offline Capable No Cloud Required Local LLM

Buy Me A Coffee Ko-fi Sponsor

LuciferAI is a fully local AI terminal assistant with self-healing capabilities and collaborative fix learning. Unlike cloud-dependent tools like GitHub Copilot, Cursor, or Codeium, LuciferAI runs entirely on your machine โ€” no API keys, no cloud, no data leaving your device โ€” while still benefiting from community wisdom through its unique FixNet consensus system.

Key differentiators: ๐Ÿ”’ 100% local & offline ยท ๐Ÿง  Multi-tier LLM (llamafile/GGUF) ยท ๐Ÿ”ง Self-healing FixNet ยท ๐Ÿ›ก๏ธ AES-256 encrypted ยท โšก 80+ commands ยท ๐Ÿ–ฅ๏ธ macOS/Linux/Windows

"Forged in Silence, Born of Neon."

๐ŸŽฎ Try the Interactive Playground โ€” Experience LuciferAI directly in your browser! No installation required.


๐Ÿš€ Quick Start - How to Run LuciferAI

NO Installation Needed - Just Run It!

# Navigate to LuciferAI directory
cd LuciferAI_Local

# Run LuciferAI (that's it!)
python3 lucifer.py

Zero installation required! LuciferAI auto-bootstraps on first run:

  • โœ… Auto-assembles llamafile binary from split parts (1-2 sec)
  • โœ… Prompts to download TinyLlama model (670MB, one-time)
  • โœ… Works offline after initial setup
  • โœ… Starts instantly on subsequent runs (< 1 sec)

Usage Examples

# Start LuciferAI
python3 lucifer.py

# Now try these commands:
> help                                    # Show all commands
> llm list                                # See available models
> make me a script that tells me my gps   # Create scripts
> fix broken_script.py                    # Auto-fix errors
> what is python                          # Ask questions
> create file test.py                     # File operations
> install mistral                         # Install better models

System Requirements

ComponentRequirement
OSmacOS, Linux, Windows (WSL)
Python3.9+
RAM4GB minimum (Tier 0), 8GB+ recommended
Disk2GB for base, 50GB+ for all models
InternetOptional (only for model downloads)

What You Get Out of the Box

โœ… TinyLlama (1.1B) - Bundled, works offline immediately
โœ… File Operations - create, delete, move, copy, read, list, find
โœ… Script Generation - Natural language โ†’ Python/Bash scripts
โœ… Auto-Fix - Fix broken scripts automatically
โœ… Multi-Tier LLMs - Install bigger models as needed (Mistral, DeepSeek, Llama3)
โœ… FixNet - Learn from community fixes (encrypted)
โœ… GitHub Sync - Link and upload your projects
โœ… Session History - 6 months of command history
โœ… Badge System - Track your progress and achievements

Install Additional Models (Optional)

# Inside LuciferAI:
> install core models       # Install Llama3.2, Mistral, DeepSeek (recommended)
> install tier 2            # Install Tier 2 models (Mistral 7B)
> install tier 3            # Install Tier 3 models (DeepSeek 33B)
> llm list all              # See all available models

Troubleshooting

If LuciferAI doesn't start:

# Check Python version (needs 3.9+)
python3 --version

# Install dependencies manually if needed
pip3 install colorama requests psutil

# Run with verbose output
python3 lucifer.py --verbose

Still having issues? See Troubleshooting Guide below.

๐ŸŽฏ Zero-LLM Operation (DARPA-Level Documentation)

CRITICAL DIFFERENTIATOR: LuciferAI maintains 72% functionality WITHOUT any LLM

๐Ÿ“˜ Read Complete Technical Documentation โ† DARPA/NSF/DOD Format

Why This Matters:

  • โœ… 50+ commands work offline - No cloud/API required
  • โœ… Air-gapped capable - Secure environments (military, research)
  • โœ… FixNet consensus system - 10K+ community-validated fixes
  • โœ… 5-tier fallback - 87% auto-recovery success rate
  • โœ… Emergency mode - Works even when everything fails

Commands That Work WITHOUT LLM:

# File operations (100% available)
> list ~/Documents      # Native OS operations
> copy file.txt backup  # No AI needed
> find *.py             # Pattern matching

# Script execution with FixNet (100% available)
> run script.py         # Detects errors automatically
> fix broken.py         # Applies consensus fixes (94% success)

# System management (100% available)  
> llm list              # Manage models without LLM
> session list          # 6-month history
> environments          # Scan venvs
> github status         # Git operations
> fixnet sync           # Community fixes

vs Competitors:

  • GitHub Copilot: 0% without cloud โŒ
  • Cursor: 0% without API โŒ
  • Codeium: 0% offline โŒ
  • LuciferAI: 72% without LLM โœ…

New: Master Controller System (100% Test Success!)

๐ŸŽ‰ Just implemented - Perfect routing and fallback system:

# Run comprehensive validation tests
python3 tests/test_master_controller.py

# Expected: 76/76 tests passing (100% success rate)

What's New:

  • โœ… Action verb detection: 40-50% โ†’ 100% (expanded from 23 to 80+ verbs)
  • โœ… 5-layer routing architecture (perfect command detection)
  • โœ… Tier-based model selection (smart LLM routing)
  • โœ… Multi-layer fallback system (never crashes)
  • โœ… Emergency recovery mode

Previously Failing Commands (Now Fixed!):

> make me a script that tells me my gps point    # Now works! โœ…
> create a program that gives weather info       # Now works! โœ…
> write a script that finds files                # Now works! โœ…
> build something that checks system status      # Now works! โœ…

See MASTER_CONTROLLER_STATUS.md for full details.


๐Ÿ† Project Status

Built by 1 developer with $0 funding โ€” currently ranked top 1.1% globally (#56 out of 5,265 AI coding tools).

MetricLuciferAIFunded Competitors
Funding$0$5M - $65M+
Team Size1 developer20-200 engineers
Self-Healingโœ… FixNet (unique)โŒ None
100% Localโœ… YesโŒ Cloud-dependent
Privacyโœ… AES-256 encryptedโŒ Data leaves machine

Outperforms funded competitors: Tabnine ($32M), Codeium ($65M), Amazon Q Developer, Replit AI ($100M+), and 5,200+ other tools.


โœจ Key Features

๐Ÿ”„ Hybrid Cloud/Local Operation

  • Tier 0-4: 100% local operation (no data sent to cloud)
  • Tier 5: Optional ChatGPT/GPT-4 integration
  • Automatic Fallback: Cloud unavailable โ†’ seamless local model switch
  • Best of Both Worlds: Privacy + latest GPT-4 features when needed

๐Ÿง  Multi-Tier LLM System

  • Tier 0-5 Architecture: Automatically selects the best model for each task
  • Native Llamafile: Direct GGUF model execution - no external servers required
  • 85+ Supported Models: From TinyLlama (1B) to Llama-3.1-70B + GPT-4
  • Resource-Aware: Works on everything from 8GB RAM to 64GB+ workstations
  • Typo Auto-Correction: All commands auto-correct typos (e.g., 'mistrl' โ†’ 'mistral')

๐Ÿ”ง Self-Healing FixNet

  • Automatic Error Detection: Catches and fixes common errors automatically
  • 51% Consensus Validation: Community-validated fixes with quality thresholds
  • Privacy-First: AES-256 encrypted fixes, only metadata shared publicly
  • 71.4% Duplicate Rejection: Smart filter prevents fix pollution

๐ŸŒ Collaborative Learning

  • Relevance Dictionary: Tracks fixes across local + remote sources
  • User Reputation System: Beginner โ†’ Expert tiers based on fix quality
  • A/B Testing: Data-driven fix selection
  • ML Error Clustering: Groups similar errors for pattern recognition

๐Ÿ›ก๏ธ Security

  • Fraud Detection: Blocks dangerous patterns (rm -rf, fork bombs, etc.)
  • Spam Protection: Community reporting with auto-quarantine
  • Local-First: Your code never leaves your machine

๐Ÿ”ง 5-Tier OS Fallback System (Self-Healing)

LuciferAI features a 5-tier self-healing fallback system that ensures the assistant keeps working even when components fail. This is what makes LuciferAI resilient on any system.

Fallback Tiers

TierNameIndicatorWhat It Does
0Native Modeโœ… GreenAll dependencies satisfied, full functionality
1Virtual Environment๐Ÿฉน CyanMissing Python packages? Auto-creates venv and installs them
2Mirror Binary๐Ÿ”„ YellowMissing system tools? Downloads from mirror repository
3Stub Layer๐Ÿงฉ PurpleModule crashes? Creates stub to prevent import failures
4Emergency CLIโ˜ ๏ธ RedCatastrophic failure? Minimal survival shell with core commands
๐Ÿ’ซRecovery๐Ÿ’ซ GreenAuto-repair: rebuilds environment and restores to Tier 0

๐Ÿ“Š Competitor Comparison

FeatureLuciferAIGitHub CopilotCursorTabnineCodeiumAmazon Q
Funding$0Microsoft/OpenAI$60M$32M$65MAWS
Works Offlineโœ… 100%โŒ NoโŒ Noโš ๏ธ LimitedโŒ NoโŒ No
Self-Healingโœ… FixNetโŒ NoโŒ NoโŒ NoโŒ NoโŒ No
Multi-Tier LLMโœ… 5 TiersโŒ SingleโŒ SingleโŒ SingleโŒ SingleโŒ Single
Privacyโœ… LocalโŒ CloudโŒ CloudโŒ CloudโŒ CloudโŒ Cloud
Open Sourceโœ… MITโŒ NoโŒ Noโš ๏ธ PartialโŒ NoโŒ No
Freeโœ… Yesโš ๏ธ Limited๐Ÿ’ฐ Paidโš ๏ธ Limitedโœ… Yes๐Ÿ’ฐ Paid

๐Ÿ“š Complete Command Reference

๐Ÿ“˜ Full Command Documentation โ€” All 80+ commands with examples

๐Ÿ—‚๏ธ File Operations | ๐Ÿ—๏ธ Build & Create | ๐Ÿ”ง Fix & Run | ๐Ÿค– Model Management | ๐Ÿ” FixNet | ๐Ÿ“ Sessions | ๐ŸŒ GitHub | ๐ŸŒ€ Thermal | ๐ŸŽฎ Fun

Total Commands: 80+ ยท Work Offline: 72% ยท No LLM Required: 80% ยท Avg Response: 15-50ms

See docs/COMMANDS.md for the full reference.


๐Ÿ—๏ธ Architecture

LuciferAI_Local/
โ”œโ”€โ”€ lucifer.py              # Main entry point
โ”œโ”€โ”€ core/
โ”‚   โ”œโ”€โ”€ enhanced_agent.py   # Main agent with FixNet integration
โ”‚   โ”œโ”€โ”€ consensus_dictionary.py  # 51% consensus system
โ”‚   โ”œโ”€โ”€ fixnet_integration.py    # FixNet orchestration
โ”‚   โ”œโ”€โ”€ relevance_dictionary.py  # Fix tracking & relevance
โ”‚   โ”œโ”€โ”€ smart_upload_filter.py   # Duplicate prevention
โ”‚   โ”œโ”€โ”€ model_tiers.py           # Tier configuration
โ”‚   โ””โ”€โ”€ llm_backend.py          # LLM abstraction layer
โ”œโ”€โ”€ tools/
โ”‚   โ”œโ”€โ”€ file_tools.py       # File operations
โ”‚   โ””โ”€โ”€ command_tools.py    # Shell command utilities
โ”œโ”€โ”€ docs/                   # Documentation
โ””โ”€โ”€ tests/                  # Test suite

๐Ÿ“Š Model Tiers

TierSizeRAMUse CaseExample Models
01-3B2-4GBQuick tasksphi-2, tinyllama
13-8B4-8GBGeneral codinggemma2
27-13B8-16GBComplex tasksmistral
313B+16-24GBExpert codingdeepseek-coder
470B+32GB+Frontierllama3.1-70b

๐Ÿค Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

git clone --recursive https://github.com/GareBear99/LuciferAI_Local.git
pip install -r requirements.txt
python -m pytest tests/

๐Ÿ“œ License

MIT License โ€” see LICENSE for details.


๐Ÿ™ Acknowledgments


๐Ÿ“ž Support


Made with ๐Ÿฉธ by LuciferAI