Skip to content

Add Google Gemini AI plugin#560

Merged
scottisloud merged 2 commits into
1Password:mainfrom
fproulx-boostsecurity:add-gemini-plugin
Jun 24, 2026
Merged

Add Google Gemini AI plugin#560
scottisloud merged 2 commits into
1Password:mainfrom
fproulx-boostsecurity:add-gemini-plugin

Conversation

@fproulx-boostsecurity

Copy link
Copy Markdown
Contributor

Summary

This PR adds a new shell plugin for the Google Gemini AI API, enabling secure credential management for the gemini CLI tool through 1Password.

Features

  • API Key credential type with automatic provisioning via GEMINI_API_KEY environment variable
  • Credential importer to detect and import existing Gemini API keys from environment
  • Full validation - all schema checks pass
  • Test coverage - includes tests for both provisioner and importer
  • Documentation - includes links to Google AI Studio API key management

Validation Results

✅ All schema validations passed
✅ Plugin builds successfully
✅ All tests passing
✅ Example secrets generated
✅ Commits signed

Testing

The plugin has been tested locally using make gemini/build and installed to ~/.op/plugins/local/gemini.

Checklist

  • Plugin created using make new-plugin
  • Schema validation passes (make gemini/validate)
  • Plugin builds successfully (make gemini/build)
  • Tests written and passing
  • Example secrets generated (make gemini/example-secrets)
  • Commits are signed
  • No third-party dependencies added
  • Follows contribution guidelines

Closes #[if there's a related issue]

Adds shell plugin for Google Gemini AI API, providing support for:
- API key provisioning via GEMINI_API_KEY environment variable
- Environment variable configuration
- Google AI Studio integration
- Automatic credential import from existing environment

The plugin enables 1Password CLI integration with the gemini CLI tool,
allowing secure management of Gemini API credentials.
Comment thread plugins/gemini/api_key.go Outdated
@fproulx-boostsecurity

Copy link
Copy Markdown
Contributor Author

@Marton6 could you retest ?

@scottisloud scottisloud self-requested a review June 24, 2026 22:39

@scottisloud scottisloud left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tidying up that stray TODO. All looks good, LGTM!

Will merge shortly. Look out for this to be part of a future release of the 1Password CLI!

@scottisloud scottisloud merged commit 3862aad into 1Password:main Jun 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants