OpenClaw Managed Agents Python SDK
Python client for the OpenClaw Managed Agents API.
Install
pip install openclaw-managed-agents
Usage
from openclaw_managed_agents import OpenClawClient
# Pass api_token to match the orchestrator's OPENCLAW_API_TOKEN when
# bearer-token auth is enabled. Omit for a local orchestrator without auth.
client = OpenClawClient(base_url="http://localhost:8080", api_token="my-shared-secret")
# Create an agent
agent = client.agents.create(
model="moonshot/kimi-k2.5",
instructions="You are a research assistant.",
)
# Open a session
session = client.sessions.create(agent_id=agent.agent_id)
# Send a message
client.sessions.send(session.session_id, content="What is 2+2?")
# Stream events in real time
for event in client.sessions.stream(session.session_id):
if event.type == "agent.message":
print(event.content)
elif event.type == "agent.tool_use":
print(f"[tool: {event.tool_name}]")
Resources
client.agents— create, get, list, update, archive, delete, list_versions, warm, runclient.environments— create, get, list, deleteclient.sessions— create, get, list, delete, send, cancel, compact, logs, events, stream, confirm_toolclient.vaults— create, get, list, delete, add_static_bearer_credential, add_mcp_oauth_credential, list_credentials, delete_credential
Metadata
Release files for openclaw-managed-agents 0.2.0
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 |
|---|---|---|---|---|
| openclaw_managed_agents-0.2.0.tar.gz | 9.6 kB | With provenance | Details for openclaw_managed_agents-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openclaw_managed_agents-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for openclaw_managed_agents-0.2.0-py3-none-any.whl |
Total release size: 19.9 kB
Release files / openclaw_managed_agents-0.2.0.tar.gz
| Download URL | openclaw_managed_agents-0.2.0.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
341f7eae0b11500fcc1a3b2d0e0b402cf8fdda46ce07c94d43e7e16e4395c798
|
|
BLAKE2b-256 checksum How to use checksums |
529344dc84db06d895363e97e5135ba8f00715f51b8e00f12a4453c0faa2e369
|
| 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 Apr 27, 2026.
Transparency logRelease files / openclaw_managed_agents-0.2.0-py3-none-any.whl
| Download URL | openclaw_managed_agents-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3adfe6699954eae9334ef8384dc044bb50f4db690b350b151ef154daa7e2802a
|
|
BLAKE2b-256 checksum How to use checksums |
934a76ad289c29db863313ba014435e151a8f3de4412483ec7ebb370d40a388b
|
| 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 Apr 27, 2026.
Transparency logSecurity for openclaw-managed-agents 0.2.0
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
Both files in this release have been uploaded with provenance metadata.
Attestation for openclaw_managed_agents-0.2.0.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 Apr 27, 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.