aicery-sdk
Official Python client for the Aicery AI agent runtime.
About Aicery
Aicery is an open-source AI agent runtime — orchestration, tools, trace, and replay. It is the engine under your application, not a vertical SaaS product.
Agents are replaceable. Runtime is permanent.
The runtime runs LangGraph agents, executes tools safely, records step-by-step traces, and replays runs with frozen mocks. You bring UI, business rules, and data connectors; Aicery handles runs, providers, and observability.
- Repository: https://github.com/mrkkyatilla/aicery
- Documentation: https://aicery.dev/docs
- License: MIT
This package (aicery-sdk) is a thin HTTP client for the runtime API (/v1/runs, /v1/agents, SSE streaming). It does not include the runtime server — run the Aicery stack locally or point the client at your deployment.
Install
pip install aicery-sdk
Requires Python 3.11+.
Prerequisites
A running Aicery runtime (default: http://localhost:8000). From the main repo:
git clone https://github.com/mrkkyatilla/aicery.git
cd aicery
make install && make up && make migrate
Default API key for local dev: dev.
Quick start
from aicery_sdk import AiceryClient
client = AiceryClient(base_url="http://localhost:8000", api_key="dev")
run = client.create_run(agent_id="echo", input="hello", execute=True)
final = client.get_run(run.id)
print(final.status) # completed
print(final.output_text) # echo:hello
create_run may return status: pending immediately; call get_run for the final output.
Configuration
From aicery.yaml (recommended in projects):
client = AiceryClient.from_config("aicery.yaml")
From environment:
client = AiceryClient.from_env()
# API_KEY or AICERY_API_KEY (default: dev)
# AICERY_RUNTIME_URL (default: http://localhost:8000)
List agents
agents = client.list_agents()
for agent in agents:
print(agent["id"], agent.get("name"))
Streaming
run = client.create_run(agent_id="research", input="Summarize README", execute=True)
for event in client.stream_run(run.id):
if event.event == "token":
print(event.data, end="", flush=True)
API surface (v0.0.x)
| Method | Description |
|---|---|
create_run(...) |
Start or execute an agent run |
get_run(run_id) |
Fetch run status and output |
list_agents() |
List available agents |
stream_run(run_id) |
SSE token/step stream |
resume_run(...) |
HITL resume after approval |
from_config(path) |
Load client from aicery.yaml |
from_env() |
Load client from environment |
Related
Development
From the monorepo (editable install):
pip install -e ./sdk/python
pytest sdk/python/tests
Metadata
Release files for aicery-sdk 0.0.2
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 | |
|---|---|---|---|---|
| aicery_sdk-0.0.2.tar.gz | 5.2 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aicery_sdk-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.5 kB
Release files / aicery_sdk-0.0.2.tar.gz
| Download URL | aicery_sdk-0.0.2.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
23acbfabe965c557a080611352b8c836d84720f100642df0c5f74bd59cf0be8a
|
|
BLAKE2b-256 checksum How to use checksums |
e8c431c2f0bb4663bc78c4b3e1a9ebbed0bd2189affb5552eb0b16980e9491d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 10, 2026.
Transparency logRelease files / aicery_sdk-0.0.2-py3-none-any.whl
| Download URL | aicery_sdk-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb6470362bd4c6d2ab07473df2fb4cdd44dbb5315ca2bcb0ea2258a0e7c6ceb2
|
|
BLAKE2b-256 checksum How to use checksums |
977549a70ee19517fab9ee1b29406c0a9d347cef2c042eee5b8cf610c6e9ee99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 10, 2026.
Transparency logSecurity for aicery-sdk 0.0.2
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for aicery_sdk-0.0.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 10, 2026.
Transparency logA 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.