Skip to main content

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, run
  • client.environments — create, get, list, delete
  • client.sessions — create, get, list, delete, send, cancel, compact, logs, events, stream, confirm_tool
  • client.vaults — create, get, list, delete, add_static_bearer_credential, add_mcp_oauth_credential, list_credentials, delete_credential

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)

Source distribution for openclaw-managed-agents 0.2.0
File Size Uploaded
openclaw_managed_agents-0.2.0.tar.gz 9.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for openclaw-managed-agents 0.2.0
File Interpreter ABI Platform
openclaw_managed_agents-0.2.0-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

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