100% Local β’ Apple Silicon Metal GPU-Accelerated β’ Zero Cloud Dependency β’ Federated Weight Merging
ButaAI is an on-device autonomous software engineering studio that operates 100% locally on your machine across Windows 10/11, macOS (Apple Silicon), and Linux. Instead of sending your private code, database schemas, and intellectual property to cloud AI APIs (OpenAI, Anthropic, Google), ButaAI turns your workstation into a full software development agency powered by a 6-specialist autonomous engineering squad.
Furthermore, through Decentralized Swarm LoRA & P2P 16MB Chunk Distribution, millions of ButaAI developers collectively improve one unified open-weights model by training lightweight parameter delta adapters from validated unit tests without sharing any proprietary code.
ButaAI auto-detects your platform and dynamically switches acceleration backends:
| OS / Platform | Hardware Acceleration | Training Engine | Fuser & Quantizer Backend |
|---|---|---|---|
| macOS (M1βM4) | Apple Silicon Metal GPU (MPS) | Apple MLX / Metal MPS | MLX Fast-Fuse + 4-Bit Unified Memory |
| Windows 10/11 | NVIDIA GeForce RTX (CUDA 12.x+) | PyTorch + CUDA Wheels | PyTorch PEFT + BitsAndBytes 4-bit / GGUF Q4_K_M |
| Windows 10/11 | AMD Radeon / Intel Arc | DirectML (torch-directml) |
FP16 DirectML Merge |
| Windows / Linux | Multi-Core x86_64 CPU | AVX-512 / OpenMP PyTorch | CPU GGUF Quantization |
Why is an on-device specialized squad superior to monolithic cloud LLMs for software development?
| Feature | Cloud Monoliths (Claude 3.5 Sonnet / GPT-4o) | ButaAI Autonomous Studio |
|---|---|---|
| Data Privacy | β Code and schemas sent to remote cloud data centers | β 100% On-Device. Local GPU RAM execution, zero telemetry |
| Running Cost | β $15 β $30 per 1M tokens ($100s/mo in API bills) | β $0.00 Forever. Free local GPU computation |
| Cognitive Architecture | β Single generalist prompt approves its own code | β 6 Isolated Specialists with strict adversarial QA veto |
| Offline Operation | β Zero functionality without internet | β 100% Offline. Code on planes, trains, and air-gapped setups |
| Model Evolution | β Static proprietary weights updated twice a year | β Decentralized Swarm LoRA. Collective weights merge continuously |
| P2P Distribution | β Giant multi-gigabyte cloud bottlenecks | β 16 MB P2P Chunks. Merkle-verified BitTorrent / peer LAN sync |
| Deliverables & Live Canvas | β Disjointed markdown blocks | β Interactive Live Canvas. Mobile/Tablet frames, code copy & .ZIP export |
| Multimodal Assets | β Cloud token fees for images & video | β Native On-Device Creation. Vector SVGs, Flutter animations, 18s kinetic launch video storyboards |
ButaAI includes native on-device tools to craft complete creative and engineering assets:
- πΌοΈ Procedural Vector SVGs (
generate_image): Generates crisp, infinite-resolution app icons, badges, UI mocks, and architecture diagrams directly on disk with specular lighting, concentric beveled borders, and instant web previews. - β¨ 60 FPS Motion & Physics (
generate_animation): Synthesizes production-ready FlutterCustomPainterwidgets withAnimationControllerand hardware-accelerated CSS keyframe animations. - π¬ 18-Second Launch Video Storyboards (
generate_video_storyboard): Produces high-retention launch video blueprinted into 5 cinematic acts (Hook, Problem, Reveal, Proof, CTA) with JSON timeline data, interactive HTML5 web player, and automated FFmpeg render scripts. - π± Live Multi-Agent Interactive Canvas: Live interactive preview workspace directly inside the Cockpit featuring mobile (340x640), tablet (460x600), and fluid desktop frames with responsive reactive state testing and code inspection.
When you pitch a feature or complete app concept, ButaAI orchestrates 6 dedicated engineering specialists who debate requirements and self-verify before writing production code:
- π© Buta CEO: Executive scoping, milestone planning, and release roadmaps.
- π Product Architect: Rigorous PRDs, user stories, edge cases, and acceptance criteria.
- π System Architect: Clean Architecture, SQLite entity relational schemas, and state management patterns.
- π¨ Lead Frontend Engineer: Modern design systems, liquid glass styling tokens, responsive layouts, and zero-leak controllers.
- βοΈ Lead Backend Engineer: High-performance SQLite repositories, batch transactions, and data pipeline caching.
- π‘οΈ QA & Security Verifier: Automated unit test suites, mock generation, memory leak audits, and vulnerability guardrails.
Traditional AI training requires hundreds of millions of dollars in centralized compute. ButaAI introduces Decentralized Swarm Weight Merging via GitHub Actions & P2P Swarm:
[Developer A: Windows RTX 4090] ββ Verified 100% Tests ββ> [Adapter ΞWA] βββ
[Developer B: MacBook M3 Max] ββ Verified 100% Tests ββ> [Adapter ΞWB] βββΌβ> [P2P 16MB Chunk Swarm] ββ> [Master Model]
[Developer C: Linux Titan GPU] ββ Verified 100% Tests ββ> [Adapter ΞWC] βββ
- Local Gradient Generation: When you build an application and the QA Verifier confirms a 100% green test pass, your local engine calculates a lightweight rank-16 LoRA adapter in under 60 seconds on Apple Silicon Metal or Windows NVIDIA CUDA.
- 16 MB BitTorrent / P2P Swarm Chunks: Large 35 GBβ40 GB adapters are sliced into 16 MB content-addressed blocks with cryptographic SHA-256 Merkle root verification, enabling zero-cloud LAN/peer sync.
-
4-Bit Model Fuser: Locally merges adapters into the base Ollama model and exports a quantized GGUF (
buta-ai:colossus-fused) for lightning-fast memory-efficient inference. -
Zero Privacy Leakage: Only mathematical delta weights (
$\Delta W$ ) and test-pass assertions are synchronized; your proprietary code never leaves your machine.
Option A: 1-Line PowerShell Bootstrap (Run as Administrator or User):
iwr -useb https://raw.githubusercontent.com/bekovrafik/ButaAI/main/install.ps1 | iexOption B: Double-Click Batch Installer:
- Clone the repo:
git clone https://github.com/bekovrafik/ButaAI.git - Double-click
install.batto automatically install dependencies and configure NVIDIA CUDA / DirectML. - Double-click
launch.batanytime to launch the Gateway and open the Cockpit!
Option A: 1-Line Automated Install:
curl -fsSL https://raw.githubusercontent.com/bekovrafik/ButaAI/main/install.sh | bashOption B: Manual Setup:
# 1. Clone repository
git clone https://github.com/bekovrafik/ButaAI.git
cd ButaAI
# 2. Install dependencies & build Gateway
npm install
npm run build
# 3. Launch with 1-click script
./Start\ ButaAI.commandOpen your browser at http://localhost:8080 to access the Cockpit Studio!
ButaAI/
βββ app/ # Flutter Web & Desktop Cockpit Studio
β βββ lib/screens/ # Interactive Cockpit UI & Streaming Chat
β βββ lib/widgets/ # Live Canvas, Specialist Avatars, Deliverables & Instincts
β βββ lib/services/ # Local Gateway, Hardware & Metal/CUDA Connectors
βββ src/ # High-Performance Node.js / TypeScript Gateway
β βββ agents/specialists.ts # 6 Autonomous Specialist Prompts & Personas
β βββ core/engine.ts # Multi-Turn Tool Calling & Execution Loop
β βββ tools/media_tools.ts # Multimodal Generator (Vector SVGs, Flutter Animations, 18s Video)
β βββ swarm_hub.ts # Decentralized LoRA Consensus & Adapter Sync
β βββ swarm_p2p.ts # P2P 16MB Chunk Distribution & Merkle Engine
βββ training/ # Cross-Platform Local ML Training & Swarm LoRA
β βββ data/ # Verified JSONL Instruction & Multimodal Datasets
β βββ generate_dataset.py # High-Purity Synthetic Dataset Synthesizer
β βββ train.py # Cross-Platform QLoRA Trainer (Metal MPS & NVIDIA CUDA)
β βββ fuse_quantize.py # 4-Bit Model Fuser (MLX & PyTorch BitsAndBytes)
β βββ swarm_merger.py # FedAvg Parameter-Space LoRA Merger & Safety Auditor
β βββ github_trainer.py # GitHub Swarm Synchronizer & Delta Contributor
βββ .github/workflows/ # CI and GitHub Swarm Training Release Pipeline
β βββ ci.yml # Engine & Flutter Build Verification
β βββ buta_swarm_train.yml # Decentralized Swarm LoRA Train & Release Bot
βββ docs/ # Architecture & Training Manifestos
β βββ AI_ARCHITECTURE_AND_TRAINING.md
βββ install.sh # macOS / Linux 1-Click Installer
βββ install.ps1 # Windows 10/11 PowerShell Bootstrap Installer
βββ install.bat # Windows Double-Click Batch Installer
βββ launch.bat # Windows 1-Click Service Launcher
βββ Start ButaAI.command # macOS 1-Click Double-Click Launcher
python3 training/github_trainer.py --syncDownloads the verified consensus master LoRA adapter from GitHub Releases (swarm-weights-latest), audits cryptographic SHA-256 integrity, and activates it on your Apple Silicon Metal GPU.
# macOS (Apple Silicon Metal MPS)
python3 training/train.py 20
# Windows 10/11 (NVIDIA CUDA or CPU)
python training/train.py 20# Merges the 35GB-40GB collective adapter into Ollama with 4-bit quantization
python3 training/fuse_quantize.py --tier colossus --quantize 4bit
# Run the fused model immediately
ollama run buta-ai:colossus-fusedpython3 training/github_trainer.py --contributeAudits your trained weights for privacy (guaranteeing zero personal code or prompt text leakage), packages a verified contribution_manifest.json, and guides you to open a PR for collective FedAvg synthesis on GitHub Actions!
python3 training/generate_dataset.pyWe welcome contributions from engineers, researchers, and creators worldwide!
- Check out CONTRIBUTING.md for guidelines.
- Submit issues using our Bug Report or Feature Request templates.
- Share your custom LoRA weights via the LoRA Adapter Proposal template.
ButaAI is licensed under the Apache License 2.0.
Created and maintained with β€οΈ by Rafik Bekov and the Butalabs team.