AIToday

OpenSmith: Local LLM pipeline tracing without cloud

Hacker News8h agoSend on LINE
OpenSmith: Local LLM pipeline tracing without cloud

Key takeaway

OpenSmith is a free, open-source alternative to LangSmith that runs entirely on a developer's machine for tracing and debugging LLM pipelines. Unlike LangSmith, which requires a cloud account and is tightly integrated with LangChain, OpenSmith installs via pip, works with any Python LLM code, and stores all trace data locally — making it suitable for teams prioritizing privacy and avoiding cloud dependencies.

Summaries like this, in your inbox every morning.

Sign up free →

3 Key Points

  • What happened

    OpenSmith, an open-source tool, lets developers trace LLM (AI language model) pipelines locally on their machines using pip install, with no cloud account or hosted service required. The tool stores all trace data in SQLite locally (or optionally Postgres) and includes a dashboard accessible at localhost:7823.

  • Why it matters

    Developers working with language models often need to debug and monitor their pipelines. LangSmith, the incumbent tool, requires cloud setup and works best with LangChain specifically. OpenSmith works with any Python LLM code, keeps all data on the developer's machine (no trace data leaves it), and is free and open-source — eliminating privacy concerns and vendor lock-in for teams building LLM applications.

  • What to watch

    OpenSmith supports decorators (@trace), context managers, and zero-code patching (autopatch()) to instrument code. It integrates with OpenAI, Anthropic, LiteLLM, Qdrant, Chroma, and Pinecone. Traces can be exported to JSON or CSV, and optional OpenTelemetry export is available via the opensmith[otel] install variant.

In Depth

OpenSmith is an open-source, local-first tracing tool for LLM pipelines inspired by Ollama's relationship to OpenAI — it offers privacy and independence as its core value. Unlike LangSmith, which requires a cloud account, sends traces to a hosted service, and is most natural inside the LangChain ecosystem, OpenSmith installs with pip, works with any Python LLM code, and stores all trace data locally in SQLite (or optionally Postgres) so no data leaves the developer's machine. The tool provides three ways to instrument code: a @trace decorator that can be applied to synchronous and asynchronous functions with optional tags and token budgets; a context manager for manual tracing within specific code blocks; and autopatch(), which automatically patches supported backends without requiring code changes. Configuration is done via an optional opensmith.json file in the working directory, where developers can set the database path, enable console mode (printing traces to the terminal as they complete), and specify which backends to autopatch. A local web dashboard runs on localhost:7823 and automatically selects an alternative port if 7823 is in use. The command-line interface includes commands to initialize a config (opensmith init), start the dashboard (opensmith ui), list and filter traces by query, tags, and status (opensmith traces), view aggregate statistics (opensmith stats), export traces to JSON or CSV (opensmith export), and clear all stored traces (opensmith clear). Supported backends include OpenAI, Anthropic, LiteLLM, Qdrant, Chroma, and Pinecone. Traces are stored by default at ~/.opensmith/traces.db but can be redirected to Postgres by installing the opensmith[postgres] variant and setting the OPENSMITH_DB_URL environment variable. OpenTelemetry export is available as an optional feature via the opensmith[otel] install variant, allowing traces to be sent to an external OTLP HTTP endpoint at /v1/traces and metrics at /v1/metrics. The tool is licensed under MIT and is free and open-source.

Context & Analysis

OpenSmith positions itself as a local-first, privacy-preserving alternative to LangSmith in the LLM debugging and monitoring space. The core trade-off is explicit: LangSmith offers a hosted, cloud-based service tightly integrated with the LangChain ecosystem, while OpenSmith trades some convenience for full local control, zero vendor lock-in, and guaranteed data privacy. The tool is designed to lower the friction of getting started — no cloud account setup, no Docker required, and integration via simple Python decorators or context managers. The comparison table in the body makes this positioning clear: whereas LangSmith requires a cloud account and sends traces to hosted infrastructure, OpenSmith requires only pip and runs entirely on the developer's machine. For teams building LLM applications that are privacy-sensitive, cost-conscious, or working across multiple frameworks (not just LangChain), the local-first model removes significant friction. The supported backends (OpenAI, Anthropic, LiteLLM, vector databases like Qdrant and Chroma) cover the most common LLM stack components, suggesting the tool is aimed at a broad audience rather than a single framework.

FAQ

How do I install and start using OpenSmith?
Install it with pip install opensmith, then decorate your functions with @trace or use a context manager. The dashboard starts automatically at localhost:7823. Optionally create an opensmith.json config file in your working directory to customize the database path and other settings.
What programming frameworks does OpenSmith support?
OpenSmith works with any Python LLM pipeline. It has native integrations for OpenAI, Anthropic, LiteLLM, Qdrant, Chroma, and Pinecone backends. It is not limited to LangChain as LangSmith is.
Where does OpenSmith store trace data?
Traces are stored locally at ~/.opensmith/traces.db by default. You can override this path in opensmith.json or with set_default_db_path(). Optionally, you can use Postgres instead by installing opensmith[postgres] and setting the OPENSMITH_DB_URL environment variable.

Get the latest Large Language Models news every morning

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · takes 30 seconds · unsubscribe anytime

Discussion

No comments yet. Be the first to share your thoughts!

Log in to join the discussion

Related Articles

Stay ahead with AI news

Get curated AI news from 200+ sources delivered daily to your inbox. Free to use.

Get Started Free

Free · takes 30 seconds · unsubscribe anytime