Skip to main content

axio-transport-google

Google GenAI (Gemini) transport for Axio with image and video support.

API reference

Request/response types are generated from the Vertex AI discovery documents:

To regenerate TypedDict definitions after an API update:

python scripts/generate_types.py [--version v1beta1]

This produces src/axio_transport_google/_generated_types.py, which the transport uses for type annotations. Conformance tests in tests/test_generated_types.py validate that payload builders match the discovery schema.

Antigravity OAuth

AntigravityTransport uses a Google account's Antigravity access. It is a separate transport from google (Developer API key) and google-vertex (Cloud credentials). It supports Gemini completion, streaming, reasoning, and function tools. It does not expose Claude, image/video generation, or Gemini Live.

axio-antigravity login
axio-antigravity models
axio-repl --transport antigravity

From this workspace, use uv run axio-repl --transport antigravity. Run uv sync --all-packages after adding or changing package entry points. An older uv tool install environment does not use this workspace's transport registry.

The REPL opens Google sign-in when no account is saved and stdin is a terminal. For SSH, run axio-antigravity login --manual, open the printed URL, and paste the full localhost redirect URL. The callback page uses the shared Axio sign-in design and reports success after token exchange and identity verification.

Credentials use the core file store at ${XDG_CONFIG_HOME:-$HOME/.config}/axio/antigravity.auth. Files have mode 0600; they contain refresh tokens and are not encrypted. axio-antigravity --credentials PATH … overrides the file. Python applications can also use AntigravitySQLiteCredentials or a compatible core credential store.

Account commands remain available if catalogue discovery fails:

axio-antigravity accounts
axio-antigravity select --account ACCOUNT_ID
axio-antigravity status
axio-antigravity logout
axio-antigravity logout --revoke

status checks and, if necessary, refreshes the OAuth token. It does not establish subscription entitlement. logout removes local tokens; --revoke also requests Google grant revocation. Active transports keep their selected account. Changing the saved selection affects future sessions. Revocation and local logout affect future requests from existing transports too.

Models and limits come from the account's live catalogue. /model uses those IDs, which can differ from Developer API IDs and display names. Quota and permission errors never switch to another account, model, or payment method. No Cloud project is created automatically. If discovery reports no companion project, complete setup in the Antigravity application first.

See examples/antigravity_chat.py for a Python tool loop. This uses an unofficial internal API, which can change without notice. Google's Antigravity terms restrict third-party OAuth use and permit account suspension.

TUI

Install axio-tui[google] to include the Google transport and its Textual settings. From this workspace, run uv run axio, then open Configure Antigravity in the command palette. Saved REPL accounts are available in the same credential store. The screen supports browser sign-in, pasted redirect URLs, account selection, and local sign-out. Use account reloads the model catalogue. Settings remain available when sign-in or model discovery fails.

TUI config stores only the credential file path and account ID. Model copies share the selected OAuth session. Changing accounts affects new transports; existing copies stay pinned to their original account.

Moving Claude Vertex settings

Google transports now serve Gemini only. Claude models with an anthropic/ prefix no longer appear in the Google Vertex catalog. A request with an old model ID fails with migration instructions before network access.

Install axio-transport-anthropic[vertexai] and choose anthropic-vertex in REPL or TUI. Use the Claude model ID without anthropic/. Copy the previous Vertex project and location to the new transport's settings, or set GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATION. Keep the existing ADC setup. For scripts, use axio_transport_anthropic.VertexAITransport with those values.

TUI preserves old model and transport settings. An unavailable saved chat model requires an explicit selection; it does not silently switch to Gemini. Google settings remain available for Gemini. Sampling and thinking settings must be set explicitly on the chosen Claude transport.

Metadata

Release files for axio-transport-google 0.12.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for axio-transport-google 0.12.1
File Size Uploaded Provenance Actions
axio_transport_google-0.12.1.tar.gz 73.2 kB With provenance Details for axio_transport_google-0.12.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for axio-transport-google 0.12.1
File Interpreter ABI Platform Actions
axio_transport_google-0.12.1-py3-none-any.whl Python 3 none any Details for axio_transport_google-0.12.1-py3-none-any.whl

Total release size: 126.7 kB

Release files / axio_transport_google-0.12.1.tar.gz

Download URL axio_transport_google-0.12.1.tar.gz
Size 73.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6dd72896be9c2606d1b00bea1d180310694e213b4c8d5faeb00966e7fff7e0f9
BLAKE2b-256 checksum
How to use checksums
8adc003fe2cde232a362871e69cde9f1ac380a1c7617679c084715deb9f62ce1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / axio_transport_google-0.12.1-py3-none-any.whl

Download URL axio_transport_google-0.12.1-py3-none-any.whl
Size 53.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cab66a0bca77757ea30ef23d991bb9f6d275e2a09ffc488f6a0778bd88911f10
BLAKE2b-256 checksum
How to use checksums
eaae3f9df8cfda9726f02cfe4598e7abb5e287e817e617adb46057e3f55288e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Security for axio-transport-google 0.12.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for axio_transport_google-0.12.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page