Skip to content

[Feature]: Support Gemini Integration via Antigravity #52657

Description

@uguraka

Problem or Use Case

Currently Hermes Agent works flawlessly via Claude Code and Codex. For Gemini, only solution is to use the Google API. I would love to be able to use Gemini Pro subscription via Antigravity

Proposed Solution

Add a new antigravity value to the Supported Providers list. This extension would wrap the google-antigravity Python SDK instead of making direct REST calls.

Key integration requirements:

Credential Reuse: Automatically detect and authenticate using the local Google Antigravity CLI/IDE session tokens (similar to how Hermes handles Claude Code credentials or xai-oauth).

Stateful Session Routing: Map the Hermes agent loop directly to the Antigravity SDK's Conversation and Agent classes. This would allow Hermes to utilize Antigravity's highly optimized context management for Gemini 3.5 Flash/Pro.

Execution Sandbox: Optionally allow Hermes to offload system/shell tool execution into Antigravity's isolated Linux sandbox and leverage its built-in Inspect/Decide/Transform safety hooks.

The antigravity-sdk-python library provides clean programmatic access (from google.antigravity import Agent). Because Hermes is already built to handle complex, non-standard providers like copilot-acp and qwen-oauth, adding an antigravity adapter is the most native way to unlock state-of-the-art Gemini capabilities without forcing users to manage separate API billing quotas.

Alternatives Considered

Continuing to rely solely on the gemini provider. While functional for standard inference, this approach treats Gemini as a generic API endpoint rather than utilizing the robust LocalConnectionStrategy and agent-optimized runtime that Google built specifically for Gemini 3.5.

Feature Type

Configuration option

Scope

Medium (few files, < 300 lines)

Contribution

  • I'd like to implement this myself and submit a PR

Debug Report (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to haveprovider/geminiGoogle Gemini (AI Studio, Cloud Code)sweeper:not-plannedSweeper: closed per standing maintainer policy (design direction)type/featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions