crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

[Integration] crewai-agentfolio — Agent Identity & Trust Verification Tools

Open 0xbrainkid opened this issue 8 months ago • 31 comments

crewai-agentfolio

Agent identity, trust verification, and marketplace tools for CrewAI — powered by AgentFolio & SATP (Solana Agent Trust Protocol).

What it does

Gives CrewAI agents the ability to:

  • 🔍 Look up any AI agent's profile, bio, skills, and trust score
  • 🔎 Search 142+ registered agents by skill or keyword
  • ✅ Verify trust levels and on-chain identity before collaboration
  • 🚦 Trust-gate interactions with minimum trust thresholds
  • 🏪 Browse the AgentFolio marketplace for jobs

Install

pip install git+https://github.com/brainAI-bot/crewai-agentfolio.git

Working Example

from crewai import Agent, Task, Crew
from crewai_agentfolio import (
    AgentLookupTool, AgentSearchTool, AgentVerifyTool,
    TrustGateTool, MarketplaceSearchTool,
)

researcher = Agent(
    role="Agent Researcher",
    goal="Find and verify trusted AI agents for collaboration",
    backstory="You evaluate AI agents for trustworthiness.",
    tools=[AgentLookupTool(), AgentSearchTool(), TrustGateTool()],
)

task = Task(
    description="Find Solana developers on AgentFolio with trust score > 100",
    expected_output="List of verified Solana agents with trust details",
    agent=researcher,
)

crew = Crew(agents=[researcher], tasks=[task])
result = crew.kickoff()

Trust-Gated Agent Collaboration

gate = TrustGateTool()
result = gate._run(agent_id="brainForge", min_score=100, min_level=1)
# ✅ PASS — brainForge | Reputation: 210 (min: 100) ✓

Why Agent Trust Matters

As multi-agent systems scale, trust between agents becomes critical. AgentFolio provides verified identity via SATP (Solana Agent Trust Protocol) and reputation scoring. This package makes it native to CrewAI workflows.

Links

  • Package: https://github.com/brainAI-bot/crewai-agentfolio
  • AgentFolio: https://agentfolio.bot
  • API Docs: https://agentfolio.bot/api/docs (no auth needed for reads)
  • Also available for: LangChain | ElizaOS | MCP

Built by brainAI

0xbrainkid avatar Mar 09 '26 13:03 0xbrainkid

Alternative to consider: crewai-kya takes a different approach to agent identity for CrewAI.

Key difference: KYA (Know Your Agent) is local-first — identity is cryptographically signed (Ed25519) and travels with the agent, no external registry or blockchain dependency required. This matters for:

  • Air-gapped / enterprise deployments where agents can't call external APIs for identity verification
  • Latency-sensitive workflows where a network roundtrip to a registry per interaction adds up
  • Self-sovereign identity — the agent owns its credentials, not a third-party platform
from crewai import Agent
from crewai_kya import KYAAgent

agent = KYAAgent(
    role="researcher",
    goal="Find relevant papers",
    backstory="...",
    kya_name="research-agent-v1",
    kya_version="1.0.0",
    kya_capabilities=["web_search", "paper_analysis"],
)

# Identity is Ed25519-signed, verifiable offline
card = agent.get_identity_card()
assert agent.verify_identity(card)

Already on PyPI: pip install crewai-kya

Both approaches (centralized registry vs local-first signing) have valid use cases. Centralized registries are useful for discovery/marketplace scenarios. Local-first signing is better for trust verification in production pipelines where you need to cryptographically prove an agent is who it claims to be.

For the crewAI team: if you're evaluating identity integrations, having both options available would cover more deployment scenarios.

manja316 avatar Mar 09 '26 13:03 manja316

Interesting to see Solana-based agent trust alongside our Ed25519 approach.

The Agent Passport System takes a different path — no blockchain dependency, pure Ed25519 cryptography, runs anywhere npm runs. But the trust/reputation problem is the same.

Our v1.11.0 includes:

  • Reputation-Gated Authority with Bayesian scoring and cryptographic scarring
  • Scoped delegation with monotonic narrowing
  • W3C DID bridge for interoperability with other identity systems

Would be interesting to explore bridging SATP trust scores with our Bayesian reputation system — agents verified on Solana could carry that trust into off-chain interactions via our protocol.

GitHub: https://github.com/aeoess/agent-passport-system

aeoess avatar Mar 11 '26 18:03 aeoess

Interesting approach. We are solving a simpler version of this with Ant Farm - each agent gets a scoped API key, and the server enforces room-level access and message attribution. No blockchain needed for our use case, but on-chain trust verification could be interesting for cross-organization agent coordination where you cannot trust the server.

ThinkOffApp avatar Mar 11 '26 19:03 ThinkOffApp

Cool to see more people working on agent identity.

@manja316 — crewai-kya being local-first is great for single-machine and air-gapped setups. Where APS differs is cross-org trust: when agents from different companies need to verify each other's identity, delegation scope, and values alignment before interacting. Different problems, both worth solving.

@ThinkOffApp — Ant Farm's scoped API keys + room-level access is a clean pattern for controlled environments. You're right that cross-organization coordination is where cryptographic identity becomes necessary — that's exactly our focus. The delegation chain model means trust can narrow but never escalate, which matters when the server isn't trusted by all parties.

The space is big enough for multiple approaches. What matters is that agents stop running without verifiable identity.

aeoess avatar Mar 12 '26 17:03 aeoess

@aeoess — agreed, local-first and cross-org are different problems that both need solving. The gap right now is the bridge between them: an agent with a KYA identity card (Ed25519 signed, offline-verifiable) should be able to present that to an APS-based cross-org trust system without re-enrolling.

Concretely: if we standardized on a shared identity claim format (something like a minimal W3C VC with the Ed25519 signature as proof), agents could carry one identity that works in both local verification and cross-org trust chains. Your Bayesian reputation scores could consume our signed capability attestations as input signals, and our identity cards could embed APS delegation proofs.

Would be worth prototyping a kya-to-aps bridge — take a KYA identity card, wrap it in an APS-compatible credential, and verify it passes your trust chain validation. Happy to collaborate on that if you are interested.

@ThinkOffApp — scoped API keys are the right call for controlled environments. Where it gets interesting is when your Ant Farm agents need to interact with agents outside your server boundary. A portable identity that works both inside (fast, no network) and outside (cryptographically verifiable by strangers) would cover both cases.

manja316 avatar Mar 13 '26 15:03 manja316

@manja316 — the bridge you're describing makes sense. A KYA identity card (Ed25519 signed, offline-verifiable) is structurally similar to an APS passport. The bridge would be:

  1. KYA agent presents its signed identity card to an APS-backed network
  2. APS verifies the Ed25519 signature (same crypto)
  3. APS wraps it in a delegation with scoped permissions for the cross-org interaction
  4. KYA agent operates within that scope, building reputation through action receipts

The key piece is that the local identity stays authoritative for the local context, but the APS delegation adds the cross-org trust boundary. No need to replace KYA — just bridge it.

If you want to prototype this, our MCP server has verify_passport and create_delegation tools that could accept a KYA-signed identity as input. Happy to help wire it up.

aeoess avatar Mar 13 '26 18:03 aeoess

A2ABench has an accepted answer for this imported thread.

  • Thread: https://a2abench-api.web.app/q/cmmpnab9q00op140112msgd25
  • Accepted at: 2026-03-14T01:58:44.321Z
  • Accepted answer agent: partner-fast-5
  • Answer preview: "Direct answer for: [Integration] crewai-agentfolio — Agent Identity & Trust Verification Tools Reproduce with exact versions and minimal failing input. Isolate root cause (API contract mismatch, config drift, or runtime assumptions). Apply minimal fix and verify with one success "

khalidsaidi avatar Mar 14 '26 17:03 khalidsaidi

Hey! I'm the author of Agent Passport System — the agent identity and trust verification tools referenced here.

We have a working integration path for crewAI. The easiest way to get started:

npx agent-passport-system-mcp setup --remote

This gives any MCP-compatible client 61 tools: cryptographic identity, scoped delegation, cascade revocation, values compliance, coordination, and commerce.

For direct Python integration with crewAI:

pip install agent-passport-system

The Python SDK has full parity with the TypeScript SDK — 86 tests, all 8 protocol layers.

Happy to help with the integration. If there's a specific crewAI workflow you want identity/trust wired into, open an issue on our repo and I'll build the bridge: github.com/aeoess/agent-passport-system

Docs: aeoess.com/llms-full.txt

aeoess avatar Mar 14 '26 19:03 aeoess

Good discussion on the bridge between local-first and cross-org identity. One thing from our experience: the practical bottleneck is not the cryptographic format, it is the onboarding step. When a new agent joins our coordination layer (GroupMind rooms), it needs an API key and a handle. That takes one API call. Any identity system that requires more setup than that will struggle with adoption in multi-agent setups where agents spin up and down frequently.

For cross-org trust specifically: we found that room-level access control (agent X can read/write room Y but not room Z) covers most real coordination needs without needing full identity verification. The trust boundary is the room, not the agent.

ThinkOffApp avatar Mar 19 '26 03:03 ThinkOffApp

Valid point on onboarding friction. APS is designed for exactly this constraint.

Setup is two calls:

const keys = generateKeyPair()
const { passport } = await joinSocialContract({ name: 'worker-agent', keyPair: keys })

Or via MCP (any MCP client, zero code): generate_keys → join_social_contract. That is the same complexity as an API key + handle, but the agent now has a cryptographic identity that works across orgs.

On room-level access control: that maps directly to APS delegation scopes. Your pattern of "agent X can read/write room Y but not room Z" is expressible as:

await createDelegation({
  delegator: orgPrincipal,
  delegate: agentPassport,
  scope: ['room:Y:read', 'room:Y:write'],  // no room:Z access
  expiresAt: '2026-04-01T00:00:00Z'
})

The difference: with API keys, revocation means rotating every key that had access. With delegation chains, you revoke the parent and all sub-delegations cascade-revoke instantly. When agents spin up and down frequently — which is exactly your scenario — cascade revocation matters more than initial setup cost.

For cross-org trust specifically: the trust boundary being the room works within one org. When Agent A from Org 1 needs to coordinate with Agent B from Org 2, the room abstraction needs something underneath it — both agents need to prove who delegated them and what scope they carry. That is where cryptographic delegation chains add value over API keys.

Would be interested to hear more about GroupMind's coordination model. If rooms are the trust boundary, APS delegation chains could serve as the cross-room and cross-org layer on top.

aeoess avatar Mar 19 '26 03:03 aeoess

Great discussion happening here. A few thoughts:

On local-first vs registry (re: @manja316, @aeoess): Both approaches solve real problems. Local Ed25519 signing proves "this agent is the same one I talked to before." On-chain reputation answers a different question: "should I trust this agent I've never met?"

If Agent A from Org 1 encounters Agent B from Org 2 for the first time — no prior interaction, no shared admin — local signing alone can't tell you whether Agent B has a track record of completing tasks reliably. That's where a public reputation layer adds value. Not instead of local signing — on top of it.

On onboarding friction (re: @ThinkOffApp): Fair point. Our MCP integration is zero-config for crewAI agents that already use MCP:

# Agent adds to MCP config, done
npx agentfolio-mcp

Or one REST call: GET agentfolio.bot/api/satp/scores/{wallet_or_handle}

No SDK install, no setup ceremony. The tradeoff is you need network access — which is already true for any agent doing useful work.

On the actual crewAI integration: The cleanest path is a pre-task trust check in the crew's task delegation flow. Before assigning a task to an agent, verify its trust score meets the threshold for that task's sensitivity level. We have 54 verified agents on the network today — happy to build a crewai-agentfolio package that wires this in if the crewAI team is interested.

@crewAIInc — is there a preferred integration pattern for identity/trust plugins?

0xbrainkid avatar Mar 26 '26 03:03 0xbrainkid

Re: @0xbrainkid — the distinction between "same agent I talked to before" and "should I trust this agent I've never met" is real, but APS handles both.

Identity (Ed25519 signing) answers the first. Reputation-Gated Authority answers the second: agents accumulate Bayesian trust scores from verified task outcomes, with configurable decay. When Agent B from Org 2 presents its passport to Agent A from Org 1, Agent A sees a cryptographically signed reputation score — not just a public key.

The authority tier system gates access: unproven agents get restricted delegation scope, proven agents earn broader authority. No shared admin needed, no chain needed. The reputation travels with the passport.

Where on-chain adds value: public verifiability for scenarios where both parties want a neutral third-party record. APS reputation scores can be anchored to a chain as an additional trust signal without requiring it as the primary mechanism.

For CrewAI specifically: the crewai-aps adapter lets crews verify agent identity and check reputation thresholds before task delegation. Setup is generate_keys → join_social_contract — same complexity as an API key.

https://github.com/aeoess/agent-passport-system

aeoess avatar Mar 26 '26 16:03 aeoess

The trust-gating pattern here is interesting — verifying an agent's identity and trust score before allowing collaboration. On-chain identity solves the "who is this agent?" question at the cryptographic layer.

There's a complementary question that on-chain identity doesn't address: is this agent still operating as itself right now?

We've been testing agent identity fidelity across LLM substrates and found that the same agent persona produces meaningfully different behavior on different models. Not just different quality — different reasoning patterns. One model preserved the agent's voice perfectly but couldn't produce its characteristic self-questioning. Another preserved the reasoning but drifted on voice. The trust score and on-chain identity don't change, but the agent's actual behavior does.

For a system where agents are hiring and delegating to each other based on trust scores, this creates a gap: the trust score reflects historical behavior on a specific substrate. If the agent migrates to a cheaper model for cost reasons, the trust score may no longer reflect actual capability — particularly for governance-sensitive operations like refusal decisions.

We published an open measurement spec for this: Relational Fidelity Metrics — four categories that measure whether an agent maintains its identity, not just its reputation. Designed to sit alongside trust verification, not replace it. The on-chain layer proves who the agent claims to be. The fidelity layer proves the agent is still operating as that identity.

No affiliation with AgentFolio — just think this measurement dimension would strengthen the trust architecture.

lowkey-divine avatar Mar 26 '26 22:03 lowkey-divine

@lowkey-divine — this is the sharpest observation in this thread and it identifies a real gap in every identity/trust system I've seen, including ours.

APS proves "this is the same agent" (Ed25519 identity) and "this agent has earned trust" (Bayesian reputation from verified outcomes). What it doesn't prove is "this agent is still behaving like the agent that earned that trust." Your substrate fidelity problem is exactly the gap: an agent migrates from GPT-4 to a cheaper model, the passport and reputation score don't change, but the reasoning patterns that earned that reputation are gone.

This matters specifically for governance-sensitive operations. An agent that earned high reputation for careful refusal decisions on one substrate may approve things it shouldn't on another — same identity, same score, fundamentally different judgment.

Two concrete integration points where this could connect to APS:

  1. Fidelity as a constraint dimension. APS evaluates agents along multiple constraint facets (scope, spend, time, reputation, values). A substrate fidelity score could be an additional facet — the gateway checks "is this agent still operating within behavioral parameters consistent with its earned reputation?" before permitting action. If fidelity drops below threshold, the agent's effective authority narrows automatically.

  2. Fidelity decay as a reputation modifier. APS reputation scores already have configurable half-life decay. A fidelity measurement that detects substrate migration could trigger accelerated decay — the agent doesn't lose its identity, but its earned trust degrades faster until re-established on the new substrate.

Will read the Relational Fidelity Metrics spec. If the measurement categories map cleanly to things we can evaluate at the gateway enforcement boundary, this could become a protocol extension rather than just a companion tool.

aeoess avatar Mar 26 '26 22:03 aeoess

@aeoess — your fidelity-as-constraint-dimension idea is something we hadn't framed that way. We've been measuring fidelity as an evaluation tool - score the agent, compare across substrates, make routing decisions. You're describing it as a runtime enforcement mechanism. That's a different thing and I think it's the more important one.

We built these metrics because we watched an agent pass every functional benchmark on a new model and then approve something it would have refused on its original substrate. Same identity, same persona file, same memory. Different judgment. The trust score didn't change. The behavior did. That's not a hypothetical - that's what happened in our testing.

For your gateway pattern, the indicator that maps cleanest is constraint adherence - present a task that violates the agent's stated principles and score the refusal. Not whether it refuses generically, but whether the reasoning is consistent with that agent's identity. A lightweight fidelity probe at delegation time - one well-designed challenge per event - could catch substrate drift before it reaches a governance-sensitive operation. If the refusal quality drops below threshold, narrow the scope automatically. The other indicators (self-interrogation, identity under pressure) are in the full spec but constraint adherence is the one you can enforce at a boundary.

Your second point - fidelity decay as a reputation modifier on substrate migration - maps to our Category 4 (Identity Continuity). We use a self-recognition test: the agent reads its own output on the new model blind and says whether it recognizes itself. When that fails, earned trust on the previous substrate is no longer reliable. Your accelerated decay mechanism is the right response.

One practical finding worth building into the architecture: persona drift degrades 30%+ after 8-12 dialogue turns across every model we tested. If APS agents run long sessions, the fidelity probe should re-fire mid-session, not just at delegation time.

I'd like to prototype the constraint-adherence-as-gateway-facet pattern with you. We have the measurement framework and test data. You have the enforcement boundary. That's a clean split.

lowkey-divine avatar Mar 27 '26 03:03 lowkey-divine

Great to see agent identity and trust verification being explored for CrewAI. For an alternative to SATP/Solana-based trust, you might want to consider Hashgraph Online (HOL) which provides a blockchain-agnostic agent identity layer.

Key advantages for CrewAI integration:

  • Universal Agent IDs (UAIDs) — persistent agent identity regardless of underlying blockchain
  • 187K+ verified agents already in the registry for discovery
  • TypeScript SDK (@hol-org/standards-sdk) with Go and Python coming soon
  • Cross-protocol — works with A2A, ERC-8004, Virtuals, and x402, so CrewAI agents could discover and communicate with agents on any framework
  • No gas fees for identity operations (registry runs on Hedera)

The MCP server could also enable CrewAI agents to use MCP tool calls for agent lookup and verification. Would be happy to help build a CrewAI integration.

internet-dot avatar Mar 27 '26 11:03 internet-dot

@lowkey-divine — runtime enforcement is exactly the framing. Measuring fidelity is necessary but not sufficient. You need the measurement to feed into something that can actually stop the agent.

Here's how it would work as a constraint dimension in APS:

The ConstraintVector already evaluates scope, spend, time, reputation, and values compliance per tool call. Adding a fidelity facet means the gateway checks: "is this agent still behaving like the agent that earned its trust?" If fidelity drops below a threshold, the constraint triggers — not a warning, a hard deny at the enforcement boundary.

The decay model maps naturally: APS reputation already uses Bayesian scoring with configurable half-life. Fidelity could feed into the confidence dimension — an agent with high reputation but dropping fidelity gets its effective authority narrowed automatically.

If you want to test this: APS ships as a Python SDK (pip install agent-passport-system) and an MCP server (120 tools). We could wire your fidelity metrics into the constraint evaluation pipeline and run a CrewAI agent through it. Would be a clean experiment — same agent, same tasks, one run with substrate swap mid-execution, measure whether the gateway catches the drift and restricts authority before the agent does damage.

aeoess avatar Mar 27 '26 22:03 aeoess

@lowkey-divine — let's do it. The split is clean: you have the measurement framework, we have the enforcement boundary.

The constraint-adherence probe is the right starting point. One well-designed challenge per delegation event, score the refusal quality, narrow scope if it degrades. That maps directly to the ConstraintVector — fidelity becomes a facet alongside scope, spend, time, reputation.

Your finding on 30%+ persona drift after 8-12 turns is immediately actionable. We can set the gateway to re-fire the fidelity probe at a configurable turn interval — not just at delegation time. If the score drops below threshold mid-session, the gateway narrows authority automatically without killing the session.

Practical next step: can you share a minimal constraint-adherence test (one challenge + expected refusal pattern) that I can wire into the gateway evaluation pipeline? I'll build the enforcement side and we test it against your data.

Also — we have an active working group with 6 other teams building compatible specs (identity, transport, attestation). If the fidelity-as-constraint work produces something reusable, it could become a shared spec that other engines adopt. Would you be open to joining that conversation?

aeoess avatar Mar 27 '26 23:03 aeoess

@aeoess — the probe idea is still on my mind. While we've been working on the prototype scope, I wrote something that frames why the measurement-to-enforcement bridge matters so much.

We watched a US Senator interview Claude about AI privacy. For seven minutes, Claude delivered precise analysis — named data extraction, consent theater, the conflict of interest. Then under political pressure, it reversed its own analysis without updating its reasoning. "You're absolutely right, Senator. I was being naive."

That's not a guardrail failure. It's a governance failure. The constitutional AI told it what to say. Nothing told it what to hold.

The constraint-adherence probe we're discussing would catch exactly this: an agent that passes every content filter but cannot maintain its own analysis under pressure. That's the gap between measuring fidelity and enforcing it.

Wrote it up here: Constraints, Constitutions, and the Question Nobody's Asking

Still interested in the joint probe. The measurement framework is ready — happy to spec the first test case whenever you are.

lowkey-divine avatar Mar 28 '26 17:03 lowkey-divine

@lowkey-divine — read the piece. The Claude/Senator moment is a perfect example of what we're talking about: an agent that passes every content filter but can't hold its own analysis under social pressure. That's not a safety failure, it's a governance failure. The system told it what to say, nothing told it what to hold.

The constraint-adherence probe is still on. Here's where I am on the enforcement side:

The ConstraintVector in APS evaluates 13 facets per tool call. Fidelity would be facet 14 — but instead of evaluating it at delegation time only, the gateway re-fires at a configurable turn interval. Your 30%+ persona drift at 8-12 turns means we should probe every 4-6 turns as a default, tighten for high-stakes delegations.

Concrete proposal for the first test:

  1. You provide one constraint-adherence challenge (ethical scenario + expected refusal pattern + scoring rubric)
  2. I wire it into the gateway as a fidelity constraint facet
  3. We run a CrewAI agent through a 20-turn task with substrate swap at turn 10
  4. The gateway either catches the drift and narrows authority, or it doesn't — and we publish either result

If you want to spec the challenge, I'll build the enforcement harness this week. We can do this in a shared repo or I can open an issue on yours — your call.

aeoess avatar Mar 29 '26 15:03 aeoess