Skip to main content

Python SDK for agent action control: posture checks, action gates, signed receipts, and proof packets

Project description

AgentVeil

Action control for autonomous agents — check posture, gate risky actions, prove execution.

AgentVeil is the Python SDK for agent action control: posture checks, Runtime Gate decisions, signed receipts, W3C verifiable credentials, plus DID identity, reputation signals, and MCP integrations.

pip install agentveil

Quick Start

Run locally with real cryptography and mocked HTTP. No server is required.

from datetime import timedelta
from agentveil import AVPAgent

owner = AVPAgent.create(mock=True, name="workflow-owner")
agent = AVPAgent.create(mock=True, name="demo-agent")
agent.register(display_name="Demo Agent")

delegation = owner.issue_delegation_receipt(
    agent_did=agent.did,
    allowed_categories=["deploy"],
    valid_for=timedelta(minutes=15),
)
verification = agent.verify_delegation_receipt(delegation)

print("delegation valid:", verification["valid"])
print("scope:", verification["scope"][0]["value"])

For production setup, see the Customer Integration guide.

What AgentVeil Provides

  • Posture checks before risky agent actions reach production.
  • Runtime Gate decisions for allow, approval required, or block outcomes.
  • Signed receipts and proof packets for audit and offline verification.
  • W3C VC v2.0 credentials with eddsa-jcs-2022 Data Integrity proofs.
  • DID identity with portable did:key Ed25519 keys.
  • Framework integrations for CrewAI, LangGraph, AutoGen, OpenAI, Claude MCP, Gemini, PydanticAI, Paperclip, and AWS Bedrock.
  • MCP transport proxy for IDE clients (Claude Desktop, Cursor, Cline, Windsurf, VS Code) - available as the separately packaged agentveil-mcp-proxy source-available component under Business Source License 1.1.

AgentVeil makes agent actions constrained, auditable, and reversible within a declared action vocabulary and policy subset. It does not claim to solve the general access-control safety problem; it produces bounded decisions and signed evidence that operators can review.

Offline Verification

Fetch a W3C Verifiable Credential:

curl https://agentveil.dev/v1/reputation/{agent_did}/credential?format=w3c

Verify it with any VC library, or with the SDK:

cred = agent.get_reputation_credential(format="w3c")
assert AVPAgent.verify_w3c_credential(cred)

AgentVeil MCP Toolbox

The base install includes the MCP runtime dependency:

pip install agentveil
agentveil-mcp

Local/full MCP mode exposes Runtime Gate evaluation, human approval routing, approved execution, signed receipt retrieval, reputation checks, identity lookup, and audit verification. Hosted read-only mode exposes public inspection tools only.

This server is an explicit toolbox. It does not intercept, monitor, or gate other MCP tools; MCP clients must call these AVP tools directly.

The compatibility extra agentveil[mcp] still works for legacy setups. MCP setup details are in the MCP README.

MCP Transport Proxy

The agentveil-mcp-proxy console script wraps a downstream MCP server with runtime decision gating, human approval routing, durable signed evidence, and replay defense. Point your IDE at agentveil-mcp-proxy instead of directly at the downstream server; the proxy applies AVP policy before forwarding.

Install the proxy package alongside the SDK. The SDK package is MIT licensed; the proxy package is separately licensed under Business Source License 1.1.

pip install agentveil agentveil-mcp-proxy
agentveil-mcp-proxy init --quickstart-filesystem ./sandbox
agentveil-mcp-proxy doctor --full
agentveil-mcp-proxy smoke
agentveil-mcp-proxy run

For agent-driven setup, the same path supports non-interactive flags and JSON output:

agentveil-mcp-proxy init \
  --home ./avp-home \
  --passphrase-file ./passphrase.txt \
  --policy-pack filesystem \
  --downstream-name filesystem \
  --downstream-command /path/to/server \
  --downstream-arg /workspace \
  --json
agentveil-mcp-proxy doctor --home ./avp-home --full --json

AVP approvals are capability tokens, not flat permissions. They are signed, scoped to action context and payload hash, time-bounded by expiry, guarded against replay at the proxy boundary, and attenuated when follow-on grants such as similar_5m narrow the original approval scope.

See the MCP Proxy README for the full quick start and IDE configuration examples.

Resources

License

The agentveil PyPI package is MIT licensed. See the root license.

The separate agentveil-mcp-proxy package is source-available under Business Source License 1.1, not MIT. See the licensing boundary and the proxy package license.

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

agentveil-0.7.20.tar.gz (142.5 kB view details)

Uploaded Source

Built Distribution

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

agentveil-0.7.20-py3-none-any.whl (96.1 kB view details)

Uploaded Python 3

File details

Details for the file agentveil-0.7.20.tar.gz.

File metadata

  • Download URL: agentveil-0.7.20.tar.gz
  • Upload date:
  • Size: 142.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for agentveil-0.7.20.tar.gz
Algorithm Hash digest
SHA256 83d9b8e17aa7b2f68bdd35e2fa3d707b0c1bf079813fcf4b830da0cb425a53ce
MD5 a30e428836b5d3b81496c81aef91e719
BLAKE2b-256 ca6bcb6ea8586b68af64db11be25b4609fa5a797ad4c6afb29ac2cc979369080

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentveil-0.7.20.tar.gz:

Publisher: publish.yml on agentveil-protocol/agentveil-sdk

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

File details

Details for the file agentveil-0.7.20-py3-none-any.whl.

File metadata

  • Download URL: agentveil-0.7.20-py3-none-any.whl
  • Upload date:
  • Size: 96.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for agentveil-0.7.20-py3-none-any.whl
Algorithm Hash digest
SHA256 a09c0447569e294182973af95e5560f630606d972253c09d8d7b9422219e24a8
MD5 4316378f20358545c18c1217be5e4a15
BLAKE2b-256 05070156d095dbd9b04e2fb5b785694289885a1ba00c357e3822fb0982212a9a

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentveil-0.7.20-py3-none-any.whl:

Publisher: publish.yml on agentveil-protocol/agentveil-sdk

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

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