Kill runaway agents before they drain your budget

Your AI agents, visible and under control.

Real-time traces, automatic kill-switch, and loop detection — in 2 lines of code.

Free up to 1,000 traces/mo · No credit card · Instrument in 2 lines

app.traceagently.com/traces/tr_8af2c1
Running
Thought

I need to check the user's subscription status before processing the refund request.

Tool Call · 28 tok

get_subscription(user_id: "usr_4829")

Tool Result · 64 tok

{"status": "active", "plan": "pro", "eligible_for_refund": true}

Thought

User is eligible. Processing refund now

Instrument in 2 minutes

Works with any agent — LangChain, CrewAI, raw OpenAI calls, or your own loop.

Python pip install traceagently
from traceagently import TraceAgently

ta = TraceAgently(api_key="ta_live_...")

with ta.trace(agent_id="support-bot",
               task="Refund order #123") as t:
    t.thought("Checking order status")
    t.tool_call("get_order", {"id": 123})
    t.tool_result({"status": "delivered"})
    t.final_response("Order was delivered")
TypeScript npm install traceagently
import { TraceAgently } from 'traceagently'

const ta = new TraceAgently({ apiKey: 'ta_live_...' })

const trace = await ta.startTrace({
  agentId: 'support-bot',
  task: 'Refund order #123'
})
await trace.thought('Checking order status')
await trace.toolCall('get_order', { id: 123 })
await trace.end('Order was delivered')

We don't just watch agents fail. We stop them.

The only observability platform that intervenes — not just observes.

Kill-Switch

Set a per-trace cost limit. The moment a runaway agent exceeds it, it's automatically killed — no more API calls, no more bill. Never wake up to a $1,000 charge again.

Loop Detection

Catches infinite loops before they spiral. If your agent calls the same tool N times in a row, it's killed immediately. Configurable threshold — default is 5 consecutive calls.

Real-time trace viewer

Watch every thought, tool call, and response stream live as your agent runs. Full event timeline with timestamps, token counts, and cost per step.

Trace Comparison

Side-by-side diff of any two runs. See exactly what changed in cost, tokens, duration, and event count. Mark a good run as Golden and compare all future runs against it.

Magic Fix Pro

One click sends the full trace to Claude, which reads every step, diagnoses the failure, and streams back an exact fix. No copy-pasting logs into ChatGPT.

Cost tracking

Token usage and estimated cost calculated per trace automatically. Know exactly what each agent run costs before it becomes a problem.

Email Alerts Pro

Get notified the moment a kill-switch fires or a loop is detected. Uses your account email — zero configuration, no webhooks to set up.

Error pattern detection

Recurring errors across all your runs are automatically grouped and ranked. Spot systemic failures before they reach your users.

Any framework

Works with LangChain, CrewAI, raw OpenAI, Claude, Gemini, or any custom agent loop. 2-line SDK integration in Python or TypeScript.

Simple pricing

Start free. One plan when you're ready for more.

Free
$0/mo

No credit card required

Limits

1,000 traces / month
7-day retention
1 agent

Features

Real-time trace viewer
Cost tracking per trace
Kill-switch (1 rule)
Loop detection
Error pattern detection
Get started free
Pro
Everything included
$49/mo

$0.50 per 1k traces over limit

Limits

1,000,000 traces / month
90-day retention
Unlimited agents

Features

Real-time trace viewer
Cost tracking per trace
Kill-switch (unlimited rules)
Loop detection
Golden traces
Trace comparison
Magic Fix (AI diagnosis)
Email alerts
Error pattern detection
Get started

Quick start

From zero to live traces in under 2 minutes.

1

Install the SDK

pip install traceagently   # Python
npm install traceagently   # TypeScript
2

Get your API key from the dashboard

ta_live_••••••••••••••••••••••••
3

Wrap your agent

from traceagently import TraceAgently
ta = TraceAgently(api_key="ta_live_...")

with ta.trace(
    agent_id="my-agent", task=user_task
) as t:
    t.thought(llm_response)
    t.tool_call(tool_name, args)
    t.final_response(result)

Common questions

What is TraceAgently?

TraceAgently is a real-time observability tool for AI agents. It captures every thought, tool call, tool result, and error your agent makes and shows them live in a dashboard. Works with OpenAI, Claude, Gemini, LangChain, CrewAI, or any custom agent loop you wrote yourself.

How is it different from regular logging?

Regular logs dump flat text. They have no understanding of agent loop structure. TraceAgently captures each event type in sequence so you see exactly what your agent was thinking at each step and why it failed. It is built specifically for agents, not web servers.

What frameworks does TraceAgently support?

TraceAgently works with OpenAI, Anthropic Claude, Google Gemini, LangChain, LangGraph, CrewAI, AutoGen, and any custom Python or TypeScript agent loop. It is completely framework-agnostic. If you can add a function call to your agent, you can use TraceAgently.

Is TraceAgently free?

Yes. The free tier gives you 1,000 traces per month, 7-day data retention, and 1 agent. No credit card required. When you're ready for more, the Pro plan is $49/month for 1 million traces, 90-day retention, unlimited agents, kill-switch, loop detection, email alerts, trace comparison, and Magic Fix AI.

Why bill by traces and not by events or seats?

A trace is one agent run — the unit developers think in. Events are internal implementation details that vary wildly between agents: a simple bot might produce 3, a complex one 300. Billing by traces means the price is predictable. Per-seat billing punishes growth. We give you 1 million traces for $49 flat — LangSmith charges $39 per seat for far fewer runs.

How do I install TraceAgently?

Run pip install traceagently for Python or npm install traceagently for TypeScript. Sign up to get your API key, then add 2 lines to your agent code. Your first trace appears in the dashboard within seconds.

Is my agent data private?

Yes. Your trace data is scoped to your account and never visible to other users. We do not sell your data or use it to train models. Data is automatically deleted after your retention window (7 days on Free, 90 days on Pro).

Start seeing inside your agents

Free forever. No credit card required.

Get started free