gemini-cli - 💡(How to fix) Fix Feature request: credential helper / external credential process for dynamic API key & token provisioning [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
google-gemini/gemini-cli#26989Fetched 2026-05-14 03:45:52
View on GitHub
Comments
0
Participants
1
Timeline
8
Reactions
0
Participants
Timeline (top)
labeled ×6issue_type_added ×1unlabeled ×1

Code Example

#!/bin/bash
# Fetches a GCP OIDC identity token.
# Usage: get-proxy-token.sh <audience-url>
AUDIENCE="${1:?Usage: get-proxy-token.sh <audience-url>}"
curl -sf -H "Metadata-Flavor: Google" \
  "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/identity?audience=${AUDIENCE}&format=full"
RAW_BUFFERClick to expand / collapse

What would you like to be added?

Support for the ability to configure a custom script to generate the value of Authorization: Bearer header for model requests (e.g., parity with claude code's apiKeyHelper).

Why is this needed?

I am operating in GCP and would like to use short lived GCP OIDC identity tokens for inference auth, e.g. as generated by a script like

#!/bin/bash
# Fetches a GCP OIDC identity token.
# Usage: get-proxy-token.sh <audience-url>
AUDIENCE="${1:?Usage: get-proxy-token.sh <audience-url>}"
curl -sf -H "Metadata-Flavor: Google" \
  "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/identity?audience=${AUDIENCE}&format=full"

Claude code supports this via apiKeyHelper (which also has some affordance for refresh intervals, etc). As far as I can tell Gemini currently only supports static values for auth.

Additional context

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING