Real-time tracing, security analysis, cost tracking, and Time Machine replay for AI agents — without changing how you build them.
A single decorator that instruments any Python function — sync or async, nested or flat. It captures inputs, outputs, token counts, latency, and parent-child span relationships automatically. Zero changes to your agent logic required.
A high-performance single-process FastAPI service. It validates incoming spans, applies rate limits, inspects for security anomalies in real-time, computes per-model costs, and durably stores everything in a local SQLite database.
A Vite-powered React 19 SPA that gives you a live trace explorer, time-series cost charts, security alert feed, and the Time Machine — a step-by-step replay of any past agent run with full span data at every node.
Capture every LLM call, tool invocation, and function execution as a structured span. Supports sync, async, and deeply nested execution chains.
Step through any past agent execution span-by-span. See what each tool returned and which decision path was taken — without reproducing the failure.
Detect prompt injection, PII leakage, jailbreak patterns, token explosions, and anomalous behavior in real time. Alerts surface in the dashboard within seconds.
SSNs, credit cards, emails, phone numbers, AWS keys, OpenAI keys — detected and redacted from every span before storage automatically.
Per-model token counting and USD cost calculation. Track spend across GPT-4, Claude, Gemini — broken down by hour, day, or week.
If the Oxly Engine is unreachable, spans are written to a local SQLite buffer and replayed automatically when connectivity is restored.
[aside] most tools are designed for web services. AI agents have fundamentally different requirements.
| Challenge | Web Services | AI Agents | Oxly |
|---|---|---|---|
| Request duration | Milliseconds | Minutes to hours | Durable traces with offline fallback |
| Cost model | Fixed infra | Variable per-token | Per-model cost tracking + timeseries |
| Security | Known vectors | Prompt injection, PII leakage | Real-time detection engine |
| Debugging | Deterministic stack traces | Non-deterministic LLM behavior | Time Machine replay |
| Data sensitivity | Headers and bodies | Full conversation text | Auto-PII sanitization |
| Call structure | Flat request/response | Deep nested trees | Automatic parent-child span linking |
Python 3.10+, Pydantic v2. Provides the @observe decorator, local SQLite buffer for offline resilience, automatic PII scrubbing, span batching, and gzip compression.
FastAPI, SQLite (user store). Exposes REST endpoints for trace queries and a WebSocket channel for live span streaming to the dashboard. JWT tokens with 24h expiry; pbkdf2_sha256 password hashing; brute-force lockout after 5 failures.
React 19, TypeScript, Vite. Live trace tree explorer, time-series cost charts, real-time security alert feed, and the Time Machine UI — which lets you scrub backward through any past agent run span-by-span with full input/output data at every step.
| Package | Stack | Responsibilities |
|---|---|---|
| sdk-python | Python 3.10+, Pydantic v2 | @observe decorator, PII scrubber, batching, offline buffer |
| api | FastAPI, SQLite | REST API · WebSocket · JWT auth · trace replay |
| dashboard | React 19, TypeScript, Vite | Traces · analytics · Time Machine · security alerts |
| deploy | SQLite | Single-process deployment |
All Docker images run as a non-root appuser — no root privileges at runtime.
24h token expiry with pbkdf2_sha256 password hashing. Brute-force lockout after 5 failures per 15 minutes.
SHA-256 hash cache on the hot path · pbkdf2 verification on first use. Keys never stored in plaintext.
5 failed login attempts per 15-minute window triggers automatic account lockout.
100 requests per minute per IP enforced in-process.
Explicit origin allowlist. Credentials disabled on the API endpoint. No wildcard origins.
5MB hard limit enforced on actual request body — not just headers — at the HTTP layer.
Bandit static analysis runs on every pull request. Security issues block merge automatically.
SSNs, card numbers, emails, phone numbers, AWS & OpenAI keys stripped from every span before storage.
The full stack runs as a single process. Clone the repo, copy the example env file, and start it directly.
Environment variables
| JWT_SECRET_KEY | JWT signing secret — openssl rand -hex 32 |
| ALLOWED_ORIGINS | Comma-separated CORS origins for the API |
"Oxly is an open-source observability platform for AI agents — a single high-performance process for real-time tracing, offline SQLite storage, cost tracking, and security analysis."
★ Star on GitHub ↗The whole stack is public today — read the source, send a patch. Install the SDK in one line and get full visibility into your agents.