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:
- v1: https://aiplatform.googleapis.com/$discovery/rest?version=v1
- v1beta1: https://aiplatform.googleapis.com/$discovery/rest?version=v1beta1
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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| axio_transport_google-0.12.0.tar.gz | 73.2 kB | With provenance | Details for axio_transport_google-0.12.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| axio_transport_google-0.12.0-py3-none-any.whl | Python 3 | none | any | Details for axio_transport_google-0.12.0-py3-none-any.whl |
Total release size: 126.7 kB
Release files / axio_transport_google-0.12.0.tar.gz
| Download URL | axio_transport_google-0.12.0.tar.gz |
|---|---|
| Size | 73.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64e063a7dd61f9eeacf1ca2f564f5a852ffc31a366e3c7fc32266524caa12bf5
|
|
BLAKE2b-256 checksum How to use checksums |
46984d74f6ebf844bc9a0428f019f593b6fd150289d792a1cbeb89ae47b0d294
|
| 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 logRelease files / axio_transport_google-0.12.0-py3-none-any.whl
| Download URL | axio_transport_google-0.12.0-py3-none-any.whl |
|---|---|
| Size | 53.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b62ef81c6f5cb5f3c06042947d1cf4770e5333a47ed2cf7461e245beb8caf8e2
|
|
BLAKE2b-256 checksum How to use checksums |
5a6cfd059ad920582404c0340c34cffdf0ecb8e64d5515e23a784ee77da38ea1
|
| 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 logSecurity for axio-transport-google 0.12.0
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.
Attestation for axio_transport_google-0.12.0.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 logA 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.