Skip to main content

agentmux-sdk

Official Python SDK for AgentMux: health/capability discovery, direct Agent invocation (sync + SSE streaming), management resources, Console session embedding and a bootstrap installer.

The PyPI name agentmux belongs to an unrelated project, so this package is agentmux-sdk and imports as agentmux_sdk.

pip install agentmux-sdk    # or: uv add agentmux-sdk

Health handshake

from agentmux_sdk import AgentMuxClient

client = AgentMuxClient(
    base_url="http://127.0.0.1:8765",
    token="<bridge token>",           # optional when bridge auth is disabled
    min_version="v0.1.3",             # optional consumer floor
)

report = client.health()
# report.state: ready | unauthorized | incompatible | unreachable | missing
print(report.state, report.version, report.contract_version)

Run an Agent

result = client.invoke(agent_id="agent-abc", input="summarize today's spending")
print(result.answer)

for event in client.invoke_stream(agent_id="agent-abc", input="analyze this portfolio"):
    if event.type in ("output", "thinking"):
        render(event.text)   # full snapshot: replace previous text, don't append
    elif event.type == "completed":
        print(event.result.answer)

An async twin (AsyncAgentMuxClient) offers the same API with await / async for.

Management resources

client.agents.list()
client.channels.list()
client.triggers.run("trigger-id")
client.orchestrations.create([{"id": "t1", "input": "..."}])
client.usage(period="daily")
client.send(project="myproj", text="deploy finished")

Embed the Console

session = client.console.create_session()
# Redirect the user's browser to session.enter_url (valid ~60s, single use).
# It sets an HttpOnly cookie and lands on the Console.

Install / upgrade AgentMux (bootstrap)

python -m agentmux_sdk.bootstrap --mode local --version v0.1.4
sudo AGENTMUX_BRIDGE_TOKEN=... python -m agentmux_sdk.bootstrap --mode production --version v0.1.4

Downloads are verified against the GoReleaser checksums.txt; installs use an atomic current symlink switch with automatic rollback on failed health checks.

Contract

This SDK speaks contract major 1 as defined in contract/CONTRACT.md.

Metadata

Release files for agentmux-sdk 0.1.4

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

Source distribution (sdist)

Source distribution for agentmux-sdk 0.1.4
File Size Uploaded Provenance Actions
agentmux_sdk-0.1.4.tar.gz 26.8 kB Without provenance Details for agentmux_sdk-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agentmux-sdk 0.1.4
File Interpreter ABI Platform Actions
agentmux_sdk-0.1.4-py3-none-any.whl Python 3 none any Details for agentmux_sdk-0.1.4-py3-none-any.whl

Total release size: 48.4 kB

Release files / agentmux_sdk-0.1.4.tar.gz

Download URL agentmux_sdk-0.1.4.tar.gz
Size 26.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b4eed099b89e59845e07b336d9f3724a96e74e78c03b091507394721a9e342a3
BLAKE2b-256 checksum
How to use checksums
7441ebf956910cd0fbd45599d5753b41b44fe98de429d1e2ca56ff2e55e362a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / agentmux_sdk-0.1.4-py3-none-any.whl

Download URL agentmux_sdk-0.1.4-py3-none-any.whl
Size 21.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c29c5ff6f5464d85760727610d3d0d96cc1075600e6cfbc1cd2c541dbf9c8a9
BLAKE2b-256 checksum
How to use checksums
f68895255e476b5cf4a6646b296940e539b3e8f639687ae8f729b8e5b4b1846a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for agentmux-sdk 0.1.4

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.

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files No provenance

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