Current collected state Current
Observed since 20 Oct, 23:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Zero-config agent observability SDK — auto-captures LLM calls, costs, and traces
Zero-config observability for AI agents. Two lines of code → full LLM call tracking with costs, latency, and traces.
pip install agentpulse
import agentpulse
agentpulse.init() # That's it — all LLM calls are now tracked
import openai
client = openai.OpenAI()
resp = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello"}]
)
# → Dashboard shows: model, tokens, cost, latency — automatically
With just agentpulse.init(), the SDK automatically captures:
For richer observability, add sessions, agents, and tasks:
import agentpulse
ap = agentpulse.init()
# Group related calls into sessions
with ap.session("daily-email-check") as s:
result = process_emails()
s.log("Processed 5 emails")
s.set_result("success")
# Decorate agents and tasks
@agentpulse.agent(name="email-processor")
class EmailAgent:
@agentpulse.task(name="classify")
def classify(self, email):
return call_llm(email)
# Monitor cron jobs
with ap.cron("nightly-cleanup") as c:
do_cleanup()
# Auto-captures: start, end, duration, success/failure
ap.event("memory_snapshot", {"file": "MEMORY.md", "size_kb": 142})
ap.metric("queue_depth", 23)
ap.alert("Cost spike", severity="warning", details="$5.20 in last hour")
All via init() kwargs or environment variables:
agentpulse.init(
api_key="ap_...", # or AGENTPULSE_API_KEY
agent_name="my-agent", # or AGENTPULSE_AGENT (default: hostname)
endpoint="https://...", # or AGENTPULSE_ENDPOINT
enabled=True, # or AGENTPULSE_ENABLED (kill switch)
capture_messages=False, # or AGENTPULSE_CAPTURE_MESSAGES (privacy)
auto_patch=True, # or AGENTPULSE_AUTO_PATCH
debug=False, # or AGENTPULSE_DEBUG
flush_interval=5.0, # seconds between flushes
max_queue_size=10_000, # max buffered events
)
agentpulse status # Check config and connectivity
agentpulse test # Send a test event
agentpulse costs # Print the built-in cost table
urllib, json, threading, contextvars)shutdown() restores all original library methodsMIT
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.0 | 16 Feb 2026 | 3 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 23:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:6968a26b8519c4dcfd8e82dc52508d934746e608e7d8bffab4080082d5cb2583