Latitude is a free, open source machine learning infrastructure project written in TypeScript and released under MIT. It has 4,650 GitHub stars, 391 forks and 65 open issues, and was last pushed 3 hours ago. On this registry it ranks #33 of 57 tracked projects in Machine Learning Infrastructure, with 5 head-to-head comparisons available. It gained 14 stars over the last 6 tracked days.

What is Latitude?

What it is

Latitude is an open-source observability platform for AI agents, written in TypeScript and released under the MIT license. It lives in the AI and machine learning infrastructure ecosystem, where it targets the specific problem of agents that fail in production without a clear path from failure to fix. The project describes itself as tooling that makes AI agents self-healing, and its repository topics — agent-monitoring, agent-observability, llm-error-tracing, llm-observability, ai-error-monitor — place it squarely in the LLM observability space.

The concrete problem it solves is the gap between detecting that an agent misbehaved and getting that behaviour corrected. Latitude captures traces from agent runs, groups failing traces into tracked signals that carry status, size, and trend, and then dispatches a coding agent with the relevant context and sample traces to write a fix and open a pull request. The fix is subsequently replayed against the real failing traces, so a corrected failure is checked rather than assumed. This closes the loop between observability data and code change, which is normally handled by hand across separate tools.

Key capabilities

  • One line of telemetry captures every trace, including multi-turn sessions, tool calls, and full execution paths.
  • OpenTelemetry ingest is supported, alongside Python and any OpenTelemetry-compatible runtime.
  • Failing traces are auto-grouped into tracked signals with status, size, and trend.
  • Flaggers, behaviours, semantic search, and annotations support triage and classification of failures.
  • Agent Dispatch sends coding agents such as Claude Code and Cursor the full context, sample traces, and a deep link, then opens a pull request with the smallest correct fix.
  • Fixes are verified by replaying them against real failing traces, using regression datasets, monitors, and alerts.
  • Everything available in the UI is also reachable from a coding agent through the MCP server and the CLI.

Who uses it and how

  • Teams running agents in production use tracing to find where multi-turn sessions and tool calls break.
  • Engineers triage failures by reviewing auto-grouped signals rather than reading raw traces one at a time.
  • Developers wire Agent Dispatch to Claude Code or Cursor so a detected failure becomes a pull request.
  • Teams connect dispatch to Linear or webhooks to route fixes into existing workflows.
  • Operators use monitors and alerts to catch regressions after a fix ships.

Getting started

Install the telemetry package with npm install @latitude-data/telemetry, or ask a coding agent to install the latitude-setup skill from github.com/latitude-dev/skills. A hosted option is available at latitude.so with a free tier covering 20K credits per month, 30-day data retention, and unlimited seats; a self-host path is documented in the repository.

When to use it — and when not to

Latitude is provider-agnostic and works with OpenAI, Anthropic, Bedrock, the Vercel AI SDK, and LangChain, so it fits stacks that already use those tools

project readme (upstream, from github) — read inline

Make your AI agents self-healing

Agents that fix themselves, at scale.

License Build Commits last month npm downloads PyPI downloads GitHub stars Follow on X

Website  ·   Docs  ·   Changelog  ·   Slack  ·   X

🌈 Why Latitude?

Latitude finds where your agent fails and gets it fixed.

Everything you can do in the UI is also available from your coding agent via the MCP server and the CLI.

📚 Table of contents

⚡ Quick start

You can use Latitude for free, including 20K credits/month, 30-day data retention, and unlimited seats.

Sign up at latitude.so and grab your API key and project slug.

Recommended: ask your coding agent

Paste this prompt into Claude Code, Cursor, Windsurf, Codex, OpenCode, or another coding agent:

Install the `latitude-setup` skill from `github.com/latitude-dev/skills`, and use it to add Latitude tracing to this app following best practices.

Manual TypeScript setup

npm install @latitude-data/telemetry

This example uses OpenAI; replace it with the LLM SDK your app already imports.

import { Latitude } from "@latitude-data/telemetry";
import OpenAI from "openai";

const latitude = new Latitude({
  apiKey: process.env.LATITUDE_API_KEY!,
  project: process.env.LATITUDE_PROJECT_SLUG!,
  instrumentations: { openai: OpenAI },
});

const client = new OpenAI();

await client.chat.completions.create({
  model: "gpt-4o",
  messages: [{ role: "user", content: "Hello" }],
});

await latitude.shutdown();

Every supported LLM call now shows up as a trace in Latitude. Use capture() at request, conversation, or agent boundaries when you want to add user IDs, session IDs, tags, or metadata.

Python and any OpenTelemetry-compatible runtime are also supported. Full setup, provider guides, and OTel passthrough are in the Start tracing guide.

🔌 Integrations

Latitude is provider-agnostic. Telemetry works out of the box with most model providers and frameworks (OpenAI, Anthropic, Bedrock, Vercel AI SDK, LangChain, and more), plus any OTEL-compatible application.

See the full integration list for setup instructions.

✳️ With Claude Code

Building inside Claude Code? We have a dedicated package that captures full session transcripts as traces. Check out docs.

npx -y @latitude-data/claude-code-telemetry install

Works in the terminal, the Desktop app, and IDE extensions.

🛠️ Development

Check out the Development setup and the Contributing guide to get started contributing to Latitude.

🏠 Self-host

Latitude is self-hostable at any scale, on fully open infrastructure. Pull the ready-to-go container images on Docker Hub:

Deploy on Railway

  • Single-host (simple) — a production-grade instance on one machine with Docker Compose, follow the Single-host guide.
  • Cluster (advanced) — a scalable, highly-available deployment on Kubernetes via a Helm chart, follow the Cluster guide.
  • One-click (Railway) — the whole stack on managed infrastructure, easy deploy through Railway.

👥 Community

Join the Slack community to ask questions, share feedback, and show what you're building.

📄 License

Latitude is licensed under the MIT License.

🤝 Contributing

Contributions are welcome. Read the [Contributing Guide](CONTRIBUT

readme truncated — read the full docs on github

Frequently asked questions

Is Latitude free to use?

Latitude is open source under the MIT licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does Latitude do?

Full observability for AI agents in production

What is Latitude written in?

Latitude is primarily written in TypeScript. Its source is publicly available at https://github.com/latitude-dev/latitude-llm, and it has 4,650 GitHub stars.