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.

  1. Install the SDK
    pip install langwatch · npm i langwatch · go get github.com/langwatch/langwatch/sdk-go

  2. Set your API key
    export LANGWATCH_API_KEY=… (or langwatch login)

  3. Wrap your agent
    @langwatch.trace() / lw.trace("triage-agent", async () => …)

  4. Add an eval, optionally
    langwatch.evaluation.run("ragas/faithfulness", …)

Native in Python, TypeScript, and Go, plus every framework you run.

Browse the integration docs

Languages

Wire format

Agent frameworks

Model gateways

Optimization

Other

Read the docs. Ship something today.

Quickstart Python guide TypeScript guide Go guide Book a demo