LangSmith is LangChain's observability and evaluation platform for LLM applications. It provides tracing, debugging, evaluation, and monitoring specifically designed around LangChain and LangGraph applications, though it also works with non-LangChain LLM calls via its SDK.
| LangSmith | Tokoscope | Helicone | |
|---|---|---|---|
| Primary focus | Chain/agent tracing & evals | Token cost & optimization | Proxy-based logging |
| LangChain integration | Native (built by LangChain) | Works alongside any framework | Works alongside any framework |
| Semantic caching | No | Yes | No |
| Prompt compression | No | Yes | No |
| Budget alerts | Limited | Yes (email/Slack/webhook) | Limited |
| Evaluation datasets | Yes — strong feature | No | No |
| Free tier | 5K traces/month | Yes | Yes |
LangSmith and Tokoscope solve different problems and are often used together: LangSmith for understanding what happened inside a complex chain, Tokoscope for understanding what it costs and automatically reducing that cost through caching and compression.
pip install langsmith
import os
os.environ["LANGCHAIN_TRACING_V2"] = "true"
os.environ["LANGCHAIN_API_KEY"] = "YOUR_LANGSMITH_KEY"
# Any LangChain or LangGraph code now automatically traces to LangSmith
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(model="gpt-4o")
response = llm.invoke("Hello") # this call is now traced
LangSmith also works with raw API calls via decorators, for teams not using the LangChain framework:
from langsmith import traceable
@traceable
def my_llm_call(prompt):
return client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": prompt}]
)
Tokoscope handles token cost tracking, semantic caching, and prompt compression — pairs well with LangSmith's tracing. Free to start.
Get started free →