The LangWatch CLI ships as an npm package. Install it once and you get the unifiedDocumentation Index
Fetch the complete documentation index at: https://langwatch.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
langwatch binary that drives every part of the platform from
your terminal, and the same tool your AI coding assistant uses to
operate LangWatch on your behalf.
Prerequisites
You need Node.js 18+ and npm (or pnpm, yarn). If you already run any JavaScript or TypeScript locally, you have these. If not:- macOS:
brew install node - Linux (Debian/Ubuntu):
sudo apt-get install -y nodejs npm - Linux (RHEL/Fedora):
sudo dnf install -y nodejs npm - Windows: download from nodejs.org or
winget install OpenJS.NodeJS
Install
npm (canonical)
Run without installing (npx)
For one-off invocations or to try the CLI before installing:pnpm or yarn
If your team already uses these:Self-hosted endpoint
If your organization runs a self-hosted LangWatch deployment (instead of the publicapp.langwatch.ai), point the CLI at it via the
LANGWATCH_ENDPOINT environment variable:
langwatch login so
later commands don’t need the prefix. To make the env var sticky, add
it to your shell profile:
/me, /me/sessions, and the governance setup checklist already
renders the right prefilled commands for your deployment, copy-paste
straight from there.
Authenticate
Once installed, sign in:--api-key for CI, --device for
AI-tool sessions, --endpoint for self-hosted).
Enterprise networks
Most enterprise networks proxy public npm through an internal mirror (Artifactory, Nexus, GitHub npm Enterprise).npm install -g langwatch
fetches transparently through the mirror, no special configuration
needed. If your environment is fully air-gapped, your IT team’s
package-mirror process is the canonical path; ask them to mirror
npmjs.com/package/langwatch.
Uninstall
~/.langwatch/config.json until you also delete that file.
Next steps
- CLI reference: every subcommand, with examples
- AI Governance: device login flow: debug device login + token storage
- Prompt management CLI: version + sync prompts from the terminal