Install and run geminicli2api via Docker
mainYou can deploy the proxy using Docker. You must provide a GEMINI_AUTH_PASSWORD for API access and one of the Google credential sources.
To run on the default port 8888:
docker run -p 8888:8888 \
-e GEMINI_AUTH_PASSWORD=your_password \
-e GEMINI_CREDENTIALS='{"client_id":"...","token":"..."}' \
-e PORT=8888 \
geminicli2apiTo run on port 7680 (compatible with Hugging Face Spaces):
docker run -p 7680:7680 \
-e GEMINI_AUTH_PASSWORD=your_password \
-e GEMINI_CREDENTIALS='{"client_id":"...","token":"..."}' \
-e PORT=7680 \
geminicli2api# Build the image
docker build -t geminicli2api .
# Run on default port 8888 (compatibility)
docker run -p 8888:8888 \
-e GEMINI_AUTH_PASSWORD=your_password \
-e GEMINI_CREDENTIALS='{"client_id":"...","token":"..."}' \
-e PORT=8888 \
geminicli2api