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.0.tar.gz (10.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.4.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oacp_sdk-0.4.0.tar.gz
  • Upload date:
  • Size: 10.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.4.0.tar.gz
Algorithm Hash digest
SHA256 01b569608454877e81f6e2e12eb91fca41aa333cfb4b6ba8ec2b280ae9471e01
MD5 4fab0450c8cd406731494c692f8033c8
BLAKE2b-256 8dfa8708798ad3359ceccee56445cb16654025115f6c3655295f0313e52f3d3b

See more details on using hashes here.

Provenance

The following attestation bundles were made for oacp_sdk-0.4.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.4.0-py3-none-any.whl.

File metadata

  • Download URL: oacp_sdk-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c930a22f7d50ff626a7d7237cf28ffba8d609e684572301980bf2d21324d37e
MD5 db62ac87dee2def4eaec948d66a12a10
BLAKE2b-256 b31fec3570460014a35ae0ff2cefd5ad7575366069501ab961f602e1e7972ef0

See more details on using hashes here.

Provenance

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

This release

0.4.0 This release

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