Gemini CLI v0.71.1: bearer-token auth for the A2A server#
Published by Alex Sorokoletov
Part of the Gemini CLI Version Tracker series. | Gemini CLI on GitHub | Releases
Gemini CLI v0.71.1 is a patch over v0.70.0 whose one change makes the A2A server require a bearer token in the Authorization header, read from GEMINI_IPC_SECRET or CODER_AGENT_AUTH_TOKEN, validate request Host and Origin headers, and decide workspace trust server-side. The intervening v0.71.0 parses PowerShell commands asynchronously so the interface spinner no longer freezes.[1]
The A2A server now requires a bearer token#
The patch that creates v0.71.1 hardens the A2A server in packages/a2a-server.[2] Clients must send a bearer token in the Authorization header, read from GEMINI_IPC_SECRET or CODER_AGENT_AUTH_TOKEN. A request without a matching token gets a 401, and when no token is configured, every request gets a 500.[2]
Alongside the token check, the server validates the request headers: Host must be a loopback name, and Origin must be loopback when it is present. Anything else returns 403. A rate limit returns 429 after 100 unauthenticated requests in a minute.[2]
Two more changes move trust and path decisions to the server. createTask() validates the workspacePath and ignores a client-supplied isTrusted value, so trust is decided server-side. The restore command rejects checkpoint paths that resolve outside the checkpoint directory.[2]
| Variable | What It Does |
|---|---|
GEMINI_IPC_SECRET | Holds the bearer token the A2A server checks in the Authorization header. The server reads it, or CODER_AGENT_AUTH_TOKEN, and rejects a request whose token does not match.[2] |
v0.71.0 parses PowerShell commands asynchronously#
In v0.71.0, PowerShell commands are parsed asynchronously, which stops the interface spinner from freezing while a command is parsed.[3] The fix spans the core and CLI packages.
Set a secret or the A2A server returns 500#
A setup that runs the CLI as an A2A endpoint without a configured token now gets a 500 until GEMINI_IPC_SECRET or CODER_AGENT_AUTH_TOKEN is set.[2] The token, the loopback Host and Origin checks, the rate limit, and the server-side trust decision all gate the same local endpoint, so a client that reached it before by sending its own isTrusted flag or a checkpoint path outside the directory no longer does.
This is a small release between stable tags. Most of the work lands in the A2A server; the PowerShell parse is the one fix that touches the interactive session directly.
Sources#
- [1] Gemini CLI v0.71.1 release notes
- [2] PR #30420: enforce bearer token authentication and request input validation on the A2A server
- [3] PR #30334: parse PowerShell commands asynchronously to prevent UI spinner freeze
This analysis is based on publicly available open-source code and release metadata, conducted for educational and research purposes. All trademarks and software referenced belong to their respective owners.
Previous Gemini CLI analysis: v0.70.0 (November 26, 2026)
All 13 Gemini CLI analyses: Gemini CLI Version Tracker · Official Gemini CLI changelog