Create your LangWatch account
Head over to app.langwatch.ai and sign up. Create your first organization and project.
Get your API key
You have two options:Option A: CLI login (recommended for local development)This opens your browser to authenticate and adds
LANGWATCH_API_KEY to your local .env file.Option B: Create a key manuallyGo to Settings → API Keys and create an API key. See the API Keys guide for details on personal vs service keys..env
Keys created from Settings → API Keys (both personal and service) require
LANGWATCH_PROJECT_ID so the SDK knows which project to send traces to. You can find the project ID in your project settings or URL.Let LangWatch MCP do the rest for you (Optional)
Install the LangWatch MCP Server and ask your coding assistant (Cursor, Claude Code, Codex, etc.) to instrument your codebase with LangWatch, OR keep following the steps below to instrument your codebase manually.Add the LangWatch MCP to your editor. Under the
mcpServers object of your editor’s MCP settings file, add an entry named langwatch with these fields:command:npxargs:-y, then the package name@langwatch/mcp-serveron a separate token
Install the LangWatch SDK
We have official SDKs for Python and Node.js ready to go. If you’re using another language, our OpenTelemetry Integration Guide provides the details you need.
Add LangWatch to your project
Time to connect LangWatch. Initialize the SDK within your project. Here’s how you can set it up:
Start observing!
You’re all set! Jump into your LangWatch dashboard to see your data flowing in. You’ll find Traces (individual AI tasks) and their detailed Spans (the steps within), all organized into Threads (complete user sessions). Start exploring and use User IDs or custom Labels to dive deeper!

Next steps
- Need org-wide controls? See AI Governance for per-user workspaces, anomaly detection, OCSF/SIEM export, and ingestion sources for non-gateway telemetry, paired with the AI Gateway data plane.
- Routing every LLM call through a single endpoint? See AI Gateway: virtual keys, budgets, fallback chains, guardrails.