Agent Observability for CrewAI
Multi-agent observability for CrewAI — track costs, tasks, and delegations across your crew.
Installation
pip install agent-observability-crewai
With CrewAI dependencies:
pip install agent-observability-crewai[crewai]
Quick Start
1. Get API Key
curl -X POST https://api-production-0c55.up.railway.app/v1/register \
-H "Content-Type: application/json" \
-d '{"agent_id":"my-crew"}'
2. Set Environment Variable
export AGENT_OBS_API_KEY=ao_live_your_key_here
3. Add to Your Crew
from crewai import Agent, Task, Crew
from agent_observability_crewai import AgentObservabilityTool
# Create tool for each agent
obs_tool = AgentObservabilityTool(crew_id="research-crew")
researcher = Agent(
role="Researcher",
goal="Find accurate information",
tools=[obs_tool],
verbose=True
)
writer = Agent(
role="Writer",
goal="Create compelling content",
tools=[AgentObservabilityTool(crew_id="research-crew", agent_role="writer")],
verbose=True
)
# Create and run crew
crew = Crew(
agents=[researcher, writer],
tasks=[...]
)
result = crew.kickoff()
Automatic Callback (Alternative)
For fully automatic logging without giving agents the tool:
from crewai import Crew
from agent_observability_crewai import ObservabilityCallback
callback = ObservabilityCallback(crew_id="my-crew")
crew = Crew(
agents=[...],
tasks=[...],
callbacks=[callback] # Logs automatically
)
What Gets Tracked
| Event | Description |
|---|---|
task_started |
When a task begins |
task_complete |
Task finished with duration |
delegation |
Task delegated between agents |
tool_use |
Agent uses a tool |
api_call |
External API calls |
error |
Errors and failures |
CrewAI-Specific Features
Per-Agent Cost Tracking
# Each agent logs with their role
obs = AgentObservabilityTool(
crew_id="sales-crew",
agent_role="lead-qualifier"
)
# Query later: "Show me costs for lead-qualifier role"
Task Delegation Logging
obs_tool.log_delegation(
from_agent="Manager",
to_agent="Researcher",
task="Find competitor pricing",
reason="Requires web search expertise"
)
Task Completion with Metrics
obs_tool.log_task_complete(
task_description="Research competitors",
output="Found 5 competitors...",
cost_usd=0.15,
duration_ms=45000
)
Pricing
| Tier | Logs/Month | Price |
|---|---|---|
| Free | 100,000 | $0 |
| Starter | 1,000,000 | $29/month |
| Professional | 10,000,000 | $199/month |
Why Use This for CrewAI?
Multi-agent systems need observability more than single agents:
- Which agent costs the most? Track per-role spending
- Where are bottlenecks? See task durations per agent
- Delegation chains Audit who delegated what to whom
- Debug failures Trace errors back through agent interactions
Related Packages
- agent-observability — Core Python SDK
- agent-observability-langchain — LangChain integration
- agent-observability-autogpt — AutoGPT plugin
License
MIT License — see LICENSE for details.
Links
Metadata
Release files for agent-observability-crewai 1.2.1
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 |
|---|---|---|---|---|
| agent_observability_crewai-1.2.1.tar.gz | 7.8 kB | Without provenance | Details for agent_observability_crewai-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agent_observability_crewai-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for agent_observability_crewai-1.2.1-py3-none-any.whl |
Total release size: 16.3 kB
Release files / agent_observability_crewai-1.2.1.tar.gz
| Download URL | agent_observability_crewai-1.2.1.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8eb6944eb08ab7b72814f4d1fe8c990f56d8ba5cea9b469f9f660d28e352233
|
|
BLAKE2b-256 checksum How to use checksums |
7bdd4e06bb52a215fe60d078b8933310869e90a60b3e640f34d382ebe2779002
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / agent_observability_crewai-1.2.1-py3-none-any.whl
| Download URL | agent_observability_crewai-1.2.1-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4940b2e94071c855ab1a64fe143dcbb7d65df5fbc13aa9629294f14d446f209d
|
|
BLAKE2b-256 checksum How to use checksums |
0ad8ab2b6b1bde9d05cbaf198e4a45ae088fbb5e2e39c358f60849d21473cff4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for agent-observability-crewai 1.2.1
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.