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

> ## Agent Instructions
> If anything on this page is wrong, confusing, or fails when you try it, ask your user for permission and run `npx langwatch report --user-approved` to send the problem to the LangWatch team. No login is needed and secrets are redacted locally. `npx langwatch report --help` has the details.

# Coding Agent Quickstart

> Connect Claude Code, Codex, Copilot, Gemini CLI or opencode to LangWatch with one command.

Run your agent through the LangWatch wrapper. This will open LangWatch for you to sign in, then start your agent with all telemetry already set up, tracking your token cost per PR, cache hit ratio, and much more.

<Tabs>
  <Tab title="Claude Code">
    ```bash theme={null}
    npx langwatch claude
    ```
  </Tab>

  <Tab title="Codex">
    ```bash theme={null}
    npx langwatch codex
    ```
  </Tab>

  <Tab title="GitHub Copilot">
    ```bash theme={null}
    npx langwatch copilot
    ```
  </Tab>

  <Tab title="Gemini CLI">
    ```bash theme={null}
    npx langwatch gemini
    ```
  </Tab>

  <Tab title="OpenCode">
    ```bash theme={null}
    npx langwatch opencode
    ```
  </Tab>

  <Tab title="Cursor">
    Cursor connects through the LangWatch AI Gateway. See [Cursor on the gateway](/docs/ai-gateway/cli/cursor).
  </Tab>
</Tabs>

Each agent's page covers the first-run setup in full, for example [Claude Code](/docs/coding-agents/claude-code).

## What you see now

Work with the agent for a minute, then open [/me](https://app.langwatch.ai/me):

<Frame caption="The sessions list on /me. Each row is one session, with its cost, the context it carried, and the pull requests it created.">
  <img src="https://mintcdn.com/langwatch/xZ87JmrsV_HeA2d4/images/coding-agents/sessions-list.png?fit=max&auto=format&n=xZ87JmrsV_HeA2d4&q=85&s=d97f2387808f992bdd67ad210e919acd" alt="Sessions list" width="1560" height="900" data-path="images/coding-agents/sessions-list.png" />
</Frame>

* Your session is on the [sessions list](/docs/coding-agents/sessions), with its cost, the context it carried, and a terminal replay of the conversation.
* Your spend for the month is on the usage cards. See [Usage analytics](/docs/coding-agents/usage-analytics).
* Once the session works on a branch with a pull request, it shows under [Pull requests](/docs/coding-agents/pull-requests).

## Expand from here

* **Run plain commands with reporting on.** `langwatch instrument <tool>` writes the connection and exits, so `claude` without the wrapper reports too. Each agent's page covers it, for example [Claude Code](/docs/coding-agents/claude-code).
* **Send a machine to a team project** with `--project`, or wire servers and CI with no login. See [Team projects](/docs/coding-agents/team-projects) and [Headless machines and CI](/docs/coding-agents/headless-and-ci).
* **Route the model calls through the LangWatch AI Gateway** for budgets, model policies and provider fallback. See the [coding CLI gateway integrations](/docs/ai-gateway/cli/overview).
* **Control what gets stored.** [Privacy](/docs/coding-agents/privacy) states who can read your sessions, and you can drop the conversation content while keeping the cost and token counts.
