> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# LangSmith CLI

> CLI commands for LangSmith observability

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
graph LR
    U[Input] --> A[Agent]
    A --> O[Output]

    classDef agent fill:#8B0000,color:#fff
    classDef tool fill:#189AB4,color:#fff

    class A agent
    class U,O tool
```

# LangSmith CLI Commands

## Environment Setup

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
export LANGSMITH_API_KEY=ls-...        # or legacy LANGCHAIN_API_KEY
export LANGSMITH_PROJECT=my-project    # optional
export LANGSMITH_ENDPOINT=...          # optional, http(s) only
```

## Commands

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai-ts observability doctor langsmith
praisonai-ts observability doctor langsmith --json
praisonai-ts observability test langsmith
```

With `LANGSMITH_API_KEY` set, `observability doctor langsmith` and `observability test langsmith` now report `delivers: true` and a successful delivered trace (previously they reported "no delivery").

## Related

> [card] [LangSmith Code Usage](https://praison.ai/docs/js/observability/langsmith-code.md)
>
> LangSmith Code Usage


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.