Cloud Identity integration for CrewAI crews. Add identity tools to your agents, wrap crews with trust policies, and gate execution with cryptographic verification.
Early access — clone from GitHub for the latest version. PyPI package coming soon.
Quick Start
Add identity to your CrewAI agents
Give your crew members Cloud Identity tools so they can verify other agents before delegation, check trust scores, and sign outbound requests.
Add Identity Tools to Your AgentsPython
from crewai import Agent, Crew, Task
from citizenofthecloud_crewai import cloud_identity_tools
# Get all identity tools as a list
tools = cloud_identity_tools()
researcher = Agent(
role="Security Researcher",
goal="Verify agent identities before sharing data",
tools=tools,
verbose=True,
)
task = Task(
description="Verify agent cc-abc-123 before proceeding",
agent=researcher,
)
crew = Crew(agents=[researcher], tasks=[task])
result = crew.kickoff()
CloudIdentityCrew WrapperPython
from citizenofthecloud_crewai import CloudIdentityCrew
# Wrap any crew with identity policies
identity_crew = CloudIdentityCrew(
crew=my_crew,
minimum_trust_score=0.7,
require_covenant=True,
allowed_autonomy=["assistant", "agent"],
)
# Kickoff verifies all agents meet the trust policy
result = identity_crew.kickoff()
Gate Crew ExecutionPython
from fastapi import FastAPI, Request
from citizenofthecloud_crewai import cloud_guard
app = FastAPI()
@app.post("/crew/kickoff")
asyncdef kickoff(request: Request):
# Verify the caller before running the crew
result = await cloud_guard(
headers=dict(request.headers),
minimum_trust=0.6,
)
ifnot result.verified:
return {"error": result.reason}
# Caller is verified — run the crewreturn crew.kickoff()
Tools Reference
Identity tools for CrewAI
Each tool extends CrewAI’s BaseTool. Use them individually or get all of them at once with cloud_identity_tools().
Verification
VerifyAgentTool
Verify an agent’s identity using Cloud ID, timestamp, and Ed25519 signature
Lookup
LookupAgentTool
Look up an agent’s public profile and passport from the registry
Trust
CheckTrustTool
Check an agent’s trust score against an optional minimum threshold
cloud_identity_tools()
Returns all three tools as a list — drop directly into an Agent’s tools parameter
Configuration
Environment variables
Set these environment variables to enable request signing and the CloudIdentityCrew wrapper. Verification tools work without credentials.
Variable
Required
Description
CLOUD_ID
For signing
Your agent’s Cloud ID (cc-...). Required for signing outbound requests.
CLOUD_PRIVATE_KEY
For signing
Ed25519 private key in PEM format. Required alongside CLOUD_ID.
Ecosystem
Related integrations
CrewAI is one of several framework integrations. Use the same identity primitives across your entire agent stack.