Prepare
Install Gemini CLI, create an APIONE key, and copy the ID of a model supporting the Gemini protocol.Windows installation
Install and check the version in PowerShell.
Example output of installing Gemini CLI in Windows PowerShell.
added 12 packages. After installation, run gemini --version to confirm the command is available before proceeding with configuration.
Configure authentication and the endpoint
Add the following to~/.gemini/.env, where ~ is your home directory:
gemini and select API Key authentication. If you already have settings.json, merge this without removing other settings:
Verify
Troubleshoot
- A Google login prompt usually means the selected authentication mode is not API Key.
- For 404, check that /v1beta is not duplicated and that the model supports Gemini.
- For tool errors, check model capabilities and CLI version before modifying local code.
- If environment settings are ignored, stop the old process and launch from a new terminal that loads them.
Integration directory · Choose a model · Troubleshooting

