Skip to main content

Python SDK for OpenClaw Managed Agents — the open alternative to Claude Managed Agents

Project description

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

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

openclaw_managed_agents-0.2.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

openclaw_managed_agents-0.2.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file openclaw_managed_agents-0.2.0.tar.gz.

File metadata

  • Download URL: openclaw_managed_agents-0.2.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openclaw_managed_agents-0.2.0.tar.gz
Algorithm Hash digest
SHA256 341f7eae0b11500fcc1a3b2d0e0b402cf8fdda46ce07c94d43e7e16e4395c798
MD5 51fc07972e9d4c7a4fe219f7eaf73e2f
BLAKE2b-256 529344dc84db06d895363e97e5135ba8f00715f51b8e00f12a4453c0faa2e369

See more details on using hashes here.

Provenance

The following attestation bundles were made for openclaw_managed_agents-0.2.0.tar.gz:

Publisher: publish-sdks.yaml on stainlu/openclaw-managed-agents

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

File details

Details for the file openclaw_managed_agents-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openclaw_managed_agents-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3adfe6699954eae9334ef8384dc044bb50f4db690b350b151ef154daa7e2802a
MD5 3b93c56a77097b9eb06d9b240d21f8f7
BLAKE2b-256 934a76ad289c29db863313ba014435e151a8f3de4412483ec7ebb370d40a388b

See more details on using hashes here.

Provenance

The following attestation bundles were made for openclaw_managed_agents-0.2.0-py3-none-any.whl:

Publisher: publish-sdks.yaml on stainlu/openclaw-managed-agents

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