Code First. Local LLM Second.
Cloud Last.
Stop burning Cloud AI Agent quota on repetitive loops, raw CI logs, and crashed retries. VieForge adds only 1,459 tokens of one-time overhead and cuts real Cloud token burn by 11x–118x across Antigravity, Claude Code, Cursor, Windsurf, and Codex CLI.
Clone https://github.com/vieforge/vieforge, read AGENT_INSTALL.md, run python scripts/quick_setup.py, and show me the Savings Receipt in plain language.
Exact Token Burn — Verified, Not Marketing Hype
Every number below is generated deterministically on your own machine in 0.3 seconds by running python scripts/benchmark_token_savings.py (standard ceil(chars / 4) token estimator, $0 local run).
| Real-World Workload | Cloud-Only Tokens | VieForge Cloud Tokens | Reduction Factor | Saved |
|---|---|---|---|---|
| One-time Session Overhead (SKILL.md 691 + AGENTS.md 448 + MCP 320) | 0 | 1,459 | — | Paid once |
| 100-Document Batch Classification & JSON Extraction | 23,662 | 200 | 118.3x | -99.2% |
| Noisy CI / Pytest Log + Traceback Compression (390 lines) | 11,150 | 998 | 11.2x | -91.0% |
| 50-Item Job Crashed at 30/50 + SQLite Checkpoint Resume | 17,920 | 457 | 39.2x | -97.4% |
| NET TOTAL (Including 1,459-token session overhead) | 52,732 | 3,114 | 16.9x | -94.1% |
Measured Real-World Savings by Usage Tier (L0–L3)
Aggregated from 55 live Tier-0 QA runs (avg StateDB 1k = 29.57 ms, Trimmer 10k = 13.66 ms) + local batch/CI triage: 243,000 → 1,699 tokens (-99.3% / 143.0x). Run vieforge savings --html report.html to measure your own projects locally.
| Usage Tier | Target User Segment | Volume | Net Token Reduction | Recommended Stack |
|---|---|---|---|---|
| L0 — Casual | Quick Q&A, single-file edits | < 5 items | 0% (below break-even) | Call Cloud Agent directly |
| L1 — Solo Indie / Vibe Coder | Solo devs, freelancers, daily CI logs | 5–50 / day | 70%–88% (3.5x–8.5x) | pip install vieforge && vieforge setup |
| L2 — Power Dev / AI Studio | Multi-project devs, AI media/doc pipelines (8–24 GB VRAM) | 51–500 / day | 88%–95% (8.5x–20x) | batch_session() + SQLite Cache + exclusive_gpu |
| L3 — Team / Enterprise | Agencies, multi-repo CI triage, production workers | 500+ / day | 94%–99% (16x–118x) | Non-root Docker + PolicyGuard + OTel gen_ai.* |
View full 7-case empirical workstation benchmark archive on GitHub →
Interactive Workload Savings Calculator
Pick a preset or slide to match your real batch volume to see exact monthly Cloud token & USD savings.
3-Tier Hybrid Architecture
Every subtask runs on the lowest-cost tier that satisfies accuracy requirements — keeping Cloud Agents focused on high-leverage thinking.
Architecture & Approval Gates
Cloud Agents (Antigravity, Claude Code, Cursor, Windsurf, Codex) handle design, code edits, reviews, and root-cause debugging — never bulk loops.
SQLite WAL + Local LLM Leases
Deterministic Python, SHA-256 deduplication, per-item checkpoints, clean-room log trimming (-91%), and ref-counted Ollama / OpenAI-compat routing.
GPU Subprocess & Capped APIs
OS-isolated child processes with exclusive GPU locking for 8 GB+ cards, plus paid APIs guarded by --dry-run, MAX_RETRY <= 2, MAX_JOB_USD, and DAILY_USD_CAP.
Hardware Profiles (Auto-Detected by preflight_check.py)
| Profile | Workstation | Recommended Local Model | Tier 3 Strategy |
|---|---|---|---|
| CPU-Only | 8–16 GB RAM, No dGPU | qwen2.5:3b / --mock-llm | Deterministic Python + Capped Cloud APIs |
| 8 GB VRAM | RTX 3060 Ti / 4060 | qwen2.5:7b (4-bit) | Unload Ollama (keep_alive=0) → Exclusive GPU Subprocess |
| 12–16 GB VRAM | RTX 3060 12G / 4070 Ti | qwen2.5:14b | Stage-by-stage GPU isolation |
| 24 GB+ / Apple Silicon | RTX 3090/4090 / M-series 32GB+ | qwen2.5:32b | Concurrent Local LLM + Heavy Media Pipeline |
Engineered for Real-World Workstations
Commercial-safe, cross-platform verified across Linux, macOS & Windows, and built for concurrent multi-project workloads.
Multi-Project Concurrency & 3-OS Parity Gate
Run 3+ workspaces simultaneously without colliding job IDs, losing spend logs, or prematurely unloading another project's Ollama VRAM. Verified on real Ubuntu, macOS, and Windows CI runners.
100% MIT Clean-Room Core
Zero third-party dependencies in core/. Automated license_audit.py blocks BUSL-1.1, AGPL-3.0, and CC-BY-NC packages.
Ollama + OpenAI-Compatible Routing
Native Ollama keep_alive=0 VRAM hygiene plus automatic /v1/chat/completions routing for LM Studio, llama.cpp, vLLM, and OpenRouter.
Zero OS-Mutation + 44x Faster SQLite WAL
Never alters Windows Registry, OS services, network stacks, or pagefiles. Single-transaction batch checkpointing handles 1,000 items in ~29 ms and ships as a clean cross-OS wheel.
Radical Honesty: When VieForge Shines vs. When You Don't Need It
We prefer developer trust over hype. Here is the exact break-even reality.
Massive Savings (10x – 118x)
- Processing 10 to 5,000+ docs, tickets, emails, CSV rows, or media items in batches.
- Running noisy test suites, CI builds, or download logs before asking a Cloud Agent to debug.
- Long multi-stage pipelines where crashes/interrupts normally force expensive full re-runs.
- Running 2–4 projects simultaneously on one 8 GB+ GPU machine without VRAM OOM crashes.
Minimal Benefit (Skip VieForge Here)
- Quick 1-turn Q&A or editing a single 50-line file (the 1,459-token session overhead won't pay back in 1 short chat).
- Purely novel architecture brainstorming that requires a frontier Cloud model for every sentence anyway.
- Break-even rule: VieForge pays off its 1,459-token overhead after just 1 noisy log or 3–5 batch items.
Frequently Asked Questions
Straight engineering answers before you clone or install.
Do I need an expensive GPU to use VieForge?
qwen2.5:3b (or offline --mock-llm), and automatically adapts to 8 GB, 12–16 GB, 24 GB+ GPUs, and Apple Silicon via preflight_check.py.Does VieForge send my source code or private data to any server?
How is this different from just running Ollama directly?
Can I use VieForge in commercial or agency projects for free?
python -m core.license_audit automatically blocks AGPL-3.0, BUSL-1.1, and CC-BY-NC dependencies.Which local LLM servers and AI coding agents are supported?
keep_alive=0) plus any OpenAI-compatible server (LM Studio, llama.cpp, vLLM, OpenRouter), and installs skills/MCP configs for Antigravity, Claude Code, Cursor, Windsurf, and Codex CLI.