惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
WordPress大学
WordPress大学
T
Tailwind CSS Blog
V
Visual Studio Blog
月光博客
月光博客
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Last Week in AI
Last Week in AI
阮一峰的网络日志
阮一峰的网络日志
量子位
有赞技术团队
有赞技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
Jina AI
Jina AI
雷峰网
雷峰网
博客园 - 【当耐特】
博客园 - 叶小钗
美团技术团队
宝玉的分享
宝玉的分享
IT之家
IT之家

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I Built a Local-First Alternative to LangSmith After Spen...
Shivnath Tat · 2026-05-12 · via DEV Community
Cover image for I Built a Local-First Alternative to LangSmith After Spending $200 Debugging a Pipeline I Couldn't See | Shivnath Tathe

Shivnath Tathe

Last month I spent $200 on OpenAI tokens debugging a RAG pipeline. I had no idea which step was eating my budget. LangSmith would have helped — but I didn't want to send my prompts to a cloud service just to debug locally.

So I built opensmith.

What is opensmith?

A local-first LLM pipeline tracer. Zero cloud.
Zero setup. Everything stays on your machine.

pip install opensmith

Enter fullscreen mode Exit fullscreen mode

How it works

One decorator:

from opensmith import trace

@trace(tags=["rag", "production"])
def pipeline(query: str):
    docs = retrieve(query)
    return generate(docs, query)

Enter fullscreen mode Exit fullscreen mode

That's it. opensmith captures:

  • Function name, inputs, outputs
  • Latency in milliseconds
  • Token usage per step
  • Cost estimate
  • Errors with full stack trace
  • Parent-child relationships for nested calls

The dashboard

opensmith ui

Enter fullscreen mode Exit fullscreen mode

Opens at localhost:7823. Live WebSocket updates, search, filters, charts. No account needed.

dashboard

vs LangSmith

LangSmith opensmith
Setup Cloud account pip install
Data Sent to cloud 100% local
Framework Best with LangChain Any Python
Cost Free then paid Free forever

What's new in v0.1.5

Token budget alerts — never blow your API
budget again:

@trace(token_budget=1000)
def expensive_pipeline():
    ...
# Prints: ⚠ expensive_pipeline used 1,247 tokens (budget: 1,000)

Enter fullscreen mode Exit fullscreen mode

CLI trace filters:

opensmith traces --q rag --status err --tags production

Enter fullscreen mode Exit fullscreen mode

Auto port detection — if 7823 is taken,
opensmith finds the next free port automatically.

opensmith init — creates a starter config:

opensmith init
# Creates opensmith.json in current directory

Enter fullscreen mode Exit fullscreen mode

Autopatch — zero code changes

from opensmith import autopatch
autopatch(only=["openai", "qdrant"])

Enter fullscreen mode Exit fullscreen mode

Supported: OpenAI, Anthropic, LiteLLM, Qdrant, ChromaDB, Pinecone.

Stats after 5 days

1,500+ PyPI downloads. 16 GitHub stars. Growing organically.


GitHub: https://github.com/shivnathtathe/opensmith

If this saves you time, a ⭐ helps others
discover it. Thank you for 1,500+ downloads 🙏

What would you add to a local-first tracing tool?