llmux
Scriptable LLM multiplexer — unified interface to Claude and OpenAI via subscription OAuth (no API keys needed).
Getting tokens
Claude
llmux reuses the token from an existing Claude Code (CLI) session.
- Install Claude Code:
npm install -g @anthropic-ai/claude-code - Log in:
claude login - Done — llmux reads
~/.claude/.credentials.jsonautomatically.
Or set the env var manually:
export CLAUDE_OAUTH_TOKEN=your_token_here
The token is at .claudeAiOauth.accessToken inside ~/.claude/.credentials.json.
OpenAI (Codex)
llmux reuses the token from an existing Codex CLI session.
- Install Codex:
npm install -g @openai/codex - Log in:
codex login - Done — llmux reads
~/.codex/auth.jsonautomatically.
Or set env vars manually:
export CODEX_OAUTH_TOKEN=your_access_token
export CODEX_ACCOUNT_ID=your_account_id
Both values are in ~/.codex/auth.json under .tokens.access_token and .tokens.account_id.
Google (Antigravity CLI)
llmux reuses the token from an existing Antigravity CLI (agy) session.
- Install:
curl -fsSL https://antigravity.google/cli/install.sh | bash - Log in:
agy(follows OAuth flow on first run) - Done — llmux reads
~/.gemini/antigravity-cli/antigravity-oauth-tokenautomatically.
Or set the env var manually:
export AGY_OAUTH_TOKEN=your_access_token_here
The access token is at .token.access_token inside ~/.gemini/antigravity-cli/antigravity-oauth-token. Token expires after 1 hour — re-run agy to refresh.
Quick start
from llmux import Agent, Claude, GPT, Gemini
# Claude (default)
agent = Agent(Claude.sonnet46)
print(agent("Hello!"))
# OpenAI
agent = Agent(GPT.gpt55)
print(agent("Hello!"))
# Gemini (via Antigravity CLI)
agent = Agent(Gemini.flash25)
print(agent("Hello!"))
# Streaming
with Agent(Claude.sonnet46) as agent:
for chunk in agent.stream("Tell me a joke"):
print(chunk, end="", flush=True)
Install
pip install llmux
From git:
pip install git+ssh://git@gitlab.com/grisus/llmux-sdk.git
Locally (development):
pip install -e ".[dev]" # editable + pytest
pip install -e . # runtime only
Run tests
pytest
Metadata
Release files for llmux-sdk 0.1.13
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 |
|---|---|---|---|---|
| llmux_sdk-0.1.13.tar.gz | 14.8 kB | Without provenance | Details for llmux_sdk-0.1.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llmux_sdk-0.1.13-py3-none-any.whl | Python 3 | none | any | Details for llmux_sdk-0.1.13-py3-none-any.whl |
Total release size: 28.5 kB
Release files / llmux_sdk-0.1.13.tar.gz
| Download URL | llmux_sdk-0.1.13.tar.gz |
|---|---|
| Size | 14.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27168590975fce40a48c2894286a7c1add12d75d0a11eb683f5201a975b9b4e1
|
|
BLAKE2b-256 checksum How to use checksums |
f9613b25b2b0507f01770d3c85544a186be28d4a47e07ce7624e2d2717c79d8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / llmux_sdk-0.1.13-py3-none-any.whl
| Download URL | llmux_sdk-0.1.13-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb6d76042485efaa12296f66f1a1502bab00ff5ee59736581b6c187c66ad0bd8
|
|
BLAKE2b-256 checksum How to use checksums |
4eaa6cd6adbac9868f61e0159ac1cdb62d1ef17f769a7af20b63d79332838cfe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for llmux-sdk 0.1.13
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.