AI
Google's Antigravity SDK Now Runs AI Models Locally, Keeping 97% of Processing On-Device
Developers can now build agentic workflows using local models in Antigravity, cutting cloud token usage while preserving code privacy.
InfoQ
Google has rolled out local model support in its Antigravity SDK, allowing developers to build and run agentic workflows on their own hardware while optionally offloading higher-level reasoning to the cloud. This hybrid approach gives teams better control over data privacy, reduces inference costs, and lets them distribute computational work flexibly across environments.
The Architect-Builder Pattern#
The key innovation behind this capability is the Architect-Builder pattern adapted for mixed cloud-local computing. In this model:
- An architect agent runs in the cloud with high-level context, holding the full system view—including dependencies, constraints, and detailed plans. It breaks work into smaller, discrete tasks without needing access to source code.
- Multiple builder agents operate locally in isolated environments, executing specialized tasks mapped out by the architect's strategy.
This separation keeps code-intensive operations on-device while reserving cloud resources for strategic planning.
Real-World Token Efficiency#
Google demonstrated the approach with a practical example: auditing and patching three vulnerable Python modules. The results showed striking efficiency gains—only 95 out of roughly 3,400 tokens were consumed by cloud processing, with the remaining 97.2% executed locally. Importantly, no source code was uploaded to the cloud.
The local agents handled code-focused work such as reproducing vulnerabilities, proposing fixes, reviewing patches, and running regression tests. This design keeps sensitive implementation details entirely on-device.
Supported Runtimes and Models#
The initial implementation centers on Gemma 4 26B A4B running through Google's LiteRT technology. However, the SDK is not locked into LiteRT—developers can also connect OpenAI-compatible local inference servers via LocalOpenAIAgentConfig, including Ollama, LM Studio, and vLLM.
Community Reaction#
Developers have embraced the capability with cautious optimism. Community members note that local-first workflows offer cost, speed, and quality benefits, though some have flagged practical considerations. One observer pointed out that while the token-efficiency metric is compelling, real-world benchmarks on execution time, overall cost, and energy usage also matter—and that the recommended 24GB+ of VRAM or unified memory represents a genuine hardware requirement for adoption.

