Current collected state Current
Observed since 20 Oct, 21:55 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Add a short description here!
# AgentFlare Python SDK 🐍
[](https://pypi.org/project/agentflare/)
[](https://github.com/agentflare-ai/agentflare/blob/main/LICENSE)
[](https://discord.gg/agentflare)
[](https://x.com/agentflare)
The official Python SDK for AgentFlare – the infrastructure platform for AI agents. Integrate observability, deployment, and management into your Python-based AI agents with ease.
## 🚀 What is AgentFlare?
AgentFlare provides essential infrastructure for production AI agents, including real-time observability (Telepathy), cost tracking, and one-click deployments. This SDK makes it simple to enhance your agents with these features.
For more on AgentFlare, visit [agentflare.ai](https://agentflare.ai) or our [main docs](https://docs.agentflare.ai).
## ✨ Key Features
- **Telepathy Observability**: Trace decisions, monitor performance, and attribute costs in real-time.
- **Drop-in Integration**: Replace standard imports for instant enhancements.
- **Protocol Agnostic**: Works with MCP and custom protocols.
- **Analytics**: Track latency, errors, and usage.
- **Deployment Tools**: Deploy agent servers directly from your code.
## 🛠️ Installation
Install via pip:
```bash
pip install agentflare
```
Requires Python 3.10+. For development, clone the repo and install dependencies:
git clone https://github.com/agentflare-ai/agentflare.git
cd agentflare
pip install -e ".[dev]"
# Before: Standard MCP client
from mcp_sdk import Client
# After: With AgentFlare observability
from agentflare import Client # Drop-in replacement
client = Client(api_key="your-agentflare-key")
# Now all interactions are traced automatically!
response = client.chat("Hello, AI agent!")
print(response) # Includes reasoning, perf metrics, and costs
from agentflare import TelepathyTracer
tracer = TelepathyTracer()
with tracer.span("agent_decision"):
# Your AI agent logic here
decision = model.predict(input_data)
tracer.log_cost(model_cost=0.05) # Track spending
tracer.export() # Send to AgentFlare dashboard
For full examples, check the examples/ directory or our quickstart guide.
We welcome contributions! See CONTRIBUTING.md for guidelines. Start with issues labeled "good first issue".
MIT License. See LICENSE for details.
Built with ❤️ by the AgentFlare team in San Francisco.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.0 | 11 Jul 2025 | 4 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 21:55 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:1f99cd102603604abb7298f0c18a6c8c64177616326b18afe9b13beb3fd455df