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, 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddc9f1f24c1da6103a05408e905ebf554d582478d8e1e3e5478a42be659164c7
|
|
| MD5 |
d1e3e2fe2ea28876d03c4d63085059b3
|
|
| BLAKE2b-256 |
7b88c69193dcdfdeb44198272d739a1f679218f0c3865dba208347031d806d42
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openclaw_managed_agents-0.1.0.tar.gz -
Subject digest:
ddc9f1f24c1da6103a05408e905ebf554d582478d8e1e3e5478a42be659164c7 - Sigstore transparency entry: 1386484620
- Sigstore integration time:
-
Permalink:
stainlu/openclaw-managed-agents@74392fd9a59c8072cc1f7f6685dfccfb523b86ff -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/stainlu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdks.yaml@74392fd9a59c8072cc1f7f6685dfccfb523b86ff -
Trigger Event:
push
-
Statement type:
File details
Details for the file openclaw_managed_agents-0.1.0-py3-none-any.whl.
File metadata
- Download URL: openclaw_managed_agents-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e90ae1e658c6789c37bcafe760a4451d94b53522d8fe84f3da5f96fb3fad6fe
|
|
| MD5 |
a8c2b4efc17b9aa3436679d1e4211804
|
|
| BLAKE2b-256 |
84ddf61a73450515bf529a3d420b156494de2c92b9817316ee2cf722291ec275
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openclaw_managed_agents-0.1.0-py3-none-any.whl -
Subject digest:
3e90ae1e658c6789c37bcafe760a4451d94b53522d8fe84f3da5f96fb3fad6fe - Sigstore transparency entry: 1386484673
- Sigstore integration time:
-
Permalink:
stainlu/openclaw-managed-agents@74392fd9a59c8072cc1f7f6685dfccfb523b86ff -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/stainlu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdks.yaml@74392fd9a59c8072cc1f7f6685dfccfb523b86ff -
Trigger Event:
push
-
Statement type: