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.1.0.tar.gz (6.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.1.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: openclaw_managed_agents-0.1.0.tar.gz
  • Upload date:
  • Size: 6.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.1.0.tar.gz
Algorithm Hash digest
SHA256 ddc9f1f24c1da6103a05408e905ebf554d582478d8e1e3e5478a42be659164c7
MD5 d1e3e2fe2ea28876d03c4d63085059b3
BLAKE2b-256 7b88c69193dcdfdeb44198272d739a1f679218f0c3865dba208347031d806d42

See more details on using hashes here.

Provenance

The following attestation bundles were made for openclaw_managed_agents-0.1.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.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openclaw_managed_agents-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e90ae1e658c6789c37bcafe760a4451d94b53522d8fe84f3da5f96fb3fad6fe
MD5 a8c2b4efc17b9aa3436679d1e4211804
BLAKE2b-256 84ddf61a73450515bf529a3d420b156494de2c92b9817316ee2cf722291ec275

See more details on using hashes here.

Provenance

The following attestation bundles were made for openclaw_managed_agents-0.1.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