General issues
Why can't I use third-party software (e.g. Claude Code, OpenClaw, OpenCode) with Gemini CLI?
Why can't I use third-party software (e.g. Claude Code, OpenClaw, OpenCode) with Gemini CLI?
Why am I getting an API error: 429 - Resource exhausted?
Why am I getting an API error: 429 - Resource exhausted?
- Check your usage: Review your API usage in the Google AI Studio or your Google Cloud project dashboard.
- Optimize your prompts: If you are making many requests in a short period, try to batch your prompts or introduce delays between requests.
- Request a quota increase: If you consistently need a higher limit, you can request a quota increase from Google.
Why am I getting an ERR_REQUIRE_ESM error when running npm run start?
Why am I getting an ERR_REQUIRE_ESM error when running npm run start?
package.json or tsconfig.json. Ensure that:- Your
package.jsonhas"type": "module". - Your
tsconfig.jsonhas"module": "NodeNext"or a compatible setting in thecompilerOptions.
node_modules directory and package-lock.json file, and then run npm install again.Why don't I see cached token counts in my stats output?
Why don't I see cached token counts in my stats output?
/stats command in Gemini CLI.Installation and updates
How do I update Gemini CLI to the latest version?
How do I update Gemini CLI to the latest version?
npm, update it using the command npm install -g @google/gemini-cli@latest.If you compiled it from source, pull the latest changes from the repository, and then rebuild using the command npm run build.Platform-specific issues
Why does the CLI crash on Windows when I run a command like chmod +x?
Why does the CLI crash on Windows when I run a command like chmod +x?
chmod are specific to Unix-like operating systems (Linux, macOS). They are not available on Windows by default.To resolve this, you can:- Use Windows-equivalent commands: Instead of
chmod, you can useicaclsto modify file permissions on Windows. - Use a compatibility layer: Tools like Git Bash or Windows Subsystem for Linux (WSL) provide a Unix-like environment on Windows where these commands will work.
Configuration
How do I configure my GOOGLE_CLOUD_PROJECT?
How do I configure my GOOGLE_CLOUD_PROJECT?
GOOGLE_CLOUD_PROJECT environment variable in your shell:macOS/Linux~/.bashrc, ~/.zshrc).What is the best way to store my API keys securely?
What is the best way to store my API keys securely?
- Use a
.envfile: Create a.envfile in your project’s.geminidirectory (.gemini/.env) and store your keys there. Gemini CLI will automatically load these variables. - Use your system’s keyring: For the most secure storage, use your operating system’s secret management tool (like macOS Keychain, Windows Credential Manager, or a secret manager on Linux). You can then have your scripts or environment load the key from the secure storage at runtime.
Where are the Gemini CLI configuration and settings files stored?
Where are the Gemini CLI configuration and settings files stored?
settings.json files:- In your home directory:
~/.gemini/settings.json. - In your project’s root directory:
./.gemini/settings.json.
Google AI Pro/Ultra and subscription FAQs
Where can I learn more about my Google AI Pro or Google AI Ultra subscription?
Where can I learn more about my Google AI Pro or Google AI Ultra subscription?
How do I know if I have higher limits for Google AI Pro or Ultra?
How do I know if I have higher limits for Google AI Pro or Ultra?
What is the privacy policy for using Gemini Code Assist or Gemini CLI if I've subscribed to Google AI Pro or Ultra?
What is the privacy policy for using Gemini Code Assist or Gemini CLI if I've subscribed to Google AI Pro or Ultra?
I've upgraded to Google AI Pro or Ultra but it still says I am hitting quota limits. Is this a bug?
I've upgraded to Google AI Pro or Ultra but it still says I am hitting quota limits. Is this a bug?
If I upgrade to higher limits for Gemini CLI and Gemini Code Assist by purchasing a Google AI Pro or Ultra subscription, will Gemini start using my data to improve its machine learning models?
If I upgrade to higher limits for Gemini CLI and Gemini Code Assist by purchasing a Google AI Pro or Ultra subscription, will Gemini start using my data to improve its machine learning models?