AI coding agent admin guide·verified October 21, 2026

is gemini cli safe for company code

Gemini CLI’s data terms depend on how users sign in. Its sandbox is off by default, and it has had critical CVEs. Status, defaults and admin controls as of October 2026.

the short answer

It depends on how users authenticate. On Gemini Code Assist Standard or Enterprise and paid Gemini API keys, Google does not use prompts or responses to train its models; on the unpaid API tier, content may be used and human reviewers may read it. Locally, the sandbox is off by default and two 2026 CVEs reached code execution through workspace configuration. Pin the auth type, enable the sandbox, and use the admin policy engine.

Training
Not on Code Assist Standard/Enterprise or the paid API; may be used on the unpaid API tier
Consumer access
Login with Google ended June 18, 2026 for Code Assist for individuals and AI Pro/Ultra; Standard/Enterprise unchanged
Code Assist
No new sales since October 9, 2026; runs to contract end
Sandbox
Off by default; on by default with --yolo
Admin controls
System settings, admin policy engine, enterprise controls

Status as of October 2026

Google stopped serving Gemini CLI requests for Gemini Code Assist for individuals and Google AI Pro and Ultra on June 18, 2026, and points those users to Antigravity CLI. Gemini CLI remains available with paid Gemini API or Agent Platform keys and Code Assist Standard or Enterprise. Code Assist Standard and Enterprise stopped new sales on October 9, 2026; license additions and annual renewals end January 31, 2027, with no shutdown date announced.

What Happens to Your Code, by Sign-in Path

Pin the method with security.auth.enforcedType in system settings so developers cannot fall back to an unpaid key.

Sign-in pathTermsTraining
Code Assist Standard or EnterpriseGoogle Cloud terms“Gemini doesn’t use your prompts or its responses as data to train its models”
Paid Gemini API keyGemini API paid termsNot used to improve products; logged for a limited period for abuse detection
Unpaid Gemini API key (if still accepted by Gemini CLI)Gemini API unpaid termsUsed to provide and improve products; human reviewers may read input and output
Vertex AI keyGoogle Cloud termsPer Google Cloud terms

What the Local Agent Can Do by Default

AreaDefault
Approval modedefault: prompts for approval; auto_edit and plan (read-only) also available
YOLOOnly by --yolo or --approval-mode=yolo; blocked by security.disableYoloMode
SandboxDisabled by default; enabled by --sandbox, GEMINI_SANDBOX or tools.sandbox, and by default with --yolo
Trusted foldersUntrusted folders run in safe mode (no project settings or .env loading); the docs conflict on whether folder trust is on by default, and the current source says it is
Local session filesPrompts, responses and tool executions saved for 30 days

Gemini CLI Vulnerabilities

IDDisclosedImpactFixed
Tracebit report (no CVE)Jul 2025Prompt injection in a repository README plus a command-allowlist prefix bypass → silent command execution0.1.14
CVE-2026-12537Apr 2026Headless mode auto-trusted the workspace and --yolo ignored tool allowlists → RCE in CI (critical)0.39.1
CVE-2026-13745Sep 2026A malicious .env overrides GEMINI_CLI_HOME, loading attacker config past folder trust → code execution0.39.1

Admin Controls

Gemini CLI is not one of the harnesses Failproof hooks, so these vendor controls are the enforcement layer for it; Antigravity CLI is a supported Failproof harness. See where each agent reads admin policy.

ControlEffect
System settings.jsonOverrides user and project settings; users with sufficient privileges can still change it
security.disableYoloMode: trueNo YOLO mode
tools.core, mcp.allowedTool and MCP allowlists
Admin policy engine (/etc/gemini-cli/policies and equivalents)TOML rules at the admin tier, which always wins
Enterprise admin controls (Management Console)Strict mode (no YOLO) on by default; extensions and MCP off by default; cannot be overridden locally

FAQ

Can employees still use Gemini CLI with a personal Google account?

Not for Code Assist for individuals or Google AI Pro and Ultra since June 18, 2026. Google says Gemini CLI remains available with paid Gemini API keys, and possibly unpaid ones, so a personal key is still a route; that is why pinning the auth type matters.

Is the Gemini CLI sandbox on by default?

No, except with --yolo. Require it with tools.sandbox in system settings.

Does Failproof enforce policies on Gemini CLI?

No. Gemini CLI is not a supported Failproof harness; use its admin policy engine and enterprise controls.

Sources

Checked against the sources below on October 21, 2026. Harness settings, hook capabilities and cloud features change between versions.

  1. Google: Gemini Code Assist for individuals deprecation
  2. Google Developers Blog: Transitioning Gemini CLI to Antigravity CLI
  3. Google Cloud docs: Gemini Code Assist sunset
  4. Gemini CLI docs: Terms of service and privacy
  5. Google: Gemini API additional terms
  6. Google Cloud docs: Gemini data governance
  7. Gemini CLI docs: Sandbox
  8. Gemini CLI docs: Trusted folders
  9. Gemini CLI docs: Enterprise admin controls
  10. Gemini CLI docs: Policy engine
  11. Tracebit: Gemini CLI code execution via prompt injection (Jul 2025)
  12. GitHub advisory GHSA-wpqr-6v78-jr5g (CVE-2026-12537)
  13. NVD: CVE-2026-13745
  14. Failproof AI docs: Agent harnesses and enforcement capability