Catalog PyPI
PACKAGE EXPLORERView in registry

ag-client

PyPI

Official Python client for Aegis — orchestration middleware for Claude Code

Versions collected1
Direct dependencies6From release 0.6.7
Last observed20 Oct, 21:20 UTC

README

Version 0.6.7 documentation

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.6.716 May 20266

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:20 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:76acea724ac3f63be16e301a5bf13d49bf326736bc7ccea5c0c173b50735dca8