Skip to main content

Official Python client for Aegis — orchestration middleware for Claude Code

Project description

ag-client

Official Python client for Aegis — orchestration middleware for Claude Code.

Install

pip install ag-client

Quick Start

from aegis_python_client import AegisClient

client = AegisClient(
    base_url="http://localhost:9100",
    auth_token="your-token",
)

# List all sessions
sessions = client.list_sessions()
for s in sessions.get("sessions", []):
    print(s["id"], s.get("name", ""))

# Create a new session
result = client.create_session(
    work_dir="/path/to/project",
    name="my-session",
)
session_id = result["id"]

# Send a message
client.send_message(session_id, "Implement feature X")

# Get session metrics
metrics = client.get_session_metrics(session_id)
print(metrics)

Features

  • Zero external HTTP dependencies — uses only urllib from stdlib
  • Pydantic v2 models — all request/response types generated from OpenAPI spec
  • Full API coverage — 53 endpoints: sessions, pipelines, templates, memory, auth, monitoring
  • Type-safe — full type annotations throughout

Regenerating Models

When openapi.yaml changes at the repo root:

python -m pip install -e "packages/python-client[dev]"
npm run sdk:py:generate
npm run sdk:py:check

npm run sdk:py:check regenerates the Pydantic models from the root OpenAPI contract and fails if src/aegis_python_client/models.py has drifted.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ag_client-0.6.6.dev0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ag_client-0.6.6.dev0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file ag_client-0.6.6.dev0.tar.gz.

File metadata

  • Download URL: ag_client-0.6.6.dev0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ag_client-0.6.6.dev0.tar.gz
Algorithm Hash digest
SHA256 3d4e7d02b3e46f331146a228a95fa4c70894392299dbaa7bf2d9db5dde3aa5f9
MD5 3e331e07fa2d49640b551e1c4f6afc47
BLAKE2b-256 a70ecbc7eb9d64f7d8ef3598493ec552d91f07e12b73956c23e11b0666efba1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for ag_client-0.6.6.dev0.tar.gz:

Publisher: release.yml on OneStepAt4time/aegis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ag_client-0.6.6.dev0-py3-none-any.whl.

File metadata

  • Download URL: ag_client-0.6.6.dev0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ag_client-0.6.6.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 516eb6c71b4171b9bfaf4e213f8fe7e601cd8d47bf737b3b59e5df79deb66845
MD5 6a77c4c2a59b7222457d6e1c7f8376bd
BLAKE2b-256 01e5fe4e8578fe679f8ecd97594d7761824b1f4a4035d47b6b8741f63af6af12

See more details on using hashes here.

Provenance

The following attestation bundles were made for ag_client-0.6.6.dev0-py3-none-any.whl:

Publisher: release.yml on OneStepAt4time/aegis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page