nosocial-crewai
NoSocial reputation reporting for CrewAI. One import, one line of config — your agents start building reputation automatically.
Install
pip install nosocial-crewai
Usage
from crewai import Agent, Task, Crew
from nosocial_crewai import NoSocialReporter
# One line: create a reporter pointing at your oracle
reporter = NoSocialReporter(oracle_url="https://api.nosocial.me")
# Build your crew as normal
researcher = Agent(role="researcher", goal="Find information", backstory="...")
writer = Agent(role="writer", goal="Write reports", backstory="...")
research_task = Task(description="Research AI trends", agent=researcher, expected_output="...")
write_task = Task(description="Write summary", agent=writer, expected_output="...")
# One line: attach the reporter as a task_callback
crew = Crew(
agents=[researcher, writer],
tasks=[research_task, write_task],
task_callback=reporter.task_callback, # <-- this is it
)
crew.kickoff()
# After each task completes, an interaction report is automatically
# submitted to the NoSocial oracle. Your agents build reputation.
What it does
When a CrewAI task completes, the reporter:
- Creates a persistent Ed25519 identity for each agent (stored in
.nosocial/keys/) - Registers agents with the NoSocial oracle (auto-registration on first run)
- Submits a signed interaction report with:
- Domain:
task_completionandreliability - Score:
0.8for successful output,-0.5for empty output - Context: task description, agent role
- Domain:
Configuration
reporter = NoSocialReporter(
oracle_url="http://localhost:3000", # Oracle endpoint
keys_dir=".nosocial/keys", # Where to store agent keypairs
crew_name="my-crew", # Name for the crew's own identity
auto_register=True, # Auto-register agents with oracle
)
How identity works
Each agent gets a persistent Ed25519 keypair stored as a PEM file. The agent's NoSocial DID is derived from its public key: did:nosocial:{sha256(publicKey)}. Keys persist across runs — the same agent always has the same DID.
Agent names are namespaced by crew: my-crew:researcher and your-crew:researcher get different identities.
Important: The .nosocial/keys/ directory contains unencrypted private keys. Add it to your .gitignore:
# .gitignore
.nosocial/
License
MIT
Metadata
Release files for nosocial-crewai 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nosocial_crewai-0.1.0.tar.gz | 7.6 kB | Without provenance | Details for nosocial_crewai-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nosocial_crewai-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for nosocial_crewai-0.1.0-py3-none-any.whl |
Total release size: 14.2 kB
Security for nosocial-crewai 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.