Now available

Understand Every Decision Your AI Agent Makes Instantly

Trace logic, detect failures, and improve AI agent performance with real-time observability.

Dashboard
Traces
12,847+12%
Latency
1.24s-8%
Errors
0.8%-23%
Cost
$847+5%
TRACEAGENTCOSTSTATUS
trc_8f3a2b1csupport-agent$0.023success
trc_7e2b3c4dresearch-agent$0.089warning
trc_6d1c4e5fcode-agent$0.041success
trc_5c0b5f6gsupport-agent$0.012success
End-to-end trace timelineSee every step your agent takes
Failure & hallucination detectionCatch issues before users do
Latency & cost breakdownOptimize performance per step

Use Cases

Understand why your agent does what it does

From support bots to research agents, trace every thought and decision. Know exactly what went wrong and why.

Customer Support

Pinpoint the exact moment your agent went wrong

Trace every thought, every decision, every retrieval. See the complete chain of reasoning and find exactly where the failure occurred. No more guessing.

  • Thought chain replay
  • Hallucination detection
  • Context tracing
Conversation Replay
U
How do I reset my password?
A
You can reset your password by clicking "Forgot Password" on the login page...
Grounded847 tokens · 0.89s
RAG Applications

See what your agent actually reads and remembers

Watch your agent's memory in action. See which documents it retrieves, which passages it focuses on, and whether it's actually using the context you gave it.

  • Memory inspection
  • Grounding scores
  • Source attribution
Retrieval Analysis
Retrieved Documents
docs/password-reset.md0.94
docs/security-faq.md0.87
docs/account-setup.md0.62
Response fully grounded in sources
Autonomous Agents

Follow every step your agent takes

Watch your agent think in real-time. Visualize decision trees, track tool calls, and understand exactly why it chose one path over another. Catch runaway loops before they drain your API budget.

  • Decision tree view
  • Tool call tracking
  • Loop detection
Span Timeline
llmllm:openai-agent
6.18s0 tokens
llmgpt-4o-mini
3.06s237 tokens$0.00007
toolget_current_weather
105ms0 tokens
toolget_current_weather
1ms0 tokens
toolcalculate
1ms0 tokens
llmgpt-4o-mini
3.08s435 tokens$0.00011
Content & Code Generation

Inspect every generation before it ships

Understand how your agent crafts each output. See the reasoning behind every word. Catch hallucinations, safety issues, and quality problems with deep inspection.

  • Generation breakdown
  • Safety checks
  • Feedback collection
Quality Signals
User Feedback
4.2
Safety Score
95%
SafeOn-brandFactual

Ready to understand your AI agents?

Platform Features

The deepest visibility into agent behavior

Purpose-built for AI agents. See what no other tool can show you.

Full Thought Tracing

See every step your agent takes: each LLM call, tool invocation, memory read, and branching decision. Understand its complete reasoning chain.

Hallucination Detection

Catch the moment your agent makes things up. Flag responses that contradict context or fabricate sources, in real-time.

Safety Monitoring

Detect policy violations, harmful outputs, and prompt injections before they reach users. See why they happened.

Cost Analytics

Track token usage and API spend down to individual decisions. Find exactly what's burning through your budget.

User Signals

Link user feedback directly to agent decisions. Understand which reasoning paths lead to good or bad outcomes.

Failure Replay

Replay any failed execution step-by-step. Rewind to the exact moment things went wrong and see every detail.

Integration

Up and running in minutes

Add a few lines of code. Works with any framework.

01

Install the SDK

npm install @foil/sdk or pip install foil-sdk. Framework-agnostic with first-class support for LangChain, LlamaIndex, and CrewAI.

npm install @foil/sdk
02

Wrap your agent

One line to instrument. All LLM calls, tool uses, and memory operations are captured automatically.

foil.wrap(agent)
03

View in dashboard

Traces stream in real-time. Set up alerts, analyze trends, and debug issues from a single UI.

// That's it!
agent.ts
import { Foil } from '@foil/sdk';

// Initialize with your API key
const foil = new Foil({ apiKey: 'sk-...' });

// Wrap your agent - that's it!
const tracedAgent = foil.wrap(myAgent);

// All LLM calls, tool uses, and decisions are now traced
const result = await tracedAgent.run("Help the user with their request");

Pricing

Simple, transparent pricing

Get started with a free trial. Upgrade as you grow.

Pro Trial

Free

14 days of Pro features

  • All Pro features included
  • 10,000 spans included
  • No credit card required
Start Free Trial

Starter

$49/mo

$0.001 / interaction

  • Unlimited spans, agents & retention
  • Alerts
  • Exports
  • Deep Search
  • Email support
Get Started

Pro

14 day free trial
$149/mo

$0.005 / interaction

  • Everything in Starter, plus:
  • Model training on your data
  • Deep Search + Semantic Search + Smart Search
  • Prompts
  • SSO & RBAC
  • Priority support
Start Free Trial

Stop guessing. Start seeing.

Join 50+ teams who finally understand what their AI agents are doing.