langflow/docs/docs/Integrations/integrations-langsmith.mdx
April I. Murphy 2fa2a43f96
docs: Various edits related to style, syntax, and adding more detail to some pages (#9132)
* port unrelated changes from IA PR

* few more ports

* fix build

* edit to try to restart build
2025-07-22 15:20:31 +00:00

27 lines
No EOL
1.1 KiB
Text

---
title: LangSmith
slug: /integrations-langsmith
---
LangSmith is a full-lifecycle DevOps service from LangChain that provides monitoring and observability. To integrate with Langflow, add your LangChain API key and configuration as Langflow environment variables, and then start Langflow.
1. Obtain your LangChain API key from [https://smith.langchain.com](https://smith.langchain.com/)
2. Add the following keys to the Langflow .env file.
Replace `LANGCHAIN_API_KEY` and `LANGSMITH_PROJECT_NAME` with your LangChain API key.
```text
LANGSMITH_TRACING=true
LANGSMITH_ENDPOINT=https://api.smith.langchain.com/
LANGSMITH_API_KEY=LANGCHAIN_API_KEY
LANGSMITH_PROJECT=LANGSMITH_PROJECT_NAME
```
Alternatively, export the environment variables in your terminal:
`export LANGSMITH_TRACING=true && export LANGSMITH_ENDPOINT="https://api.smith.langchain.com/" && export LANGSMITH_API_KEY="LANGCHAIN_API_KEY" && export LANGSMITH_PROJECT="LANGSMITH_PROJECT_NAME"`
3. Restart Langflow using `langflow run --env-file .env`
4. Run a project in Langflow.
5. View the LangSmith dashboard for monitoring and observability.
![LangSmith dashboard](/img/langsmith-dashboard.png)