Integrations / Coding agents

SecureAI + Gemini CLI

Your developers keep Gemini CLI. SecureAI checks the prompt before Gemini CLI calls the model, and flags the sessions that started without its hooks.

Everyone wins

Gemini CLI
acme/apirepoacme/webrepoacme/infrarepo

Developers keep Gemini CLI

Same CLI, same repositories. SecureAI works through Gemini CLI’s system settings.

git diff

Security sees the gaps

Secrets and your DLP rules stop the prompt before the model, and SecureAI flags each session that ran without hooks.

Without SecureAI0tokens billed
With SecureAI0tokens billed

Finance pays less

A blocked prompt never reaches the model, so nobody pays tokens for it.

How it works

From the developer’s terminal to your console

  1. 01

    SecureAI configures Gemini CLI

    The SecureAI Agent writes Gemini CLI’s system settings with its hooks, in C:\Program Files\GeminiCli, and points Gemini CLI to them.

  2. 02

    A key in the prompt stays on the laptop

    A developer pastes an AWS key. The hook denies the prompt before Gemini CLI calls the model.

  3. 03

    A session without hooks does not go unnoticed

    If Gemini CLI fails to load its system settings, it runs without hooks. SecureAI detects that session and flags it in your console.

  4. 04

    Each session in your console

    You see each session with its repository and model, next to what SecureAI blocked.

What you get

System settings and hooks

SecureAI writes Gemini CLI’s system settings for every user on the machine.

DLP before the model

SecureAI checks the prompt for secrets and your DLP rules before Gemini CLI calls the model.

Sessions without hooks, flagged

When Gemini CLI starts without loading its hooks, SecureAI detects the session and reports it.

Risky commands denied

The guard denies commands such as piping a download into the shell or a git force-push before they run.

Each step of the session

SecureAI records each session step by step: the commands, the files and the MCP calls. Of the prompt it keeps only the length.

Observe first, enforce when ready

The guard can start by reporting what it would deny, and move to blocking when your team is ready.

Requirements

  • The SecureAI Agent on each machine.
  • Hooks and DLP tested with Gemini CLI 0.68.