Skip to content

Commit 2086810

Browse files
committed
feat(auth): run Gemini credentials converter at container startup
Add logic to entrypoint.sh to automatically detect and convert Gemini OAuth credentials when the container starts. Uses configurable paths for credentials and converter script with sensible defaults.
1 parent ca33622 commit 2086810

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

entrypoint.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,11 @@
44
# Ensure MISE configuration is loaded
55
source /etc/bash.bashrc
66

7+
GEMINI_CREDS_PATH="${GEMINI_OAUTH_CREDS_PATH:-$HOME/.gemini/oauth_creds.json}"
8+
CONVERTER_PATH="${CONVERTER_PATH:-/usr/local/bin/convert-gemini.auth.ts}"
9+
10+
if [[ -f "${GEMINI_CREDS_PATH}" ]]; then
11+
bun "${CONVERTER_PATH}"
12+
fi
13+
714
exec /usr/local/bin/opencode "$@"

0 commit comments

Comments
 (0)