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.3.0.tar.gz (9.5 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.3.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for oacp_sdk-0.3.0.tar.gz
Algorithm Hash digest
SHA256 bb6a98258a7c2a30cabeb5e4adc4fb983ac1e7fd83af2c94c0ad2120d0ddafa3
MD5 58853e1f0eac614a5190118e9efaae4c
BLAKE2b-256 90eb1ba5b41c4d94222806886fd5969a297dada39a2e109439879ec3f1c6a14e

See more details on using hashes here.

Provenance

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

Publisher: publish-python.yml on matthewaharris/agora

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.3.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for oacp_sdk-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d226f6cb90ba271599d0df8a889caa27c2192cdd0e43de496a9b01272e491f1
MD5 1ab421fcc4d8719d094a7e552723789d
BLAKE2b-256 13c3b1310640b382eca2fbb5562f7bd1cbf6615ed0b61dc49ca420b65dfb6862

See more details on using hashes here.

Provenance

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

Publisher: publish-python.yml on matthewaharris/agora

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

Release history Release notifications | RSS feed

0.4.1

2 files

0.4.0

2 files

This release

0.3.0 This release

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