Skip to main content

CrewAI tool that issues Vouch Credentials to authorize multi-agent tool calls.

Project description

vouch-crewai

A CrewAI tool that issues Vouch Credentials, so the agents in a crew can cryptographically authorize their tool calls, including across delegation.

Each signed call carries a W3C Verifiable Credential with an eddsa-jcs-2022 Data Integrity proof. When a supervisor agent delegates to a worker, the worker's credential extends the supervisor's chain and can only narrow the authority, never broaden it.

Install

pip install vouch-crewai

This pulls in vouch-protocol[crewai].

Configure

  • VOUCH_PRIVATE_KEY the agent's private key (JWK JSON string).
  • VOUCH_DID the agent's DID, e.g. did:web:agent.example.com.

Use

from vouch_crewai import sign_request

# Give the tool to a CrewAI agent. It calls it before an authenticated request.
credential_json = sign_request(
    action="read",
    target="https://api.example.com",
    resource="customer:123",
)

Delegation between agents

See examples/integrations_delegation.py in the main repo for a supervisor that issues a broad credential and a worker that narrows it under capability attenuation.

Verify on the receiving side

from vouch import Verifier
ok, passport = Verifier.verify_credential(received_json, public_key=agent_pubkey)

License

Apache-2.0.

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

vouch_crewai-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

vouch_crewai-0.1.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vouch_crewai-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vouch_crewai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 86455d834aeb20834364cd73b2be79cf14cf3c3618ccfb912ab9a629c18b1c9c
MD5 dcb378790c9c01af0a8f30fa5718f638
BLAKE2b-256 72e7721d42a52a1a3759b87cc98b29774ccb26b8390aefd3d1b4318d78af7c3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for vouch_crewai-0.1.0.tar.gz:

Publisher: publish-pypi.yml on vouch-protocol/vouch

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

File details

Details for the file vouch_crewai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vouch_crewai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for vouch_crewai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 417ebe0b668fabe16a4cc5278d96a5571b0908e2cda8d1450c80bb8a299d6cc9
MD5 3e1a0732aaed8e3de4d106d0ae91c79a
BLAKE2b-256 68af1313e951558b5be8b0d65fd44083da6fc2cd36b4c3dabcd75a933b668906

See more details on using hashes here.

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