Skip to content

Comments

docs: add Gemini CLI community provider#7143

Merged
lgrammel merged 1 commit intovercel:mainfrom
ben-vargas:feat/docs-add-gemini-cli-community-provider
Jul 28, 2025
Merged

docs: add Gemini CLI community provider#7143
lgrammel merged 1 commit intovercel:mainfrom
ben-vargas:feat/docs-add-gemini-cli-community-provider

Conversation

@ben-vargas
Copy link
Contributor

Description

This PR adds documentation for the ai-sdk-provider-gemini-cli community provider, which enables developers to access Google's Gemini models through the official @google/gemini-cli-core library and Google Cloud Code endpoints.

What does this PR do?

  • Adds documentation for the Gemini CLI provider at content/providers/03-community-providers/100-gemini-cli.mdx
  • Updates the community providers list in content/docs/02-foundations/02-providers-and-models.mdx

Key Features

The Gemini CLI provider offers flexible authentication and full AI SDK compatibility:

  • OAuth authentication - Uses existing Gemini CLI credentials (ideal for GCA license holders)
  • API key authentication - Standard authentication method with Gemini API keys
  • Full streaming support - Real-time text generation with streamText
  • Structured object generation - Support for generateObject and streamObject with Zod schemas
  • Model flexibility - Access to both Gemini 2.5 Pro and Flash models with 64K output tokens

Notes

This provider is particularly useful for developers who have a Gemini Code Assist (GCA) subscription and want to use their existing license rather than paid API keys. It also supports standard API key authentication for maximum flexibility.

Testing

  • Documentation follows the existing community provider format
  • All installation methods (npm, pnpm, yarn) are documented
  • Model capabilities table accurately reflects the provider's features
  • Links to the provider repository are working
  • Authentication methods are clearly documented with examples

@ben-vargas ben-vargas force-pushed the feat/docs-add-gemini-cli-community-provider branch 2 times, most recently from a7b24b4 to 62749b5 Compare July 8, 2025 22:00
@ben-vargas ben-vargas force-pushed the feat/docs-add-gemini-cli-community-provider branch from 97b7a73 to b48611c Compare July 26, 2025 00:07
@ben-vargas
Copy link
Contributor Author

ben-vargas commented Jul 26, 2025

Force pushed an update to document both v4 and v5-beta compatibility and address merge conflict in 02-providers-and-models.mdx file. Fixed prettier CI test.

@ben-vargas ben-vargas force-pushed the feat/docs-add-gemini-cli-community-provider branch 2 times, most recently from 7df4007 to 0eaf08a Compare July 26, 2025 00:25
Add documentation for the ai-sdk-provider-gemini-cli community provider, which enables developers to access Google's Gemini models through the official @google/gemini-cli-core library.

Key features:
- OAuth authentication via Gemini CLI credentials (GCA licenses)
- API key authentication support
- Streaming and structured object generation
- Support for Gemini 2.5 Pro and Flash models
- Standard AI SDK parameter compatibility

Changes:
- Add provider documentation at content/providers/03-community-providers/100-gemini-cli.mdx
- Update community providers list in content/docs/02-foundations/02-providers-and-models.mdx
@ben-vargas ben-vargas force-pushed the feat/docs-add-gemini-cli-community-provider branch from 0eaf08a to a566b0e Compare July 26, 2025 00:28
@lgrammel lgrammel added the documentation Improvements or additions to documentation label Jul 26, 2025
@lgrammel
Copy link
Collaborator

is the provider compatible with ai sdk 5?

@ben-vargas
Copy link
Contributor Author

Yes, this was the update to the docs made yesterday, v5-beta support has been added! 🎉

@lgrammel lgrammel merged commit e77875b into vercel:main Jul 28, 2025
7 of 8 checks passed
@ben-vargas ben-vargas deleted the feat/docs-add-gemini-cli-community-provider branch July 31, 2025 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants