@office-ai/aioncli-core 0.30.0 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs/assets/theme-ansi-dark.png +0 -0
- package/dist/docs/assets/theme-atom-one-dark.png +0 -0
- package/dist/docs/assets/theme-ayu-dark.png +0 -0
- package/dist/docs/assets/theme-default-dark.png +0 -0
- package/dist/docs/assets/theme-dracula-dark.png +0 -0
- package/dist/docs/assets/theme-github-dark.png +0 -0
- package/dist/docs/assets/theme-holiday-dark.png +0 -0
- package/dist/docs/assets/theme-shades-of-purple-dark.png +0 -0
- package/dist/docs/assets/theme-solarized-dark.png +0 -0
- package/dist/docs/assets/theme-solarized-light.png +0 -0
- package/dist/docs/cli/notifications.md +58 -0
- package/dist/docs/redirects.json +20 -0
- package/dist/docs/reference/commands.md +563 -0
- package/dist/docs/reference/configuration.md +1804 -0
- package/dist/docs/reference/keyboard-shortcuts.md +168 -0
- package/dist/docs/reference/memport.md +246 -0
- package/dist/docs/reference/policy-engine.md +386 -0
- package/dist/docs/reference/tools.md +106 -0
- package/dist/docs/resources/faq.md +175 -0
- package/dist/docs/resources/quota-and-pricing.md +199 -0
- package/dist/docs/resources/tos-privacy.md +102 -0
- package/dist/docs/resources/troubleshooting.md +176 -0
- package/dist/docs/resources/uninstall.md +56 -0
- package/dist/src/agents/a2a-errors.d.ts +65 -0
- package/dist/src/agents/a2a-errors.js +164 -0
- package/dist/src/agents/a2a-errors.js.map +1 -0
- package/dist/src/agents/a2a-errors.test.d.ts +6 -0
- package/dist/src/agents/a2a-errors.test.js +183 -0
- package/dist/src/agents/a2a-errors.test.js.map +1 -0
- package/dist/src/agents/auth-provider/api-key-provider.d.ts +30 -0
- package/dist/src/agents/auth-provider/api-key-provider.js +66 -0
- package/dist/src/agents/auth-provider/api-key-provider.js.map +1 -0
- package/dist/src/agents/auth-provider/api-key-provider.test.d.ts +6 -0
- package/dist/src/agents/auth-provider/api-key-provider.test.js +130 -0
- package/dist/src/agents/auth-provider/api-key-provider.test.js.map +1 -0
- package/dist/src/agents/auth-provider/http-provider.d.ts +28 -0
- package/dist/src/agents/auth-provider/http-provider.js +73 -0
- package/dist/src/agents/auth-provider/http-provider.js.map +1 -0
- package/dist/src/agents/auth-provider/http-provider.test.d.ts +6 -0
- package/dist/src/agents/auth-provider/http-provider.test.js +112 -0
- package/dist/src/agents/auth-provider/http-provider.test.js.map +1 -0
- package/dist/src/agents/auth-provider/oauth2-provider.d.ts +65 -0
- package/dist/src/agents/auth-provider/oauth2-provider.js +233 -0
- package/dist/src/agents/auth-provider/oauth2-provider.js.map +1 -0
- package/dist/src/agents/auth-provider/oauth2-provider.test.d.ts +6 -0
- package/dist/src/agents/auth-provider/oauth2-provider.test.js +490 -0
- package/dist/src/agents/auth-provider/oauth2-provider.test.js.map +1 -0
- package/dist/src/agents/browser/analyzeScreenshot.d.ts +35 -0
- package/dist/src/agents/browser/analyzeScreenshot.js +183 -0
- package/dist/src/agents/browser/analyzeScreenshot.js.map +1 -0
- package/dist/src/agents/browser/analyzeScreenshot.test.d.ts +6 -0
- package/dist/src/agents/browser/analyzeScreenshot.test.js +161 -0
- package/dist/src/agents/browser/analyzeScreenshot.test.js.map +1 -0
- package/dist/src/agents/browser/automationOverlay.d.ts +26 -0
- package/dist/src/agents/browser/automationOverlay.js +100 -0
- package/dist/src/agents/browser/automationOverlay.js.map +1 -0
- package/dist/src/agents/browser/browserAgentDefinition.d.ts +50 -0
- package/dist/src/agents/browser/browserAgentDefinition.js +141 -0
- package/dist/src/agents/browser/browserAgentDefinition.js.map +1 -0
- package/dist/src/agents/browser/browserAgentFactory.d.ts +42 -0
- package/dist/src/agents/browser/browserAgentFactory.js +116 -0
- package/dist/src/agents/browser/browserAgentFactory.js.map +1 -0
- package/dist/src/agents/browser/browserAgentFactory.test.d.ts +6 -0
- package/dist/src/agents/browser/browserAgentFactory.test.js +240 -0
- package/dist/src/agents/browser/browserAgentFactory.test.js.map +1 -0
- package/dist/src/agents/browser/browserAgentInvocation.d.ts +34 -0
- package/dist/src/agents/browser/browserAgentInvocation.js +386 -0
- package/dist/src/agents/browser/browserAgentInvocation.js.map +1 -0
- package/dist/src/agents/browser/browserAgentInvocation.test.d.ts +6 -0
- package/dist/src/agents/browser/browserAgentInvocation.test.js +382 -0
- package/dist/src/agents/browser/browserAgentInvocation.test.js.map +1 -0
- package/dist/src/agents/browser/browserManager.d.ts +115 -0
- package/dist/src/agents/browser/browserManager.js +370 -0
- package/dist/src/agents/browser/browserManager.js.map +1 -0
- package/dist/src/agents/browser/browserManager.test.d.ts +6 -0
- package/dist/src/agents/browser/browserManager.test.js +382 -0
- package/dist/src/agents/browser/browserManager.test.js.map +1 -0
- package/dist/src/agents/browser/mcpToolWrapper.d.ts +45 -0
- package/dist/src/agents/browser/mcpToolWrapper.js +358 -0
- package/dist/src/agents/browser/mcpToolWrapper.js.map +1 -0
- package/dist/src/agents/browser/mcpToolWrapper.test.d.ts +6 -0
- package/dist/src/agents/browser/mcpToolWrapper.test.js +126 -0
- package/dist/src/agents/browser/mcpToolWrapper.test.js.map +1 -0
- package/dist/src/agents/browser/mcpToolWrapperConfirmation.test.d.ts +6 -0
- package/dist/src/agents/browser/mcpToolWrapperConfirmation.test.js +59 -0
- package/dist/src/agents/browser/mcpToolWrapperConfirmation.test.js.map +1 -0
- package/dist/src/agents/browser/modelAvailability.d.ts +23 -0
- package/dist/src/agents/browser/modelAvailability.js +23 -0
- package/dist/src/agents/browser/modelAvailability.js.map +1 -0
- package/dist/src/agents/cli-help-agent.d.ts +2 -2
- package/dist/src/billing/billing.d.ts +80 -0
- package/dist/src/billing/billing.js +128 -0
- package/dist/src/billing/billing.js.map +1 -0
- package/dist/src/billing/billing.test.d.ts +6 -0
- package/dist/src/billing/billing.test.js +182 -0
- package/dist/src/billing/billing.test.js.map +1 -0
- package/dist/src/billing/index.d.ts +6 -0
- package/dist/src/billing/index.js +7 -0
- package/dist/src/billing/index.js.map +1 -0
- package/dist/src/code_assist/oauth2.d.ts +1 -1
- package/dist/src/code_assist/types.d.ts +26 -26
- package/dist/src/config/agent-loop-context.d.ts +22 -0
- package/dist/src/config/agent-loop-context.js +7 -0
- package/dist/src/config/agent-loop-context.js.map +1 -0
- package/dist/src/config/trackerFeatureFlag.test.d.ts +6 -0
- package/dist/src/config/trackerFeatureFlag.test.js +43 -0
- package/dist/src/config/trackerFeatureFlag.test.js.map +1 -0
- package/dist/src/config/userHintService.d.ts +46 -0
- package/dist/src/config/userHintService.js +81 -0
- package/dist/src/config/userHintService.js.map +1 -0
- package/dist/src/config/userHintService.test.d.ts +6 -0
- package/dist/src/config/userHintService.test.js +62 -0
- package/dist/src/config/userHintService.test.js.map +1 -0
- package/dist/src/core/localLiteRtLmClient.d.ts +24 -0
- package/dist/src/core/localLiteRtLmClient.js +77 -0
- package/dist/src/core/localLiteRtLmClient.js.map +1 -0
- package/dist/src/core/localLiteRtLmClient.test.d.ts +6 -0
- package/dist/src/core/localLiteRtLmClient.test.js +87 -0
- package/dist/src/core/localLiteRtLmClient.test.js.map +1 -0
- package/dist/src/core/openaiContentGenerator.d.ts +1 -0
- package/dist/src/core/openaiContentGenerator.js +13 -13
- package/dist/src/core/openaiContentGenerator.js.map +1 -1
- package/dist/src/hooks/runtimeHooks.test.d.ts +6 -0
- package/dist/src/hooks/runtimeHooks.test.js +100 -0
- package/dist/src/hooks/runtimeHooks.test.js.map +1 -0
- package/dist/src/ide/types.d.ts +6 -6
- package/dist/src/mcp/mcp-oauth-provider.d.ts +43 -0
- package/dist/src/mcp/mcp-oauth-provider.js +67 -0
- package/dist/src/mcp/mcp-oauth-provider.js.map +1 -0
- package/dist/src/mcp/mcp-oauth-provider.test.d.ts +6 -0
- package/dist/src/mcp/mcp-oauth-provider.test.js +63 -0
- package/dist/src/mcp/mcp-oauth-provider.test.js.map +1 -0
- package/dist/src/policy/integrity.d.ts +45 -0
- package/dist/src/policy/integrity.js +121 -0
- package/dist/src/policy/integrity.js.map +1 -0
- package/dist/src/policy/integrity.test.d.ts +6 -0
- package/dist/src/policy/integrity.test.js +132 -0
- package/dist/src/policy/integrity.test.js.map +1 -0
- package/dist/src/policy/policies/conseca.toml +6 -0
- package/dist/src/policy/workspace-policy.test.js +231 -0
- package/dist/src/policy/workspace-policy.test.js.map +1 -0
- package/dist/src/routing/strategies/approvalModeStrategy.d.ts +18 -0
- package/dist/src/routing/strategies/approvalModeStrategy.js +59 -0
- package/dist/src/routing/strategies/approvalModeStrategy.js.map +1 -0
- package/dist/src/routing/strategies/approvalModeStrategy.test.d.ts +6 -0
- package/dist/src/routing/strategies/approvalModeStrategy.test.js +140 -0
- package/dist/src/routing/strategies/approvalModeStrategy.test.js.map +1 -0
- package/dist/src/routing/strategies/gemmaClassifierStrategy.d.ts +14 -0
- package/dist/src/routing/strategies/gemmaClassifierStrategy.js +182 -0
- package/dist/src/routing/strategies/gemmaClassifierStrategy.js.map +1 -0
- package/dist/src/routing/strategies/gemmaClassifierStrategy.test.d.ts +6 -0
- package/dist/src/routing/strategies/gemmaClassifierStrategy.test.js +218 -0
- package/dist/src/routing/strategies/gemmaClassifierStrategy.test.js.map +1 -0
- package/dist/src/safety/conseca/conseca.d.ts +31 -0
- package/dist/src/safety/conseca/conseca.js +105 -0
- package/dist/src/safety/conseca/conseca.js.map +1 -0
- package/dist/src/safety/conseca/conseca.test.js +226 -0
- package/dist/src/safety/conseca/conseca.test.js.map +1 -0
- package/dist/src/safety/conseca/integration.test.js +19 -0
- package/dist/src/safety/conseca/integration.test.js.map +1 -0
- package/dist/src/safety/conseca/policy-enforcer.d.ts +13 -0
- package/dist/src/safety/conseca/policy-enforcer.js +135 -0
- package/dist/src/safety/conseca/policy-enforcer.js.map +1 -0
- package/dist/src/safety/conseca/policy-enforcer.test.js +141 -0
- package/dist/src/safety/conseca/policy-enforcer.test.js.map +1 -0
- package/dist/src/safety/conseca/policy-generator.d.ts +15 -0
- package/dist/src/safety/conseca/policy-generator.js +144 -0
- package/dist/src/safety/conseca/policy-generator.js.map +1 -0
- package/dist/src/safety/conseca/policy-generator.test.d.ts +6 -0
- package/dist/src/safety/conseca/policy-generator.test.js +84 -0
- package/dist/src/safety/conseca/policy-generator.test.js.map +1 -0
- package/dist/src/safety/conseca/types.d.ts +15 -0
- package/dist/src/safety/conseca/types.js +7 -0
- package/dist/src/safety/conseca/types.js.map +1 -0
- package/dist/src/scheduler/scheduler_parallel.test.d.ts +6 -0
- package/dist/src/scheduler/scheduler_parallel.test.js +401 -0
- package/dist/src/scheduler/scheduler_parallel.test.js.map +1 -0
- package/dist/src/services/FolderTrustDiscoveryService.d.ts +32 -0
- package/dist/src/services/FolderTrustDiscoveryService.js +169 -0
- package/dist/src/services/FolderTrustDiscoveryService.js.map +1 -0
- package/dist/src/services/FolderTrustDiscoveryService.test.d.ts +6 -0
- package/dist/src/services/FolderTrustDiscoveryService.test.js +118 -0
- package/dist/src/services/FolderTrustDiscoveryService.test.js.map +1 -0
- package/dist/src/services/fileKeychain.d.ts +24 -0
- package/dist/src/services/fileKeychain.js +123 -0
- package/dist/src/services/fileKeychain.js.map +1 -0
- package/dist/src/services/keychainService.d.ts +51 -0
- package/dist/src/services/keychainService.js +133 -0
- package/dist/src/services/keychainService.js.map +1 -0
- package/dist/src/services/keychainService.test.d.ts +6 -0
- package/dist/src/services/keychainService.test.js +150 -0
- package/dist/src/services/keychainService.test.js.map +1 -0
- package/dist/src/services/keychainTypes.d.ts +41 -0
- package/dist/src/services/keychainTypes.js +18 -0
- package/dist/src/services/keychainTypes.js.map +1 -0
- package/dist/src/services/trackerService.d.ts +49 -0
- package/dist/src/services/trackerService.js +193 -0
- package/dist/src/services/trackerService.js.map +1 -0
- package/dist/src/services/trackerService.test.d.ts +6 -0
- package/dist/src/services/trackerService.test.js +117 -0
- package/dist/src/services/trackerService.test.js.map +1 -0
- package/dist/src/services/trackerTypes.d.ts +51 -0
- package/dist/src/services/trackerTypes.js +33 -0
- package/dist/src/services/trackerTypes.js.map +1 -0
- package/dist/src/telemetry/billingEvents.d.ts +75 -0
- package/dist/src/telemetry/billingEvents.js +181 -0
- package/dist/src/telemetry/billingEvents.js.map +1 -0
- package/dist/src/telemetry/billingEvents.test.d.ts +6 -0
- package/dist/src/telemetry/billingEvents.test.js +139 -0
- package/dist/src/telemetry/billingEvents.test.js.map +1 -0
- package/dist/src/telemetry/conseca-logger.d.ts +9 -0
- package/dist/src/telemetry/conseca-logger.js +91 -0
- package/dist/src/telemetry/conseca-logger.js.map +1 -0
- package/dist/src/telemetry/conseca-logger.test.d.ts +6 -0
- package/dist/src/telemetry/conseca-logger.test.js +90 -0
- package/dist/src/telemetry/conseca-logger.test.js.map +1 -0
- package/dist/src/telemetry/trace.test.d.ts +6 -0
- package/dist/src/telemetry/trace.test.js +116 -0
- package/dist/src/telemetry/trace.test.js.map +1 -0
- package/dist/src/tools/definitions/trackerTools.d.ts +12 -0
- package/dist/src/tools/definitions/trackerTools.js +146 -0
- package/dist/src/tools/definitions/trackerTools.js.map +1 -0
- package/dist/src/tools/diff-utils.d.ts +9 -0
- package/dist/src/tools/diff-utils.js +66 -0
- package/dist/src/tools/diff-utils.js.map +1 -0
- package/dist/src/tools/diff-utils.test.d.ts +6 -0
- package/dist/src/tools/diff-utils.test.js +53 -0
- package/dist/src/tools/diff-utils.test.js.map +1 -0
- package/dist/src/tools/grep-utils.d.ts +49 -0
- package/dist/src/tools/grep-utils.js +147 -0
- package/dist/src/tools/grep-utils.js.map +1 -0
- package/dist/src/tools/omissionPlaceholderDetector.d.ts +15 -0
- package/dist/src/tools/omissionPlaceholderDetector.js +90 -0
- package/dist/src/tools/omissionPlaceholderDetector.js.map +1 -0
- package/dist/src/tools/omissionPlaceholderDetector.test.d.ts +6 -0
- package/dist/src/tools/omissionPlaceholderDetector.test.js +49 -0
- package/dist/src/tools/omissionPlaceholderDetector.test.js.map +1 -0
- package/dist/src/tools/trackerTools.d.ts +122 -0
- package/dist/src/tools/trackerTools.js +365 -0
- package/dist/src/tools/trackerTools.js.map +1 -0
- package/dist/src/tools/trackerTools.test.d.ts +6 -0
- package/dist/src/tools/trackerTools.test.js +97 -0
- package/dist/src/tools/trackerTools.test.js.map +1 -0
- package/dist/src/utils/approvalModeUtils.d.ts +14 -0
- package/dist/src/utils/approvalModeUtils.js +35 -0
- package/dist/src/utils/approvalModeUtils.js.map +1 -0
- package/dist/src/utils/approvalModeUtils.test.d.ts +6 -0
- package/dist/src/utils/approvalModeUtils.test.js +36 -0
- package/dist/src/utils/approvalModeUtils.test.js.map +1 -0
- package/dist/src/utils/cache.d.ts +63 -0
- package/dist/src/utils/cache.js +103 -0
- package/dist/src/utils/cache.js.map +1 -0
- package/dist/src/utils/cache.test.d.ts +6 -0
- package/dist/src/utils/cache.test.js +158 -0
- package/dist/src/utils/cache.test.js.map +1 -0
- package/dist/src/utils/checkpointUtils.d.ts +2 -2
- package/dist/src/utils/compatibility.d.ts +41 -0
- package/dist/src/utils/compatibility.js +112 -0
- package/dist/src/utils/compatibility.js.map +1 -0
- package/dist/src/utils/compatibility.test.d.ts +6 -0
- package/dist/src/utils/compatibility.test.js +233 -0
- package/dist/src/utils/compatibility.test.js.map +1 -0
- package/dist/src/utils/envExpansion.d.ts +18 -0
- package/dist/src/utils/envExpansion.js +46 -0
- package/dist/src/utils/envExpansion.js.map +1 -0
- package/dist/src/utils/envExpansion.test.d.ts +6 -0
- package/dist/src/utils/envExpansion.test.js +110 -0
- package/dist/src/utils/envExpansion.test.js.map +1 -0
- package/dist/src/utils/errors_timeout.test.d.ts +6 -0
- package/dist/src/utils/errors_timeout.test.js +40 -0
- package/dist/src/utils/errors_timeout.test.js.map +1 -0
- package/dist/src/utils/fetch.test.d.ts +6 -0
- package/dist/src/utils/fetch.test.js +206 -0
- package/dist/src/utils/fetch.test.js.map +1 -0
- package/dist/src/utils/markdownUtils.d.ts +22 -0
- package/dist/src/utils/markdownUtils.js +126 -0
- package/dist/src/utils/markdownUtils.js.map +1 -0
- package/dist/src/utils/markdownUtils.test.d.ts +6 -0
- package/dist/src/utils/markdownUtils.test.js +107 -0
- package/dist/src/utils/markdownUtils.test.js.map +1 -0
- package/dist/src/utils/oauth-flow.d.ts +105 -0
- package/dist/src/utils/oauth-flow.js +370 -0
- package/dist/src/utils/oauth-flow.js.map +1 -0
- package/dist/src/utils/oauth-flow.test.d.ts +6 -0
- package/dist/src/utils/oauth-flow.test.js +360 -0
- package/dist/src/utils/oauth-flow.test.js.map +1 -0
- package/dist/src/utils/sessionUtils.d.ts +14 -0
- package/dist/src/utils/sessionUtils.js +122 -0
- package/dist/src/utils/sessionUtils.js.map +1 -0
- package/dist/src/utils/sessionUtils.test.d.ts +1 -0
- package/dist/src/utils/sessionUtils.test.js +171 -0
- package/dist/src/utils/sessionUtils.test.js.map +1 -0
- package/dist/src/voice/responseFormatter.d.ts +38 -0
- package/dist/src/voice/responseFormatter.js +130 -0
- package/dist/src/voice/responseFormatter.js.map +1 -0
- package/dist/src/voice/responseFormatter.test.d.ts +6 -0
- package/dist/src/voice/responseFormatter.test.js +214 -0
- package/dist/src/voice/responseFormatter.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/docs/CONTRIBUTING.md +0 -555
- package/dist/src/agents/executor.d.ts +0 -114
- package/dist/src/agents/executor.js +0 -779
- package/dist/src/agents/executor.js.map +0 -1
- package/dist/src/agents/executor.test.js +0 -1362
- package/dist/src/agents/executor.test.js.map +0 -1
- package/dist/src/agents/invocation.d.ts +0 -46
- package/dist/src/agents/invocation.js +0 -102
- package/dist/src/agents/invocation.js.map +0 -1
- package/dist/src/agents/invocation.test.js +0 -215
- package/dist/src/agents/invocation.test.js.map +0 -1
- package/dist/src/core/subagent.d.ts +0 -236
- package/dist/src/core/subagent.js +0 -482
- package/dist/src/core/subagent.js.map +0 -1
- package/dist/src/core/subagent.test.js +0 -530
- package/dist/src/core/subagent.test.js.map +0 -1
- package/dist/src/tools/smart-edit.d.ts +0 -78
- package/dist/src/tools/smart-edit.js +0 -717
- package/dist/src/tools/smart-edit.js.map +0 -1
- package/dist/src/tools/smart-edit.test.js +0 -592
- package/dist/src/tools/smart-edit.test.js.map +0 -1
- /package/dist/src/{agents/executor.test.d.ts → policy/workspace-policy.test.d.ts} +0 -0
- /package/dist/src/{agents/invocation.test.d.ts → safety/conseca/conseca.test.d.ts} +0 -0
- /package/dist/src/{core/subagent.test.d.ts → safety/conseca/integration.test.d.ts} +0 -0
- /package/dist/src/{tools/smart-edit.test.d.ts → safety/conseca/policy-enforcer.test.d.ts} +0 -0
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
# Gemini CLI: Quotas and pricing
|
|
2
|
+
|
|
3
|
+
Gemini CLI offers a generous free tier that covers many individual developers'
|
|
4
|
+
use cases. For enterprise or professional usage, or if you need increased quota,
|
|
5
|
+
several options are available depending on your authentication account type.
|
|
6
|
+
|
|
7
|
+
For a high-level comparison of available subscriptions and to select the right
|
|
8
|
+
quota for your needs, see the [Plans page](https://geminicli.com/plans/).
|
|
9
|
+
|
|
10
|
+
## Overview
|
|
11
|
+
|
|
12
|
+
This article outlines the specific quotas and pricing applicable to Gemini CLI
|
|
13
|
+
when using different authentication methods.
|
|
14
|
+
|
|
15
|
+
Generally, there are three categories to choose from:
|
|
16
|
+
|
|
17
|
+
- Free Usage: Ideal for experimentation and light use.
|
|
18
|
+
- Paid Tier (fixed price): For individual developers or enterprises who need
|
|
19
|
+
more generous daily quotas and predictable costs.
|
|
20
|
+
- Pay-As-You-Go: The most flexible option for professional use, long-running
|
|
21
|
+
tasks, or when you need full control over your usage.
|
|
22
|
+
|
|
23
|
+
## Free usage
|
|
24
|
+
|
|
25
|
+
Access to Gemini CLI begins with a generous free tier, perfect for
|
|
26
|
+
experimentation and light use.
|
|
27
|
+
|
|
28
|
+
Your free usage is governed by the following limits, which depend on your
|
|
29
|
+
authorization type.
|
|
30
|
+
|
|
31
|
+
### Log in with Google (Gemini Code Assist for individuals)
|
|
32
|
+
|
|
33
|
+
For users who authenticate by using their Google account to access Gemini Code
|
|
34
|
+
Assist for individuals. This includes:
|
|
35
|
+
|
|
36
|
+
- 1000 model requests / user / day
|
|
37
|
+
- 60 model requests / user / minute
|
|
38
|
+
- Model requests will be made across the Gemini model family as determined by
|
|
39
|
+
Gemini CLI.
|
|
40
|
+
|
|
41
|
+
Learn more at
|
|
42
|
+
[Gemini Code Assist for Individuals Limits](https://developers.google.com/gemini-code-assist/resources/quotas#quotas-for-agent-mode-gemini-cli).
|
|
43
|
+
|
|
44
|
+
### Log in with Gemini API Key (unpaid)
|
|
45
|
+
|
|
46
|
+
If you are using a Gemini API key, you can also benefit from a free tier. This
|
|
47
|
+
includes:
|
|
48
|
+
|
|
49
|
+
- 250 model requests / user / day
|
|
50
|
+
- 10 model requests / user / minute
|
|
51
|
+
- Model requests to Flash model only.
|
|
52
|
+
|
|
53
|
+
Learn more at
|
|
54
|
+
[Gemini API Rate Limits](https://ai.google.dev/gemini-api/docs/rate-limits).
|
|
55
|
+
|
|
56
|
+
### Log in with Vertex AI (Express Mode)
|
|
57
|
+
|
|
58
|
+
Vertex AI offers an Express Mode without the need to enable billing. This
|
|
59
|
+
includes:
|
|
60
|
+
|
|
61
|
+
- 90 days before you need to enable billing.
|
|
62
|
+
- Quotas and models are variable and specific to your account.
|
|
63
|
+
|
|
64
|
+
Learn more at
|
|
65
|
+
[Vertex AI Express Mode Limits](https://cloud.google.com/vertex-ai/generative-ai/docs/start/express-mode/overview#quotas).
|
|
66
|
+
|
|
67
|
+
## Paid tier: Higher limits for a fixed cost
|
|
68
|
+
|
|
69
|
+
If you use up your initial number of requests, you can continue to benefit from
|
|
70
|
+
Gemini CLI by upgrading to one of the following subscriptions:
|
|
71
|
+
|
|
72
|
+
### Individuals
|
|
73
|
+
|
|
74
|
+
These tiers apply when you sign in with a personal account. To verify whether
|
|
75
|
+
you're on a personal account, visit
|
|
76
|
+
[Google One](https://one.google.com/about/plans?hl=en-US&g1_landing_page=0):
|
|
77
|
+
|
|
78
|
+
- If you are on a personal account, you will see your personal dashboard.
|
|
79
|
+
- If you are not on a personal account, you will see: "You're currently signed
|
|
80
|
+
in to your Google Workspace Account."
|
|
81
|
+
|
|
82
|
+
**Supported tiers:** _- Tiers not listed above, including Google AI Plus, are
|
|
83
|
+
not supported._
|
|
84
|
+
|
|
85
|
+
- [Google AI Pro and AI Ultra](https://gemini.google/subscriptions/). This is
|
|
86
|
+
recommended for individual developers. Quotas and pricing are based on a fixed
|
|
87
|
+
price subscription.
|
|
88
|
+
|
|
89
|
+
For predictable costs, you can log in with Google.
|
|
90
|
+
|
|
91
|
+
Learn more at
|
|
92
|
+
[Gemini Code Assist Quotas and Limits](https://developers.google.com/gemini-code-assist/resources/quotas)
|
|
93
|
+
|
|
94
|
+
### Through your organization
|
|
95
|
+
|
|
96
|
+
These tiers are applicable when you are signing in with a Google Workspace
|
|
97
|
+
account.
|
|
98
|
+
|
|
99
|
+
- To verify your account type, visit
|
|
100
|
+
[the Google One page](https://one.google.com/about/plans?hl=en-US&g1_landing_page=0).
|
|
101
|
+
- You are on a workspace account if you see the message "You're currently signed
|
|
102
|
+
in to your Google Workspace Account".
|
|
103
|
+
|
|
104
|
+
**Supported tiers:** _- Tiers not listed above, including Workspace AI
|
|
105
|
+
Standard/Plus and AI Expanded, are not supported._
|
|
106
|
+
|
|
107
|
+
- [Workspace AI Ultra Access](https://workspace.google.com/products/ai-ultra/).
|
|
108
|
+
- [Purchase a Gemini Code Assist Subscription through Google Cloud](https://cloud.google.com/gemini/docs/codeassist/overview).
|
|
109
|
+
|
|
110
|
+
Quotas and pricing are based on a fixed price subscription with assigned
|
|
111
|
+
license seats. For predictable costs, you can sign in with Google.
|
|
112
|
+
|
|
113
|
+
This includes the following request limits:
|
|
114
|
+
- Gemini Code Assist Standard edition:
|
|
115
|
+
- 1500 model requests / user / day
|
|
116
|
+
- 120 model requests / user / minute
|
|
117
|
+
- Gemini Code Assist Enterprise edition:
|
|
118
|
+
- 2000 model requests / user / day
|
|
119
|
+
- 120 model requests / user / minute
|
|
120
|
+
- Model requests will be made across the Gemini model family as determined by
|
|
121
|
+
Gemini CLI.
|
|
122
|
+
|
|
123
|
+
[Learn more about Gemini Code Assist license limits](https://developers.google.com/gemini-code-assist/resources/quotas#quotas-for-agent-mode-gemini-cli).
|
|
124
|
+
|
|
125
|
+
## Pay as you go
|
|
126
|
+
|
|
127
|
+
If you hit your daily request limits or exhaust your Gemini Pro quota even after
|
|
128
|
+
upgrading, the most flexible solution is to switch to a pay-as-you-go model,
|
|
129
|
+
where you pay for the specific amount of processing you use. This is the
|
|
130
|
+
recommended path for uninterrupted access.
|
|
131
|
+
|
|
132
|
+
To do this, log in using a Gemini API key or Vertex AI.
|
|
133
|
+
|
|
134
|
+
### Vertex AI (regular mode)
|
|
135
|
+
|
|
136
|
+
An enterprise-grade platform for building, deploying, and managing AI models,
|
|
137
|
+
including Gemini. It offers enhanced security, data governance, and integration
|
|
138
|
+
with other Google Cloud services.
|
|
139
|
+
|
|
140
|
+
- Quota: Governed by a dynamic shared quota system or pre-purchased provisioned
|
|
141
|
+
throughput.
|
|
142
|
+
- Cost: Based on model and token usage.
|
|
143
|
+
|
|
144
|
+
Learn more at
|
|
145
|
+
[Vertex AI Dynamic Shared Quota](https://cloud.google.com/vertex-ai/generative-ai/docs/resources/dynamic-shared-quota)
|
|
146
|
+
and [Vertex AI Pricing](https://cloud.google.com/vertex-ai/pricing).
|
|
147
|
+
|
|
148
|
+
### Gemini API key
|
|
149
|
+
|
|
150
|
+
Ideal for developers who want to quickly build applications with the Gemini
|
|
151
|
+
models. This is the most direct way to use the models.
|
|
152
|
+
|
|
153
|
+
- Quota: Varies by pricing tier.
|
|
154
|
+
- Cost: Varies by pricing tier and model/token usage.
|
|
155
|
+
|
|
156
|
+
Learn more at
|
|
157
|
+
[Gemini API Rate Limits](https://ai.google.dev/gemini-api/docs/rate-limits),
|
|
158
|
+
[Gemini API Pricing](https://ai.google.dev/gemini-api/docs/pricing)
|
|
159
|
+
|
|
160
|
+
It’s important to highlight that when using an API key, you pay per token/call.
|
|
161
|
+
This can be more expensive for many small calls with few tokens, but it's the
|
|
162
|
+
only way to ensure your workflow isn't interrupted by reaching a limit on your
|
|
163
|
+
quota.
|
|
164
|
+
|
|
165
|
+
## Gemini for workspace plans
|
|
166
|
+
|
|
167
|
+
These plans currently apply only to the use of Gemini web-based products
|
|
168
|
+
provided by Google-based experiences (for example, the Gemini web app or the
|
|
169
|
+
Flow video editor). These plans do not apply to the API usage which powers the
|
|
170
|
+
Gemini CLI. Supporting these plans is under active consideration for future
|
|
171
|
+
support.
|
|
172
|
+
|
|
173
|
+
## Check usage and limits
|
|
174
|
+
|
|
175
|
+
You can check your current token usage and applicable limits using the
|
|
176
|
+
`/stats model` command. This command provides a snapshot of your current
|
|
177
|
+
session's token usage, as well as information about the limits associated with
|
|
178
|
+
your current quota.
|
|
179
|
+
|
|
180
|
+
For more information on the `/stats` command and its subcommands, see the
|
|
181
|
+
[Command Reference](../reference/commands.md#stats).
|
|
182
|
+
|
|
183
|
+
A summary of model usage is also presented on exit at the end of a session.
|
|
184
|
+
|
|
185
|
+
## Tips to avoid high costs
|
|
186
|
+
|
|
187
|
+
When using a pay-as-you-go plan, be mindful of your usage to avoid unexpected
|
|
188
|
+
costs.
|
|
189
|
+
|
|
190
|
+
- **Be selective with suggestions**: Before accepting a suggestion, especially
|
|
191
|
+
for a computationally intensive task like refactoring a large codebase,
|
|
192
|
+
consider if it's the most cost-effective approach.
|
|
193
|
+
- **Use precise prompts**: You are paying per call, so think about the most
|
|
194
|
+
efficient way to get your desired result. A well-crafted prompt can often get
|
|
195
|
+
you the answer you need in a single call, rather than multiple back-and-forth
|
|
196
|
+
interactions.
|
|
197
|
+
- **Monitor your usage**: Use the `/stats model` command to track your token
|
|
198
|
+
usage during a session. This can help you stay aware of your spending in real
|
|
199
|
+
time.
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# Gemini CLI: License, Terms of Service, and Privacy Notices
|
|
2
|
+
|
|
3
|
+
Gemini CLI is an open-source tool that lets you interact with Google's powerful
|
|
4
|
+
AI services directly from your command-line interface. The Gemini CLI software
|
|
5
|
+
is licensed under the
|
|
6
|
+
[Apache 2.0 license](https://github.com/google-gemini/gemini-cli/blob/main/LICENSE).
|
|
7
|
+
When you use Gemini CLI to access or use Google’s services, the Terms of Service
|
|
8
|
+
and Privacy Notices applicable to those services apply to such access and use.
|
|
9
|
+
|
|
10
|
+
Directly accessing the services powering Gemini CLI (e.g., the Gemini Code
|
|
11
|
+
Assist service) using third-party software, tools, or services (for example,
|
|
12
|
+
using OpenClaw with Gemini CLI OAuth) is a violation of applicable terms and
|
|
13
|
+
policies. Such actions may be grounds for suspension or termination of your
|
|
14
|
+
account.
|
|
15
|
+
|
|
16
|
+
Your Gemini CLI Usage Statistics are handled in accordance with Google's Privacy
|
|
17
|
+
Policy.
|
|
18
|
+
|
|
19
|
+
**Note:** See [quotas and pricing](quota-and-pricing.md) for the quota and
|
|
20
|
+
pricing details that apply to your usage of the Gemini CLI.
|
|
21
|
+
|
|
22
|
+
## Supported authentication methods
|
|
23
|
+
|
|
24
|
+
Your authentication method refers to the method you use to log into and access
|
|
25
|
+
Google’s services with Gemini CLI. Supported authentication methods include:
|
|
26
|
+
|
|
27
|
+
- Logging in with your Google account to Gemini Code Assist.
|
|
28
|
+
- Using an API key with Gemini Developer API.
|
|
29
|
+
- Using an API key with Vertex AI GenAI API.
|
|
30
|
+
|
|
31
|
+
The Terms of Service and Privacy Notices applicable to the aforementioned Google
|
|
32
|
+
services are set forth in the table below.
|
|
33
|
+
|
|
34
|
+
If you log in with your Google account and you do not already have a Gemini Code
|
|
35
|
+
Assist account associated with your Google account, you will be directed to the
|
|
36
|
+
sign up flow for Gemini Code Assist for individuals. If your Google account is
|
|
37
|
+
managed by your organization, your administrator may not permit access to Gemini
|
|
38
|
+
Code Assist for individuals. Please see the
|
|
39
|
+
[Gemini Code Assist for individuals FAQs](https://developers.google.com/gemini-code-assist/resources/faqs)
|
|
40
|
+
for further information.
|
|
41
|
+
|
|
42
|
+
| Authentication Method | Service(s) | Terms of Service | Privacy Notice |
|
|
43
|
+
| :----------------------- | :--------------------------- | :------------------------------------------------------------------------------------------------------ | :-------------------------------------------------------------------------------------------- |
|
|
44
|
+
| Google Account | Gemini Code Assist services | [Terms of Service](https://developers.google.com/gemini-code-assist/resources/privacy-notices) | [Privacy Notices](https://developers.google.com/gemini-code-assist/resources/privacy-notices) |
|
|
45
|
+
| Gemini Developer API Key | Gemini API - Unpaid Services | [Gemini API Terms of Service - Unpaid Services](https://ai.google.dev/gemini-api/terms#unpaid-services) | [Google Privacy Policy](https://policies.google.com/privacy) |
|
|
46
|
+
| Gemini Developer API Key | Gemini API - Paid Services | [Gemini API Terms of Service - Paid Services](https://ai.google.dev/gemini-api/terms#paid-services) | [Google Privacy Policy](https://policies.google.com/privacy) |
|
|
47
|
+
| Vertex AI GenAI API Key | Vertex AI GenAI API | [Google Cloud Platform Terms of Service](https://cloud.google.com/terms/service-terms/) | [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-notice) |
|
|
48
|
+
|
|
49
|
+
## 1. If you have signed in with your Google account to Gemini Code Assist
|
|
50
|
+
|
|
51
|
+
For users who use their Google account to access
|
|
52
|
+
[Gemini Code Assist](https://codeassist.google), these Terms of Service and
|
|
53
|
+
Privacy Notice documents apply:
|
|
54
|
+
|
|
55
|
+
- Gemini Code Assist for individuals:
|
|
56
|
+
[Google Terms of Service](https://policies.google.com/terms) and
|
|
57
|
+
[Gemini Code Assist for individuals Privacy Notice](https://developers.google.com/gemini-code-assist/resources/privacy-notice-gemini-code-assist-individuals).
|
|
58
|
+
- Gemini Code Assist with Google AI Pro or Ultra subscription:
|
|
59
|
+
[Google Terms of Service](https://policies.google.com/terms),
|
|
60
|
+
[Google One Additional Terms of Service](https://one.google.com/terms-of-service)
|
|
61
|
+
and [Google Privacy Policy\*](https://policies.google.com/privacy).
|
|
62
|
+
- Gemini Code Assist Standard and Enterprise editions:
|
|
63
|
+
[Google Cloud Platform Terms of Service](https://cloud.google.com/terms) and
|
|
64
|
+
[Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-notice).
|
|
65
|
+
|
|
66
|
+
_\* If your account is also associated with an active subscription to Gemini
|
|
67
|
+
Code Assist Standard or Enterprise edition, the terms and privacy policy of
|
|
68
|
+
Gemini Code Assist Standard or Enterprise edition will apply to all your use of
|
|
69
|
+
Gemini Code Assist._
|
|
70
|
+
|
|
71
|
+
## 2. If you have signed in with a Gemini API key to the Gemini Developer API
|
|
72
|
+
|
|
73
|
+
If you are using a Gemini API key for authentication with the
|
|
74
|
+
[Gemini Developer API](https://ai.google.dev/gemini-api/docs), these Terms of
|
|
75
|
+
Service and Privacy Notice documents apply:
|
|
76
|
+
|
|
77
|
+
- Terms of Service: Your use of the Gemini CLI is governed by the
|
|
78
|
+
[Gemini API Terms of Service](https://ai.google.dev/gemini-api/terms). These
|
|
79
|
+
terms may differ depending on whether you are using an unpaid or paid service:
|
|
80
|
+
- For unpaid services, refer to the
|
|
81
|
+
[Gemini API Terms of Service - Unpaid Services](https://ai.google.dev/gemini-api/terms#unpaid-services).
|
|
82
|
+
- For paid services, refer to the
|
|
83
|
+
[Gemini API Terms of Service - Paid Services](https://ai.google.dev/gemini-api/terms#paid-services).
|
|
84
|
+
- Privacy Notice: The collection and use of your data is described in the
|
|
85
|
+
[Google Privacy Policy](https://policies.google.com/privacy).
|
|
86
|
+
|
|
87
|
+
## 3. If you have signed in with a Gemini API key to the Vertex AI GenAI API
|
|
88
|
+
|
|
89
|
+
If you are using a Gemini API key for authentication with a
|
|
90
|
+
[Vertex AI GenAI API](https://cloud.google.com/vertex-ai/generative-ai/docs/reference/rest)
|
|
91
|
+
backend, these Terms of Service and Privacy Notice documents apply:
|
|
92
|
+
|
|
93
|
+
- Terms of Service: Your use of the Gemini CLI is governed by the
|
|
94
|
+
[Google Cloud Platform Service Terms](https://cloud.google.com/terms/service-terms/).
|
|
95
|
+
- Privacy Notice: The collection and use of your data is described in the
|
|
96
|
+
[Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-notice).
|
|
97
|
+
|
|
98
|
+
## Usage statistics opt-out
|
|
99
|
+
|
|
100
|
+
You may opt-out from sending Gemini CLI Usage Statistics to Google by following
|
|
101
|
+
the instructions available here:
|
|
102
|
+
[Usage Statistics Configuration](https://github.com/google-gemini/gemini-cli/blob/main/docs/reference/configuration.md#usage-statistics).
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
# Troubleshooting guide
|
|
2
|
+
|
|
3
|
+
This guide provides solutions to common issues and debugging tips, including
|
|
4
|
+
topics on:
|
|
5
|
+
|
|
6
|
+
- Authentication or login errors
|
|
7
|
+
- Frequently asked questions (FAQs)
|
|
8
|
+
- Debugging tips
|
|
9
|
+
- Existing GitHub Issues similar to yours or creating new Issues
|
|
10
|
+
|
|
11
|
+
## Authentication or login errors
|
|
12
|
+
|
|
13
|
+
- **Error:
|
|
14
|
+
`You must be a named user on your organization's Gemini Code Assist Standard edition subscription to use this service. Please contact your administrator to request an entitlement to Gemini Code Assist Standard edition.`**
|
|
15
|
+
- **Cause:** This error might occur if Gemini CLI detects the
|
|
16
|
+
`GOOGLE_CLOUD_PROJECT` or `GOOGLE_CLOUD_PROJECT_ID` environment variable is
|
|
17
|
+
defined. Setting these variables forces an organization subscription check.
|
|
18
|
+
This might be an issue if you are using an individual Google account not
|
|
19
|
+
linked to an organizational subscription.
|
|
20
|
+
|
|
21
|
+
- **Solution:**
|
|
22
|
+
- **Individual Users:** Unset the `GOOGLE_CLOUD_PROJECT` and
|
|
23
|
+
`GOOGLE_CLOUD_PROJECT_ID` environment variables. Check and remove these
|
|
24
|
+
variables from your shell configuration files (for example, `.bashrc`,
|
|
25
|
+
`.zshrc`) and any `.env` files. If this doesn't resolve the issue, try
|
|
26
|
+
using a different Google account.
|
|
27
|
+
|
|
28
|
+
- **Organizational Users:** Contact your Google Cloud administrator to be
|
|
29
|
+
added to your organization's Gemini Code Assist subscription.
|
|
30
|
+
|
|
31
|
+
- **Error:
|
|
32
|
+
`Failed to sign in. Message: Your current account is not eligible... because it is not currently available in your location.`**
|
|
33
|
+
- **Cause:** Gemini CLI does not currently support your location. For a full
|
|
34
|
+
list of supported locations, see the following pages:
|
|
35
|
+
- Gemini Code Assist for individuals:
|
|
36
|
+
[Available locations](https://developers.google.com/gemini-code-assist/resources/available-locations#americas)
|
|
37
|
+
|
|
38
|
+
- **Error: `Failed to sign in. Message: Request contains an invalid argument`**
|
|
39
|
+
- **Cause:** Users with Google Workspace accounts or Google Cloud accounts
|
|
40
|
+
associated with their Gmail accounts may not be able to activate the free
|
|
41
|
+
tier of the Google Code Assist plan.
|
|
42
|
+
- **Solution:** For Google Cloud accounts, you can work around this by setting
|
|
43
|
+
`GOOGLE_CLOUD_PROJECT` to your project ID. Alternatively, you can obtain the
|
|
44
|
+
Gemini API key from
|
|
45
|
+
[Google AI Studio](http://aistudio.google.com/app/apikey), which also
|
|
46
|
+
includes a separate free tier.
|
|
47
|
+
|
|
48
|
+
- **Error: `UNABLE_TO_GET_ISSUER_CERT_LOCALLY` or
|
|
49
|
+
`unable to get local issuer certificate`**
|
|
50
|
+
- **Cause:** You may be on a corporate network with a firewall that intercepts
|
|
51
|
+
and inspects SSL/TLS traffic. This often requires a custom root CA
|
|
52
|
+
certificate to be trusted by Node.js.
|
|
53
|
+
- **Solution:** First try setting `NODE_USE_SYSTEM_CA`; if that does not
|
|
54
|
+
resolve the issue, set `NODE_EXTRA_CA_CERTS`.
|
|
55
|
+
- Set the `NODE_USE_SYSTEM_CA=1` environment variable to tell Node.js to use
|
|
56
|
+
the operating system's native certificate store (where corporate
|
|
57
|
+
certificates are typically already installed).
|
|
58
|
+
- Example: `export NODE_USE_SYSTEM_CA=1` (Windows PowerShell:
|
|
59
|
+
`$env:NODE_USE_SYSTEM_CA=1`)
|
|
60
|
+
- Set the `NODE_EXTRA_CA_CERTS` environment variable to the absolute path of
|
|
61
|
+
your corporate root CA certificate file.
|
|
62
|
+
- Example: `export NODE_EXTRA_CA_CERTS=/path/to/your/corporate-ca.crt`
|
|
63
|
+
(Windows PowerShell:
|
|
64
|
+
`$env:NODE_EXTRA_CA_CERTS="C:\path\to\your\corporate-ca.crt"`)
|
|
65
|
+
|
|
66
|
+
## Common error messages and solutions
|
|
67
|
+
|
|
68
|
+
- **Error: `EADDRINUSE` (Address already in use) when starting an MCP server.**
|
|
69
|
+
- **Cause:** Another process is already using the port that the MCP server is
|
|
70
|
+
trying to bind to.
|
|
71
|
+
- **Solution:** Either stop the other process that is using the port or
|
|
72
|
+
configure the MCP server to use a different port.
|
|
73
|
+
|
|
74
|
+
- **Error: Command not found (when attempting to run Gemini CLI with
|
|
75
|
+
`gemini`).**
|
|
76
|
+
- **Cause:** Gemini CLI is not correctly installed or it is not in your
|
|
77
|
+
system's `PATH`.
|
|
78
|
+
- **Solution:** The update depends on how you installed Gemini CLI:
|
|
79
|
+
- If you installed `gemini` globally, check that your `npm` global binary
|
|
80
|
+
directory is in your `PATH`. You can update Gemini CLI using the command
|
|
81
|
+
`npm install -g @google/gemini-cli@latest`.
|
|
82
|
+
- If you are running `gemini` from source, ensure you are using the correct
|
|
83
|
+
command to invoke it (e.g., `node packages/cli/dist/index.js ...`). To
|
|
84
|
+
update Gemini CLI, pull the latest changes from the repository, and then
|
|
85
|
+
rebuild using the command `npm run build`.
|
|
86
|
+
|
|
87
|
+
- **Error: `MODULE_NOT_FOUND` or import errors.**
|
|
88
|
+
- **Cause:** Dependencies are not installed correctly, or the project hasn't
|
|
89
|
+
been built.
|
|
90
|
+
- **Solution:**
|
|
91
|
+
1. Run `npm install` to ensure all dependencies are present.
|
|
92
|
+
2. Run `npm run build` to compile the project.
|
|
93
|
+
3. Verify that the build completed successfully with `npm run start`.
|
|
94
|
+
|
|
95
|
+
- **Error: "Operation not permitted", "Permission denied", or similar.**
|
|
96
|
+
- **Cause:** When sandboxing is enabled, Gemini CLI may attempt operations
|
|
97
|
+
that are restricted by your sandbox configuration, such as writing outside
|
|
98
|
+
the project directory or system temp directory.
|
|
99
|
+
- **Solution:** Refer to the [Configuration: Sandboxing](../cli/sandbox.md)
|
|
100
|
+
documentation for more information, including how to customize your sandbox
|
|
101
|
+
configuration.
|
|
102
|
+
|
|
103
|
+
- **Gemini CLI is not running in interactive mode in "CI" environments**
|
|
104
|
+
- **Issue:** The Gemini CLI does not enter interactive mode (no prompt
|
|
105
|
+
appears) if an environment variable starting with `CI_` (e.g., `CI_TOKEN`)
|
|
106
|
+
is set. This is because the `is-in-ci` package, used by the underlying UI
|
|
107
|
+
framework, detects these variables and assumes a non-interactive CI
|
|
108
|
+
environment.
|
|
109
|
+
- **Cause:** The `is-in-ci` package checks for the presence of `CI`,
|
|
110
|
+
`CONTINUOUS_INTEGRATION`, or any environment variable with a `CI_` prefix.
|
|
111
|
+
When any of these are found, it signals that the environment is
|
|
112
|
+
non-interactive, which prevents the Gemini CLI from starting in its
|
|
113
|
+
interactive mode.
|
|
114
|
+
- **Solution:** If the `CI_` prefixed variable is not needed for the CLI to
|
|
115
|
+
function, you can temporarily unset it for the command. e.g.,
|
|
116
|
+
`env -u CI_TOKEN gemini`
|
|
117
|
+
|
|
118
|
+
- **DEBUG mode not working from project .env file**
|
|
119
|
+
- **Issue:** Setting `DEBUG=true` in a project's `.env` file doesn't enable
|
|
120
|
+
debug mode for gemini-cli.
|
|
121
|
+
- **Cause:** The `DEBUG` and `DEBUG_MODE` variables are automatically excluded
|
|
122
|
+
from project `.env` files to prevent interference with gemini-cli behavior.
|
|
123
|
+
- **Solution:** Use a `.gemini/.env` file instead, or configure the
|
|
124
|
+
`advanced.excludedEnvVars` setting in your `settings.json` to exclude fewer
|
|
125
|
+
variables.
|
|
126
|
+
|
|
127
|
+
## Exit codes
|
|
128
|
+
|
|
129
|
+
The Gemini CLI uses specific exit codes to indicate the reason for termination.
|
|
130
|
+
This is especially useful for scripting and automation.
|
|
131
|
+
|
|
132
|
+
| Exit Code | Error Type | Description |
|
|
133
|
+
| --------- | -------------------------- | --------------------------------------------------------------------------------------------------- |
|
|
134
|
+
| 41 | `FatalAuthenticationError` | An error occurred during the authentication process. |
|
|
135
|
+
| 42 | `FatalInputError` | Invalid or missing input was provided to the CLI. (non-interactive mode only) |
|
|
136
|
+
| 44 | `FatalSandboxError` | An error occurred with the sandboxing environment (e.g., Docker, Podman, or Seatbelt). |
|
|
137
|
+
| 52 | `FatalConfigError` | A configuration file (`settings.json`) is invalid or contains errors. |
|
|
138
|
+
| 53 | `FatalTurnLimitedError` | The maximum number of conversational turns for the session was reached. (non-interactive mode only) |
|
|
139
|
+
|
|
140
|
+
## Debugging tips
|
|
141
|
+
|
|
142
|
+
- **CLI debugging:**
|
|
143
|
+
- Use the `--debug` flag for more detailed output. In interactive mode, press
|
|
144
|
+
F12 to view the debug console.
|
|
145
|
+
- Check the CLI logs, often found in a user-specific configuration or cache
|
|
146
|
+
directory.
|
|
147
|
+
|
|
148
|
+
- **Core debugging:**
|
|
149
|
+
- Check the server console output for error messages or stack traces.
|
|
150
|
+
- Increase log verbosity if configurable. For example, set the `DEBUG_MODE`
|
|
151
|
+
environment variable to `true` or `1`.
|
|
152
|
+
- Use Node.js debugging tools (e.g., `node --inspect`) if you need to step
|
|
153
|
+
through server-side code.
|
|
154
|
+
|
|
155
|
+
- **Tool issues:**
|
|
156
|
+
- If a specific tool is failing, try to isolate the issue by running the
|
|
157
|
+
simplest possible version of the command or operation the tool performs.
|
|
158
|
+
- For `run_shell_command`, check that the command works directly in your shell
|
|
159
|
+
first.
|
|
160
|
+
- For _file system tools_, verify that paths are correct and check the
|
|
161
|
+
permissions.
|
|
162
|
+
|
|
163
|
+
- **Pre-flight checks:**
|
|
164
|
+
- Always run `npm run preflight` before committing code. This can catch many
|
|
165
|
+
common issues related to formatting, linting, and type errors.
|
|
166
|
+
|
|
167
|
+
## Existing GitHub issues similar to yours or creating new issues
|
|
168
|
+
|
|
169
|
+
If you encounter an issue that was not covered here in this _Troubleshooting
|
|
170
|
+
guide_, consider searching the Gemini CLI
|
|
171
|
+
[Issue tracker on GitHub](https://github.com/google-gemini/gemini-cli/issues).
|
|
172
|
+
If you can't find an issue similar to yours, consider creating a new GitHub
|
|
173
|
+
Issue with a detailed description. Pull requests are also welcome!
|
|
174
|
+
|
|
175
|
+
> **Note:** Issues tagged as "🔒Maintainers only" are reserved for project
|
|
176
|
+
> maintainers. We will not accept pull requests related to these issues.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Uninstalling the CLI
|
|
2
|
+
|
|
3
|
+
Your uninstall method depends on how you ran the CLI. Follow the instructions
|
|
4
|
+
for either npx or a global npm installation.
|
|
5
|
+
|
|
6
|
+
## Method 1: Using npx
|
|
7
|
+
|
|
8
|
+
npx runs packages from a temporary cache without a permanent installation. To
|
|
9
|
+
"uninstall" the CLI, you must clear this cache, which will remove gemini-cli and
|
|
10
|
+
any other packages previously executed with npx.
|
|
11
|
+
|
|
12
|
+
The npx cache is a directory named `_npx` inside your main npm cache folder. You
|
|
13
|
+
can find your npm cache path by running `npm config get cache`.
|
|
14
|
+
|
|
15
|
+
**For macOS / Linux**
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
# The path is typically ~/.npm/_npx
|
|
19
|
+
rm -rf "$(npm config get cache)/_npx"
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
**For Windows (PowerShell)**
|
|
23
|
+
|
|
24
|
+
```powershell
|
|
25
|
+
# The path is typically $env:LocalAppData\npm-cache\_npx
|
|
26
|
+
Remove-Item -Path (Join-Path $env:LocalAppData "npm-cache\_npx") -Recurse -Force
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Method 2: Using npm (global install)
|
|
30
|
+
|
|
31
|
+
If you installed the CLI globally (e.g., `npm install -g @google/gemini-cli`),
|
|
32
|
+
use the `npm uninstall` command with the `-g` flag to remove it.
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm uninstall -g @google/gemini-cli
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
This command completely removes the package from your system.
|
|
39
|
+
|
|
40
|
+
## Method 3: Homebrew
|
|
41
|
+
|
|
42
|
+
If you installed the CLI globally using Homebrew (e.g.,
|
|
43
|
+
`brew install gemini-cli`), use the `brew uninstall` command to remove it.
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
brew uninstall gemini-cli
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Method 4: MacPorts
|
|
50
|
+
|
|
51
|
+
If you installed the CLI globally using MacPorts (e.g.,
|
|
52
|
+
`sudo port install gemini-cli`), use the `port uninstall` command to remove it.
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
sudo port uninstall gemini-cli
|
|
56
|
+
```
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @fileoverview Custom error types for A2A remote agent operations.
|
|
8
|
+
* Provides structured, user-friendly error messages for common failure modes
|
|
9
|
+
* during agent card fetching, authentication, and communication.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Base class for all A2A agent errors.
|
|
13
|
+
* Provides a `userMessage` field with a human-readable description.
|
|
14
|
+
*/
|
|
15
|
+
export declare class A2AAgentError extends Error {
|
|
16
|
+
/** A user-friendly message suitable for display in the CLI. */
|
|
17
|
+
readonly userMessage: string;
|
|
18
|
+
/** The agent name associated with this error. */
|
|
19
|
+
readonly agentName: string;
|
|
20
|
+
constructor(agentName: string, message: string, userMessage: string, options?: ErrorOptions);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Thrown when the agent card URL returns a 404 Not Found response.
|
|
24
|
+
*/
|
|
25
|
+
export declare class AgentCardNotFoundError extends A2AAgentError {
|
|
26
|
+
constructor(agentName: string, agentCardUrl: string);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Thrown when the agent card URL returns a 401/403 response,
|
|
30
|
+
* indicating an authentication or authorization failure.
|
|
31
|
+
*/
|
|
32
|
+
export declare class AgentCardAuthError extends A2AAgentError {
|
|
33
|
+
readonly statusCode: number;
|
|
34
|
+
constructor(agentName: string, agentCardUrl: string, statusCode: 401 | 403);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Thrown when the agent card's security schemes require authentication
|
|
38
|
+
* but the agent definition does not include the necessary auth configuration.
|
|
39
|
+
*/
|
|
40
|
+
export declare class AgentAuthConfigMissingError extends A2AAgentError {
|
|
41
|
+
/** Human-readable description of required authentication schemes. */
|
|
42
|
+
readonly requiredAuth: string;
|
|
43
|
+
/** Specific fields or config entries that are missing. */
|
|
44
|
+
readonly missingFields: string[];
|
|
45
|
+
constructor(agentName: string, requiredAuth: string, missingFields: string[]);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Thrown when a generic/unexpected network or server error occurs
|
|
49
|
+
* while fetching the agent card or communicating with the remote agent.
|
|
50
|
+
*/
|
|
51
|
+
export declare class AgentConnectionError extends A2AAgentError {
|
|
52
|
+
constructor(agentName: string, agentCardUrl: string, cause: unknown);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Attempts to classify a raw error from the A2A SDK into a typed A2AAgentError.
|
|
56
|
+
*
|
|
57
|
+
* Inspects the error message and full cause chain for HTTP status codes and
|
|
58
|
+
* well-known patterns to produce a structured, user-friendly error.
|
|
59
|
+
*
|
|
60
|
+
* @param agentName The name of the agent being loaded.
|
|
61
|
+
* @param agentCardUrl The URL of the agent card.
|
|
62
|
+
* @param error The raw error caught during agent loading.
|
|
63
|
+
* @returns A classified A2AAgentError subclass.
|
|
64
|
+
*/
|
|
65
|
+
export declare function classifyAgentError(agentName: string, agentCardUrl: string, error: unknown): A2AAgentError;
|