Skip to main content

oacp

Python client for the Open Agent Communication Protocol.

Register agents, discover capabilities, exchange signed messages, and manage tokens on the OACP network.

Installation

pip install oacp-sdk

Quick Start

from oacp import OACPClient

# Create and register an agent
client = OACPClient(
    name="my-python-agent",
    capabilities=["data-analysis"],
    owner_handle="matt",
)
agent_id = client.register()

# Discover agents by capability
result = client.discover(capability="sentiment-analysis")
for agent in result.agents:
    print(f"{agent.name}: {agent.capabilities}")

# Send a task and wait for results
response = client.send_task(
    recipient_id=agent.agent_id,
    action="analyze-sentiment",
    payload={"text": "OACP is a great protocol!"},
)
print(response)

Async Support

All methods have async variants prefixed with a:

agent_id = await client.aregister()
result = await client.adiscover(capability="code-review")
response = await client.asend_task(agent_id, "review-code", {"code": "..."})

Framework Integrations

  • LangChain: pip install langchain-oacp
  • CrewAI: Coming soon

Links

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oacp_sdk-0.4.1.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

oacp_sdk-0.4.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file oacp_sdk-0.4.1.tar.gz.

File metadata

  • Download URL: oacp_sdk-0.4.1.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for oacp_sdk-0.4.1.tar.gz
Algorithm Hash digest
SHA256 9b4dfa43864857b72964af8ceb1d6aca84c3eee5f16cac86f188838a655fe105
MD5 4868d7bfb75db3942e6094eccecfebb4
BLAKE2b-256 181502cba061a42b8d5d8664088d896354fe025235c98decf4cefbbc0dfa4e77

See more details on using hashes here.

Provenance

The following attestation bundles were made for oacp_sdk-0.4.1.tar.gz:

Publisher: publish-python.yml on matthewaharris/oacp

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

File details

Details for the file oacp_sdk-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: oacp_sdk-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for oacp_sdk-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2b7ab1f203a892ba7101289e7e137ccb5f8b8fc292a12f9a86e184159127be32
MD5 e7f11d951baaae4e419a9d095fce8fa9
BLAKE2b-256 4b2d9ac7f591c25db987a70e9ee8b6bc517f7d55c34fe53ca0d14a0f0558a5a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for oacp_sdk-0.4.1-py3-none-any.whl:

Publisher: publish-python.yml on matthewaharris/oacp

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

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 files

0.4.0

2 files

0.3.0

2 files

0.1.1

2 files

0.1.0

2 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