SDKs | LangWatch
SDKs & integrations
One line of code. Every framework.
Python, TypeScript, and Go SDKs that trace, evaluate, and optimize your agents in production. OpenTelemetry-native, framework-agnostic, and installable from PyPI, npm, and Go modules.
Read the quickstart langwatch on GitHub
Python TypeScript
pip install langwatch
import langwatch
@langwatch.trace()
def run_agent(query: str) -> str:
# your agent code, untouched
...
$ langwatch login · then run your agent. traces show up live in the platform.
Five minutes. From clone to first trace.
Install the SDK, set one environment variable, wrap your agent. Traces, evaluations, and prompt history land in the platform without changing your call sites.
Install the SDK
pip install langwatch · npm i langwatch · go get github.com/langwatch/langwatch/sdk-goSet your API key
export LANGWATCH_API_KEY=…(or langwatch login)Wrap your agent
@langwatch.trace() / lw.trace("triage-agent", async () => …)Add an eval, optionally
langwatch.evaluation.run("ragas/faithfulness", …)
Native in Python, TypeScript, and Go, plus every framework you run.
Languages
- Python SDK
- TypeScript SDK
- Go SDK
Wire format
- OpenTelemetry
Agent frameworks
- OpenAI Agents
- Anthropic
- Crew AI
- LangGraph
- LangChain
- Pydantic AI
- Agno
Model gateways
- Lite LLM
- AWS Bedrock
- Azure OpenAI
Optimization
- DSPy
Other
- REST API
- CLI
Read the docs. Ship something today.
Quickstart Python guide TypeScript guide Go guide Book a demo