Secure Git BridgeGemini Guide
Home Security Pricing Get Started

Gemini Guide

Connect Gemini once. Control repository access in Secure Git Bridge.

Configure the Secure Git Bridge user-scope MCP connector for Gemini once, then authorize each intended Gemini session to one approved repository with a fresh one-time code and local Confirm.

1. Install Secure Git Bridge once

Add the Git repositories you want Secure Git Bridge to protect. Each repository keeps its own isolated helper, rotating broker capability, protected-file policy, audit chain, and patch proposal store.

2. Connect Gemini once

Open Gemini in Secure Git Bridge and choose Connect Gemini. Secure Git Bridge copies the one-time Gemini CLI user-scope MCP setup command and opens Terminal. Paste the command once. Secure Git Bridge does not execute the shell command and does not place repository credentials in it. The setup creates an empty ~/.secure-git-bridge/gemini-session folder for SSGB-only Gemini sessions. If Gemini CLI is not installed or is not on the Terminal PATH, the setup command stops with a clear retry message. Start Gemini from the empty SSGB folder; if Gemini requires workspace trust for stdio MCP, run gemini trust only from that empty folder. From inside an already-running Gemini session, /permissions trust is the documented in-session alternative. Do not trust your source repository merely to make Secure Git Bridge connect. Secure Git Bridge remains Setup pending until Gemini actually connects and exposes the Secure Git Bridge MCP tools.

The provider connector contains no repository path, repository ID, or repository broker credential. Provider setup and repository authority are separate.

3. Authorize the intended Gemini session

Select the approved repository in Secure Git Bridge and choose Copy One-Time Connection Message. Paste that exact message into the intended Gemini session. The session calls activate_session with the short-lived code, but the code alone grants no repository access. Verify the matching session code in the Secure Git Bridge desktop app and click Confirm. Only then is that exact session pinned to the selected repository. Gemini cannot enumerate, choose, or switch repositories through its connector.

To use another repository, revoke or unbind the current session, select the next repository, and authorize the intended session with a fresh one-time code plus local Confirm. The provider connector stays installed; no reinstall is required.

4. Work through the Secure Git Bridge tools

  • Read only policy-permitted repository content.
  • Protected files and path escapes remain blocked.
  • Git status, log, and diff remain repository-scoped.
  • The AI may create patch proposals for local review.
  • There is no Secure Git Bridge shell, repository picker, approval, rejection, or Apply tool for the AI.

Apply remains human-only inside Secure Git Bridge.

The one-time Gemini command configures only Gemini's provider-router identity. Repository authority is added later inside Secure Git Bridge.

Disconnect without reinstalling

Unbind revokes Gemini's confirmed session route while leaving the provider connector configured. A later AI session requires a fresh one-time code and local Confirm. Disconnect This Repository revokes every AI route to that repository. Disconnect All AI Access revokes all repository routes. Provider connectors can remain installed and be used again without reinstalling.

What “Connected,” “Bound,” and “Active” mean

Setup pending means setup was handed off but the provider has not yet verified the Secure Git Bridge MCP tools. Connector ready means the connector was actually verified and still has no repository authority. Bound means the local developer confirmed one exact AI session for one repository. Active is shown only while that confirmed session has live provider MCP traffic.

Provider account and data flow

Your Gemini account, plan, usage, retention, and provider-side privacy terms remain with the provider. Repository content you intentionally authorize the AI to inspect can be transmitted to that provider through the normal AI interaction. Secure Git Bridge controls the local repository boundary and records access; it does not claim provider-side data handling.

Next steps

Download Secure Git Bridge Open the quick start

For the trust boundary and release model, see Security and How It Works.

© 2026 Secure Git Bridge™.
Security Docs Releases Privacy