ChatGPT (Codex) OAuth transport for Axio using Responses API
Project description
axio-transport-codex
ChatGPT OAuth transport for axio using the OpenAI Responses API.
Authenticates via the same OAuth flow used by ChatGPT — no API key required; your ChatGPT subscription covers usage. Implements the OpenAI Responses API (not the legacy completions endpoint).
Features
- No API key — authenticates with your ChatGPT account via OAuth
- Responses API — uses OpenAI's newer stateful Responses endpoint
- Full streaming — incremental text and tool-call events via SSE
- Tool calling — works with all axio tool handlers
- aiohttp-based — non-blocking I/O throughout
Installation
pip install axio-transport-codex
Usage
from axio import Agent
from axio.context import MemoryContextStore
from axio_transport_codex import CodexTransport
transport = CodexTransport(
access_token="your-chatgpt-oauth-token",
model="gpt-4o",
)
agent = Agent(system="You are a helpful assistant.", tools=[], transport=transport)
async def main() -> None:
ctx = MemoryContextStore()
async for event in agent.run_stream("Summarise the Rust ownership model", ctx):
from axio.events import TextDelta
if isinstance(event, TextDelta):
print(event.delta, end="", flush=True)
print()
Plugin registration
[project.entry-points."axio.transport"]
codex = "axio_transport_codex:CodexTransport"
Part of the axio ecosystem
axio · axio-transport-openai · axio-transport-nebius · axio-tui
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file axio_transport_codex-0.3.5.tar.gz.
File metadata
- Download URL: axio_transport_codex-0.3.5.tar.gz
- Upload date:
- Size: 88.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c80c800996d4a5775749e17ad1f0c708f86c40909e4c00d6c044ae507f3060f8
|
|
| MD5 |
411bfbf6b976a208d7d138f783d3857b
|
|
| BLAKE2b-256 |
2098ea980064c3dad7579588bf5071a47025fb1cdd541fdaf086915179dfecbc
|
Provenance
The following attestation bundles were made for axio_transport_codex-0.3.5.tar.gz:
Publisher:
publish.yml on axio-agent/monorepo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
axio_transport_codex-0.3.5.tar.gz -
Subject digest:
c80c800996d4a5775749e17ad1f0c708f86c40909e4c00d6c044ae507f3060f8 - Sigstore transparency entry: 1238724525
- Sigstore integration time:
-
Permalink:
axio-agent/monorepo@b75ed768c0d97e0d2f174bc9688f6a90f76bcdbd -
Branch / Tag:
refs/tags/0.3.5 - Owner: https://github.com/axio-agent
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b75ed768c0d97e0d2f174bc9688f6a90f76bcdbd -
Trigger Event:
release
-
Statement type:
File details
Details for the file axio_transport_codex-0.3.5-py3-none-any.whl.
File metadata
- Download URL: axio_transport_codex-0.3.5-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c1b55429f2e5ccf3b9ddaba51c5b293c930d51205098a7d6a0bff128e14ce9e
|
|
| MD5 |
8bab9ab35628b1e863ef91acd7c4c63c
|
|
| BLAKE2b-256 |
38807898f6a3341ddeffc8692e2eeed2e51f4b920aed296d2c2106244ff81504
|
Provenance
The following attestation bundles were made for axio_transport_codex-0.3.5-py3-none-any.whl:
Publisher:
publish.yml on axio-agent/monorepo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
axio_transport_codex-0.3.5-py3-none-any.whl -
Subject digest:
6c1b55429f2e5ccf3b9ddaba51c5b293c930d51205098a7d6a0bff128e14ce9e - Sigstore transparency entry: 1238724536
- Sigstore integration time:
-
Permalink:
axio-agent/monorepo@b75ed768c0d97e0d2f174bc9688f6a90f76bcdbd -
Branch / Tag:
refs/tags/0.3.5 - Owner: https://github.com/axio-agent
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b75ed768c0d97e0d2f174bc9688f6a90f76bcdbd -
Trigger Event:
release
-
Statement type: