Show HN: PeekAI – Local-first observability for Python AI agents PeekAI, a new open-source tool for local-first observability and debugging of Python AI agents, launched on Hacker News. The tool stores traces in SQLite, requires no cloud accounts or API keys, and supports multi-agent visualization, trace replay, and CLI/UI inspection. It aims to simplify debugging for developers building AI agents by providing zero-config instrumentation for OpenAI, Anthropic, and LiteLLM. Lightweight, local-first observability and debugging for Python AI agents. No cloud. No API keys. No dashboards to sign up for. Drop it in, call peekai.init , and see exactly what your agent is doing β€” every LLM call, every tool use, every token spent. Building AI agents is hard. Debugging them is harder. Tools like LangSmith or Weights & Biases require you to send your data to their cloud, create accounts, and wire up pipelines before you can see a single trace. PeekAI is different: 🏠 Local-first | All traces stored in SQLite at ~/.peekai/peekai.db β€” nothing leaves your machine | ⚑ Zero config | One line to instrument OpenAI, Anthropic, and LiteLLM | 🧠 Multi-agent aware | Visualize agent-to-agent handoffs as a nested span tree | πŸ” Trace replay | Re-run any past trace with a different model or modified tool response | πŸ–₯️ CLI + UI | Inspect traces in your terminal or a local Streamlit dashboard | pip install peekai With OpenAI support pip install "peekai openai " With Anthropic support pip install "peekai anthropic " With the web dashboard pip install "peekai ui " With everything pip install "peekai all " python import peekai from openai import OpenAI One line to instrument everything peekai.init client = OpenAI response = client.chat.completions.create model="gpt-4o", messages= {"role": "user", "content": "What is 2 + 2?"} , print response.choices 0 .message.content Then inspect your traces: peekai list recent traces peekai view