Skip to content

Commit 5fbdc9d

Browse files
author
Shi Shu
committed
Merge branch 'main' into ss/patchThread
2 parents a53f44c + fab279f commit 5fbdc9d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1622
-189
lines changed

.github/workflows/release-manual.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,15 @@ jobs:
4646
issues: 'write'
4747
steps:
4848
- name: 'Checkout'
49+
uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8'
50+
with:
51+
fetch-depth: 0
52+
53+
- name: 'Checkout Release Code'
4954
uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8'
5055
with:
5156
ref: '${{ github.event.inputs.ref }}'
57+
path: 'release'
5258
fetch-depth: 0
5359

5460
- name: 'Debug Inputs'
@@ -61,10 +67,12 @@ jobs:
6167
cache: 'npm'
6268

6369
- name: 'Install Dependencies'
70+
working-directory: './release'
6471
run: 'npm ci'
6572

6673
- name: 'Prepare Release Info'
6774
id: 'release_info'
75+
working-directory: './release'
6876
run: |
6977
RELEASE_VERSION="${{ github.event.inputs.version }}"
7078
echo "RELEASE_VERSION=${RELEASE_VERSION#v}" >> "${GITHUB_OUTPUT}"
@@ -75,6 +83,7 @@ jobs:
7583
uses: './.github/actions/run-tests'
7684
with:
7785
gemini_api_key: '${{ secrets.GEMINI_API_KEY }}'
86+
working-directory: './release'
7887

7988
- name: 'Publish Release'
8089
uses: './.github/actions/publish-release'
@@ -89,3 +98,4 @@ jobs:
8998
dry-run: '${{ github.event.inputs.dry_run }}'
9099
previous-tag: '${{ steps.release_info.outputs.PREVIOUS_TAG }}'
91100
skip-github-release: '${{ github.event.inputs.skip_github_release }}'
101+
working-directory: './release'

.github/workflows/release-patch-from-comment.yml renamed to .github/workflows/release-patch-0-from-comment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Release: Patch from Comment'
1+
name: 'Release: Patch (0) from Comment'
22

33
on:
44
issue_comment:

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,20 @@ Choose the authentication method that best fits your needs:
109109

110110
### Option 1: Login with Google (OAuth login using your Google Account)
111111

112-
**✨ Best for:** Individual developers as well as anyone who has a Gemini Code Assist License. (see [quota limits and terms of service](https://cloud.google.com/gemini/docs/quotas) for details)
112+
**✨ Best for:**
113+
114+
- Individual developers.
115+
- Google AI Pro and AI Ultra subscribers.
116+
- Anyone who has a Gemini Code Assist license.
117+
118+
_See [quota limits and terms of service](https://cloud.google.com/gemini/docs/quotas) for details._
113119

114120
**Benefits:**
115121

116-
- **Free tier**: 60 requests/min and 1,000 requests/day
117-
- **Gemini 2.5 Pro** with 1M token context window
122+
- **Free tier** with 60 requests/min and 1,000 requests/day
123+
- **Gemini 2.5 Pro and Flash** with 1M token context window
118124
- **No API key management** - just sign in with your Google account
119-
- **Automatic updates** to latest models
125+
- **Automatic updates** to our latest models
120126

121127
#### Start Gemini CLI, then choose _Login with Google_ and follow the browser authentication flow when prompted
122128

docs/cli/authentication.md

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,35 @@
11
# Authentication Setup
22

3-
The Gemini CLI requires you to authenticate with Google's AI services. On initial startup you'll need to configure **one** of the following authentication methods:
4-
5-
1. **Login with Google (Gemini Code Assist):**
6-
- Use this option to log in with your Google account.
7-
- During initial startup, Gemini CLI will direct you to a webpage for authentication. Once authenticated, your credentials will be cached locally so the web login can be skipped on subsequent runs.
8-
- Note that the web login must be done in a browser that can communicate with the machine Gemini CLI is being run from. (Specifically, the browser will be redirected to a localhost url that Gemini CLI will be listening on).
9-
- <a id="workspace-gca">Users may have to specify a GOOGLE_CLOUD_PROJECT if:</a>
10-
1. You have a Google Workspace account. Google Workspace is a paid service for businesses and organizations that provides a suite of productivity tools, including a custom email domain (e.g. your-name@your-company.com), enhanced security features, and administrative controls. These accounts are often managed by an employer or school.
11-
1. You have received a Gemini Code Assist license through the [Google Developer Program](https://developers.google.com/program/plans-and-pricing) (including qualified Google Developer Experts)
12-
1. You have been assigned a license to a current Gemini Code Assist standard or enterprise subscription.
13-
1. You are using the product outside the [supported regions](https://developers.google.com/gemini-code-assist/resources/available-locations) for free individual usage.
14-
1. You are a Google account holder under the age of 18
15-
- If you fall into one of these categories, you must first configure a Google Cloud Project ID to use, [enable the Gemini for Cloud API](https://cloud.google.com/gemini/docs/discover/set-up-gemini#enable-api) and [configure access permissions](https://cloud.google.com/gemini/docs/discover/set-up-gemini#grant-iam).
16-
17-
You can temporarily set the environment variable in your current shell session using the following command:
18-
19-
```bash
20-
export GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID"
21-
```
22-
- For repeated use, you can add the environment variable to your [.env file](#persisting-environment-variables-with-env-files) or your shell's configuration file (like `~/.bashrc`, `~/.zshrc`, or `~/.profile`). For example, the following command adds the environment variable to a `~/.bashrc` file:
23-
24-
```bash
25-
echo 'export GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID"' >> ~/.bashrc
26-
source ~/.bashrc
27-
```
3+
Gemini CLI requires you to authenticate with Google's AI services. On initial startup you'll need to configure **one** of the following authentication methods:
4+
5+
1. **Login with Google**
6+
1. **Google AI Pro and AI Ultra subscribers**
7+
- Use this option to log in with your Google account that you use with Google AI Pro and Ultra.
8+
- During initial startup, Gemini CLI will direct you to a webpage for authentication. Once authenticated, your credentials will be cached locally so the web login can be skipped on subsequent runs.
9+
- Note that the web login must be done in a browser that can communicate with the machine Gemini CLI is being run from. (Specifically, the browser will be redirected to a localhost URL that Gemini CLI will be listening on.)
10+
2. **Gemini Code Assist:**
11+
- Use this option to log in with your Google account.
12+
- During initial startup, Gemini CLI will direct you to a webpage for authentication. Once authenticated, your credentials will be cached locally so the web login can be skipped on subsequent runs.
13+
- Note that the web login must be done in a browser that can communicate with the machine Gemini CLI is being run from. (Specifically, the browser will be redirected to a localhost url that Gemini CLI will be listening on.)
14+
- <a id="workspace-gca">Users may have to specify a GOOGLE_CLOUD_PROJECT if:</a>
15+
1. You have a Google Workspace account. Google Workspace is a paid service for businesses and organizations that provides a suite of productivity tools, including a custom email domain (e.g. your-name@your-company.com), enhanced security features, and administrative controls. These accounts are often managed by an employer or school.
16+
1. You have received a Gemini Code Assist license through the [Google Developer Program](https://developers.google.com/program/plans-and-pricing) (including qualified Google Developer Experts).
17+
1. You have been assigned a license to a current Gemini Code Assist standard or enterprise subscription.
18+
1. You are using the product outside the [supported regions](https://developers.google.com/gemini-code-assist/resources/available-locations) for free individual usage.
19+
1. You are a Google account holder under the age of 18.
20+
- If you fall into one of these categories, you must first configure a Google Cloud Project ID to use, [enable the Gemini for Cloud API](https://cloud.google.com/gemini/docs/discover/set-up-gemini#enable-api) and [configure access permissions](https://cloud.google.com/gemini/docs/discover/set-up-gemini#grant-iam).
21+
22+
You can temporarily set the environment variable in your current shell session using the following command:
23+
24+
```bash
25+
export GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID"
26+
```
27+
- For repeated use, you can add the environment variable to your [.env file](#persisting-environment-variables-with-env-files) or your shell's configuration file (like `~/.bashrc`, `~/.zshrc`, or `~/.profile`). For example, the following command adds the environment variable to a `~/.bashrc` file:
28+
29+
```bash
30+
echo 'export GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID"' >> ~/.bashrc
31+
source ~/.bashrc
32+
```
2833

2934
2. **<a id="gemini-api-key"></a>Gemini API key:**
3035
- Obtain your API key from Google AI Studio: [https://aistudio.google.com/app/apikey](https://aistudio.google.com/app/apikey)

docs/extension.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You can install an extension using `gemini extensions install` with either a Git
1919
Note that we create a copy of the installed extension, so you will need to run `gemini extensions update` to pull in changes from both locally-defined extensions and those on GitHub.
2020

2121
```
22-
gemini extensions install https://github.com/google-gemini/gemini-cli-security
22+
gemini extensions install https://github.com/gemini-cli-extensions/security
2323
```
2424

2525
This will install the Gemini CLI Security extension, which offers support for a `/security:analyze` command.

docs/ide-companion-spec.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ For Gemini CLI to connect, it needs to discover which IDE instance it's running
2727
- `${PID}`: The process ID of the parent IDE process. Your extension must determine this PID and include it in the filename.
2828
- `${PORT}`: The port your MCP server is listening on.
2929
- **File Content & Workspace Validation:** The file **MUST** contain a JSON object with the following structure:
30+
3031
```json
3132
{
3233
"port": 12345,
@@ -44,6 +45,7 @@ For Gemini CLI to connect, it needs to discover which IDE instance it's running
4445
- `ideInfo` (object, required): Information about the IDE.
4546
- `name` (string, required): A short, lowercase identifier for the IDE (e.g., `vscode`, `jetbrains`).
4647
- `displayName` (string, required): A user-friendly name for the IDE (e.g., `VS Code`, `JetBrains IDE`).
48+
4749
- **Authentication:** To secure the connection, the extension **MUST** generate a unique, secret token and include it in the discovery file. The CLI will then include this token in the `Authorization` header for all requests to the MCP server (e.g., `Authorization: Bearer a-very-secret-token`). Your server **MUST** validate this token on every request and reject any that are unauthorized.
4850
- **Tie-Breaking with Environment Variables (Recommended):** For the most reliable experience, your extension **SHOULD** both create the discovery file and set the `GEMINI_CLI_IDE_SERVER_PORT` environment variable in the integrated terminal. The file serves as the primary discovery mechanism, but the environment variable is crucial for tie-breaking. If a user has multiple IDE windows open for the same workspace, the CLI uses the `GEMINI_CLI_IDE_SERVER_PORT` variable to identify and connect to the correct window's server.
4951

docs/quota-and-pricing.md

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Your journey begins with a generous free tier, perfect for experimentation and l
2020

2121
Your free usage limits depend on your authorization type.
2222

23-
### Log in with Google (Gemini Code Assist for Individuals)
23+
### Log in with Google (Gemini Code Assist for individuals)
2424

2525
For users who authenticate by using their Google account to access Gemini Code Assist for individuals. This includes:
2626

@@ -51,17 +51,26 @@ Learn more at [Vertex AI Express Mode Limits](https://cloud.google.com/vertex-ai
5151

5252
## Paid tier: Higher limits for a fixed cost
5353

54-
If you use up your initial number of requests, you can upgrade your plan to continue to benefit from Gemini CLI by using the [Standard or Enterprise editions of Gemini Code Assist](https://cloud.google.com/products/gemini/pricing) by signing up [here](https://goo.gle/set-up-gemini-code-assist). Quotas and pricing are based on a fixed price subscription with assigned license seats. For predictable costs, you can log in with Google. This includes:
54+
If you use up your initial number of requests, you can continue to benefit from Gemini CLI by upgrading to one of the following subscriptions:
5555

56-
- Standard:
57-
- 1500 model requests / user / day
58-
- 120 model requests / user / minute
59-
- Enterprise:
60-
- 2000 model requests / user / day
61-
- 120 model requests / user / minute
62-
- Model requests will be made across the Gemini model family as determined by Gemini CLI.
56+
- [Google AI Pro and AI Ultra](https://cloud.google.com/products/gemini/pricing) by signing up at [Set up Gemini Code Assist](https://goo.gle/set-up-gemini-code-assist). This is recommended for individual developers. Quotas and pricing are based on a fixed price subscription.
57+
58+
For predictable costs, you can log in with Google.
59+
60+
Learn more at [Gemini Code Assist Quotas and Limits](https://developers.google.com/gemini-code-assist/resources/quotas)
61+
62+
- [Purchase a Gemini Code Assist Subscription through Google Cloud ](https://cloud.google.com/gemini/docs/codeassist/overview) by signing up in the Google Cloud console. Learn more at [Set up Gemini Code Assist] (https://cloud.google.com/gemini/docs/discover/set-up-gemini) Quotas and pricing are based on a fixed price subscription with assigned license seats. For predictable costs, you can sign in with Google.
63+
64+
This includes:
65+
- Gemini Code Assist Standard edition:
66+
- 1500 model requests / user / day
67+
- 120 model requests / user / minute
68+
- Gemini Code Assist Enterprise edition:
69+
- 2000 model requests / user / day
70+
- 120 model requests / user / minute
71+
- Model requests will be made across the Gemini model family as determined by Gemini CLI.
6372

64-
Learn more at [Gemini Code Assist Standard and Enterprise license Limits](https://developers.google.com/gemini-code-assist/resources/quotas#quotas-for-agent-mode-gemini-cli).
73+
[Learn more about Gemini Code Assist Standard and Enterprise license limits](https://developers.google.com/gemini-code-assist/resources/quotas#quotas-for-agent-mode-gemini-cli).
6574

6675
## Pay As You Go
6776

@@ -83,7 +92,7 @@ Learn more at [Gemini API Rate Limits](https://ai.google.dev/gemini-api/docs/rat
8392

8493
It’s important to highlight that when using an API key, you pay per token/call. This can be more expensive for many small calls with few tokens, but it's the only way to ensure your workflow isn't interrupted by quota limits.
8594

86-
## Google One and Ultra plans, Gemini for Workspace plans
95+
## Gemini for Workspace plans
8796

8897
These plans currently apply only to the use of Gemini web-based products provided by Google-based experiences (for example, the Gemini web app or the Flow video editor). These plans do not apply to the API usage which powers the Gemini CLI. Supporting these plans is under active consideration for future support.
8998

0 commit comments

Comments
 (0)