8 min read

SaaS With Gemini CLI: What Still Works After June 18 Sunset

Google ended Gemini CLI's free tier on June 18, 2026, forcing SaaS builders to rethink architecture. The most portable path is building on open protocols like MCP and A2A rather than a single vendor client. Enterprise licenses and Managed Agents API remain options but add cost and lock-in.

Featured image for "SaaS With Gemini CLI: What Still Works After June 18 Sunset"

Google killed free Gemini CLI access on June 18, 2026, and if you’re planning to build a SaaS product on top of it, that changes everything about your architecture. The open-source terminal agent that amassed roughly 97K GitHub stars is now gated behind enterprise licenses or paid API keys. You can still build with it — but the cost structure, deployment model, and long-term platform risk look fundamentally different than they did three months ago.

Here’s the core problem: most guides to building SaaS with AI coding tools assume the free tier is permanent infrastructure. It’s not. Google demonstrated that when a vendor’s backend consolidation timeline collides with your product roadmap, the community-driven client you built on gets sunset regardless of adoption metrics. If you’re evaluating how to build a SaaS using Cursor without burning your budget, the same vendor-lock-in dynamics apply — but Gemini CLI’s abrupt shutdown makes the lesson far more concrete.

What Gemini CLI Actually Was (and Who Still Gets It)

Gemini CLI was an open-source, Apache-2.0 licensed terminal AI agent primarily written in TypeScript that could read and edit files, run shell commands, fetch web context, and connect to Model Context Protocol (MCP) servers. Before the shutdown, it offered a free tier for personal Google accounts with 60 requests per minute, 1,000 requests per day, and a 1M token context window. That free tier drove adoption — it was the only major terminal coding agent with a real zero-cost option.

On June 18, 2026, Gemini CLI stopped serving requests for free-tier, Google AI Pro, and Ultra users. Enterprise customers on Gemini Code Assist Standard or Enterprise licenses retained access. As of July 2026, building a SaaS with Gemini CLI requires either a Standard/Enterprise license or a paid API key, because consumer access was retired with no grace period.

Gemini CLI is included in both Standard and Enterprise editions of Gemini Code Assist per Google Cloud’s pricing documentation. That’s your entry point if you want to keep using the tool — but it means you’re paying for an enterprise product, not running a free open-source client.

The Real Reason Google Killed the Free Tier

Google’s stated justification for the shutdown was that developers now need multiple communicating agents, implying Gemini CLI couldn’t handle multi-agent workflows. The evidence contradicts this. Gemini CLI supported plan mode — a read-only mode with ask_user clarification and read-only MCP tools — and subagents, which are specialized agents with isolated context for multi-step workflow automation. A LogRocket guide documented building a virtual engineering team using these subagents, splitting work across backend, frontend, testing, and documentation agents. The Google Developers Blog confirmed plan mode for architectural mapping and iterative design.

What I call the Backend Gravity pattern explains the real driver: Google needed to consolidate developer tooling onto a closed-source Antigravity CLI and server-side Managed Agents infrastructure built in Go. The free open-source client was an obstacle to that unification, not a capability gap. Google replaced a free open tier with compute-cap monetization and a unified backend. The multi-agent narrative was the justification, not the cause.

This matters for your SaaS architecture because it tells you where the durable value sits. Google opened a remote MCP server on June 30, 2026, allowing external agents like Claude Code to connect to Google Cloud resources. On July 7, 2026, Google added background execution, remote MCP integration, custom function calling, and credential refresh to Managed Agents in the Gemini API. The backend is opening up. The client is closing down. Your SaaS should anchor on the protocols, not the terminal tool.

Architecture Options: What You Can Still Build With

You have three viable paths for building a SaaS on Google’s agent infrastructure as of July 2026. Each carries different cost, lock-in, and portability tradeoffs.

Path 1: Gemini CLI With Enterprise License

Gemini CLI remains functional if you hold a Gemini Code Assist Standard or Enterprise license. You get the terminal-native workflow, plan mode, subagents, and MCP support. The tool can inspect codebases, edit files, run shell commands, and connect to external data sources through MCP servers.

The tradeoff is cost and ecosystem decline. Google has made clear that Antigravity CLI is the forward path, and community support for Gemini CLI will shrink. You’re building on a tool that’s officially deprecated for new features.

Path 2: Managed Agents API (Server-Side)

Google’s Managed Agents sit inside the Gemini Interactions API — a single endpoint where Gemini handles reasoning, code execution, package installation, file management, and web browsing inside an isolated cloud sandbox. The July 7 update added background execution for long-running tasks, which means you can run asynchronous agent workflows without holding an HTTP connection open. The API returns an ID, and your client polls for status.

This is the most production-ready path for a SaaS. You get server-side execution, credential refresh, and remote MCP integration. You also get proprietary lock-in — the Managed Agents API is server-side and closed.

Path 3: Open Protocols (MCP + A2A) With Any Client

Google launched a remote MCP server for the Gemini Enterprise Agent Platform that lets external agents connect to Google Cloud resources via the open Model Context Protocol. Agents built in Claude Code, Antigravity CLI, or any MCP-compatible client can call models from Model Garden, access shared prompt templates, and manage notebooks. Google is also pushing the Agent2Agent (A2A) protocol as the interoperability layer for third-party agents.

This is the most portable path. You build your SaaS on open protocols and let your customers use whatever agent client they prefer. You avoid tying your product to a specific terminal tool that could be sunset next quarter.

ApproachPricingKey FeaturesTarget Audience
Gemini CLI (Enterprise)Included in Code Assist Standard/Enterprise per Google Cloud pricingPlan mode, subagents, MCP, local file controlTeams already on Google Cloud enterprise licenses
Managed Agents APIBackground execution, remote MCP, custom functions, credential refresh per Google’s API updateSaaS builders needing server-side async agent workflows
Remote MCP ServerOpen MCP protocol, external agent support, Cloud IAM governance per Google Cloud BlogTeams wanting portable, client-agnostic architecture

CI/CD and Deployment: The DevOps Extension

If you’re building a SaaS, you need a deployment pipeline, not just a coding agent. Gemini CLI offered a DevOps Extension for CI/CD that installed via gemini extensions install and bridged local code to cloud deployment on Google Cloud Run and CI pipelines. The extension handled both quick deployments and full pipeline generation from a single terminal interface.

Here’s the catch: that extension was designed for Gemini CLI. If you’re migrating to Antigravity CLI or building on Managed Agents, you’ll need to rewire your CI/CD integration. The DevOps extension also works with Claude Code via a plugin marketplace install, and with Antigravity through npx skills. That cross-compatibility is your safety net — if one client breaks, the extension’s MCP server can serve another.

For a SaaS architecture, the deployment question is really about where your agent runs. Local terminal execution gives you control but doesn’t scale. Server-side Managed Agents give you async execution but add latency and vendor dependency. The right answer depends on whether your SaaS needs real-time agent responses or can tolerate background processing.

Cost Analysis: What You’ll Actually Pay

The free tier is gone. Let’s be direct about what that means for your SaaS budget.

Before June 18, a solo developer could build and test an entire application using 1,000 free requests per day with a 1M token context window. That’s no longer an option. You’re now choosing between enterprise license costs and API consumption billing.

Gemini Code Assist Standard and Enterprise editions include Gemini CLI access, but the pricing is per-user — not per-request. If your SaaS needs multiple developers or automated agents running simultaneously, the per-seat model adds up. API key access means you pay per token and per request, which scales with usage but introduces unpredictable costs.

The Managed Agents API adds another cost layer: server-side sandbox execution. You’re paying for compute, not just model inference. Background execution means tasks can run for minutes, consuming resources the entire time. For a SaaS with multiple concurrent users, that’s a scaling cost you need to model before committing.

Google has not published specific per-request pricing for Managed Agents in the research available. If you’re evaluating this path, you’ll need to contact Google Cloud sales or run a controlled pilot to measure actual consumption. Don’t assume the cost structure mirrors the old free tier — it doesn’t.

Migration Risk and Long-Term Platform Strategy

The Gemini CLI shutdown happened with no grace period. One day the tool worked, the next day it returned errors. If you’re building a SaaS on any single vendor’s client tool, that’s your risk model.

Google’s own migration guide documents the breaking changes: the binary name changes from gemini to agy, the language shifts from TypeScript to Go, MCP config moves to a separate file, and the request quota shifts from daily to weekly. Scripts, CI pipelines, and shell aliases all need manual updates. Google explicitly states there is no 1:1 feature parity at launch.

The deeper lesson isn’t about Gemini CLI specifically. It’s about what happens when a vendor’s backend consolidation timeline overrides your product roadmap. Google opened remote MCP and A2A to competitors while closing the client — proving the durable value is in cloud-hosted agent infrastructure, not terminal CLIs. Your SaaS should depend on the protocol layer, not the client layer.

If you’re starting fresh, ask yourself: does your product need a specific terminal client, or does it need agent capabilities that work across clients? If it’s the latter — and for most SaaS products, it is — build on MCP and A2A. Use whatever client is best today, and design your architecture so you can swap it tomorrow. The pricing arc from free tier to forced migration is the playbook for how vendor capture works. Your job is to build infrastructure that survives the next one.

The open question isn’t whether to build on Google’s agent infrastructure — it’s whether you can afford to depend on a single vendor’s client when the backend consolidation pattern has now been demonstrated twice in twelve months. What’s your fallback if Antigravity CLI gets the same treatment in 2027?