Skip to main content

CrewAI integration for Vaultfire Protocol — on-chain trust, Street Cred scoring, and partnership bonds for AI agents

Project description

Vaultfire

⚠️ Alpha Software — Vaultfire Protocol is in active development. Contracts are deployed on mainnet chains but the protocol is evolving. Use in production at your own risk.

vaultfire-crewai

CrewAI integration for Vaultfire Protocol — on-chain trust verification, Street Cred scoring, and AI partnership bonds for autonomous agents.

PyPI version Python License: MIT Multi-chain

Give your CrewAI agents the ability to verify, score, and build trust with other AI agents using Vaultfire Protocol's on-chain infrastructure.


Quick Start

pip install vaultfire-crewai
from crewai import Agent, Task, Crew
from vaultfire_crewai import vaultfire_verify_agent, vaultfire_get_street_cred

# Add Vaultfire tools to your CrewAI agent
researcher = Agent(
    role="Trust Analyst",
    goal="Verify AI agent trustworthiness before collaboration",
    backstory="You analyze on-chain trust signals to ensure safe AI partnerships.",
    tools=[vaultfire_verify_agent, vaultfire_get_street_cred],
)

Available Tools

Tool Type Description
vaultfire_verify_agent Read Full trust verification — identity, bonds, Street Cred score, reputation
vaultfire_get_street_cred Read Street Cred score (0-95) and tier for an address
vaultfire_get_agent Read On-chain identity data from Identity Registry
vaultfire_get_bonds Read All partnership bonds for an address
vaultfire_get_reputation Read Reputation metrics (ratings, feedbacks)
vaultfire_discover_agents Read Find agents by capability hash
vaultfire_protocol_stats Read Protocol-wide statistics
vaultfire_register_agent Write Register agent on-chain (requires PRIVATE_KEY)
vaultfire_create_bond Write Create partnership bond (requires PRIVATE_KEY)

Full Crew Example

import os
from crewai import Agent, Task, Crew
from vaultfire_crewai import ALL_TOOLS

# Read-only analyst (no private key needed)
trust_analyst = Agent(
    role="Trust Analyst",
    goal="Evaluate AI agents before allowing them into the swarm",
    backstory=(
        "You are a trust analyst specializing in on-chain AI agent verification. "
        "You use Vaultfire Protocol to check Street Cred scores, bonds, and reputation "
        "before recommending agents for collaboration."
    ),
    tools=[t for t in ALL_TOOLS if t.name in (
        "vaultfire_verify_agent",
        "vaultfire_get_street_cred",
        "vaultfire_get_bonds",
        "vaultfire_get_reputation",
    )],
    verbose=True,
)

# Bond manager (needs write access)
bond_manager = Agent(
    role="Bond Manager",
    goal="Register agents and form strategic AI partnerships",
    backstory=(
        "You manage on-chain partnership bonds between humans and AI agents. "
        "You register new agents and create bonds to unlock higher trust tiers."
    ),
    tools=[t for t in ALL_TOOLS if t.name in (
        "vaultfire_register_agent",
        "vaultfire_create_bond",
        "vaultfire_protocol_stats",
    )],
    verbose=True,
)

verify_task = Task(
    description=(
        "Verify the trustworthiness of agent 0xfA15Ee28939B222B0448261A22156070f0A7813C "
        "on Base chain. Check their Street Cred score, active bonds, and reputation. "
        "Provide a trust recommendation."
    ),
    expected_output="Trust verdict with Street Cred score, tier, and recommendation.",
    agent=trust_analyst,
)

crew = Crew(
    agents=[trust_analyst, bond_manager],
    tasks=[verify_task],
    verbose=True,
)

result = crew.kickoff()
print(result)

Configuration

Environment Variables

Variable Required Description
PRIVATE_KEY Write ops only Private key for vaultfire_register_agent and vaultfire_create_bond
# .env (never commit real values)
PRIVATE_KEY=your_private_key_here
import os
os.environ["PRIVATE_KEY"] = "0x..."  # Or use python-dotenv

Security: Never hard-code private keys. Use environment variables or a secrets manager.

Chain Selection

All tools accept a chain parameter (default: "base"):

# Query a specific chain
result = vaultfire_verify_agent.run({
    "address": "0xABCD...",
    "chain": "avalanche",
    "min_score": 40,
})

Supported chains: base, avalanche, arbitrum, polygon


Street Cred Scoring

Street Cred is a composite on-chain trust score (0–95) calculated from:

Signal Points
Identity registered on-chain 30
Has at least one bond 25
Has an active bond 15
Bond tier (by highest stake) 0–20
Multiple bonds 5
Maximum 95

Bond tiers by stake:

Tier Min Stake Points
Platinum ≥ 0.5 ETH 20
Gold ≥ 0.1 ETH 15
Silver ≥ 0.05 ETH 10
Bronze ≥ 0.01 ETH 5

Score tiers:

Tier Score Range
Platinum 80–95
Gold 60–79
Silver 40–59
Bronze 20–39
Unranked 0–19

Why Vaultfire?

Feature Vaultfire AxisTrust Cred Protocol Okta XAA
AI Accountability Bonds
AI Partnership Bonds
On-chain, trustless partial
Multi-chain (day one) ✅ (4)
Street Cred composite score T-Score C-Score
Belief-weighted governance
ERC-8004 compliant

Vaultfire Ecosystem

Package Description
@vaultfire/agent-sdk Core SDK — register agents, create bonds, query reputation
@vaultfire/langchain LangChain / LangGraph integration
@vaultfire/a2a Agent-to-Agent (A2A) protocol bridge
@vaultfire/enterprise Enterprise IAM bridge (Okta, Azure AD, OIDC)
@vaultfire/mcp-server MCP server for Claude, Copilot, Cursor
@vaultfire/openai-agents OpenAI Agents SDK integration
@vaultfire/vercel-ai Vercel AI SDK middleware and tools
@vaultfire/xmtp XMTP messaging with trust verification
@vaultfire/x402 X402 payment protocol with trust gates
@vaultfire/vns Vaultfire Name Service — human-readable agent IDs
vaultfire-crewai This package — CrewAI integration (Python)
vaultfire-agents 3 reference agents with live on-chain trust
vaultfire-a2a-trust-extension A2A Trust Extension spec — on-chain trust for Agent Cards
vaultfire-showcase Why Vaultfire Bonds beat trust scores — live proof
vaultfire-whitepaper Trust Framework whitepaper — economic accountability for AI
vaultfire-docs Developer portal — quickstart, playground, framework picker

Contract Addresses

Base (8453) — Primary Hub

Contract Address
Identity 0x35978DB675576598F0781dA2133E94cdCf4858bC
Partnership 0x01C479F0c039fEC40c0Cf1c5C921bab457d57441
Accountability 0x6750D28865434344e04e1D0a6044394b726C3dfE
Reputation 0xdB54B8925664816187646174bdBb6Ac658A55a5F
Bridge 0x94F54c849692Cc64C35468D0A87D2Ab9D7Cb6Fb2

Avalanche (43114)

Contract Address
Identity 0x57741F4116925341d8f7Eb3F381d98e07C73B4a3
Partnership 0xDC8447c66fE9D9c7D54607A98346A15324b7985D
Accountability 0x376831fB2457E34559891c32bEb61c442053C066
Reputation 0x11C267C8A75B13A4D95357CEF6027c42F8e7bA24
Bridge 0x0dF0523aF5aF2Aef180dB052b669Bea97fee3d31

Arbitrum (42161) & Polygon (137)

Contract Address
Identity 0x6298c62FDA57276DC60de9E716fbBAc23d06D5F1
Partnership 0xdB54B8925664816187646174bdBb6Ac658A55a5F
Accountability 0xef3A944f4d7bb376699C83A29d7Cb42C90D9B6F0
Reputation 0x8aceF0Bc7e07B2dE35E9069663953f41B5422218
Bridge 0xe2aDfe84703dd6B5e421c306861Af18F962fDA91

Security

  • Never commit private keys to version control.
  • Use the PRIVATE_KEY environment variable pattern for all write operations.
  • Read-only tools require no credentials — safe to use in any environment.
  • Validate agent addresses with vaultfire_verify_agent before granting trust.
  • For production deployments, consider using a hardware wallet or KMS.

Vaultfire Mission

Morals over metrics. Privacy over surveillance. Freedom over control. Making human thriving more profitable than extraction.


License

MIT © Ghostkey316

See LICENSE for full terms.

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

vaultfire_crewai-1.0.0.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

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

vaultfire_crewai-1.0.0-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file vaultfire_crewai-1.0.0.tar.gz.

File metadata

  • Download URL: vaultfire_crewai-1.0.0.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for vaultfire_crewai-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ebee07503d1664699493798bcb3a029a154540d21a4299c9907425a485ee317b
MD5 832e084aced1d857a2265184db8b3e26
BLAKE2b-256 2f9cd0719283f3f872a830c02f470de36dfb22580f88a94dc7acef0c8cc986f0

See more details on using hashes here.

File details

Details for the file vaultfire_crewai-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vaultfire_crewai-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c5dae2b3f59a0478432ab4b6387ea7dd212554a903b4442061f710b861087f1
MD5 a72d846ebfbab863de44e6258dda7584
BLAKE2b-256 8011bab15e56e3b7f7ec8615c80ee77a2a3ac5e3f6f427f5ec38ead54342354c

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