.parquet
```
The partition columns in the path (`export_id`, `tenant_id`, `session_id`, `resource`, `year`, `month`, `day`) are available as queryable columns in BigQuery when Hive partition detection is enabled.
## 6. Load data into BigQuery
BigQuery offers two ways to access your exported data. Both require granting the BigQuery service account read access to your GCS bucket first. Choose based on your needs:
* **External table:** data stays in GCS and BigQuery queries it in place. No storage costs in BigQuery, but query performance is slower than native storage. Refer to [Required roles](https://docs.cloud.google.com/bigquery/docs/query-cloud-storage-data#required-roles).
* **Native table:** data is copied into BigQuery storage. Faster queries and full support for BigQuery features, but incurs BigQuery storage costs. Refer to [Required permissions](https://docs.cloud.google.com/bigquery/docs/cloud-storage-transfer#required_permissions).
### Create the table
> [tab] External table
>
> An external table queries data directly from GCS without copying it into BigQuery.
>
> 1. In the BigQuery console, expand your project and dataset in the **Explorer** pane.
> 2. Click the dataset's **Actions** menu (three dots) and select **Create table**.
> 3. Under **Source**:
> * Set **Create table from** to **Google Cloud Storage**.
> * Set the file path to `gs://YOUR_BUCKET_NAME/YOUR_PREFIX/export_id=*`. Using `export_id=*` scopes BigQuery to Hive-partitioned export directories and excludes the `tmp/` folder that LangSmith writes during destination validation (see [Temporary validation file](#temporary-validation-file)).
> * Set **File format** to **Parquet**.
> 4. Check **Source data partitioning**, then:
> * Set **Source URI prefix** to `gs://YOUR_BUCKET_NAME/YOUR_PREFIX`.
> * Set **Partition inference mode** to **Automatically infer types**.
> 5. Under **Destination**:
> * Select your project and dataset.
> * Enter a table name, for example `langsmith_runs`.
> * Set **Table type** to **External table**.
> 6. Under **Schema**, enable **Auto-detect**.
> 7. Click **Create table**.
>
> The partition path columns (`export_id`, `tenant_id`, `session_id`, `resource`, `year`, `month`, `day`) are available as queryable columns. Filter on `year`, `month`, or `day` in your queries to enable partition pruning.
> [tab] Native table
>
> A native table transfers the Parquet data into BigQuery storage for full query performance.
>
> 1. Go to the [Data Transfer page](https://console.cloud.google.com/bigquery/transfers) in the Google Cloud console and select **+ Create transfer**.
>
> 2. For **Source type**, select **Google Cloud Storage**.
>
> 3. Enter a **Transfer name**. You'll have access to edit the transfer at a point if necessary.
>
> 4. Select a **Schedule option**. If you do not want to repeat the export, you can select **On demand** and trigger the export manually.
>
> 5. In the BigQuery console, expand your project and dataset in the **Explorer** pane.
>
> 6. Click the dataset's **Actions** menu (three dots) and select **Create table**.
>
> 7. Under **Source**:
> * Set **Create table from** to **Google Cloud Storage**.
> * Set the file path to `gs://YOUR_BUCKET_NAME/YOUR_PREFIX/export_id=*`. Using `export_id=*` excludes the `tmp/` folder that LangSmith writes during destination validation (see [Temporary validation file](#temporary-validation-file)).
> * Set **File format** to **Parquet**.
>
> 8. Check **Source data partitioning**, then:
> * Set **Source URI prefix** to `gs://YOUR_BUCKET_NAME/YOUR_PREFIX`.
> * Set **Partition inference mode** to **Automatically infer types**.
>
> 9. Under **Destination**:
> * Select your project and dataset.
> * Enter a table name, for example `langsmith_runs`.
> * Set **Table type** to **Native table**.
>
> 10. Under **Advanced options**, set **Write preference** to **Write if empty** for a new table.
>
> 11. Click **Create table**.
>
> BigQuery runs a load job to copy the data. The Hive partition columns appear as regular columns in the table. For the full list of available data columns, see [Exportable fields](/langsmith/data-export#exportable-fields).
## Credential rotation
To rotate your HMAC keys without interrupting active exports:
1. **Generate new HMAC keys** in GCP for the same service account.
2. **Call the PATCH endpoint** with the new credentials:
```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
curl --request PATCH \
--url 'https://api.smith.langchain.com/api/v1/bulk-exports/destinations/YOUR_DESTINATION_ID' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'X-Tenant-Id: YOUR_WORKSPACE_ID' \
--data '{
"credentials": {
"access_key_id": "NEW_HMAC_ACCESS_ID",
"secret_access_key": "NEW_HMAC_SECRET"
}
}'
```
LangSmith validates the new credentials with a test write before saving. A new `tmp/` file may appear in your bucket during this validation (see [Temporary validation file](#temporary-validation-file)).
3. **Keep old HMAC keys active** until all in-flight export runs complete. Both credential sets are valid simultaneously during the transition window.
4. **Delete the old HMAC keys** in GCP once you have confirmed no in-flight runs are using them.
For full details, see [Rotate destination credentials](/langsmith/data-export-destinations#rotate-destination-credentials).
## Troubleshooting
| Symptom | Likely cause | Fix |
| - | - | - |
| `400 Access denied` on destination creation | HMAC credentials lack write permission | Verify the service account has `storage.objects.create` on the bucket |
| `400 Key ID you provided does not exist` | HMAC access ID is invalid | Regenerate HMAC keys in GCP |
| `400 Invalid endpoint` | Endpoint URL is malformed | Use exactly `https://storage.googleapis.com` |
| BigQuery table shows no rows | Export not yet complete | Check export status with `GET /api/v1/bulk-exports/{export_id}` |
| BigQuery partition pruning not working | Incorrect source URI prefix | Ensure the source URI prefix ends before the first partition key, e.g. `gs://BUCKET/PREFIX` |
| BigQuery picks up `tmp/` files | Broad file path glob | Use `export_id=*` in your file path instead of `*` |
For additional error codes and export status details, see [Monitor and troubleshoot bulk exports](/langsmith/data-export-monitor).
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/big-query-bulk-export.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# Manage billing in your account
Source: https://docs.langchain.com/langsmith/billing
This page describes how to manage billing for your LangSmith organization:
* [Set up billing for your account](#set-up-billing-for-your-account): Complete the billing setup process for Developer and Plus plans, including special instructions for legacy accounts.
* [Track contract usage (Enterprise)](#track-contract-usage-enterprise): View prepaid contract consumption.
* [Update your information](#update-your-information-paid-plans-only): Modify invoice email addresses, business information, and tax IDs for your organization.
* [Enforce spend limits](#enforce-spend-limits): Learn how to manage your spend through usage limits and data retention.
* [LangSmith Agent Server billing](#langsmith-deployment-billing): Understand deployment charges, compare sizes and hourly costs, and reduce deployment costs.
## Set up billing for your account
> [!NOTE]
>
> Before using this guide, note the following:
>
> * If you are interested in the [Enterprise](https://www.langchain.com/pricing) plan, [contact our sales team](https://www.langchain.com/contact-sales). This guide is only for our self-serve billing plans.
To set up billing for your LangSmith organization, navigate to the [Billing and Usage](https://smith.langchain.com/settings/payments) page under **Settings**. Depending on your organization's settings, there are different setup guides:
* [Developer plan](#developer-plan%3A-set-up-billing-on-your-personal-organization)
* [Plus plan](#plus-plan%3A-set-up-billing-on-a-shared-organization)
### Developer plan: set up billing on your personal organization
Personal organizations are limited to 5,000 traces per month until a credit card is added. To add a card:
1. Click **Add card to remove trace limit**.
2. Add your credit card information.
3. Once complete, you will no longer be rate limited to 5,000 traces, and you will be charged for any excess traces at rates specified on the [pricing](https://www.langchain.com/pricing) page.
### Plus plan: set up billing on a shared organization
Team organizations are given an initial 10,000 traces per month. Any excess traces will be charged at rates specified on the [pricing](https://www.langchain.com/pricing) page.
> [!NOTE]
>
> New organizations that you manually create are required to be on the Plus Plan. If you see a message about needing to upgrade to Plus to use this organization, follow these steps.
1. Click **Upgrade to Plus**.
2. Invite members to your organization, as desired.
3. Enter your credit card information. Then, enter business information, invoice email, and tax ID. If this organization belongs to a business, check the **This is a business** checkbox and enter the information accordingly. For more information, refer to the [Update your information section](#update-your-information-paid-plans-only).
## Track contract usage (Enterprise)
Contract usage tracking is available for [**Enterprise plan**](/langsmith/pricing-plans) customers with prepaid commitments. You must have the [`organization:manage` permission](/langsmith/organization-workspace-operations) to access this feature.
For details on viewing your prepaid contract consumption, refer to [Contract usage](/langsmith/view-usage#contract-usage).
> [!NOTE]
>
> For more details on the Enterprise plan, [contact our sales team](https://www.langchain.com/contact-sales).
## Update your information (Paid plans only)
To update business information for your LangSmith organization, head to the [Billing and Usage](https://smith.langchain.com/settings/payments) page under **Settings**.
### Invoice email
To update the email address for invoices, follow these steps:
1. Navigate to the **Plans and Billing** tab.
2. Locate the section beneath the payment method, where the current invoice email is displayed.
3. Enter the new email address for invoices in the provided field.
4. The new email address will be automatically saved.
You will receive all future invoices to the updated email address.
### Business information and tax ID
> [!NOTE]
>
> In certain jurisdictions, LangSmith is required to collect sales tax. If you are a business, providing your tax ID may qualify you for a sales tax exemption.
To update your organization's business information, follow these steps:
1. Navigate to the **Plans and Billing** tab.
2. Below the invoice email section, you will find a checkbox labeled **Business**.
3. Check the **Business** checkbox if your organization belongs to a business.
4. A business information section will appear, allowing you to enter or update the following details:
* Business Name
* Address
* Tax ID for applicable jurisdictions
5. A Tax ID field will appear for applicable jurisdictions after you select a country.
6. After entering the necessary information, click the **Save** button to save your changes.
This ensures that your business information is up-to-date and accurate for billing and tax purposes.
## Enforce spend limits
> [!TIP]
>
> You may find it helpful to read the following pages, before continuing with this section on optimizing your tracing spend:
>
> * [Data Retention Conceptual Docs](/langsmith/usage-and-billing#data-retention)
> * [Usage Limiting Conceptual Docs](/langsmith/usage-and-billing#usage-limits)
> [!NOTE]
>
> Some of the features mentioned in this guide are not currently available on Enterprise plan due to its custom nature of billing. If you are on the Enterprise plan and have questions about cost optimization, contact your sales rep or support via [support.langchain.com](https://support.langchain.com).
### Understand your current usage
The first step of any optimization process is to understand current usage. For details on the usage graph, granular usage, invoices, and contract usage, refer to [View usage](/langsmith/view-usage).
LangSmith measures usage per workspace, because workspaces often represent development environments or teams within an organization.
### Set limits on usage

#### Set spend limit for workspace
1. To set limits, navigate to **Settings** -> **Billing and Usage** -> **Usage limits**.
2. Input a spend limit for your selected workspace. LangSmith will determine an appropriate number of base and extended trace limits to match that spend. The trace limits include the free trace allocation that comes with your plan (see details on [pricing page](https://smith.langchain.com/settings/payments)).
> [!NOTE]
>
> For organizations with **multiple workspaces only**: For simplicity, LangSmith incorporates the free traces into the cost calculation of the **first workspace only**. In actuality, the free traces can be "consumed" by any workspace. Therefore, although workspace-level spend limits are approximate for multi-workspace organizations, the organization-level spend limit is absolute.
#### Configure trace tier distribution
LangSmith has two trace tiers: base traces and extended traces. Base traces have the base retention and are short-lived (14 days), while extended traces have extended retention and are long-lived (180 days by default, [customizable for Enterprise customers](/langsmith/data-purging-compliance#customize-extended-retention-policy)). For more information, refer to the [data retention conceptual docs](/langsmith/usage-and-billing#data-retention).
> [!WARNING]
>
> Starting September 14, 2026, the maximum long-lived trace retention period for SaaS customers is changing to 180 days. Enterprise customers can still customize the extended retention period per workspace up to this new maximum. Changes apply to new traces only—existing traces are unaffected.
Set the desired default trace tier by selecting an option below the **Default data retention** label. All traces will have this tier by default when they are registered. By default, updating this setting will only apply to future incoming traces. To apply to all existing traces in the workspace, select the checkbox.
If the default data retention is set to **Base** you can optionally use the slider to distribute trace limits across base and extended traces. LangSmith automatically provides a suggestion for this distribution but you can tailor this to your needs. For example, if you are running lots of automations or other features that may upgrade a trace to extended, you may want to increase your extended trace limits. To see the complete list of features that may upgrade a trace, [see here](https://docs.langchain.com/langsmith/usage-and-billing#how-it-works:~:text=Data%20retention%20auto%2Dupgrades).
> [!NOTE]
>
> The extended data retention limit can cause features other than tracing to stop working once reached. If you plan to use this feature, read more about its [functionality and side effects](/langsmith/usage-and-billing#side-effects-of-extended-data-retention-traces-limit).
### Other methods of managing traces
#### Customize extended retention period ([Enterprise](/langsmith/pricing-plans) only)
[Enterprise](/langsmith/pricing-plans) customers can customize the extended data retention period at the workspace level to meet compliance requirements. The default is 180 days (as of September 14, 2026), but this can be adjusted based on your organization's needs. For more information, refer to [Customize extended retention policy](/langsmith/data-purging-compliance#customize-extended-retention-policy).
#### Change project-level default retention
Data retention settings are adjustable per tracing project. At the project level, you choose between two tiers: base (14 days) or extended (180 days). To customize the extended duration up to 180 days, use [workspace-level configuration](/langsmith/data-purging-compliance#customize-extended-retention-policy) (Enterprise only).
In an [agent-based workspace](/langsmith/agent-registry), each of an agent's [environments](/langsmith/agent-environments) is its own tracing project, so retention is set per environment rather than per agent, and you reach the setting through the agent rather than a **Projects** list.
Navigate to **Projects** > ***Your project name*** > Select **Retention** and select the desired default retention. This will only affect retention (and pricing) for **traces going forward**.

#### Apply extended data retention to a percentage of traces
You may not want all traces to expire after 14 days. You can automatically extend the retention of traces that match some criteria by creating an [automation rule](/langsmith/rules). You might want to apply extended data retention to specific types of traces, such as:
* 10% of all traces: For general analysis or analyzing trends long term.
* Errored traces: To investigate and debug issues thoroughly.
* Traces with specific metadata: For long-term examination of particular features or user flows.
To configure this:
1. Navigate to **Projects** > ***Your project name*** > Select **+ New** > Select **New Automation**. In an agent-based workspace, start from the agent's environment.
2. Name your rule and optionally apply filters or a sample rate. For more information on configuring filters, refer to [filtering techniques](/langsmith/filter-traces-in-application#filter-operators).
> [!NOTE]
>
> When an automation rule matches any [run](/langsmith/observability-concepts#runs) within a [trace](/langsmith/observability-concepts#traces), then all runs within the trace are upgraded to extended data retention (180 days by default, [customizable for Enterprise customers](/langsmith/data-purging-compliance#customize-extended-retention-policy)).
For example, this is the expected configuration to keep 10% of all traces for extended data retention:

If you want to keep a subset of traces for **longer than 180 days** for data collection purposes, you can create another run rule that sends some runs to a dataset of your choosing. A dataset allows you to store the trace inputs and outputs (e.g., as a key-value dataset), and will persist indefinitely, even after the trace gets deleted.
### Summary
If you have questions about further managing your spend, please contact support via [support.langchain.com](https://support.langchain.com).
## LangSmith Agent Server billing
In addition to traces, LangSmith charges for deployed agents through LangSmith Agent Server. Deployments are billed on the resources they consume:
* **Compute**: Requested vCPU and memory per running replica, measured in LangChain Standard Units (LSU). [Autoscaling](/langsmith/cloud-platform-features#scaling) adds billable replicas. [Serverless](/langsmith/cloud-platform-features#serverless) compute charges stop at scale-down, not when traffic stops. [Dedicated](/langsmith/cloud-platform-features#dedicated) runs continuously.
* **Database**: Dedicated database charges are based on configured vCPU and memory, including while idle. Runtime autoscaling does not change the database charge. Database disk storage and the shared Serverless database are not billed.
Managed Redis is not billed on any deployment type or size.
The following diagram shows which parts of each deployment type are billed. Blue parts are billed. Green parts are not billed:
```mermaid actions={false} theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
%%{init: {"theme":"base","flowchart":{"htmlLabels":true,"nodeSpacing":24,"rankSpacing":16,"padding":14,"subGraphTitleMargin":{"top":6,"bottom":10}},"themeVariables":{"fontFamily":"Inter, system-ui, sans-serif","fontSize":"14px","lineColor":"#40668D","primaryColor":"#E5F4FF","primaryTextColor":"#030710","primaryBorderColor":"#006DDD","clusterBkg":"transparent","edgeLabelBackground":"#FFFFFF"}}}%%
flowchart LR
subgraph serverless["Serverless"]
direction TB
SRuntime("Runtime
1 replica
API server and queue worker
Billed while running
")
SDb("Shared Postgres database
Not billed
")
SRedis("Managed Redis
Not billed
")
SRuntime ~~~ SDb ~~~ SRedis
end
subgraph dedicated["Dedicated"]
direction TB
DRuntime("Runtime
2 or more API servers
1 or more queue workers
Billed at all times
")
DDb("Dedicated Postgres database
vCPU and memory billed
Disk storage not billed
")
DRedis("Managed Redis
Not billed
")
DRuntime ~~~ DDb ~~~ DRedis
end
serverless ~~~ dedicated
classDef process fill:#E5F4FF,stroke:#006DDD,stroke-width:2px,color:#030710,rx:10,ry:10
classDef trigger fill:#F6FFDB,stroke:#6E8900,stroke-width:2px,color:#2E3900,rx:10,ry:10
class SRuntime,DRuntime,DDb process
class SDb,SRedis,DRedis trigger
style serverless fill:none,stroke:#40668D,stroke-width:1.5px,stroke-dasharray:5 4
style dedicated fill:none,stroke:#40668D,stroke-width:1.5px,stroke-dasharray:5 4
```
Usage is converted to LSU at the following rates:
| Resource | Rate |
| - | - |
| Runtime vCPU | 0.0675 LSU per vCPU-hour |
| Runtime memory | 0.009 LSU per GiB-hour |
| Database vCPU | 0.177 LSU per vCPU-hour |
| Database memory | 0.025 LSU per GiB-hour |
Usage is sampled every 5 minutes and totaled hourly. Each running billable container is charged for that interval based on requested resources, not actual utilization.
### Compare sizes and hourly costs
The following tables show the hourly cost of each [size](/langsmith/cloud-platform-features#sizes) on LangSmith Cloud in GCP. All costs are in LSU per hour.
A Serverless deployment is charged only while it runs. A scaled-down Serverless deployment costs 0 LSU. Serverless deployments do not scale out, and their shared database is not billed:
| Serverless size | Billable runtime | Cost while running |
| - | - | - |
| Small | 0.8 vCPU / 2 GiB | 0.072 LSU |
| Medium | 4 vCPU / 4 GiB | 0.306 LSU |
| Large | 8 vCPU / 8 GiB | 0.612 LSU |
A Dedicated deployment is charged for its minimum runtime and its database at all times. This table assumes the database size matches the compute size:
| Dedicated size | Runtime + database | Minimum total |
| - | - | - |
| Small | 0.2565 + 0.277 | 0.5335 LSU |
| Medium | 0.513 + 0.554 | 1.067 LSU |
| Large | 1.026 + 1.108 | 2.134 LSU |
> [!NOTE]
>
> The Dedicated minimum runtime is 2 API server replicas and 1 queue worker. [Autoscaling](/langsmith/cloud-platform-features#scaling) adds API server or queue worker replicas. Each added replica costs the added replica rate for its size.
The following table shows the minimum runtime and the added replica rate for each Dedicated size:
| Dedicated size | Minimum runtime | Each added replica |
| - | - | - |
| Small | 3 vCPU / 6 GiB | +0.0855 LSU |
| Medium | 6 vCPU / 12 GiB | +0.171 LSU |
| Large | 12 vCPU / 24 GiB | +0.342 LSU |
Dedicated database capacity on LangSmith Cloud in GCP is:
| Database size | Capacity | Database cost per hour |
| - | - | - |
| Small | 1 vCPU / 4 GiB | 0.277 LSU |
| Medium | 2 vCPU / 8 GiB | 0.554 LSU |
| Large | 4 vCPU / 16 GiB | 1.108 LSU |
Database capacity differs by cloud provider. Compute and database sizes can be [set independently](/langsmith/cloud-platform-features#sizes).
Tracing and other product usage are separate charges.
[Free Serverless deployments](https://www.langchain.com/pricing) are available only in the Small size. A free deployment is not billed for any container, at any **Scale down after** setting. Dedicated deployments are never free.
To estimate the cost of a deployment, you can also use the deployment cost calculator on the [pricing page](https://www.langchain.com/pricing).
> [!NOTE]
>
> Usage-based pricing replaced per-run and uptime pricing on October 1, 2026. Scale to zero requires the new pricing. For transition questions, contact [support](https://support.langchain.com).
For high-volume deployment usage, [contact our sales team](https://www.langchain.com/contact-sales) to discuss custom pricing options.
### Reduce deployment costs
Deployment charges are based on the compute and database resources that each deployment requests. To lower your deployment bill, run fewer deployments, use smaller sizes, and let idle deployments scale down:
* **Use Serverless with a short scale-down time**: A Serverless deployment stops compute charges when it scales down. Set **Scale down after** to `1 hour` instead of the default `1 week`. With the default, a deployment that receives a request at least once a week never scales down. Serverless deployments have cold starts and run one replica. Serverless is not yet available for deployments on AWS or Azure, or for self-hosted and hybrid deployments.
* **Run multiple agents on one deployment**: Charges apply to each deployment, not to each agent. [Define multiple graphs](/langsmith/application-structure#define-multiple-graphs-in-one-deployment) in one `langgraph.json` so that your agents share one set of replicas and one database. This saves the most on Dedicated, where each deployment has at least 2 API server replicas, 1 queue worker, and its own database.
* **Use the smallest size that works**: Each runtime replica and each database is charged by its size. On a Dedicated deployment, you can set the compute size and the database size separately. See [Sizes](/langsmith/cloud-platform-features#sizes).
* **Delete unused deployments**: An idle Dedicated deployment is charged for its minimum replicas and its database. An idle Serverless deployment is charged until it scales down.
* **Limit preview deployments**: Each [preview deployment](/langsmith/preview-builds) is a separate deployment and is charged like one. Lower **Idle TTL** and **Max concurrent previews** to limit how many preview deployments run, and for how long.
* **Remove unneeded wake-ups**: A request to a scaled-down Serverless deployment starts it again, including automated health checks. Enabled [cron jobs](/langsmith/cron-jobs) and scheduled runs start the deployment up to 10 minutes before they are due. Remove cron jobs and health checks that you do not need.
The following diagram compares three Dedicated deployments with one Dedicated deployment that runs three graphs:
```mermaid actions={false} theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
%%{init: {"theme":"base","flowchart":{"htmlLabels":true,"nodeSpacing":24,"rankSpacing":36,"padding":14,"subGraphTitleMargin":{"top":6,"bottom":10}},"themeVariables":{"fontFamily":"Inter, system-ui, sans-serif","fontSize":"14px","lineColor":"#40668D","primaryColor":"#E5F4FF","primaryTextColor":"#030710","primaryBorderColor":"#006DDD","clusterBkg":"transparent","edgeLabelBackground":"#FFFFFF"}}}%%
flowchart TB
subgraph separate["Before: 3 Dedicated deployments, at least 1.6005 LSU per hour"]
direction LR
A("Agent A
2 API servers
1 queue worker
1 database
")
B("Agent B
2 API servers
1 queue worker
1 database
")
C("Agent C
2 API servers
1 queue worker
1 database
")
A ~~~ B ~~~ C
end
subgraph shared["After: 1 Dedicated deployment, at least 0.5335 LSU per hour"]
direction LR
Config("langgraph.json
agent_a
agent_b
agent_c
")
Runtime("Shared runtime
2 API servers
1 queue worker
")
Db("Shared database
1 database
")
Config --> Runtime --> Db
end
separate == "Define all graphs in one langgraph.json" ==> shared
classDef process fill:#E5F4FF,stroke:#006DDD,stroke-width:2px,color:#030710,rx:10,ry:10
classDef neutral fill:#F2FAFF,stroke:#40668D,stroke-width:2px,color:#2F4B68,rx:10,ry:10
class A,B,C,Runtime,Db process
class Config neutral
style separate fill:none,stroke:#40668D,stroke-width:1.5px,stroke-dasharray:5 4
style shared fill:none,stroke:#40668D,stroke-width:1.5px,stroke-dasharray:5 4
```
The following table shows the effect of two changes. Monthly costs use 720 hours:
* **Shorter scale-down time**: A Serverless Small deployment receives requests for 2 hours each weekday, 22 days each month.
* **Multiple graphs**: Three agents run on Dedicated Small deployments on GCP.
| Change | Before | After |
| - | - | - |
| Shorter scale-down time | `1 week` (default): 720 hours of uptime, \~51.84 LSU used | `1 hour`: \~66 hours of uptime, \~4.75 LSU used. Savings \~47.09 LSU. |
| Multiple graphs | 3 deployments: \~1,152 LSU | 1 deployment with 3 graphs: \~384 LSU. Savings \~768 LSU. |
Autoscaling adds runtime cost to both Dedicated setups.
LangSmith does not support changing the type of a deployment after creation. To move to Serverless, create a new Serverless deployment and copy data from the previous deployment with the [Agent Server API](/langsmith/server-api-ref). You can also contact [support](https://support.langchain.com) for help with the migration.
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/billing.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# Automatically run evaluators on experiments
Source: https://docs.langchain.com/langsmith/bind-evaluator-to-dataset
LangSmith supports two ways to grade experiments created via the SDK:
* **Programmatically**, by specifying evaluators in your code (see [How to evaluate an LLM application](/langsmith/evaluate-llm-application) for details)
* By **binding evaluators to a dataset** in the UI. This will automatically run the evaluators on any new experiments created, in addition to any evaluators you've set up via the SDK. This is useful when you're iterating on your application (target function), and have a standard set of evaluators you want to run for all experiments.
## Configuring an evaluator on a dataset
1. In the [LangSmith UI](https://smith.langchain.com?utm_source=docs\&utm_medium=cta\&utm_campaign=langsmith-signup\&utm_content=langsmith-bind-evaluator-to-dataset), select a dataset.
2. Click the **Evaluators** tab.
3. Click **+ Evaluator** to open the **Configure Evaluator** panel.
4. Choose one of the following:
* **Create from scratch**: Build a new [LLM-as-a-Judge](/langsmith/llm-as-judge), [Decision Model](/langsmith/decision-model-evaluator), [Code](/langsmith/online-evaluations-code), or [Composite](/langsmith/composite-evaluators-ui) evaluator, or select **From labeled data** to create an LLM-as-a-judge evaluator [aligned to human feedback](/langsmith/improve-judge-evaluator-feedback).
* **Attach an existing evaluator**: Select an evaluator already in your workspace to reuse it.
* **Create from a template**: Start from a ready-made evaluator.
> [!NOTE]
>
> When you configure an evaluator for a dataset, it will only affect the experiment runs that are created after the evaluator is configured. It will not affect the evaluation of experiment runs that were created before the evaluator was configured.
## LLM-as-a-judge evaluators
The process for binding evaluators to a dataset is very similar to the process for configuring an LLM-as-a-judge evaluator in the Playground. View instructions for [configuring an LLM-as-a-judge evaluator in the Playground.](/langsmith/llm-as-judge?mode=ui)
## Decision model evaluators
A decision model evaluator uses a decision model, such as Jev, as the judge. On a dataset, you can map the reference output into the evaluator's state and ask questions that compare it to the run's output. For instructions, see [How to define a decision model evaluator](/langsmith/decision-model-evaluator).
## Custom code evaluators
The process for binding a code evaluators to a dataset is very similar to the process for configuring a code evaluator in online evaluation. View instruction for [configuring code evaluators](/langsmith/online-evaluations-code).
The only difference between configuring a code evaluator in online evaluation and binding a code evaluator to a dataset is that the custom code evaluator can reference outputs that are part of the dataset's `Example`.
For custom code evaluators bound to a dataset, the evaluator function takes in two arguments:
* A `Run` ([reference](/langsmith/run-data-format)). This represents the new run in your experiment. For example, if you ran an experiment via SDK, this would contain the input/output from your chain or model you are testing.
* An `Example` ([reference](/langsmith/example-data-format)). This represents the reference example in your dataset that the chain or model you are testing uses. The `inputs` to the Run and Example should be the same. If your Example has a reference `outputs`, then you can use this to compare to the run's output for scoring.
The code below shows an example of a simple evaluator function that checks that the outputs exactly equal the reference outputs.
```python Python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
import numpy as np
def perform_eval(run, example):
# run is a Run object
# example is an Example object
output = run['outputs']['output']
ref_output = example['outputs']['outputs']
output_match = np.array_equal(output, ref_output)
return { "exact_match": output_match }
```
```javascript JavaScript theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
function perform_eval(run, example) {
// run is a Run object
// example is an Example object
const output = run.outputs.output;
const refOutput = example.outputs.outputs;
// Deep equality check for arrays/objects
const outputMatch = JSON.stringify(output) === JSON.stringify(refOutput);
return { "exact_match": outputMatch };
}
```
## Next steps
* Analyze your experiment results in the [experiments tab](/langsmith/analyze-an-experiment)
* Compare your experiment results in the [comparison view](/langsmith/compare-experiment-results)
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/bind-evaluator-to-dataset.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# Build an agent with LangSmith Studio
Source: https://docs.langchain.com/langsmith/build-an-agent
Describe an agent in Studio, let LangSmith Chat draft its configuration, then review, save, and test it without writing code.
LangSmith Studio builds a no-code agent from a description. You describe what the agent should do, [LangSmith Chat](/langsmith/chat) drafts its configuration, and you review each step before you save. Then you test the agent and see its traces without leaving Studio.
Use it when you want a working agent without a local project or a deployment. To build an agent from files on your own machine instead, see [Managed Deep Agents](/langsmith/python/managed-deep-agents-overview). The result is a regular [agent](/langsmith/agent-registry#agent), so its traces, dashboards, and evaluators behave the same as one you instrumented yourself. Studio builds the same kind of no-code agent as [Fleet](/langsmith/fleet), so the Fleet pages on tools, channels, schedules, and skills apply to it.
> [!NOTE]
>
> Agent-based workspaces are available on [LangSmith Cloud](/langsmith/cloud). They are not available on [self-hosted](/langsmith/self-hosted) LangSmith. To check whether your workspace is agent-based, look at the control at the top left. In an agent-based workspace, it is a workspace switcher that names your workspace. In a [project-based](/langsmith/observability-concepts#tracing-projects) workspace, it shows the LangSmith logo.
Creating an agent requires the `fleet-agents:create` [permission](/langsmith/fleet/access-and-oversight), which covers all no-code agents, including those built in Studio. Without it, Studio shows "Ask a workspace admin for permission to create agents."
## Start a new agent
Open the **Build an agent** screen from either place:
* **Studio**: In the left navigation, with **All agents** selected, click **Studio**, then click **Build a new agent**.
* **New agent menu**: In the [new agent menu](/langsmith/create-an-agent#start-from-the-new-agent-menu), under **Build**, click **Without code**.

## Describe the agent
To describe the agent:
1. In the box that reads "Build me an agent that…", describe what the agent should do, up to 8,000 characters. To start from an example, click a template card instead: **Schedule manager**, **Slides designer**, **Support triage**, **Project manager**, **Deep researcher**, or **Data analyst**. Each card lists the apps its agent uses. The card fills in the prompt, and you can edit it before you send it.
2. (Optional) From the model menu in the bottom-left corner of the box, choose the model Chat uses to draft the agent. **Auto** uses the LangSmith-hosted model when it is available. Otherwise, the menu starts on your workspace's default model for Chat. This choice applies to Chat only. You set the agent's own model in the [Basics step](#configure-the-agent).
3. Click the **Build with AI** icon.
To build the agent in code instead, click **Build in code** below the template cards. It opens the **Build with code** pane, which offers [Managed Deep Agents](/langsmith/python/managed-deep-agents-overview) hosted by LangSmith, or the open source frameworks to host yourself. For more information, see [Create an agent](/langsmith/create-an-agent#start-from-the-new-agent-menu).
## Generate the draft
Chat drafts the agent's name, description, and instructions first. Once all three are filled in, LangSmith creates the agent and opens its configuration at the **Instructions** step.
> [!NOTE]
>
> The agent exists from this point, before you click **Save**. It appears in the agent list and the agent switcher for everyone in the workspace. If you leave the page without clicking **Cancel**, the agent stays in the workspace. To remove it, see [Save or cancel](#save-or-cancel).
If Chat stops before the name, description, and instructions are filled in, click **Retry** to send your original prompt again. **Retry** appears only before the agent is created, so retrying does not create a second agent.
Chat then suggests the remaining steps one at a time: connections, channels, and schedules. You can also edit any step directly.
## Configure the agent
The **Configure agent** view lists the configuration as steps:
* **Basics**: The agent's **Name**, a **Description** of what it does, and the **Model** that powers its responses. The name is the label you see in the agent switcher. The **Model** list shows the same models that are enabled for [Fleet](/langsmith/fleet/manage-agent-settings#change-the-model).
* **Instructions**: What the agent should do and how it should work.
* **Connections**: The apps and tools the agent can use, added with **Add connection**. Details follow the list.
* **Channels**: Where people can chat with the agent, added with **Add channel**. The options are Slack, Gmail, Outlook, and Microsoft Teams. Microsoft Teams carries an **Admin** badge and is available only for agents with shared connections. Studio saves channel setup separately from the rest of the configuration. For more information, see [Channels](/langsmith/fleet/channels).
* **Schedules**: The [scheduled runs](/langsmith/fleet/schedules) the agent makes on its own, added with **Add schedule**.
When you edit an existing agent, the view also shows **Skills** and **Memory**. For more information, see [Skills](/langsmith/fleet/skills).
In **Connections**, the **Connection Type** heading shows whose accounts the agent uses:
* **Shared** (fixed credentials): Everyone uses one set of connected accounts.
* **Per-user** (user credentials): Each person connects their own accounts.
Studio creates new agents as **Per-user**. The heading shows the type but does not change it. For more information, see [Agent identity](/langsmith/fleet/agent-identity).
Account setup takes effect right away, while tool selections stay in the draft until you save. For each tool, choose one option:
* **Auto**: The agent runs the tool without asking.
* **Ask**: The agent asks for approval before it runs the tool.
* **Remove**: The tool is removed from the agent.
## Save or cancel
To save, click **Save** in the **Configure agent** header, or **Save agent** on the card above the Chat composer. The card appears only when there is something to save. Saving closes Chat and returns you to Studio, where you can test the agent.
To leave without keeping the agent, click **Cancel**. Because the agent already exists, the **Cancel agent creation?** dialog asks you to confirm:
* **Delete agent**: Permanently deletes the agent and discards its configuration.
* **Keep building**: Returns you to the configuration.
If you cancel before Chat finishes the first draft, the dialog offers **Discard and leave** instead of **Delete agent**, and nothing is created.
## Test the agent
After you save, Studio opens a chat with the agent. Send it a message to try it out. The traces panel beside the chat fills with the run's traces as the agent responds.
In Studio, you test a no-code agent through chat, so **Interact**, which needs an agent with a graph view, is unavailable for it.
## Change the configuration later
Editing an agent requires the `fleet-agents:update` [permission](/langsmith/fleet/access-and-oversight) and edit access on the agent. Without them, the configuration opens with a **Read-only configuration** banner.
To open an existing agent in Studio, use either path:
* In the left navigation, with **All agents** selected, click **Studio**, click **Select existing agent**, and pick the agent from the list.
* Select the agent in the agent switcher, then click **Studio** in the left navigation.
To edit an agent's configuration, use either control:
* In the Studio chat, click **Edit**.
* On the agent's Overview, click the **Agent settings** icon, then click **Edit configuration**.
Both open the configuration at the **Basics** step. Make your changes and click **Save**. **Cancel** discards them and returns you to Studio.
If you ask Chat to change the agent from elsewhere in LangSmith, it offers to open the configuration in Studio and keeps the conversation.
## Find traces and environments
Studio creates the agent with only a **Production** [environment](/langsmith/agent-environments), and its runs land there. It gains other environments only when something reports into them.
To find the agent's traces, select the agent and open **Tracing**. To see its environments, read the summary on the [agent Overview](/langsmith/navigate-agents#read-the-agent-overview).
LangSmith runs the agent on a Studio runtime, so you cannot create an Agent Server for it. The [agent environment deploy flags](/langsmith/deploy-to-agent-environment) do not apply, and the **Agent Server** link in its Overview header is disabled.
## See also
* [Test from Studio](/langsmith/studio)
* [Create an agent](/langsmith/create-an-agent)
* [Navigate agents](/langsmith/navigate-agents)
* [Agent Registry](/langsmith/agent-registry)
* [Agent environments](/langsmith/agent-environments)
* [Fleet](/langsmith/fleet)
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/build-an-agent.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# Bring Your Own Cloud (BYOC)
Source: https://docs.langchain.com/langsmith/byoc
Deploy LangSmith services and store data in your own cloud environment while LangChain operates, scales, and upgrades the infrastructure.
> [!NOTE]
>
> BYOC is only available for customers on the [Enterprise plan](https://www.langchain.com/pricing).
Bring Your Own Cloud (BYOC) lets you deploy LangSmith services and store data in your own cloud environment, while LangChain operates, scales, and upgrades the infrastructure. BYOC suits organizations that require complete sovereignty over their data, but do not want the overhead of provisioning and managing infrastructure.
BYOC uses a split responsibility model: the control plane runs in LangChain's cloud, and the data plane runs entirely in your cloud environment. For details on what LangChain manages versus what you manage, see the [BYOC shared responsibility model](/langsmith/byoc-shared-responsibility).
## Get started
To deploy LangSmith BYOC, [contact our sales team](https://www.langchain.com/contact-sales). After the LangChain team enables BYOC for your organization, follow the onboarding guide for [AWS](/langsmith/byoc-onboarding-aws), [GCP](/langsmith/byoc-onboarding-gcp), or [Azure](/langsmith/byoc-onboarding-azure) to create your first data plane.
## Regions and cloud providers
BYOC is generally available (GA) on AWS. BYOC on GCP and Azure is available in [beta](/langsmith/release-stages).
### AWS
You can deploy LangSmith BYOC in any of the following AWS regions:
| Area | AWS regions |
| - | - |
| **US** | `us-east-1`, `us-east-2`, `us-west-1`, `us-west-2` |
| **Canada** | `ca-central-1` |
| **EU** | `eu-central-1`, `eu-west-1`, `eu-west-2`, `eu-west-3`, `eu-north-1` |
| **APAC** | `ap-south-1`, `ap-northeast-1`, `ap-northeast-2`, `ap-northeast-3`, `ap-southeast-1`, `ap-southeast-2` |
The AWS control plane runs in `us-east-2`, at [aws.smith.langchain.com](https://aws.smith.langchain.com), regardless of where you place your AWS data planes. If you provision a data plane outside the US, your sensitive application data stays in that region while control plane metadata remains in the US:
| Control plane (US) | Data plane (your region) |
| - | - |
| Users, roles, billing, organization configuration, SSO configuration, API keys | Traces, experiments, datasets, insights runs, annotation queues, workspace secrets, and all other sensitive application data |
### GCP
BYOC on GCP can run in any GCP region. If the region you need is not enabled yet, contact the LangChain team to add it.
The GCP control plane runs in `us-central1`, on the LangSmith US region at [smith.langchain.com](https://smith.langchain.com?utm_source=docs\&utm_medium=cta\&utm_campaign=langsmith-signup\&utm_content=langsmith-byoc). The same split of control plane metadata and data plane application data applies. For setup, see [BYOC onboarding on GCP](/langsmith/byoc-onboarding-gcp). For what LangSmith deploys in your project, see [BYOC architecture on GCP](/langsmith/byoc-architecture-gcp).
### Azure
BYOC on Azure can run in any Azure region. If the region you need is not enabled yet, contact the LangChain team to add it.
The Azure control plane runs in `centralus`, at [azure.smith.langchain.com](https://azure.smith.langchain.com). The same split of control plane metadata and data plane application data applies. For setup, see [BYOC onboarding on Azure](/langsmith/byoc-onboarding-azure). For what LangSmith deploys in your subscription, see [BYOC architecture on Azure](/langsmith/byoc-architecture-azure).
## Available features
The following features are supported on AWS. For GCP and Azure beta feature availability, confirm your requirements with the LangChain team before deployment:
* **[Observability](/langsmith/observability)**: Tracing, projects, dashboards, and alerts.
* **[Evaluation](/langsmith/evaluation)**: Datasets, experiments, evaluators, and annotation queues.
* **[Insights](/langsmith/insights)**: Automatic analysis of traces to surface usage patterns, common agent behaviors, and failure modes.
* **[LangSmith Chat](/langsmith/chat)**: Analyze traces, threads, prompts, and evaluations from inside your workspace.
* **[Prompt engineering](/langsmith/prompt-context-hub#prompts)**: Prompts and prompt commits.
* **[LangSmith Agent Server](/langsmith/deployment)**: The LangSmith Agent Server control plane runs inside your data plane's cluster, so both the agent management layer and your agents run in your private network.
* **[Sandboxes](/langsmith/sandboxes)**: Usage through the CLI and SDK is identical to Cloud, except that you point at your data plane's endpoint.
* **[LLM Gateway](/langsmith/llm-gateway)**: Call models across providers with one LangSmith API key, with spend, rate limit, and data protection policies enforced centrally.
* **[LLM auth proxy](/langsmith/llm-auth-proxy-self-hosted)**: Enforce your own authentication flows for model invocations so provider credentials are never exposed to end users.
* **[LangSmith MCP](/langsmith/langsmith-remote-mcp)**: Connect MCP-compatible clients to LangSmith to query data.
* **[Fleet](/langsmith/fleet/index)**: Build and run no-code agents from templates, connectors, and channels.
* **[SmithDB](/langsmith/smithdb-sdk-migration)**: The purpose-built observability backend for trace data, persisting to S3 on AWS, Cloud Storage on GCP, or Blob Storage on Azure in your cloud environment. Data planes created on or after October 21, 2026 run SmithDB only. ClickHouse is deprecated, and support ends in LangSmith v0.19.
* **[Engine](/langsmith/engine)**: Automatic detection, diagnosis, and resolution of recurring issues found in production traces. On BYOC, Engine runs its models on your own model providers, and you configure your GitHub App and Slack app in the LangSmith UI. See [Engine on BYOC](/langsmith/engine-self-hosted#engine-on-byoc).
* **[Managed Deep Agents](/langsmith/python/managed-deep-agents-overview)**: Build and run deep agents with connectors, channels, and schedules.
> [!NOTE]
>
> Use Managed Deep Agents CLI and SDK v0.10 or later for BYOC. To get started, follow the [Managed Deep Agents quickstart](/langsmith/python/managed-deep-agents-quickstart).
## Prerequisites
Before LangChain can provision a data plane on AWS, you need the following:
* **A LangSmith organization on AWS**: Create one at [aws.smith.langchain.com](https://aws.smith.langchain.com), then send your organization ID to the LangChain team to enable BYOC.
* **An AWS account**: LangChain recommends a fresh account dedicated to LangSmith BYOC, but it is not required.
* **A supported region**: Pick one of the AWS regions listed above.
* **An IAM role and external ID**: LangChain provides the external ID. Copy it using the button next to the **Data Planes** header in **Settings > Data Planes**, then apply the [`langsmith-byoc-role` Terraform module](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/aws/langsmith-byoc-role) with this value to create the role LangChain assumes to provision and manage your data plane. You must use this module.
For GCP, see the [prerequisites in BYOC onboarding on GCP](/langsmith/byoc-onboarding-gcp#before-you-start).
For Azure, see the [prerequisites in BYOC onboarding on Azure](/langsmith/byoc-onboarding-azure#before-you-start).
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/byoc.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# BYOC architecture
Source: https://docs.langchain.com/langsmith/byoc-architecture-aws
How a LangSmith BYOC deployment is structured across the LangChain control plane and the data plane in your AWS account.
## Control plane and data plane model
A BYOC deployment is split across two planes. This page describes the components of each plane, how they communicate, and what LangChain provisions in your account.
This page covers BYOC on AWS. For BYOC on GCP, see [BYOC architecture on GCP](/langsmith/byoc-architecture-gcp) or [BYOC architecture on Azure](/langsmith/byoc-architecture-azure).
The **control plane** runs in LangChain's cloud and handles authentication, organization configuration, and billing. It provisions, monitors, and orchestrates your deployment, but does not hold any sensitive application data.
The **data plane** runs in your AWS account and ingests, stores, and queries all of your sensitive application data. It holds your VPC, EKS cluster, databases, and other resources.
The table below summarizes the split:
| Plane | Where it runs | What it holds |
| - | - | - |
| **Control plane** | LangChain's cloud, `us-east-2` | Authentication, organization and workspace configuration, billing and usage metadata, LangSmith API keys, and the static frontend assets |
| **Data plane** | Your AWS account, in the region you choose | Traces, prompts, datasets, evaluators, experiments, insights runs, annotation queues, agent deployments, workspace secrets, and other application data |

## Provisioned resources
LangChain provisions the following in your account:
* **VPC**: By default, a dedicated VPC spread across the region's availability zones, with private ingress. It uses VPC endpoints for private communication to AWS services, and PrivateLink for communication between the data plane and the control plane. With [BYOVPC](/langsmith/byoc-byovpc-aws), you create and manage the VPC and its base network resources instead.
* **Managed databases**: RDS for relational workloads and the SmithDB metastore, and ElastiCache for caching.
* **Storage**: S3 buckets for the blob store holding trace data, the SmithDB object store, and VPC flow logs.
* **EKS**: A private EKS cluster with managed add-ons.
* **Compute**: A system node group for platform workloads, and application node groups through Karpenter.
* **In-cluster resources**: The LangSmith Helm chart, Istio, KEDA, and other in-cluster resources.
* **IAM roles**: The roles and permissions required for Kubernetes resources.
> [!NOTE]
>
> Data planes created on or after October 21, 2026 store and query traces in [SmithDB](/langsmith/self-host-smithdb) only. ClickHouse is deprecated, and support ends in LangSmith v0.19. Data planes created with ClickHouse keep it, along with its S3 backups, until they migrate to SmithDB.
## Cross-account IAM permissions
LangChain needs cross-account IAM permissions to provision and manage resources within your AWS account. These permissions let LangChain:
* **Provision infrastructure**: Create and configure the VPC, subnets, security groups, and other networking components. With BYOVPC, the role retains workload networking permissions, while you manage the base network.
* **Manage the Kubernetes cluster**: Deploy and maintain the EKS cluster, its node groups, and cluster add-ons.
* **Create storage resources**: Provision RDS, ElastiCache, and the S3 buckets used for application data and backups.
* **Create IAM roles**: Create and configure the roles used by Kubernetes service accounts and supporting services.
* **Operate supporting services**: Deploy and manage ingress and autoscaling, and scale and upgrade LangSmith workloads.
Permissions are granted through a single cross-account IAM role that you create during onboarding by applying the [`langsmith-byoc-role` Terraform module](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/aws/langsmith-byoc-role).
For BYOVPC, disable base VPC creation permissions and scope security group creation to your supplied VPC IDs. See [Create the reduced-permission IAM role](/langsmith/byoc-byovpc-aws#create-the-reduced-permission-iam-role).
LangChain provides the external ID used in the role's trust policy. Copy it using the button next to the **Data Planes** header in **Settings > Data Planes**, and use it when applying the module. The role's `ExternalId` condition must match this value.
### How least privilege is enforced
The role is scoped to only what BYOC operations require:
* **Scoped to LangSmith-owned resources**: Wherever AWS supports resource-level scoping, permissions are restricted to resources carrying specific tags and name prefixes, so the role cannot act on unrelated resources in the account.
* **Infrastructure-scoped, not data-scoped**: The role can manage the resources that hold your data, but cannot read the data itself through AWS data APIs. It holds no `s3:GetObject` on the trace bucket, no `rds-db:connect` to PostgreSQL, and no `elasticache:Connect` to Redis.
## Networking
### Data traffic
Sensitive data does not leave your VPC, and does not pass through LangChain's VPC.
1. When a user opens `aws.smith.langchain.com`, the browser fetches the LangSmith UI bundle of HTML, JavaScript, CSS, and images from LangChain's cloud. These assets are the same code that every BYOC and Cloud tenant runs, and contain no customer data.
2. Once loaded, the application resolves the data plane endpoint for the selected workspace and routes every request for sensitive data to your VPC.
To ingest or query data programmatically, point your client at your data plane directly. The data flow is always `browser or client → data plane → back to client`.

### Connectivity
All communication between the control plane and your data plane travels over AWS PrivateLink, in both directions. LangChain does not reach your environment over the public internet. BYOC establishes two PrivateLink connections:
* **Control plane to data plane (management path)**: Exposes only your cluster's Kubernetes API server, which LangChain uses to install and reconcile the LangSmith components. Your data is not reachable over this connection.
* **Data plane to control plane (runtime path)**: The data plane calls the control plane to authenticate requests, validate API keys, resolve roles and permissions, and load organization and workspace configuration.
Container images are pulled read-only from LangChain's control plane ECR repositories through VPC endpoints.
With BYOVPC, you configure the customer-side AWS service endpoints and data-plane-to-control-plane PrivateLink endpoint. LangChain manages the endpoint service for the cluster management path. See [Configure connectivity](/langsmith/byoc-byovpc-aws#configure-connectivity).
### DNS and ingress
Traffic reaches LangSmith through an Istio ingress fronted by an AWS NLB, using Route 53 for DNS resolution. Once your data plane is created, its API URL is listed under **Settings > Data Planes** in the LangSmith UI.
## See also
* [BYOC overview](/langsmith/byoc)
* [Operations](/langsmith/byoc-operations-aws)
* [Egress for billing and operational telemetry](/langsmith/self-host-egress)
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/byoc-architecture-aws.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# BYOC architecture on Azure
Source: https://docs.langchain.com/langsmith/byoc-architecture-azure
What LangSmith BYOC deploys in your Azure subscription, how the data plane connects to the LangChain control plane, the access LangSmith gets, and how your data is protected.
BYOC on Azure runs the LangSmith data plane in a resource group in your Azure subscription, while LangChain runs the control plane in its own Azure environment in `centralus`. Your trace data stays in your subscription. This page describes what LangSmith deploys, how traffic flows, the access LangSmith gets, and how your data is protected. For BYOC on AWS, see [BYOC architecture](/langsmith/byoc-architecture-aws).
> [!NOTE]
>
> BYOC on Azure is in [beta](/langsmith/release-stages). Resources and permissions can change between releases. The values on this page are the current defaults.
To set up a data plane, follow [BYOC onboarding on Azure](/langsmith/byoc-onboarding-azure).
## Control plane and data plane
| Plane | Where it runs | What it holds |
| - | - | - |
| **Control plane** | LangChain's Azure environment, `centralus`, at [azure.smith.langchain.com](https://azure.smith.langchain.com) | Authentication, organization and workspace configuration, billing and usage metadata, LangSmith API keys, and the static frontend assets |
| **Data plane** | One resource group in your Azure subscription, in the region you choose | Traces, prompts, datasets, evaluators, experiments, annotation queues, agent deployments, workspace secrets, and other application data |

The lifecycle of a data plane is:
1. You apply the LangSmith Terraform module, which creates a resource group and a Key Vault, and gives the LangSmith BYOC application two roles on the resource group.
2. You create the data plane with the LangSmith API. The control plane checks its access, and writes the data plane's bootstrap secret to your Key Vault.
3. The control plane creates the network, AKS cluster, databases, and storage in the resource group, then installs LangSmith on the cluster.
4. The data plane reports to the control plane, and its status becomes `active`.
5. LangChain upgrades, scales, and repairs the data plane until you delete it.
## What gets deployed
LangSmith creates all data plane resources in your resource group. AKS also creates a node resource group, `-smith-aks-nodes`, and manages it.
### Network
LangSmith creates a VNet from the `vpc_cidr` range in the create request, and divides it into subnets. For a `/16` VNet:
| Subnet | Size | Use |
| - | - | - |
| AKS | `/20` | AKS nodes and pods. Outbound traffic goes through a NAT gateway with one static public IP address. |
| Private endpoints | `/24` | Shared private endpoints for PostgreSQL, Redis, Blob storage, Key Vault, and the LangSmith control plane. |
One network security group on the private endpoint subnet uses three application security groups to allow traffic from the AKS subnet only: TCP 5432 to PostgreSQL endpoints, TCP 10000 and 8500 to 8599 to Redis endpoints, and TCP 443 to Blob storage, Key Vault, and control plane endpoints.
The AKS subnet takes one sixteenth of the VNet, and the private endpoint subnet takes 1/256 of it. A `/18` VNet gives a `/22` AKS subnet and a `/26` private endpoint subnet. The Kubernetes service range comes from outside the VNet: `10.240.0.0/16`, or `192.168.0.0/16` if your VNet overlaps `10.240.0.0/16`.
Private DNS zones linked to the VNet resolve PostgreSQL, Redis, Key Vault, and Blob storage to their private endpoints.
### Compute
* **AKS**: Kubernetes 1.35 on the Standard tier. A private cluster with no public API endpoint. Local accounts and run command are disabled. Authentication uses Microsoft Entra ID with Azure RBAC for Kubernetes authorization. The OIDC issuer and workload identity are enabled.
* **Network plugin**: Azure CNI with Cilium for the data path and network policy.
* **System node pool**: Three `Standard_D2s_v6` nodes on Azure Linux, spread across the region's availability zones, reserved for critical add-ons.
* **Application nodes**: [Node auto-provisioning](https://learn.microsoft.com/azure/aks/node-autoprovision) adds and removes nodes as pods need them. It uses on-demand D, E, and F series VMs of version 5 or later. Each node pool has a CPU and memory limit. The general pool is limited to 100 vCPUs and 400 GiB of memory. SmithDB runs on its own pools, including a pool of VMs with local NVMe disks for its cache.
* **Upgrades**: AKS applies Kubernetes patch versions and node image updates automatically, in the data plane's [maintenance window](/langsmith/byoc-onboarding-azure#change-data-plane-settings).
### Data stores
| Store | Configuration |
| - | - |
| **PostgreSQL** (LangSmith) | Azure Database for PostgreSQL flexible server, PostgreSQL 18, `GP_Standard_D2ds_v4`, 32 GiB storage with autogrow. Zone-redundant high availability in regions that support it. Backups kept 7 days, without geo-redundant backup. Microsoft Entra authentication only, no password authentication, no public access. |
| **PostgreSQL** (SmithDB metastore) | A second flexible server, PostgreSQL 18, `GP_Standard_D2ds_v4`, 128 GiB storage. Same availability, backup, and access settings. |
| **Azure Managed Redis** | `Balanced_B3` with high availability, OSS cluster policy, and no persistence. TLS only, access keys disabled, no public access. |
| **Blob storage** | Storage accounts for trace payloads and attachments, and for SmithDB data. StorageV2, Standard, ZRS in regions with availability zones and LRS in other regions. HTTPS only with TLS 1.2 or later. Shared key access and public network access are disabled. |
| **Key Vault** | The vault you create. The data plane reads its bootstrap secret through a private endpoint, and refreshes it every hour. |
Data planes store and query traces in [SmithDB](/langsmith/self-host-smithdb), with its data in Blob storage and its metadata in the SmithDB PostgreSQL server. They do not run ClickHouse.
### DNS and ingress
* **Hostname**: `.azure.langchain-byoc.com`. LangSmith creates a public DNS zone for the hostname in your resource group and delegates it from the parent zone that LangChain owns.
* **Load balancer**: An Azure Standard load balancer, public or internal, as set by `public_load_balancer` in the create request.
* **Private DNS**: For an internal load balancer, the hostname resolves through a private DNS zone linked to the data plane VNet. The public zone holds certificate validation records, not the internal endpoint address. Your users and applications need DNS resolution through the private zone.
* **Ingress**: An Istio ingress gateway. HTTP redirects to HTTPS, and the gateway rejects the `TRACE`, `TRACK`, and `CONNECT` methods.
* **TLS**: cert-manager gets a Let's Encrypt certificate for the hostname through a DNS-01 challenge.
### Identities
Data plane workloads use user-assigned managed identities in your resource group, through workload identity federation with the AKS OIDC issuer. No storage keys, database passwords, or client secrets exist. Each identity has only the roles its workload needs, such as a data role on one Blob container, the PostgreSQL database role, or `Key Vault Secrets User` on the vault.
## Connectivity
| Path | Network | Authentication |
| - | - | - |
| Control plane to Azure Resource Manager | HTTPS to the public Azure Resource Manager endpoint | A Microsoft Entra token of the LangSmith BYOC application in your tenant |
| Control plane to the AKS API | Private Link. A private endpoint in LangChain's control plane network connects to your cluster's API server. The AKS API has no public endpoint. | Microsoft Entra token and Azure RBAC |
| Data plane to control plane | Private Link. A private endpoint in the data plane's shared private endpoint subnet connects to the LangSmith control plane. Private DNS zones in your resource group resolve the LangSmith API and telemetry hostnames to it. | A data plane token |
| Your users and applications to the data plane | The public or internal load balancer | LangSmith API keys and sign-in through the control plane |
The data plane pulls LangSmith container images from LangChain's container registry through the NAT gateway.
The data plane sends operational data to the control plane, such as authentication requests, health metrics, and usage. As on AWS, the LangSmith UI loads static assets from the control plane and sends every request for application data to your data plane. See [Data traffic](/langsmith/byoc-architecture-aws#data-traffic).
## Access and permissions
LangChain manages your data plane through one multi-tenant Microsoft Entra application, **LangSmith BYOC**. You add its service principal to your tenant and give it roles on each data plane resource group. The application requests no Microsoft Graph permissions.
The control plane holds no stored credential for your tenant. It runs on AKS, and workload identity federation exchanges a pod token for a token of the LangSmith BYOC application in your tenant. Only the control plane services that provision and manage data planes can get that token.
### Role assignments
| Role | Scope | Why LangSmith needs it |
| - | - | - |
| `langsmith-byoc--` (custom) | The data plane resource group | Create, update, and delete the data plane resources, write the bootstrap secret to the Key Vault, and approve the private endpoints to the AKS API and the data stores. The role names each action it allows. |
| Same custom role with `reduced_access = true` | The data plane resource group | Reduces the role actions in place once the data plane is active. Upgrades, scales, and repairs the data plane, but cannot delete it, its data stores, or its network, and cannot create role assignments. |
| `User Access Administrator` | The data plane resource group | Give roles to the data plane's managed identities, and create the custom Blob data roles. Terraform deletes this assignment when you set `reduced_access = true`. |
| `Azure Kubernetes Service RBAC Cluster Admin` | The data plane's AKS cluster | Install and upgrade LangSmith on the cluster. LangSmith creates this role assignment itself. |
The [Terraform module](https://github.com/langchain-ai/terraform/blob/main/modules/byoc/azure/langsmith-byoc-access/main.tf) creates one custom role per data plane, with the resource group as its only assignable scope. Both role assignments carry your organization's external ID as their description. LangSmith refuses to create a data plane when they do not match, which binds the resource group to your LangSmith organization.
### What LangChain can and cannot access
| Item | LangChain access |
| - | - |
| Resources in the data plane resource group | Create, change, and delete |
| Role assignments in the data plane resource group | Create and delete |
| The data plane's AKS cluster | Cluster admin |
| Other resource groups and resources in your subscription | None |
| The AKS node resource group | None. AKS manages it. |
| Your Microsoft Entra directory and Microsoft Graph | None |
| Data in Blob storage, PostgreSQL, and Redis | No data role. Until you set `reduced_access = true`, `User Access Administrator` can grant one. Your Activity Log records every role assignment. |
| Key Vault secret values | Write through Azure Resource Manager. No role to read secrets. |
To remove LangSmith's access, see [Remove LangSmith access](/langsmith/byoc-onboarding-azure#remove-langsmith-access).
## Data protection
### Encryption
| Store | At rest | In transit |
| - | - | - |
| Blob storage | Microsoft-managed keys | HTTPS only, TLS 1.2 or later |
| PostgreSQL | Microsoft-managed keys | TLS, with Microsoft Entra authentication |
| Redis | Microsoft-managed keys | TLS only |
| Key Vault | Microsoft-managed keys | TLS, through a private endpoint |
| AKS disks | Microsoft-managed keys | Traffic stays in the cluster |
### Retention
* **Trace payloads**: Blob lifecycle rules delete each object when its retention tier ends. The defaults are 14 days for short-lived traces and 400 days for long-lived traces. You can change both with the `ttl` setting. See [Change data plane settings](/langsmith/byoc-onboarding-azure#change-data-plane-settings).
* **Blob versions**: Versioning is enabled, and previous versions are deleted 7 days after they are created. Deleted containers can be restored for 7 days. Blob soft delete is disabled, so expired traces do not outlive their retention tier.
* **PostgreSQL**: Automated backups are kept for 7 days in the same region.
* **Redis**: No persistence and no backups. Redis holds only short-lived data.
### Deletion
When you delete a data plane, LangSmith deletes the AKS cluster, PostgreSQL, Redis, and the network resources. It keeps your resource group, your Key Vault, and the Blob storage accounts that hold trace and SmithDB data. For details, see [Delete a data plane](/langsmith/byoc-onboarding-azure#delete-a-data-plane).
## Scaling and operations
LangChain operates your Azure data plane after provisioning. See [BYOC operations on Azure](/langsmith/byoc-operations-azure) for autoscaling, default instance sizes, upgrades, and maintenance windows. For estimated infrastructure costs, see [Azure data plane cost estimate](/langsmith/byoc-data-plane-cost-azure).
### Logs
Your Azure Activity Log records LangSmith calls to Azure Resource Manager. To collect resource and network logs, configure diagnostic settings and VNet flow logs in your subscription. See [Auditing](/langsmith/byoc-operations-azure#auditing) for the logs available and your responsibilities.
## See also
* [BYOC overview](/langsmith/byoc)
* [BYOC onboarding on Azure](/langsmith/byoc-onboarding-azure)
* [BYOC shared responsibility model](/langsmith/byoc-shared-responsibility)
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/byoc-architecture-azure.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# BYOC architecture on GCP
Source: https://docs.langchain.com/langsmith/byoc-architecture-gcp
What LangSmith BYOC deploys in your GCP project, how the data plane connects to the LangChain control plane, and the access LangSmith gets in your project.
BYOC on GCP runs the LangSmith data plane in your GCP project, while LangChain runs the control plane in its own GCP environment in `us-central1`. Your trace data stays in your project. This page describes what LangSmith deploys, how traffic flows, and the access LangSmith gets in your project. For BYOC on AWS, see [BYOC architecture](/langsmith/byoc-architecture-aws).
> [!NOTE]
>
> BYOC on GCP is in [beta](/langsmith/release-stages). Resources and permissions can change between releases. The values on this page are the current defaults.
To set up a data plane, follow [BYOC onboarding on GCP](/langsmith/byoc-onboarding-gcp).

## What gets deployed
LangSmith creates the following in your GCP project:
* **Network**: A VPC with a GKE subnet, Cloud NAT with a static egress IP address, and private services access.
* **GKE**: A regional, private GKE Standard cluster with Workload Identity and shielded nodes.
* **Cloud SQL for PostgreSQL**: One instance for LangSmith and one for the SmithDB metastore. Private IP only, high availability, TLS, and IAM database login, so no database password exists.
* **Memorystore for Redis Cluster**: TLS and IAM auth, reached through Private Service Connect.
* **Cloud Storage**: A bucket with public access prevention enforced.
* **DNS and ingress**: Cloud DNS zones for the data plane hostname, cert-manager with Let's Encrypt, External Secrets with Secret Manager, and an Istio ingress gateway.
* **Private Service Connect**: An endpoint to LangSmith, so the data plane reaches the control plane without the internet.
> [!NOTE]
>
> GCP data planes store and query traces in [SmithDB](/langsmith/self-host-smithdb), and do not run ClickHouse.
## How traffic flows
1. **Users to the data plane**: Users reach `https://.gcp.langchain-byoc.com`. The hostname points at the Istio ingress gateway on a public or internal load balancer, which you choose when you create the data plane.
2. **Data plane to control plane**: The data plane reaches the LangSmith API at `us-central1.p.api.smith.langchain.com` through a Private Service Connect endpoint in its VPC. This path carries the heartbeat, sign-in and auth calls, and telemetry. It does not use the internet.
3. **Control plane to GCP APIs**: The control plane acts as one LangChain identity, `byoc-crossplane@langchain-prod.iam.gserviceaccount.com`. It impersonates your provisioner service account, so every GCP API call in your project is made as the provisioner. The LangSmith API writes the data plane secrets to Secret Manager, and Crossplane creates, updates, and deletes the other resources.
4. **Control plane to GKE**: Crossplane installs and updates the in-cluster resources through the cluster's DNS-based control plane endpoint. Each request needs a Google token for an identity with access to the cluster. Crossplane's Helm and Kubernetes providers cannot impersonate the provisioner, so the control plane service account itself holds `roles/container.admin`. Your Terraform module grants it only on GKE clusters tagged `managed_by: langsmith`, and LangSmith tags each data plane cluster when it creates it.
5. **DNS delegation**: The control plane writes the NS delegation for the data plane hostname in LangChain's parent zone, `gcp.langchain-byoc.com`. This record is in LangChain's project, not yours.
## Create and delete lifecycle
1. Your Terraform creates the provisioner service account and its roles, creates the `managed_by: langsmith` tag, and lets the control plane service account impersonate the provisioner.
2. You create the data plane with the API.
3. The control plane checks its access, writes the data plane secrets to Secret Manager, and hands the data plane to Crossplane.
4. Crossplane builds the network, GKE, Cloud SQL, Memorystore, Cloud Storage, and DNS, tags the GKE cluster and the Cloud SQL instances `managed_by: langsmith`, then installs LangSmith.
5. The data plane sends a heartbeat, and LangSmith shows it as `active`.
6. When you delete the data plane, the control plane lifts deletion protection, Crossplane deletes the resources, and the control plane deletes the secrets. The Cloud Storage bucket and the Cloud SQL backups stay. For more information, see [What teardown keeps](/langsmith/byoc-onboarding-gcp#what-teardown-keeps).
## Network
All subnets come from the `vpc_cidr` you choose, a range from `/16` to `/18`. All have Private Google Access on.
| Range | Size | Use |
| - | - | - |
| GKE subnet | First `/20` | GKE nodes. Pods use the secondary range `192.168.0.0/18`, and services use `192.168.64.0/18`. |
| Endpoints subnet | `/24` | Private Service Connect endpoints for Memorystore. |
| Control plane endpoint subnet | `/24` | The Private Service Connect endpoint to the LangSmith control plane, in `us-central1`. |
| Private services access | `/20` | Peered to Google services for the Cloud SQL private IP. |
The VPC is one regional VPC with custom subnets. Cloud NAT uses one static external IP address, so you can allowlist the data plane, and logs errors only.
## Storage
None of the data stores has a public endpoint.
| Store | Configuration |
| - | - |
| Cloud SQL for PostgreSQL | Enterprise edition, regional with a standby in another zone, with automatic storage growth. Private IP only. TLS required. IAM database login, so no application password exists. Automated backups (7 kept) and point-in-time recovery (7 days). Deletion protection on. At teardown, Cloud SQL takes a final backup, kept for 365 days, and keeps the automated backups. Two instances: one holds the LangSmith database, the other the SmithDB metastore. |
| Memorystore for Redis Cluster | One shard with one replica. IAM auth and TLS. Reached through a Private Service Connect endpoint. Deletion protection on. |
| Cloud Storage | One regional bucket for LangSmith blobs and SmithDB data. Uniform bucket-level access, with public access prevention enforced. Lifecycle rules delete objects under the TTL prefixes. Teardown keeps the bucket and its objects. |
| Secret Manager | Regional secrets for the data plane configuration and Postgres, plus one for sandboxes when they are enabled. Labeled with the data plane ID. The control plane writes them at create and deletes them at teardown. |
## GKE and compute
* **Cluster**: A regional GKE Standard cluster on the `REGULAR` release channel. Nodes repair and upgrade automatically.
* **Private cluster**: Private nodes and a private IP endpoint, with global access inside the VPC.
* **DNS-based control plane endpoint**: Accepts external traffic, and requires IAM: a Google token with `container.clusters.connect`, then Kubernetes RBAC. The kubeconfig that LangSmith keeps holds no credentials.
* **Workload Identity**: Enabled with the GKE metadata server on every node pool, so pods never see node credentials.
* **Dataplane V2**: Enforces Kubernetes NetworkPolicy.
* **Shielded nodes**: Secure Boot and integrity monitoring on every pool, with no kubelet read-only port.
* **Security posture**: Basic image vulnerability scanning. System metrics only, with Managed Service for Prometheus off.
* **Deletion protection**: On. Teardown lifts it first.
* **Node service accounts**: GKE's default node pool is removed, and no pool runs as the project's default Compute Engine service account.
The cluster runs a system node pool for platform workloads, and node auto-provisioning for the application. With `sandboxes_enabled`, it also runs a sandbox node pool with nested virtualization, tainted for sandbox hosts only and with its own node service account. Sandboxes cannot reach the metadata server.
Not on by default: application-layer Secrets encryption with your Cloud KMS key, Binary Authorization, and Confidential GKE Nodes.
## In-cluster resources
* **LangSmith**: The LangSmith Helm chart, with SmithDB. Every LangSmith pod runs as the workload service account through Workload Identity. SmithDB reaches its metastore instance through a Cloud SQL Auth Proxy sidecar.
* **KEDA**: Autoscales the LangSmith services.
* **External Secrets Operator**: A ClusterSecretStore on Secret Manager, usable only from the LangSmith namespace. It syncs the data plane secrets every hour.
* **cert-manager and trust-manager**: cert-manager uses a Let's Encrypt issuer with DNS-01 challenges in the data plane zones only. trust-manager builds one CA bundle with the public CAs and the Cloud SQL and Memorystore CAs.
* **Istio**: Base, istiod, and the ingress gateway.
* **Postgres setup job**: Creates the databases and the IAM database user, and grants it the database owner roles. It keeps no password.
## DNS and ingress
* **Hostname**: `.gcp.langchain-byoc.com`. LangChain owns the parent zone.
* **Public zone**: A public Cloud DNS zone for the hostname in your project, which LangChain delegates from the parent zone.
* **Public endpoint**: An external passthrough load balancer. The hostname resolves on the internet.
* **Internal endpoint** (default): An internal passthrough load balancer in the GKE subnet, with global access. The address record is in a private zone, visible only in the data plane VPC, so the private address is never published. The public zone stays for the delegation and the certificate challenges.
* **TLS**: A Let's Encrypt certificate. HTTP redirects to HTTPS.
* **Gateway hardening**: The gateway normalizes paths before routing, rejects request bodies over 100 MiB, limits requests per gateway pod, and denies `TRACE`, `TRACK`, and `CONNECT`.
* **Control plane paths**: Paths such as sign-in are forwarded to the control plane over Private Service Connect.
## Private Service Connect
* LangChain publishes a service attachment in `us-central1`. LangSmith automatically adds your project to its accept list during data plane provisioning. No manual project allowlisting is required.
* The data plane creates the endpoint: an internal address in the control plane endpoint subnet, and a forwarding rule to the service attachment. Data planes in other regions reach the endpoint through global access.
* A private DNS zone for `us-central1.p.api.smith.langchain.com`, visible only in the data plane VPC, points at the endpoint.
* Private Service Connect carries traffic from the data plane to the control plane only. The control plane reaches the cluster through the GKE DNS-based endpoint.
## Access and permissions
### Terraform module resources
The [`langsmith-byoc-service-account` Terraform module](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/gcp/langsmith-byoc-service-account) creates the following in your project:
| Resource | What it does |
| - | - |
| `langsmith-byoc-provisioner` service account | The service account LangSmith provisions as. Its description is your external ID. |
| Token Creator on the provisioner | Lets `byoc-crossplane@langchain-prod.iam.gserviceaccount.com` impersonate the provisioner. No other LangChain identity is trusted. |
| `langsmithByocProvisioner` custom role | The permissions to create, update, and delete data plane resources that a name condition cannot limit, bound on the project. |
| `langsmithByocNamed` custom roles | One role per resource kind: Cloud SQL instances, GKE clusters, networks, subnets, Cloud Routers, addresses, forwarding rules, Memorystore for Redis clusters, service connection policies, Cloud Storage, and Secret Manager. Each is bound with an IAM condition on the resource name, so the provisioner can create, change, and delete only resources whose names start with `langsmith-`, and secrets whose IDs start with `ls-`. |
| `managed_by: langsmith` tag | A project tag. The provisioner can bind it only to GKE clusters and Cloud SQL instances whose names start with `langsmith-`. |
| `roles/container.admin` for the control plane | Granted to `byoc-crossplane@langchain-prod.iam.gserviceaccount.com` with the condition that the cluster has the `managed_by: langsmith` tag. It covers the GKE API and the Kubernetes API. |
| `langsmithByocClusterConnect` custom role | `container.clusters.connect` for the control plane service account, limited to clusters whose names start with `langsmith-`. The DNS-based endpoint checks it without the cluster's tags. Connecting gives no access inside a cluster. |
| `langsmithByocProjectIamGranter` custom role | `resourcemanager.projects.getIamPolicy` and `setIamPolicy`. An IAM condition lets the provisioner add or remove only these project roles: `artifactregistry.reader`, `cloudsql.admin`, `cloudsql.client`, `cloudsql.instanceUser`, `container.defaultNodeServiceAccount`, `redis.dbConnectionUser`, and `secretmanager.secretAccessor`. The condition limits which roles, not to whom. |
| `langsmithByocServiceAccountUser` custom role | `iam.serviceAccounts.actAs`, so GKE nodes and workloads can run as the data plane service accounts. IAM does not evaluate conditions for `actAs`, so this binding has none. |
| Project APIs | With `enable_apis` (default `true`): Compute Engine, GKE, Cloud DNS, IAM, IAM Service Account Credentials, Network Connectivity, Memorystore for Redis, Secret Manager, Service Directory, Service Networking, and Cloud SQL Admin. |
The custom role ID prefix is `langsmithByoc` by default. Set `custom_role_id_prefix` if the project already has roles with those IDs. Apply one copy of the module per project, because it creates the project's `managed_by` tag key. For the full permission list of each role, see the module's [README](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/gcp/langsmith-byoc-service-account) and source.
### Checks at create
The control plane stops the create when one of these checks fails:
* It can impersonate the provisioner, and the provisioner has `resourcemanager.projects.get`, `secretmanager.secrets.create`, and `secretmanager.secrets.delete` on the project. It runs the same check before a delete.
* The provisioner is in the data plane project.
* The provisioner's description is your organization's external ID. Every customer's provisioner trusts the same control plane service account, so this check stops another LangSmith organization from using your provisioner.
* With `byoiam_enabled`, the project has the six service accounts listed in [Data plane service accounts](#data-plane-service-accounts).
### Data plane service accounts
Crossplane creates one Google service account per workload class for each data plane, and binds it to its Kubernetes service accounts with Workload Identity (`roles/iam.workloadIdentityUser`). With `byo_iam`, your Terraform creates them with fixed IDs, and all data planes in the project share them.
| Service account (default / `byo_iam`) | Used by | Roles |
| - | - | - |
| `lsa-` / `langsmith-workload` | LangSmith application and SmithDB | Project: `redis.dbConnectionUser`, `cloudsql.client`, `cloudsql.instanceUser`. Bucket: `storage.objectAdmin`. Token Creator on itself, to sign Cloud Storage URLs. |
| `lse-` / `langsmith-external-secrets` | External Secrets Operator | `secretmanager.secretAccessor`, with a condition for each of the data plane's secret IDs. With `byo_iam`: secrets whose IDs start with `ls-`. |
| `lsc-` / `langsmith-cert-manager` | cert-manager | `dns.admin` on the data plane's DNS zones only, never on the project. |
| `lsp-` / `langsmith-postgres-setup` | Postgres setup job | Project: `cloudsql.admin`, only on Cloud SQL instances tagged `managed_by: langsmith`. With `byo_iam`: `cloudsql.users.create`, `list`, and `update` (custom role `langsmithByocPostgresSetup`) on tagged instances, and `cloudsql.viewer` on instances whose names start with `langsmith-`. |
| `lsn-` / `langsmith-node` | GKE nodes | Project: `container.defaultNodeServiceAccount`, `artifactregistry.reader`. |
| `lsh-` / `langsmith-sandbox-host` | Sandbox nodes, with sandboxes enabled | Project: `container.defaultNodeServiceAccount`, `artifactregistry.reader`, `redis.dbConnectionUser`. Bucket: `storage.objectAdmin` on the `smithbox/` managed folder only. |
Your Terraform module grants `byoc-crossplane@langchain-prod.iam.gserviceaccount.com` its `roles/container.admin`, on tagged clusters only, with or without `byo_iam`. Crossplane makes no grant to it.
With `byo_iam`, do not give your own secrets in the project IDs that start with `ls-`, or External Secrets can read them.
### Bring your own IAM
Set `byo_iam = true` in the module before you create data planes in the project, and create the data plane with `byoiam_enabled` set to `true`. Use it when the project also holds resources that are not LangSmith's. Do not change `byo_iam` while data planes exist. With `byo_iam`:
* Your Terraform creates the six service accounts and their project roles.
* The provisioner role loses `iam.serviceAccounts.create`, `delete`, `update`, and `setIamPolicy`. It keeps `get`, `list`, and `getIamPolicy`.
* The module does not create the `ProjectIamGranter` or `ServiceAccountUser` roles, so the provisioner cannot change the project IAM policy.
* The provisioner gets `iam.serviceAccounts.getIamPolicy` and `setIamPolicy` (custom role `langsmithByocServiceAccountIamManager`) on the six accounts only, to add the Workload Identity bindings. It gets `roles/iam.serviceAccountUser` on `langsmith-node` and `langsmith-sandbox-host` only.
* LangSmith still grants `dns.admin` on the data plane zones to `langsmith-cert-manager`, because the zones do not exist before the data plane.
### What LangChain can and cannot access
* **Can**: Create, change, and delete the data plane resources through the provisioner, which for most kinds means resources whose names start with `langsmith-`. Read the project's IAM policy and service accounts. Act as cluster admin on GKE clusters tagged `managed_by: langsmith`, through `container.admin`. This is how LangSmith installs and upgrades the application.
* **Cannot, by role**: The provisioner has no `storage.objects.get`, so it cannot read objects in the bucket. It can list and delete them. It has no `secretmanager.versions.access`, so it cannot read secrets. It has no permissions on Cloud SQL databases or users, no database login permissions, and no permissions outside the project. The Postgres setup account's Cloud SQL permissions apply only to the data plane's instances, which LangSmith tags `managed_by: langsmith`, so it cannot manage users or settings on your other Cloud SQL instances.
These are limits of the provisioner's roles, not deny policies. The provisioner can still set IAM policies on `langsmith-` buckets, on every DNS zone and Artifact Registry repository in the project and, without `byo_iam`, on service accounts.
> [!WARNING]
>
> Use a project that holds only LangSmith resources. Name conditions limit the provisioner to `langsmith-` resources for most kinds, but not everywhere. If the project also holds other resources, `byo_iam` removes the service account and project role grant access below, but not the rest:
>
> * **Service accounts**: IAM checks a service account by its numeric unique ID, so a condition cannot limit service account permissions by account name. Without `byo_iam`, the provisioner's `setIamPolicy` and `actAs` apply to every service account in the project, so it could act as any of them.
> * **Project role grants**: Without `byo_iam`, the provisioner can grant the project roles listed above to any principal, including itself. With `cloudsql.admin` or `secretmanager.secretAccessor`, it could reach every Cloud SQL instance or secret in the project.
> * **DNS zones and Artifact Registry repositories**: The provisioner can change, delete, and set the IAM policy of any DNS zone and its records, and any Artifact Registry repository, in the project.
> * **Your own `langsmith-` resources**: The name conditions cannot tell your resources from LangSmith's if their names also start with `langsmith-`.
### Remove access
To remove LangChain's access to your project:
* **Recommended**: Delete the data plane in LangSmith. Wait until it is gone, then run `terraform destroy` if no other data planes use the project.
* **Immediate**: Remove the LangChain grants: the Token Creator binding on the provisioner (or the provisioner itself), and the tag-conditioned `roles/container.admin` and `langsmithByocClusterConnect` grants to `byoc-crossplane@langchain-prod.iam.gserviceaccount.com`. LangSmith then cannot change or delete the data plane. The resources stay, and you must delete them yourself.
## See also
* [BYOC onboarding on GCP](/langsmith/byoc-onboarding-gcp)
* [BYOC overview](/langsmith/byoc)
* [BYOC shared responsibility model](/langsmith/byoc-shared-responsibility)
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/byoc-architecture-gcp.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# BYOC billing
Source: https://docs.langchain.com/langsmith/byoc-billing-aws
How LangSmith BYOC is billed across your AWS account and your LangSmith contract, which AWS services carry cost, and the account quotas to check before you deploy.
## Cost model
A BYOC deployment produces two separate bills:
* **AWS**: The data plane runs in your own AWS account, so AWS bills you directly for the infrastructure it creates.
* **LangSmith**: LangChain invoices you based on your contract and usage.
LangSmith BYOC can integrate with AWS Marketplace.
## Billable AWS services
The following resources contribute to data plane costs in your account. AWS charges for them at its own rates, independently of your LangSmith contract. With [BYOVPC](/langsmith/byoc-byovpc-aws), networking costs depend on the gateways, endpoints, and logging you configure and manage.
| Service | What it covers | Billing basis |
| - | - | - |
| **Amazon EKS** | The Kubernetes control plane for the data plane cluster | Per cluster-hour |
| **Amazon EC2** | Nodes running in the EKS cluster | Per instance-hour |
| **Amazon RDS** | Instances for relational workloads. SmithDB uses an Aurora PostgreSQL Serverless v2 metastore. | Per instance-hour, including Multi-AZ, plus storage, backups, and snapshots. Aurora is billed per ACU-hour, plus storage and I/O. |
| **Amazon ElastiCache** | Redis instance for caching and queueing workloads | Per node-hour |
| **Amazon S3** | Buckets for LangSmith workloads, the SmithDB object store, and VPC flow logs. Data planes that still run ClickHouse also store its backups here. | Storage, requests, and data transfer |
| **Amazon EBS** | Node root disks, including the SmithDB node boot volumes, and the ClickHouse volumes on data planes that still run it | Per GB-month, plus provisioned IOPS and throughput above the gp3 baseline |
| **Regional NAT gateway** | Outbound egress from the private subnets | Per hour, plus data processed |
| **Elastic Load Balancing** | Two network load balancers: one in front of the Istio ingress, and one for the EKS API PrivateLink endpoint | Per NLB-hour, plus NLCUs |
| **AWS PrivateLink** | The interface VPC endpoints the data plane uses | Per interface endpoint per availability zone-hour, plus data processed |
| **AWS Lambda and Amazon EventBridge** | Reconciliation of the PrivateLink endpoints | Per invocation, and per event published |
| **Amazon CloudWatch Logs** | EKS control plane logs | Ingestion and storage |
| **VPC flow logs** | Delivery of flow logs to S3 | Per GB delivered |
| **Amazon Route 53** | Private hosted zone | Per hosted zone-month, plus queries |
| **AWS Secrets Manager** | RDS-generated master secrets, and the application secrets LangSmith references | Per secret-month, plus API calls |
### Data transfer
There are a few data transfer cost drivers in BYOC:
* Cross-availability-zone traffic, since the data plane runs [highly available](/langsmith/byoc-operations-aws#high-availability) across zones.
* Egress through the NAT gateway, for example if calling model providers, or an external API through a webhook.
* Public IPv4 addresses, which AWS charges per address-hour. The regional NAT gateway uses one, and an internet-facing load balancer uses another when public ingress is enabled.
## Service limits
AWS enforces default quotas per region and per account. Defaults are often too low for production on new or lightly used accounts, so check the following before you deploy, and request increases where needed:
* **EC2 vCPU quotas**: At minimum, 64 vCPU of On-Demand capacity, covering the 3 system nodes and Karpenter workloads.
* **Subnet IP capacity**: Room for pods, nodes, EKS ENIs, load balancers, and at least 12 interface endpoints per application subnet.
* **VPC endpoints**: Capacity for 12 interface endpoints and 1 S3 gateway endpoint.
* **Load balancers**: Capacity for 2 Network Load Balancers and their target groups.
* **EKS**: Capacity for 1 EKS cluster.
* **Storage**: EBS volume and storage capacity for node disks and other persistent workloads, plus ClickHouse and ZooKeeper on data planes that still run them.
* **Databases**: Capacity for 2 RDS instances, one Aurora cluster for the SmithDB metastore (writer and reader), and 3 ElastiCache replicas.
* **PrivateLink and networking**: Capacity for 1 endpoint service and 1 regional NAT gateway.
For current default values, see [AWS service quotas](https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html).
With BYOVPC, account for existing resource usage and your chosen endpoint and egress configuration when checking quotas. Your supplied subnets must also meet the [subnet size and available IP requirements](/langsmith/byoc-byovpc-aws#configure-the-vpc-and-subnets).
If provisioning stalls or fails, an exhausted quota is a common cause, alongside missing permissions and service control policies. See [What happens if provisioning fails?](/langsmith/byoc-faq).
## See also
* [BYOC architecture](/langsmith/byoc-architecture-aws)
* [Operations](/langsmith/byoc-operations-aws)
* [BYOC FAQ](/langsmith/byoc-faq)
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/byoc-billing-aws.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# Bring your own IAM roles (AWS)
Source: https://docs.langchain.com/langsmith/byoc-byoiam-aws
Create customer-managed IAM roles for LangSmith BYOC, remove IAM management permissions from the provisioning role, and deploy with existing roles.
Bring your own IAM (BYOIAM) lets you create and manage the AWS IAM resources used by LangSmith BYOC data planes. You control the roles, policies, and permissions boundaries while LangChain provisions and operates the data plane using those resources.
If you want LangChain to manage IAM resources, follow the standard [BYOC onboarding guide](/langsmith/byoc-onboarding-aws).
## Before you begin
Complete the [BYOC prerequisites](/langsmith/byoc#prerequisites) to have a LangSmith org, with BYOC enabled.
## Create the IAM resources
The [`byoiam` Terraform module](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/aws/byoiam) creates the shared data plane roles, policies, and Karpenter instance profile. Apply it once per AWS account for all regions and data planes that use these roles.
To create the IAM resources:
1. Configure the AWS provider for the account where you plan to deploy your data planes.
2. Add the module to your Terraform configuration. Set `regions` to the [supported AWS regions](/langsmith/byoc#regions-and-cloud-providers) where the roles need to operate.
3. (Optional) Set `permissions_boundary_arn` to the ARN of your IAM permissions boundary policy. The module applies it to all roles it creates, except service-linked roles.
4. Use `service_linked_roles_to_create` to create missing service-linked roles. None are created by default. Omit existing roles, or import them into Terraform first.
5. Initialize Terraform, review the plan, and apply it in your account.
The following configuration creates shared IAM resources for two regions:
```hcl theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
module "byoiam" {
source = "github.com/langchain-ai/terraform//modules/byoc/aws/byoiam?ref=main"
regions = ["us-east-1", "us-west-1"]
}
```
### Use custom IAM names
By default, the module names its resources with a `byoc-smith-` prefix. If your organization enforces an IAM naming convention, such as a mandatory prefix, override the names with these inputs:
* **`role_names`**: A map of custom role names, keyed by role purpose. The keys match the module's `role_names` output, such as `eks-cluster-role` or `workload-iam-role`. Roles you omit keep their default names.
* **`karpenter_instance_profile_name`**: A custom name for the Karpenter node instance profile.
* **`karpenter_controller_policy_name`**: A custom name for the Karpenter controller policy.
Each role name must be unique and at most 64 characters.
```hcl theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
module "byoiam" {
source = "github.com/langchain-ai/terraform//modules/byoc/aws/byoiam?ref=main"
regions = ["us-east-1"]
permissions_boundary_arn = "arn:aws:iam:::policy/"
role_names = {
eks-cluster-role = "ACME-langsmith-eks-cluster"
eks-node-role = "ACME-langsmith-eks-node"
ebs-csi-role = "ACME-langsmith-ebs-csi"
karpenter-node-role = "ACME-langsmith-karpenter-node"
karpenter-controller-role = "ACME-langsmith-karpenter-controller"
postgres-monitoring-role = "ACME-langsmith-postgres-monitoring"
smithdb-metastore-monitoring-role = "ACME-langsmith-smithdb-metastore-monitoring"
workload-iam-role = "ACME-langsmith-workload"
postgres-setup-iam-role = "ACME-langsmith-postgres-setup"
smithdb-iam-role = "ACME-langsmith-smithdb"
smithdb-setup-iam-role = "ACME-langsmith-smithdb-setup"
external-secrets-iam-role = "ACME-langsmith-external-secrets"
lbc-role = "ACME-langsmith-lbc"
clickhouse-backup-iam-role = "ACME-langsmith-clickhouse-backup"
privatelink-lambda-role = "ACME-langsmith-privatelink-lambda"
juicefs-csi-iam-role = "ACME-langsmith-juicefs-csi"
playground-iam-role = "ACME-langsmith-playground"
}
karpenter_instance_profile_name = "ACME-langsmith-karpenter-node"
karpenter_controller_policy_name = "ACME-langsmith-karpenter-controller"
}
```
Retain the `module.byoiam.role_names` and `module.byoiam.karpenter_instance_profile_name` outputs. You paste them into the data plane form when you [create the data plane](#deploy-the-data-plane-with-existing-roles). You do not paste the Karpenter controller policy name into LangSmith.
## Remove IAM management permissions from the provisioning role
The [`langsmith-byoc-role` Terraform module](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/aws/langsmith-byoc-role) creates the cross-account role LangChain assumes to manage your data plane.
After creating the IAM resources, configure the provisioning role:
1. Copy the external ID using the button next to the **Data Planes** header in **Settings > Data Planes**. Pass it to the role module as `external_id`. The role's trust policy must use this value in its `ExternalId` condition.
2. Set `allow_iam_management_permissions = false` in your `langsmith-byoc-role` module configuration.
3. Pass the outputs of the `byoiam` module, which you applied in [Create the IAM resources](#create-the-iam-resources), to the role module:
```hcl theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
module "langsmith_byoc_role" {
# ... other inputs ...
# Outputs from the byoiam module
byoiam_role_arns = values(module.byoiam.role_arns)
byoiam_instance_profile_name = module.byoiam.karpenter_instance_profile_name
byoiam_karpenter_controller_policy_arn = module.byoiam.karpenter_controller_policy_arn
}
```
4. Review and apply the Terraform changes. Retain the `crossplane_role_arn` output for data plane creation.
The provisioning role's default permissions match only the default `byoc-smith-` names. With [custom IAM names](#use-custom-iam-names), these inputs are required. They grant read and `iam:PassRole` access on the exact ARNs. With default names, they are redundant but harmless.
Setting `allow_iam_management_permissions = false` changes the role's permissions:
* **Removed**: IAM creation, modification, and deletion permissions, including service-linked role creation.
* **Retained**: IAM read permissions, scoped `iam:PassRole`, and `iam:SimulatePrincipalPolicy` to use and validate your existing resources.
Enabling `allow_delete_permissions` does not restore IAM management permissions.
If you also want to [bring your own VPC](/langsmith/byoc-byovpc-aws), set `allow_vpc_creation_permissions = false` and supply the VPC ID in `vpc_ids`.
## Deploy the data plane with existing roles
> [!WARNING]
>
> You must use the [`byoiam` Terraform module](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/aws/byoiam) to create the exact IAM roles required by LangSmith. LangSmith performs extensive validation of these IAM resources before deploying the data plane.
The **Use existing IAM roles** checkbox configures the data plane to use the IAM resources you created.
To deploy the data plane:
1. Go to **Settings > Data Planes** and create a data plane.
2. Supply the name, AWS region, network configuration, and load balancer access described in [BYOC onboarding](/langsmith/byoc-onboarding-aws). Choose a region included in the module's `regions` input.
3. Use the provisioning role's `crossplane_role_arn` output for the **AWS IAM role ARN**.
4. Select **Use existing IAM roles**.
5. If you set [custom IAM names](#use-custom-iam-names), paste the values of `module.byoiam.role_names` and `module.byoiam.karpenter_instance_profile_name` into the data plane form.
6. Submit the request.
Continue with provisioning and private connectivity in the onboarding guide.
## See also
* [BYOC onboarding](/langsmith/byoc-onboarding-aws)
* [Bring your own VPC on AWS](/langsmith/byoc-byovpc-aws)
* [BYOC shared responsibility model](/langsmith/byoc-shared-responsibility)
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/byoc-byoiam-aws.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# Bring your own keys (CMK)
Source: https://docs.langchain.com/langsmith/byoc-byok-aws
Encrypt a new LangSmith BYOC data plane on AWS with your own AWS KMS keys, using one key for every service or a separate key per service.
By default, AWS-managed keys encrypt the data plane at rest. You can instead use your own symmetric [AWS KMS keys](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms_keys), set when you create the data plane:
| Service | What the key encrypts |
| - | - |
| `s3` | The data plane's S3 buckets. |
| `ebs` | Node volumes. |
| `eks` | Kubernetes secrets in the EKS cluster. |
| `rds` | RDS storage, the RDS master user secrets, and Performance Insights data. |
| `elasticache` | ElastiCache data at rest. |
> [!NOTE]
>
> One key can encrypt every service. In the UI, choose **One key for all services**. In Terraform, set the same key ARN for each service in `cmk_service_key_arns`. You can also use a separate key per service.
Every service is optional: a service without a key keeps AWS-managed encryption. Keys must be in the data plane region. They can be in the data plane account or in another AWS account.
Keys cannot be added to existing data planes. After creation, the `ebs`, `eks`, `rds`, and `elasticache` keys cannot change. To change the `s3` key, contact the LangChain team.
To set up the keys:
1. In the [`langsmith-byoc-role` Terraform module](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/aws/langsmith-byoc-role#customer-managed-kms-keys), set `cmk_service_key_arns` to a key ARN for each service. With [BYOIAM](/langsmith/byoc-byoiam-aws), set it in the BYOIAM module too.
2. Update the key policies as the [module README](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/aws/langsmith-byoc-role#customer-managed-kms-keys) describes. The `ebs` key policy must allow the Auto Scaling service-linked role. When LangSmith manages the VPC, the `s3` key policy must allow VPC flow log delivery.
3. When you create the data plane, open **Encryption keys** under **Configuration** and enter the key ARNs. Through the API, set `customer_managed_keys.key_arn` for every service, or `customer_managed_keys.service_key_arns` per service.
Before it creates the data plane, LangSmith checks that each key exists and is enabled, and that the provisioning role can use it. For keys in the data plane account, LangSmith also checks that the `ebs` and `s3` key policies allow these principals.
A key in another AWS account also needs key policy statements that allow the provisioning role and each BYOIAM role. An `ebs` key in another account also needs a grant for the Auto Scaling service-linked role, created from the data plane account, as the [module README](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/aws/langsmith-byoc-role#customer-managed-kms-keys) describes. LangSmith cannot read the policy of a key in another account, so make sure the policy is complete before you create the data plane.
> [!WARNING]
>
> If you disable or delete a key, every service that uses it stops working. Data encrypted with a deleted key cannot be recovered.
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/byoc-byok-aws.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# Bring your own VPC on AWS
Source: https://docs.langchain.com/langsmith/byoc-byovpc-aws
Create a customer-managed VPC for LangSmith BYOC, configure a reduced-permission IAM role, and supply your VPC and subnet IDs.
Bring your own VPC (BYOVPC) deploys a LangSmith BYOC data plane into an existing VPC that you create and manage. It lets you control the network configuration while LangChain provisions and operates the EKS cluster, databases, storage, and other workload resources. For a VPC provisioned by LangChain, follow the standard [BYOC onboarding guide](/langsmith/byoc-onboarding-aws).
You own the:
* VPC
* Subnets
* Routing
* Gateways
* VPC endpoints
* Flow logs
* Egress controls.
LangChain retains the permissions needed to manage workload security groups, the PrivateLink endpoint service for access to your data plane's EKS API, and other LangSmith infrastructure inside the VPC (such as databases).
## Before you begin
Complete the [BYOC prerequisites](/langsmith/byoc#prerequisites) and enable BYOC on your organization. Create the VPC:
* In the same AWS account as the cross-account IAM role, and
* In the region where you plan to deploy the data plane.
## Meet the network requirements
LangSmith checks the following requirements when you supply a VPC, including one created with the reference module.
### Configure the VPC and subnets
* **Ownership and region**: The VPC and every supplied subnet must belong to the AWS account containing the IAM role, exist in the requested region, and be in the `available` state.
* **VPC configuration**: Use default instance tenancy and a primary RFC 1918 IPv4 CIDR from `/16` through `/18`. Enable both DNS support and DNS hostnames.
* **Availability zones**: Supply exactly one application subnet and one database subnet in each of two or three standard regional availability zones. If you supply public subnets, provide one in each of the same zones.
* **Subnet ranges**: Every subnet must have a private IPv4 CIDR within the VPC's primary CIDR. Supplied subnet CIDRs must not overlap.
* **Subnet IDs and tags**: Each subnet ID must be unique across all tiers.
| Subnet tier | Minimum subnet size | Minimum available IPv4 addresses per subnet |
| - | - | - |
| Private application | `/20` or larger | 256 |
| Private database | `/26` or larger | 16 |
| Public, when supplied | `/26` or larger | 16 |
Larger subnets have smaller prefix lengths. Both subnet size and available address count must meet the requirements.
### Configure routes
The VPC must have a main route table. Validation uses each subnet's explicit route table association, or the main route table if there is no explicit association.
* **Private application subnets**: Each must have an active IPv4 default route (`0.0.0.0/0`) to customer-managed egress, such as a NAT gateway or transit gateway. A direct route to an internet gateway does not satisfy this requirement.
* **Public subnets**: Each supplied public subnet must have an active IPv4 default route to an internet gateway attached to the VPC.
* **Database subnets**: The reference module keeps these isolated, without a default egress route.
### Configure network ACLs
Each supplied subnet must have an associated network ACL that permits the traffic below. Validation evaluates rules in priority order, including deny rules.
| Subnet tier | Direction | Protocol and ports | Source or destination |
| - | - | - | - |
| All supplied subnets | Inbound and outbound | TCP and UDP, ports 1–65535 | VPC primary CIDR |
| Private application | Outbound | TCP 443 | `0.0.0.0/0` |
| Private application | Inbound | TCP 1024–65535, for return traffic | `0.0.0.0/0` |
| Public | Inbound | TCP 443 | `0.0.0.0/0` |
| Public | Outbound | TCP 1024–65535, for return traffic | `0.0.0.0/0` |
These are network ACL requirements. Workload security groups and your egress controls also govern which connections succeed.
## Create the VPC with Terraform
> [!NOTE]
>
> Using the Terraform module is optional. You can create the VPC with your own tooling and use the module as a reference to meet the [network requirements](#meet-the-network-requirements).
The [`byovpc` Terraform module](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/aws/byovpc) creates a network aligned with the LangSmith data plane requirements. Use it to create a VPC, or configure an existing VPC to meet the [network requirements](#meet-the-network-requirements).
To create the VPC:
1. Configure the AWS provider for your target account and [supported region](/langsmith/byoc#regions-and-cloud-providers).
2. Add the module to your Terraform configuration. Select a private CIDR range that does not overlap with networks you plan to peer with.
3. Initialize Terraform, review the plan, and apply it in your account.
The following configuration uses the module's default subnet layout and enables AWS service endpoints, control plane PrivateLink, and flow logs:
```hcl theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
provider "aws" {
region = "us-west-2"
}
module "langsmith_byovpc" {
source = "github.com/langchain-ai/terraform//modules/byoc/aws/byovpc?ref=main"
name = "langsmith-production"
vpc_cidr_block = "10.0.0.0/16"
enable_vpc_endpoints = true
enable_control_plane_privatelink = true
enable_vpc_flow_logs = true
}
output "langsmith_network_config" {
value = module.langsmith_byovpc.langsmith_network_config
}
```
The `langsmith_network_config` output contains the VPC ID and subnet IDs to supply when you create the data plane.
### Configure connectivity
The VPC module lets you configure:
* AWS service endpoints.
* Control plane PrivateLink and private DNS.
* VPC flow logs.
* Public subnets for internet-facing load balancers.
* NAT and internet gateways, or customer-managed centralized egress.
For configuration options and requirements, see the [`byovpc` Terraform module](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/aws/byovpc).
## Create the reduced-permission IAM role
The [`langsmith-byoc-role` Terraform module](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/aws/langsmith-byoc-role) creates the cross-account role LangChain assumes to manage the data plane.
To create the role:
1. Copy the external ID using the button next to the **Data Planes** header in **Settings > Data Planes**. Pass it as `external_id`. The role's trust policy must use this value in its `ExternalId` condition.
2. Set `allow_vpc_creation_permissions = false` and supply the VPC ID in the `vpc_ids` input.
3. If you require internet-facing load balancers, set `allow_public_ingress = true`. Otherwise, leave it disabled.
4. Review and apply the role module, then retain its `crossplane_role_arn` output for data plane creation.
With VPC creation permissions disabled, the role cannot create or manage the base VPC, subnets, internet and NAT gateways, Elastic IPs, route tables and routes, customer-side VPC endpoints, or VPC flow logs. It retains workload networking permissions, including tagged security groups, VPC endpoint services, and permissions needed by Karpenter. Security group creation is limited to the VPC IDs in `vpc_ids`.
## Supply the VPC and subnet IDs
When creating the data plane, supply the name, AWS region, and IAM role ARN from [onboarding](/langsmith/byoc-onboarding-aws), together with the following network values:
| Value | Terraform module output | Data plane creation field |
| - | - | - |
| VPC ID | `vpc_id` | `byovpc_id` |
| Private application subnet IDs | `private_app_subnet_ids` | `byovpc_private_app_subnet_ids` |
| Private database subnet IDs | `private_db_subnet_ids` | `byovpc_private_db_subnet_ids` |
| Public subnet IDs, required for public load balancers | `public_subnet_ids` | `byovpc_public_subnet_ids` |
LangSmith validates the network before provisioning. Correct any reported network or IAM permission errors, then submit the request again. Validation checks the AWS configuration; you remain responsible for working connectivity through any custom routing, DNS, endpoint policies, and egress filters.
After creation, continue with [provisioning and private connectivity (Step 4)](/langsmith/byoc-onboarding-aws).
## Maintain the network
Keep the customer-managed network available throughout the data plane's lifetime. You manage changes to routes, gateways, endpoints, DNS, network ACLs, and flow logs.
The VPC, availability zones, and private subnet configuration cannot be changed after creation. You cannot convert a data plane between a LangChain-managed VPC and BYOVPC.
Deleting a data plane removes LangChain-managed resources. Your VPC and other customer-managed network resources remain under your control and require separate cleanup after the data plane is deprovisioned.
## See also
* [BYOC onboarding](/langsmith/byoc-onboarding-aws)
* [BYOC architecture](/langsmith/byoc-architecture-aws)
* [BYOC shared responsibility model](/langsmith/byoc-shared-responsibility)
* [BYOC FAQ](/langsmith/byoc-faq)
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/byoc-byovpc-aws.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# AWS data plane cost estimate
Source: https://docs.langchain.com/langsmith/byoc-data-plane-cost-aws
Rough AWS cost of a LangSmith BYOC data plane running SmithDB, with a legacy estimate for data planes created with ClickHouse.
> [!WARNING]
>
> These are estimates, not a quote. AWS changes its prices without notice. Your bill depends on region, usage, and any discount agreement with AWS, such as an Enterprise Discount Program or a Savings Plan.
This is a rough monthly cost for a LangSmith data plane in your AWS account.
> [!NOTE]
>
> Scaling capacity for any resource can be lowered when required, as long as the deployment remains within safe operating limits. For cost-conscious or pre-production deployments, Multi-AZ can be turned off. That lowers monthly cost but reduces fault tolerance.
> [tab] SmithDB
>
> Data planes created on or after October 21, 2026 run SmithDB only. They do not run ClickHouse or ZooKeeper. This estimate is for a low tracing volume, about 10 runs per second and 10 queries per second. See [Configure SmithDB for scale](/langsmith/self-host-smithdb-scale). LangSmith increases capacity as tracing volume requires it.
>
> | Area | Rough monthly estimate | Notes |
> | - | - | - |
> | RDS PostgreSQL | \$100–\$150 | `db.t4g.medium`, Multi-AZ, 50 GB starting storage. |
> | ElastiCache Redis | \~\$285 | 3 shards with 1 replica each: 6 `cache.t4g.medium` nodes. |
> | EKS control plane | \~\$75 | One EKS cluster at standard hourly pricing. |
> | System node group | \~\$210 | 3 `m6i.large` on-demand nodes. |
> | Application worker nodes | \$700–\$2,000 | Karpenter nodes for LangSmith pods. |
> | EBS volumes | \$40–\$80 | Node boot disks. SmithDB cache uses the node disk, not a separate gp3 volume. |
> | Networking | \$150–\$300 | NAT gateways, load balancers, PrivateLink or VPC endpoints, and low-volume data processing. |
> | S3, Secrets Manager, CloudWatch | \$50–\$200 | Low-volume baseline. Grows with trace payloads, logs, and retention. |
> | SmithDB compute | \$1,400–\$2,045 | Low end is 1 x `c6id.8xlarge` plus 1 x `c6a.2xlarge`. High end is 1 x `i3.8xlarge`, or 2 x `i3.4xlarge`, plus 1 x `c6a.2xlarge`. Query, ingestion, and the compaction worker use the larger node. |
> | SmithDB metastore | \~\$120 | RDS PostgreSQL 18, `db.t4g.medium`, Multi-AZ, 100 GB gp3. |
> | SmithDB bucket | \$5–\$120 | S3 storage costs, would largely be dictated by trace payload size and retention. |
>
> Estimated monthly total: **\$3,135–\$5,585**
>
> ### SmithDB object store pricing
>
> | Stored size per trace | 14-day retention | 400-day retention |
> | - | - | - |
> | 10 KB | \$2 per year | \$74 per year |
> | 50 KB | \$15 per year | \$368 per year |
> | 200 KB | \$52 per year | \$1,472 per year |
>
> See [Prepare SmithDB supporting infrastructure](/langsmith/self-host-smithdb-infrastructure) for details of SmithDB infrastructure.
> [tab] ClickHouse (deprecated)
>
> > [!WARNING]
> >
> > ClickHouse is deprecated, and support ends in LangSmith v0.19. Data planes created on or after October 21, 2026 run SmithDB only. This estimate applies to data planes created with ClickHouse before that date that have not yet migrated to SmithDB.
>
> ClickHouse can also run as a single node instead of a replicated cluster. That lowers monthly cost but reduces fault tolerance.
>
> | Area | Rough monthly estimate | Notes |
> | - | - | - |
> | RDS PostgreSQL | \$100–\$150 | `db.t4g.medium`, Multi-AZ, 50 GB starting storage. |
> | ElastiCache Redis | \~\$285 | 3 shards with 1 replica each: 6 `cache.t4g.medium` nodes. |
> | EKS control plane | \~\$75 | One EKS cluster at standard hourly pricing. |
> | System node group | \~\$210 | 3 `m6i.large` on-demand nodes. |
> | Application, ClickHouse, and ZooKeeper worker nodes | \$1,000–\$1,500 | LangSmith pods and ClickHouse pods. |
> | EBS volumes | \$200–\$350 | ClickHouse, ZooKeeper, node volumes, and gp3 performance settings. |
> | Networking | \$150–\$300 | NAT gateways, load balancers, PrivateLink or VPC endpoints, and low-volume data processing. |
> | S3, Secrets Manager, CloudWatch | \$50–\$200 | Low-volume baseline. Grows with trace payloads, logs, and retention. |
>
> Estimated monthly total: **\$2,070–\$3,070**
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/byoc-data-plane-cost-aws.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# Azure data plane cost estimate
Source: https://docs.langchain.com/langsmith/byoc-data-plane-cost-azure
Rough Azure infrastructure cost of a LangSmith BYOC data plane running SmithDB, with example node counts, sandboxes excluded, and additional charges.
> [!WARNING]
>
> These are estimates, not a quote. Azure changes its prices without notice. Your bill depends on region, usage, and discounts. The subtotal below excludes node disks, networking, object storage, and other usage charges. It is not a complete monthly bill.
This is a rough monthly infrastructure cost for a [LangSmith BYOC data plane on Azure](/langsmith/byoc-architecture-azure). Azure data planes run SmithDB, not ClickHouse.
The estimate uses USD pay-as-you-go prices for `eastus`, Linux VMs, and 730 hours per month. The database and system node sizes match the [default profile](/langsmith/byoc-operations-azure#instance-sizes). Application and SmithDB node counts are assumptions, not fixed deployment sizes. AKS node auto-provisioning selects VM sizes and counts within each pool's limits.
## Rough monthly estimate
This example budget assumes two to six application nodes, one SmithDB cache node, and one SmithDB compute node. Each compute row covers a separate set of VMs. SmithDB compute is not included in the application node estimate.
> [!NOTE]
>
> Sandboxes are excluded from the baseline, including their host compute, storage, and private endpoint. The estimate does not imply that sandboxes are disabled by default or that a self-service opt-out is available.
| Area | Rough monthly estimate | Notes |
| - | - | - |
| AKS control plane | \~\$73 | Standard tier at \$0.10/hour. |
| System node pool | \~\$221 | 3 `Standard_D2s_v6` nodes at \$0.101/hour each. Node disks are additional. |
| Application worker nodes | \$589–\$1,765 | Assumes 2 to 6 `Standard_D8s_v6` nodes at \$0.403/hour each for LangSmith pods. |
| SmithDB cache nodes | \~\$1,455 | Assumes 1 `Standard_D32ds_v6` at \$1.993/hour for query, ingestion, and compaction workers. Local NVMe is included in the VM price. |
| SmithDB compute nodes | \~\$294 | Assumes 1 `Standard_D8s_v6` at \$0.403/hour for compaction scheduling and the cluster manager. |
| PostgreSQL, LangSmith | \~\$267 | PostgreSQL 18, `GP_Standard_D2ds_v4`, 32 GiB storage, with a zone-redundant standby where supported. Includes primary and standby compute and storage. |
| PostgreSQL, SmithDB metastore | \~\$289 | PostgreSQL 18, `GP_Standard_D2ds_v4`, 128 GiB storage, with a zone-redundant standby where supported. Includes primary and standby compute and storage. |
| Azure Managed Redis | \~\$95 | `Balanced_B3`, high availability enabled. Two nodes at \$0.065/hour each. |
| Node disks | Additional, not included | Managed OS disks where nodes do not use ephemeral OS disks. SmithDB caches use local NVMe, not separately billed managed cache disks. |
| Networking | Additional, not included | NAT gateway, load balancers, private endpoints, public IP addresses, data processing, and data transfer. |
| Blob storage, Key Vault, DNS, and monitoring | Additional, not included | Storage capacity, operations, retention, and any diagnostic logs you enable. |
Estimated monthly subtotal for priced items, excluding sandboxes: **\$3,283–\$4,460**. Add the additional charges above, taxes, and LangSmith fees to estimate the full bill.
The system-node reduction from three `Standard_D4s_v6` to three `Standard_D2s_v6` saves about \$221 per month in VM compute. The older D8s_v5-only SmithDB estimate does not represent the dedicated NVMe pool. Smaller system nodes alone do not establish a lower total bill.
The PostgreSQL estimates use \$0.089 per vCore-hour and \$0.115 per GiB-month of provisioned storage. Each server has two vCores and a matching standby. Storage growth and backup storage beyond the included allowance cost extra.
The SmithDB cache example has 32 vCPUs and 128 GiB of memory. Azure-specific pod requests are 4 vCPUs and 8 GiB for query, 4 vCPUs and 8 GiB for ingestion, and 8 vCPUs and 16 GiB per compaction worker. Their cache requests are 200 GiB, 100 GiB, and 100 GiB per worker, respectively. These run on the dedicated local NVMe pool, separate from the compaction scheduler and cluster manager. Replica counts, scheduling overhead, upgrades, and load can require more nodes. This example does not guarantee a throughput level or a highly available SmithDB node layout.
For networking, the NAT gateway alone costs about \$33 per month before data processing. Without sandboxes and with control-plane private access enabled, seven explicit customer-side private endpoints cost about \$51 per month: two PostgreSQL, two Blob storage, Redis, Key Vault, and control-plane access. The AKS management private endpoint runs in LangChain's subscription and is not part of your bill. A Standard load balancer's first five rules cost about \$18.25 per month. These charges are not included in the subtotal. Add the resources and traffic for your deployment in the Azure pricing calculator.
## Sandbox add-on
If your deployment includes sandboxes, budget separately for their dedicated host nodes, Blob storage, and private endpoint. One illustrative `Standard_D16ds_v6` host costs about **\$728 per month** at \$0.997/hour. Its private endpoint adds \$7.30 per month, plus sandbox storage and traffic charges. Additional hosts increase the compute cost.
## See also
* [Azure retail prices API](https://prices.azure.com/api/retail/prices)
* [Azure pricing calculator](https://azure.microsoft.com/en-us/pricing/calculator/)
* [Azure NAT Gateway pricing](https://azure.microsoft.com/en-us/pricing/details/azure-nat-gateway/)
* [Azure Managed Redis pricing](https://azure.microsoft.com/en-us/pricing/details/managed-redis/)
* [Azure Database for PostgreSQL pricing](https://azure.microsoft.com/en-us/pricing/details/postgresql/flexible-server/)
* [BYOC operations on Azure](/langsmith/byoc-operations-azure)
* [Configure SmithDB for scale](/langsmith/self-host-smithdb-scale)
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/byoc-data-plane-cost-azure.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# BYOC FAQ
Source: https://docs.langchain.com/langsmith/byoc-faq
Answers to common questions about LangSmith BYOC, covering data residency, access, setup, the data plane model, and ongoing operations.
## Setup
> [accordion] Which clouds and regions can I deploy to?
>
> BYOC is generally available (GA) on AWS with a US control plane. BYOC on GCP and Azure is available in [beta](/langsmith/release-stages). See [Regions and cloud providers](/langsmith/byoc#regions-and-cloud-providers) for the supported AWS regions and GCP and Azure region availability.
> [accordion] Does BYOC support government cloud regions or FIPS-compliant images?
>
> No. BYOC does not support government cloud regions, such as AWS GovCloud (US), and does not provide FIPS-compliant container images.
> [accordion] Can a control plane on one cloud manage a data plane on another cloud?
>
> No. Cross-cloud deployments are not supported. A data plane must run on the same cloud provider as its control plane. For example, the AWS control plane cannot manage a data plane on GCP.
>
> Each cloud provider has its own LangSmith instance, with separate users and organizations. To deploy data planes on more than one cloud provider, create a LangSmith organization on each provider's instance. See [Regions and cloud providers](/langsmith/byoc#regions-and-cloud-providers) for the instance URLs.
> [accordion] Do I need a dedicated AWS account?
>
> No. LangChain recommends a fresh account for clearer billing, and because some permissions cannot be scoped to specific resources, but it is not required.
> [accordion] Can I install BYOC into an existing VPC?
>
> Yes. With [Bring your own VPC (BYOVPC)](/langsmith/byoc-byovpc-aws), you supply a VPC and subnets. You can create the VPC with the [reference Terraform module](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/aws/byovpc) or use an existing VPC that meets the network requirements.
>
> To remove VPC creation permissions from the customer role, set `allow_vpc_creation_permissions = false` in the [`langsmith-byoc-role` Terraform module](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/aws/langsmith-byoc-role) and include your VPC ID in `vpc_ids`.
> [accordion] Can I deploy multiple data planes in the same VPC?
>
> Yes. Deploying multiple data planes in the same VPC requires [Bring your own VPC (BYOVPC)](/langsmith/byoc-byovpc-aws). Each data plane must use different subnets. Do not share subnets between data planes.
> [accordion] Can I move an existing data plane into my own VPC?
>
> No. Moving an existing data plane to a different VPC is not supported, nor is changing its VPC and subnet configuration after creation.
> [accordion] Can I install BYOC into an existing EKS cluster?
>
> No, and there are no plans to support it. LangChain operates the cluster on your behalf, including upgrades and patching, and a dedicated cluster is what makes managing it reliably possible.
> [accordion] Can I run my own workloads in the LangSmith VPC or cluster?
>
> Yes, as long as they do not interfere with the functioning of LangSmith.
>
> In the AWS account, keep in mind that some permissions granted to the cross-account role cannot be scoped by tag, which is why LangChain recommends a dedicated account.
>
> In the Kubernetes cluster, passive workloads that do not interfere with LangSmith are fine, such as observability and security monitoring agents. When you deploy them:
>
> * Use your own node groups and tolerations rather than the ones LangSmith runs on.
> * Deploy into namespaces other than the ones LangSmith uses.
> * Do not edit the resources LangChain provisions.
>
> LangChain is not responsible for downtime or issues caused by interfering workloads.
> [accordion] What value do I set to the external ID for my role?
>
> LangChain provides the external ID. Navigate to **Settings > Data Planes** and use the copy button next to the **Data Planes** header to copy it. Use this value when applying the `langsmith-byoc-role` Terraform module. The role's trust policy must use this value in its `ExternalId` condition.
> [accordion] How long does provisioning take?
>
> End-to-end provisioning of a data plane takes around 60 to 90 minutes. Provisioning time can vary, because AWS resource provisioning is inconsistent.
> [accordion] What happens if provisioning fails?
>
> The data plane transitions to `Provisioning Failed`. Failures are usually caused by missing permissions on the cross-account role, or by a service control policy (SCP) that blocks an action LangChain needs to take.
>
> Apply the [`langsmith-byoc-role` Terraform module](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/aws/langsmith-byoc-role) exactly as published, with no edits or changes. A modified module is a common source of missing permissions.
>
> Contact the LangChain team. Once the permissions are corrected, provisioning reconciles automatically.
> [accordion] What VPC CIDR range should I use?
>
> A private RFC 1918 range between `/18` and `/16`. If you plan to use VPC peering, select a range that does not overlap with the VPC you intend to peer with. The CIDR range cannot be changed after provisioning.
> [accordion] How do I reach a data plane with a private endpoint?
>
> Data planes are provisioned with a private endpoint by default, so you need private connectivity such as Tailscale, AWS PrivateLink, or VPC peering.
> [accordion] Why does LangSmith say I may not have network access to this workspace?
>
> Your machine cannot reach the data plane that holds the workspace. After the browser loads the LangSmith UI, it sends data requests directly to your data plane. With a private endpoint, those requests succeed only from a network that can reach your VPC.
>
> 
>
> The screen groups your workspaces by data plane. A green header marks a data plane your browser can reach, and a red header marks one it cannot.
>
> To fix it:
>
> 1. Connect to the network that has private connectivity to the data plane. If your organization uses a corporate VPN, ask your IT team to route the data plane's endpoint through it.
> 2. Refresh the page.
>
> To keep working in the meantime, select **Switch** next to a workspace on a reachable data plane. For more information, see [BYOC onboarding](/langsmith/byoc-onboarding-aws) and [BYOC architecture](/langsmith/byoc-architecture-aws).
> [accordion] Are my service endpoints exposed to the internet?
>
> No. Services sit behind a private load balancer by default, reachable only from inside your VPC or through the private connectivity you configure.
>
> Data plane endpoints can be made public at provisioning time. See [Onboarding](/langsmith/byoc-onboarding-aws).
> [accordion] Can I use my own DNS domain?
>
> No. Data planes are provisioned under the standard LangChain BYOC domain. Find your data plane API URL under **Settings > Data Planes**.
> [accordion] How do I decommission a data plane?
>
> Re-apply the [`langsmith-byoc-role` Terraform module](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/aws/langsmith-byoc-role) with `allow_delete_permissions = true`, which grants the permissions needed to delete LangSmith-managed resources.
>
> Then select **Delete Data Plane** in the LangSmith UI. LangChain deprovisions the infrastructure in your account.
## Data and security
> [accordion] Does sensitive data ever leave my VPC?
>
> No. When a user opens `aws.smith.langchain.com`, the browser fetches the LangSmith UI bundle from LangChain's cloud. Once loaded, the application routes every request for sensitive data to your VPC.
>
> See [Data traffic](/langsmith/byoc-architecture-aws#data-traffic).
> [accordion] What can the LangChain team do in my account?
>
> LangChain can manage the infrastructure of the resources LangSmith created, and nothing else. Permissions are scoped by the `managed_by=langsmith` tag, so the role cannot act on unrelated resources in your account.
>
> The role holds no permissions that grant data access. See [How least privilege is enforced](/langsmith/byoc-architecture-aws#how-least-privilege-is-enforced).
> [accordion] Can LangChain read my traces or database contents?
>
> No. The cross-account role is infrastructure-scoped rather than data-scoped. It can manage the resources that hold your data, but holds no `s3:GetObject` on the trace bucket, no `rds-db:connect` to PostgreSQL, and no `elasticache:Connect` to Redis.
>
> Access to the data itself requires you to explicitly grant it, such as during an incident. See [How least privilege is enforced](/langsmith/byoc-architecture-aws#how-least-privilege-is-enforced).
> [accordion] What access do LangChain employees have to my environment and data?
>
> There is no standing data access. If an incident requires access to your data, LangChain either asks you to run the queries yourself, or requests break-glass access.
> [accordion] Does LangSmith support customer-managed encryption keys?
>
> Yes, on AWS. When you create a data plane, you can encrypt its S3 buckets, EBS volumes, EKS secrets, RDS databases, and ElastiCache with your own AWS KMS keys. See [Bring your own keys](/langsmith/byoc-byok-aws). By default, data is encrypted at rest with cloud provider-managed keys.
> [accordion] How do I revoke LangChain's access?
>
> You create and own the cross-account role in your own account, so you can revoke access without involving LangChain. Removing the role, or its trust relationship with the LangChain account, stops the control plane from assuming it, and stops reconciliation of data plane resources.
> [accordion] Can I revoke individual permissions granted during provisioning?
>
> Yes, but the role needs its permissions for continuous reconciliation of the data plane, and to manage, upgrade, and scale it. Removing them can break those operations.
>
> If you need to remove specific permissions, contact the LangChain team first so the change can be reviewed. LangChain is not responsible for downtime or issues caused by permissions removed without that review.
> [accordion] What does LangChain hold in the control plane?
>
> Authentication, organization and workspace configuration, billing and usage metadata, hashed API keys, and the static frontend assets.
>
> Traces, prompts, datasets, evaluators, experiments, insights runs, annotation queues, agent deployments, and workspace secrets all live in your data plane.
> [accordion] What data leaves my account?
>
> Only operational data, and it travels over PrivateLink rather than the public internet:
>
> * **Authentication requests**: The data plane calls the control plane to authenticate requests, validate API keys, and resolve roles and permissions.
> * **Configuration**: Organization and workspace configuration loaded from the control plane.
> * **Billing and usage metadata**.
> * **Operational telemetry**.
>
> Sensitive data such as traces does not leave your account. It goes only from the data plane to the end user requesting it. See [Data traffic](/langsmith/byoc-architecture-aws#data-traffic).
> [accordion] Does traffic go over the public internet?
>
> No.
>
> * **Control plane to data plane**: All communication travels over AWS PrivateLink, in both directions.
> * **S3**: Traffic goes over a VPC endpoint, encrypted with HTTPS.
> * **Container images**: Pulled from the LangChain account over a VPC endpoint.
>
> See [Connectivity](/langsmith/byoc-architecture-aws#connectivity).
> [accordion] Can I restrict outbound network traffic from the data plane?
>
> Yes.
>
> For a LangChain-managed VPC, BYOC supports a network firewall that controls egress from the data plane. Contact the LangChain team to enable it.
>
> Once enabled, the firewall denies all outbound traffic by default. You then configure an allow list of the destinations the data plane is permitted to reach:
>
> * **Domains**: Fully qualified domain names, such as a model provider API endpoint or a public Docker registry.
> * **CIDR ranges**: IP ranges, such as an internal service or a private subnet.
>
> With BYOVPC, you manage your own firewall and egress controls. Your network must continue to meet the [BYOVPC network requirements](/langsmith/byoc-byovpc-aws#meet-the-network-requirements).
> [accordion] Can I use my own private registry?
>
> Not today. Container images are pulled from the LangChain AWS account over a VPC endpoint. Support for private registries is on the roadmap.
> [accordion] How does the control plane reach my Kubernetes API server?
>
> Over AWS PrivateLink. The management path exposes only your cluster's Kubernetes API server, which LangChain uses to install and reconcile the LangSmith components.
>
> The EKS cluster is private: the API server endpoint has no public access, and worker nodes have no public IP addresses. Your data is not reachable over that connection, and LangChain does not reach your environment over the public internet. See [Connectivity](/langsmith/byoc-architecture-aws#connectivity).
> [accordion] Where does the control plane run if my data plane is outside the US?
>
> The control plane runs in `us-east-2` regardless of where you place your data planes. If you provision a data plane outside the US, your sensitive application data stays in that region while control plane metadata remains in the US. See [Regions and cloud providers](/langsmith/byoc#regions-and-cloud-providers).
## Data planes and workspaces
> [accordion] How do organizations, data planes, and workspaces relate?
>
> Data planes belong to an organization, and workspaces belong to exactly one data plane. Use data planes for physical separation of data, and workspaces for logical separation within a data plane. See [Organizations, data planes, and workspaces](/langsmith/byoc-usage#organizations-data-planes-and-workspaces).
> [accordion] Can I run more than one data plane?
>
> Yes. An organization can have several data planes, each in its own AWS account and region.
>
> The default limit is five data planes per organization. To deploy more than that, contact the LangChain team.
> [accordion] Can one organization hold both Cloud and BYOC workspaces?
>
> Yes. A workspace on LangSmith Cloud routes to the LangChain-managed backend rather than to a data plane, so both can coexist in the same organization. This also means you can move from an AWS Cloud trial to BYOC while reusing the same organization, users, roles, and SSO configuration.
## Operations
> [accordion] Who is responsible for what in a BYOC deployment?
>
> LangChain runs the control plane and manages the data plane infrastructure through delegated, least privilege access. You own the AWS account, network connectivity, the data in the data plane, and security monitoring inside your account.
>
> For the full division across platform and infrastructure, data and security, and operations and support, see the [BYOC shared responsibility model](/langsmith/byoc-shared-responsibility).
> [accordion] Who upgrades LangSmith, and how often?
>
> LangChain upgrades the LangSmith version in your data plane daily. Upgrades are rolling, so there is no whole-service downtime. Supporting services such as Istio and KEDA are upgraded on a regular cadence, and LangChain manages all EKS cluster upgrades.
>
> Support for release channels is coming soon. See [Operations](/langsmith/byoc-operations-aws).
> [accordion] What about Kubernetes upgrades?
>
> LangChain owns and performs EKS upgrades proactively, ahead of AWS end-of-support dates, and coordinates the window with you.
>
> Control plane upgrades are transparent. Node group upgrades roll nodes one by one with make-before-break semantics, so you might see brief connection resets as pods restart, but no data loss. See [Kubernetes cluster upgrades](/langsmith/byoc-operations-aws#kubernetes-cluster-upgrades).
> [accordion] Do upgrades cause downtime?
>
> No. Services run multiple replicas sized by a horizontal pod autoscaler, and pod disruption budgets cap how many replicas can be unavailable at once, so neither a rolling update nor a node drain takes a service below the capacity it needs.
>
> Maintenance that could cause downtime, such as a restart of RDS or ElastiCache, happens in a scheduled maintenance window that LangChain coordinates with you in advance.
> [accordion] Who monitors the data plane?
>
> LangChain operates the data plane after provisioning, including monitoring for uptime and error recovery, scaling, upgrades, and security patching. Because the deployment runs in your own account, the cloud controls you already operate apply to it as well.
> [accordion] Can I set up my own observability for LangSmith BYOC?
>
> Yes. You can install observability tooling such as collectors and agents into the EKS cluster, as long as it does not interfere with the operation of LangSmith.
>
> LangSmith services emit logs, metrics, and traces the same way they do on self-hosted, so the same configuration applies. See [Export LangSmith telemetry to your observability backend](/langsmith/export-backend).
> [accordion] How are high availability and disaster recovery handled?
>
> Data planes are provisioned for high availability by default, running across multiple availability zones within a single region. All stateful components are backed up.
>
> A data plane does not span regions, so recovery from the loss of an entire region relies on those backups. See [High availability](/langsmith/byoc-operations-aws#high-availability).
> [accordion] How are backups handled?
>
> Backups run in your own account:
>
> * **RDS**: Backups are taken daily.
> * **SmithDB**: Object storage in S3 holds the durable trace data.
> * **ClickHouse**: On data planes that still run it, backups are taken daily and stored in an S3 bucket.
> * **ElastiCache**: No backups are taken, because the data is ephemeral.
> [accordion] Does LangChain offer an uptime SLA for BYOC data planes?
>
> No. The data plane runs in your AWS account, so its availability depends on resources you control, including the account itself, the private connectivity you configure to reach the data plane, and the service quotas and policies that apply to the account. LangChain does not commit to an uptime target for infrastructure it does not solely control.
>
> LangChain still monitors the data plane for uptime and error recovery, scales it, and applies upgrades and security patches. See [Operations](/langsmith/byoc-operations-aws).
## Cost
> [accordion] What do I pay for with BYOC?
>
> Two separate bills:
>
> * **Infrastructure**: The data plane runs in your own AWS account, so you own the infrastructure and pay for it through your cloud provider bill.
> * **LangSmith**: Invoiced by LangChain based on your contract and usage.
>
> LangChain provides integrations with AWS Marketplace.
## Features and migration
> [accordion] Which LangSmith features work on BYOC?
>
> See [Available features](/langsmith/byoc#available-features) for the current list of supported features.
> [accordion] Can I migrate an existing LangSmith instance to BYOC?
>
> Yes. Users, roles, datasets, experiments, prompts, annotation queue configuration, automation rules, dashboards, and Fleet resources can be copied over. Trace migration is supported on AWS. Contact the LangChain team to arrange it. See [Migrate to BYOC](/langsmith/byoc-migration).
## See also
* [BYOC overview](/langsmith/byoc)
* [Why BYOC](/langsmith/byoc-why)
* [BYOC architecture](/langsmith/byoc-architecture-aws)
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/byoc-faq.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# Migrate to BYOC
Source: https://docs.langchain.com/langsmith/byoc-migration
Copy users, datasets, prompts, experiments, Fleet resources, and other data from an existing LangSmith instance into a BYOC data plane.
The [LangSmith data migration tool](https://github.com/langchain-ai/langsmith-data-migration-tool) copies data from an existing LangSmith Cloud organization or [self-hosted](/langsmith/self-hosted) instance into a BYOC data plane. The tool copies data (as opposed to moving data over), so the source instance is unchanged and stays available during the move.
Run the migration after your data plane is [active and reachable](/langsmith/byoc-onboarding-aws). Trace migration is supported on AWS. Contact the LangChain team to arrange it, and plan the [manual steps](#move-data-the-tool-does-not-migrate) alongside the tool.
## Supported resources
The tool migrates the following resources between a source instance and a destination data plane:
| Resource | Details |
| - | - |
| Users and roles | Custom roles, organization members, and workspace memberships. |
| Datasets | Datasets with their examples and file attachments. |
| Experiments | Experiments, experiment runs, and feedback, migrated with their datasets. |
| Annotation queues | Queue configuration and settings. Migrated queues start empty. |
| Automation rules | Project automation rules, mapped onto destination projects. |
| Prompts | Prompts with the full commit history. |
| Charts | Monitoring charts and dashboards. |
| Custom model pricing | Workspace-custom model price entries. |
| Engine issues | Per-project Engine configuration and detected issues. Issues migrate as metadata, including the proposed fix, without their linked traces or pull requests. |
| Fleet | Agents, shared skills, MCP servers, integrations, auth providers, schedules, triggers, webhooks, usage limits, sandbox policies, and workspace secrets. |
| Context Hub | Context Hub agents and skills, including files, repository metadata, commit history, and commit tags. |
Each resource type has its own command, flags, and caveats. For the command reference, see the [tool README](https://github.com/langchain-ai/langsmith-data-migration-tool/blob/main/README.md).
## Migrate with the tool
**1. Install the tool**
Install the latest release with `uv`, `uvx`, or `pip`. For the current install commands, see [Installation](https://github.com/langchain-ai/langsmith-data-migration-tool#installation).
Verify the install:
```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
langsmith-migrator --help
```
**2. Create the destination workspaces**
Workspace IDs differ between instances, so create the target workspaces in the data plane first. See the `Create workspaces` section of the [BYOC onboarding docs](/langsmith/byoc-onboarding-aws).
Migration commands run per workspace pair. Repeat them for each pair.
**3. Create the destination tracing projects**
The tool does not create tracing projects. Create the projects you need in the destination workspace before you migrate automation rules or charts, or those mappings have no target.
**4. Configure the connection details**
Set the source and destination credentials and endpoints:
```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
export LANGSMITH_OLD_API_KEY=""
export LANGSMITH_NEW_API_KEY=""
export LANGSMITH_OLD_BASE_URL=""
export LANGSMITH_NEW_BASE_URL="https://"
export LANGSMITH_VERIFY_SSL=true
```
> [!NOTE]
>
> `OLD` refers to your current LangSmith deployment, and `NEW` refers to the destination BYOC data plane:
>
> * **`LANGSMITH_OLD_API_KEY`**: An API key from your current deployment with permission to read all resources you want to migrate. For LangSmith Cloud at [smith.langchain.com](https://smith.langchain.com?utm_source=docs\&utm_medium=cta\&utm_campaign=langsmith-signup\&utm_content=langsmith-byoc-migration), create it under **Settings > API Keys**. For another Cloud region or a self-hosted instance, use that deployment's UI.
> * **`LANGSMITH_NEW_API_KEY`**: An API key created under **Settings > API Keys** at [aws.smith.langchain.com](https://aws.smith.langchain.com). Scope it to a workspace in your destination BYOC data plane. See [Create an API key](/langsmith/create-account-api-key#api-keys).
> * **`LANGSMITH_OLD_BASE_URL`**: Your current deployment's API URL. For LangSmith Cloud in GCP US, use `https://api.smith.langchain.com`. For another Cloud region, use its [regional API URL](/langsmith/create-account-api-key#configure-the-sdk). For self-hosted LangSmith, use your instance's API URL.
> * **`LANGSMITH_NEW_BASE_URL`**: Your destination BYOC data plane's API URL, including `https://`. Find it under **Settings > Data Planes**. See [BYOC onboarding](/langsmith/byoc-onboarding-aws).
> [!WARNING]
>
> The destination key must be scoped to a workspace in the target data plane. An organization-scoped key does not work.
>
> To migrate Fleet agents with an owner, use a personal access token (`lsv2_pt_*`) as the destination key. Workspace API keys carry no user identity, so agents created with them have no owner.
**5. Test both connections**
```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
langsmith-migrator test
```
**6. Run the migration**
Use the interactive wizard to walk through every resource type:
```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
langsmith-migrator migrate-all
```
To migrate one resource type at a time, run its command instead, such as `datasets`, `prompts`, or `fleet`. Add `--dry-run` to preview a step without writing, and `-v` for verbose output. Use `langsmith-migrator resume` to retry pending or failed items from a previous session.
For per-command flags, workspace mapping, and project mapping, see the [tool README](https://github.com/langchain-ai/langsmith-data-migration-tool/blob/main/README.md).
## Complete the Fleet manual steps
[Fleet](/langsmith/fleet/index) resources migrate with the `fleet` command, but some values cannot cross instances. Complete the following in the destination workspace after migration:
* **Re-enter secret values**: The Fleet API does not return secret values. The tool creates workspace secrets and auth provider client secrets as empty placeholders.
* **Re-authenticate OAuth connections**: Per-user agent connections, such as Gmail, Slack, and GitHub, are tied to individual user tokens. Each user must reconnect.
* **Re-share agents**: Per-user access lists keep only user IDs that exist on the destination. The tool reports which users it removed.
* **Check agent models**: The tool substitutes a model when the destination catalog does not offer the source model. It logs every substitution.
* **Configure infrastructure-level settings**: OAuth providers, the GitHub App, and the Slack app can be recreated in the `Settings > Oauth Providers` and `Fleet > Integrations` UI.
Fleet migrators never overwrite resources that already exist on the destination, so re-running `fleet` is safe.
## Complete the Engine manual steps
[Engine](/langsmith/engine) issues migrate with the `issues` command. The command creates any tracing project that has Engine data and is missing on the destination. Issues migrate as metadata only, and the command skips issues and project configurations that already exist on the destination.
To run Engine in the data plane, complete these steps in order:
1. **Enable Engine for the data plane**: A LangChain operator enables Engine for your data plane. Contact your LangChain account team to request it.
2. **Turn on Engine**: An Organization Admin goes to **Settings** > **Engine**, selects the data plane, and turns on Engine.
3. **Add model provider credentials**: An Organization Admin adds credentials for your own model providers. Credentials are not migrated. See [Engine on BYOC](/langsmith/engine-self-hosted#engine-on-byoc).
4. **Reconnect GitHub**: Configure your GitHub App in the destination, then reconnect repositories in each Engine project. Repository settings migrate, but they work only after the destination has a GitHub connection. See [Configure GitHub for Engine on BYOC](/langsmith/engine-self-hosted-github#configure-the-app-on-byoc).
5. **Recreate notification destinations**: Connect your Slack app and add Slack, Jira, or webhook destinations again. See [Engine notifications](/langsmith/engine-notifications).
6. **Let Engine re-detect traces**: Migrated issues have no linked traces, pull requests, or suggested actions. Engine links new traces to the issues as it analyzes traces in the data plane.
## Move data the tool does not migrate
### Traces
Trace migration is supported on AWS. Contact the LangChain team to arrange trace migration to your BYOC data plane. The data migration tool does not migrate traces.
To keep a separate copy of historical traces, [bulk export](/langsmith/data-export) them to an S3-compatible bucket.
To move tracing applications, create API keys scoped to a workspace in the data plane, then repoint the application:
* **Cut over**: Set `LANGSMITH_ENDPOINT` to the data plane endpoint and `LANGSMITH_API_KEY` to the new key. See [Trace to a data plane](/langsmith/byoc-usage#trace-to-a-data-plane).
* **Dual trace**: Write to the old instance and the data plane during the transition. See [Trace to multiple endpoints](/langsmith/byoc-usage#trace-to-multiple-endpoints).
### Deployed agents
Redeploy agents that run on your existing instance into a workspace in the data plane. Use the LangSmith UI or the API. You may also need to recreate service accounts, image pull secrets, and other resources in the data plane cluster.
For agent databases and caches, choose one of the following:
* Create new instances in the data plane and point the redeployed agents at them. Start empty, or restore from a backup of the old instance.
* Point the redeployed agents at your existing database instances, and reach them from the data plane cluster over PrivateLink or VPC peering.
For more information, see [LangSmith Agent Server](/langsmith/deployment).
### Insights reports
[Insights](/langsmith/insights) reports are not migrated across instances. To keep a report, open its details in the LangSmith UI and select **Download**.
## See also
* [BYOC onboarding](/langsmith/byoc-onboarding-aws)
* [BYOC usage](/langsmith/byoc-usage)
* [Bulk export trace data](/langsmith/data-export)
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/byoc-migration.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# BYOC onboarding
Source: https://docs.langchain.com/langsmith/byoc-onboarding-aws
Set up a LangSmith BYOC data plane, from enabling BYOC on your organization to creating workspaces and connecting privately.
This page covers BYOC on AWS. For BYOC on GCP, see [BYOC onboarding on GCP](/langsmith/byoc-onboarding-gcp) or [BYOC onboarding on Azure](/langsmith/byoc-onboarding-azure).
Before you start, review the [prerequisites](/langsmith/byoc#prerequisites).
By default, LangChain creates a VPC for your data plane. To create and manage the network yourself, follow [Bring your own VPC on AWS](/langsmith/byoc-byovpc-aws) before creating the IAM role and data plane below.
**1. Enable BYOC on your organization**
Create an organization in LangSmith on AWS at [aws.smith.langchain.com](https://aws.smith.langchain.com), or reuse an existing one.
Send your organization ID to the LangChain team to enable BYOC.
**2. Create the IAM role**
LangChain provides the external ID for the IAM role. Navigate to **Settings > Data Planes** and use the copy button next to the **Data Planes** header to copy it.
Apply the [`langsmith-byoc-role` Terraform module](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/aws/langsmith-byoc-role) in your AWS account using the copied external ID. This creates the cross-account role LangChain assumes to provision and manage the data plane. The role's trust policy must use this value in its `ExternalId` condition.
For BYOVPC, set `allow_vpc_creation_permissions = false` and supply your VPC ID in `vpc_ids`. See [Create the reduced-permission IAM role](/langsmith/byoc-byovpc-aws#create-the-reduced-permission-iam-role).
To encrypt the data plane with your own KMS keys, also set `cmk_service_key_arns`. See [Bring your own keys](/langsmith/byoc-byok-aws).
> [!NOTE]
>
> LangChain recommends a fresh AWS account dedicated to LangSmith BYOC.
**3. Create the data plane**
Navigate to **Settings > Data Planes** and create a data plane with the following parameters:
* **Name**: Lowercase letters, digits, and hyphens, up to 24 characters.
* **AWS region**: One of the [supported regions](/langsmith/byoc#regions-and-cloud-providers).
* **AWS IAM role ARN**: The ARN of the role you created in the previous step, which LangSmith assumes in your account.
Under **Configuration**, the defaults work for most data planes. You can change these settings:
* **Network**: By default, LangSmith creates a VPC from a private RFC 1918 CIDR range from `/16` to `/18`, such as `10.20.0.0/16`. To use your own VPC, select **Use existing VPC** and supply the [VPC and subnet IDs](/langsmith/byoc-byovpc-aws#supply-the-vpc-and-subnet-ids). The load balancer is **Private** by default, reachable only from inside your VPC. Select **Internet-facing** to give your applications a public endpoint. With your own VPC, an internet-facing load balancer requires public subnet IDs.
* **IAM roles**: By default, LangSmith creates the data plane IAM roles. To use roles you create, select **Use existing IAM roles** and follow [Bring your own IAM roles](/langsmith/byoc-byoiam-aws).
* **Encryption keys**: By default, AWS-managed keys encrypt data at rest. To use your own KMS keys, choose one key for all services or a key per service. See [Bring your own keys](/langsmith/byoc-byok-aws).
* **Sandboxes**: Off by default. Turn them on to run [sandboxes](/langsmith/sandboxes), which Engine and some evaluators require.
* **EKS API access**: New data planes reach the EKS API over PrivateLink by default.
* **Tags**: Up to 40 custom tags applied to the AWS resources LangSmith creates. Keys must be unique, and values can be empty. AWS and LangSmith system tags are reserved.
**4. Wait for provisioning**
LangChain provisions the infrastructure on your behalf. The data plane moves from `Requested` to `Provisioning` to `Active`.
For BYOVPC, LangSmith validates your VPC and subnets before provisioning, then creates the workload infrastructure inside your VPC.
> [!NOTE]
>
> End-to-end provisioning of a data plane takes around 60 to 90 minutes.
Track its state in **Settings > Data Planes**. If the data plane transitions to `Provisioning Failed`, contact the LangChain team.
**5. Set up private connectivity**
Data planes are provisioned with a private endpoint by default, so you need private connectivity to reach it, such as Tailscale, AWS PrivateLink, or VPC peering.
Find the API URL under **Settings > Data Planes**.
If you open a workspace and see the following screen, your machine does not have network access to that workspace's data plane. The LangSmith frontend runs in your browser and calls the data plane directly, so your machine must be on a network that can reach the data plane's private endpoint. Connect through your private connectivity option, then refresh the page.

From this screen, you can switch to a workspace on a data plane that is reachable, which can be a Cloud workspace.
**6. Create workspaces**
A workspace named `dp-` is provisioned automatically inside the new data plane. It is not accessible until the data plane is reachable.
You can create additional workspaces in the data plane. Select the target data plane when you create each one: a workspace belongs to exactly one data plane, and a data plane can hold many workspaces.
> [!WARNING]
>
> Pick the correct data plane carefully when you create a workspace. A workspace cannot be moved to another data plane after creation.
**7. (Optional) Migrate existing data**
If you are moving from an existing LangSmith Cloud or [self-hosted](/langsmith/self-hosted) instance, users, roles, datasets, prompts, experiments, annotation queue configuration, automation rules, dashboards, and Fleet resources can be copied over. Trace migration is supported on AWS. Contact the LangChain team to arrange it.
For more information, see [Migrate to BYOC](/langsmith/byoc-migration).
## Next steps
* [Use your data plane](/langsmith/byoc-usage) to point applications and API clients at the right endpoint.
* [BYOC architecture](/langsmith/byoc-architecture-aws) covers what LangChain provisions and how the planes communicate.
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/byoc-onboarding-aws.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# BYOC onboarding on Azure
Source: https://docs.langchain.com/langsmith/byoc-onboarding-azure
Set up a LangSmith BYOC data plane in your Azure subscription, from granting LangSmith access to a resource group to creating, changing, and deleting the data plane.
> [!NOTE]
>
> BYOC on Azure is in **[beta](/langsmith/release-stages)**. To get started, [contact our sales team](https://www.langchain.com/contact-sales).
This page describes how to create a LangSmith BYOC data plane in your Azure subscription. For how the data plane is built and secured, see [BYOC architecture on Azure](/langsmith/byoc-architecture-azure). For the AWS guide, see [BYOC onboarding](/langsmith/byoc-onboarding-aws).
Each data plane runs in its own resource group in your subscription. A Terraform module creates the resource group and a Key Vault in it, and gives the LangSmith BYOC application roles on that resource group only. LangChain then creates and operates the data plane resources in the resource group.
## Before you start
You need the following:
* **A LangSmith organization on Azure**: Use the LangSmith control plane on Azure at [azure.smith.langchain.com](https://azure.smith.langchain.com). Send your organization ID to the LangChain team to enable BYOC.
* **An Azure subscription**: LangChain recommends a subscription dedicated to LangSmith BYOC, but it is not required.
* **Azure permissions**: The person who applies Terraform needs the `Owner` role on the subscription, because the Terraform module creates custom roles and role assignments and registers resource providers. You also need a Microsoft Entra role that can create and update the service principal of a multi-tenant application in your tenant, such as `Cloud Application Administrator`.
* **Terraform**: Terraform 1.11.0 or later.
* **An organization admin in LangSmith**: Creating, changing, and deleting a data plane requires the organization admin role.
* **vCPU quota**: The AKS system node pool uses three `Standard_D2s_v6` VMs. LangSmith checks at create time that the region has at least 6 free vCPUs in both the **Total Regional vCPUs** quota and the Dsv6 VM family quota. Application nodes use D, E, and F series VMs of version 5 or later, so also plan quota for those families. See [Node pools](/langsmith/byoc-architecture-azure#compute).
* **A region**: BYOC on Azure can run in any Azure region. If you need a region that is not yet enabled, contact the LangChain team, who can add it.
## Create a data plane
**1. Copy the external ID**
LangChain assigns your organization an external ID. Navigate to **Settings > Data Planes** in LangSmith and use the copy button next to the **Data Planes** header to copy it. Do not create your own value.
LangSmith uses the external ID to confirm that the role assignments in your subscription belong to your organization.
**2. Grant LangSmith access with Terraform**
Apply the [`langsmith-byoc-access` Terraform module](https://github.com/langchain-ai/terraform/blob/main/modules/byoc/azure/langsmith-byoc-access/main.tf) in your Azure subscription with the external ID you copied. You must use this module. For each data plane in its `data_planes` input, it creates:
* **The LangSmith BYOC service principal**: The service principal of the LangSmith BYOC multi-tenant application, with application (client) ID `5b0a74cb-9f37-4797-b557-c15d7be80d3b`, in your Microsoft Entra tenant. It is created once per tenant, and the application requests no Microsoft Graph permissions.
* **A dedicated resource group**, `langsmith-byoc-`: LangSmith deploys the data plane into it. Do not put other workloads in it.
* **A Key Vault in the resource group**: It uses Azure RBAC authorization and has public network access disabled. LangSmith writes the data plane's bootstrap secret to it, and the data plane reads it through a private endpoint.
* **Two role assignments for the service principal on the resource group**: A `langsmith-byoc--` custom role with the actions LangSmith needs, and `User Access Administrator`. Both roles can only be used in that resource group, and both assignments carry your external ID as their description.
```hcl theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">= 4.42.0, < 5.0.0"
}
azuread = {
source = "hashicorp/azuread"
version = "~> 3.0"
}
}
}
provider "azurerm" {
subscription_id = ""
features {}
# The data plane needs these resource providers. LangSmith cannot
# register them, because its roles stop at the resource group.
resource_providers_to_register = [
"Microsoft.Cache",
"Microsoft.Compute",
"Microsoft.ContainerService",
"Microsoft.DBforPostgreSQL",
"Microsoft.KeyVault",
"Microsoft.ManagedIdentity",
"Microsoft.Network",
"Microsoft.Storage",
]
}
provider "azuread" {}
variable "external_id" {
description = "The external ID from Settings > Data Planes in LangSmith."
type = string
}
module "langsmith_byoc_access" {
source = "github.com/langchain-ai/terraform//modules/byoc/azure/langsmith-byoc-access?ref=main"
langsmith_app_client_id = "5b0a74cb-9f37-4797-b557-c15d7be80d3b"
external_id = var.external_id
data_planes = {
prod = {
location = "eastus"
}
}
}
output "langsmith_byoc_access" {
value = module.langsmith_byoc_access
}
```
Replace the subscription ID and the region. The `data_planes` key (`prod` in the example) names the resource group: 1 to 63 lowercase letters, digits, and hyphens, starting with a letter and ending with a letter or digit, with no consecutive hyphens. Apply the configuration with your external ID, for example `terraform apply -var 'external_id='`.
Then read the outputs for the next step:
```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
terraform output -json langsmith_byoc_access
```
You need `azure_entra_tenant_id`, and the `region` and `resource_group_id` of the data plane under `data_planes`.
For what each role allows, see [Access and permissions](/langsmith/byoc-architecture-azure#access-and-permissions). For all module inputs, see the [module README](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/azure/langsmith-byoc-access).
**3. Create the data plane**
1. In [LangSmith on Azure](https://azure.smith.langchain.com), go to **Settings > Data Planes** and click **+ Data Plane**.
2. Fill in the **Create a data plane** form using the Terraform outputs from the previous step:
| Field | Description |
| - | - |
| **Name** | Up to 24 lowercase letters, digits, and hyphens. Starts and ends with a letter or digit, and does not start with `internal`. For example, `prod`. |
| **Azure region** | Select the region of the resource group. |
| **Microsoft Entra tenant ID** | Use the `azure_entra_tenant_id` output, in `8-4-4-4-12` UUID form. |
| **Azure resource group ID** | Use the `resource_group_id` output, in the form `/subscriptions//resourceGroups/`. Each resource group serves one data plane. |
| **Use existing managed identities** | Select this only if you set `byo_iam = true` for this data plane in the module's `data_planes` input, so that Terraform creates the identities and their role assignments. Set `byo_iam` before you create the data plane, because it cannot change later. See [Bring your own identities](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/azure/langsmith-byoc-access#bring-your-own-identities-optional). Otherwise, leave it cleared. |
| **VNet CIDR Range** | The address range of the VNet that LangSmith creates for the data plane. Use a private RFC 1918 range from `/16` to `/18` that does not overlap your other networks. |
| **Load balancer access** | Leave on **Private**, the default, for access from the data plane VNet and connected networks only. Switch to **Public** for an internet-facing endpoint. |
3. Click **Create data plane**. LangSmith confirms with **Data plane requested**.
Before LangSmith accepts the request, it checks that:
* The role assignments of the LangSmith service principal on the resource group have your external ID as their description.
* The service principal has the permissions it needs on the resource group.
* The resource group contains exactly one Key Vault, and the vault uses Azure RBAC.
* Your subscription can create the AKS system node size and the PostgreSQL size in the region, and has enough vCPU quota for the system node pool.
If a check fails, the form shows the error. Fix the problem and click **Create data plane** again. See [Troubleshoot data plane creation](#troubleshoot-data-plane-creation).
**4. Wait for provisioning**
LangChain provisions the data plane resources in your resource group. The data plane moves from `requested` to `provisioning` to `active`. Track its state in **Settings > Data Planes**.
If the data plane does not become active within 3 hours, it moves to `provisioning_failed`. If that happens, contact the LangChain team.
**5. Connect to the data plane**
The data plane URL has the form `https://.azure.langchain-byoc.com`. Find it under **Settings > Data Planes**.
* **Internal load balancer** (`public_load_balancer: false`): Users and applications reach the data plane only from its VNet. Connect your network to that VNet, for example with VNet peering or a VPN gateway. Configure DNS resolution from your network to the VNet-linked private DNS zone. Peering or a VPN alone does not provide DNS resolution.
* **Public load balancer** (`public_load_balancer: true`): Users and applications reach the data plane over the internet.
If the LangSmith UI cannot reach your data plane, it prompts you to switch to a workspace on a data plane that is reachable.
**6. Create workspaces**
A workspace named `dp-` is created automatically in the new data plane. It is not accessible until the data plane is reachable.
You can create more workspaces in the data plane. Select the target data plane when you create each one: a workspace belongs to exactly one data plane, and a data plane can hold many workspaces.
> [!WARNING]
>
> A workspace cannot be moved to another data plane after creation.
**7. (Optional) Migrate existing data**
If you are moving from LangSmith Cloud or a [self-hosted](/langsmith/self-hosted) instance, contact the LangChain team to arrange a migration. Trace migration is supported on AWS only.
For more information, see [Migrate to BYOC](/langsmith/byoc-migration).
To send traces and API requests to the data plane, see [BYOC usage](/langsmith/byoc-usage).
## Troubleshoot data plane creation
| Code | HTTP status | Cause | Fix |
| - | - | - | - |
| `azure_external_id_mismatch` | 403 | A role assignment of the LangSmith service principal on the resource group does not have your organization's external ID as its description. | Apply the Terraform module with the external ID from **Settings > Data Planes**, then retry. |
| `azure_permissions` | 403 | The LangSmith service principal cannot access the resource group, or lacks a required permission. The remedy lists the missing actions. | Check that the resource group exists and that you applied the Terraform module without `reduced_access`, then retry. |
| `azure_policy_denied` | 403 | An Azure Policy assignment in your subscription denied a request. | Exempt the data plane resource group from the policy, then retry. |
| `azure_resource_group_invalid` | 400 | The resource group does not exist, does not contain exactly one Key Vault, or its vault does not use Azure RBAC. | Fix the resource group, then retry. |
| `azure_region_unavailable` | 400 | Your subscription cannot use the region, or cannot create the AKS system node size or the PostgreSQL size in it. | Choose another region, or ask Azure support to enable the VM size or PostgreSQL for your subscription in the region. |
| `insufficient_azure_quota` | 422 | The region does not have enough free vCPU quota for the AKS system node pool. | Request a quota increase, or choose another region. |
| `azure_resource_group_in_use` | 409 | Another data plane uses the resource group. | Create a new resource group for the data plane. |
| `data_plane_name_taken` | 409 | Your organization already has a data plane with this name. | Choose another name. |
| `azure_throttled` | 429 | Azure is rate limiting requests for your subscription. | Wait a minute, then retry. |
| `azure_unavailable` | 502 or 503 | Azure returned a server error, or did not report the vCPU quota. | Wait a minute, then retry. |
Invalid field values return HTTP 400 with the field name and the rule that the value breaks.
## Change data plane settings
The settings form in the LangSmith UI supports AWS maintenance windows only. To change the maintenance window of an Azure data plane, use the [Update data plane settings](/langsmith/smith-api/data_planes/update-data-plane-settings) API:
```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
curl -X PATCH 'https://azure.api.smith.langchain.com/orgs/current/data-planes/' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: ' \
-H 'X-Organization-Id: ' \
-d '{"maintenance_window": "sun:07:00-sun:11:00"}'
```
You can change the following settings of an Azure data plane while it is `provisioning` or `active`:
| Setting | Field | Azure |
| - | - | - |
| Maintenance window | `maintenance_window` | A weekly UTC window of exactly 4 hours that starts on the hour, in the form `ddd:HH:00-ddd:HH:00`. The default is `sun:07:00-sun:11:00`. AKS upgrades and PostgreSQL maintenance happen in this window. |
| Trace payload retention | `ttl` | Supported. By default, `short_days` is 14 and `long_days` is 400. |
| Network firewall | `firewall` | Not available on Azure. |
| Fleet OIDC | `fleet_oidc` | Not available on Azure. |
## Reduce access after deployment
Once the data plane is `active`, you can reduce the permissions of its `langsmith-byoc--` custom role. Set `reduced_access = true` for the data plane in the Terraform module and run `terraform apply`:
```hcl theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
data_planes = {
prod = {
location = "eastus"
reduced_access = true
}
}
```
Terraform updates the custom role actions in place and deletes the `User Access Administrator` assignment. The custom role assignment stays, so LangSmith keeps access. Azure applies the change in up to 5 minutes. With the reduced role, LangChain can still upgrade, scale, and repair the data plane, but cannot delete the data plane, its databases, its storage accounts, or its network, and cannot create role assignments. Set `reduced_access` back to `false` before an upgrade that adds a role assignment, and before you delete or re-create the data plane.
## Delete a data plane
> [!WARNING]
>
> Do not remove the data plane from the Terraform module before you delete it in LangSmith. LangSmith needs its role assignments to delete the data plane resources.
1. If the data plane has `reduced_access = true`, set it to `false`, run `terraform apply`, and wait 5 minutes for Azure to apply the role change.
2. Delete the data plane in **Settings > Data Planes**, or with the `DELETE /orgs/current/data-planes/` API. You can delete an Azure data plane while it is `provisioning`, `active`, or `provisioning_failed`. LangSmith first checks that it can still access your resource group.
3. Wait until the data plane is gone from **Settings > Data Planes**.
LangSmith deletes the AKS cluster, PostgreSQL, Redis, the network, and the private DNS zones. It keeps the following in your resource group:
* The resource group and the Key Vault.
* The Blob storage accounts that hold your trace data and SmithDB data.
Azure keeps the backups of a deleted PostgreSQL server for a limited time, during which you can restore it. See [Restore a dropped Azure Database for PostgreSQL flexible server](https://learn.microsoft.com/azure/postgresql/flexible-server/how-to-restore-dropped-server).
If you create a new data plane with the same name in the same resource group, it reuses the Key Vault and the retained Blob storage accounts.
When you no longer need the retained data, delete the Blob storage accounts in the resource group, then remove the data plane's key from `data_planes` and run `terraform apply`. Terraform then deletes the resource group, the Key Vault, and the role assignments. With the default `features {}` block, the AzureRM provider refuses to delete a resource group that still contains resources Terraform does not manage, such as the retained storage accounts.
## Remove LangSmith access
To stop LangSmith from changing or deleting a data plane, remove the role assignments of the LangSmith service principal on its resource group and on its AKS cluster. Removing the Terraform module removes the service principal and all role assignments, so LangSmith loses access to every data plane in the tenant. The data plane resources stay in your subscription, and LangChain can no longer upgrade or repair them. Delete the data plane first if you want LangSmith to clean up its resources.
## Next steps
* [BYOC architecture on Azure](/langsmith/byoc-architecture-azure) covers the resources in your subscription, the network paths, and how LangSmith accesses them.
* [BYOC usage](/langsmith/byoc-usage) covers how to point applications and API clients at the data plane.
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/byoc-onboarding-azure.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# BYOC onboarding on GCP
Source: https://docs.langchain.com/langsmith/byoc-onboarding-gcp
Set up a LangSmith BYOC data plane in your GCP project, from the provisioner service account to creating, changing, and deleting the data plane with the API.
BYOC on GCP runs the LangSmith data plane in your GCP project, on the LangSmith US control plane at [smith.langchain.com](https://smith.langchain.com?utm_source=docs\&utm_medium=cta\&utm_campaign=langsmith-signup\&utm_content=langsmith-byoc-onboarding-gcp). You create the service account LangSmith provisions as, then create the data plane with the LangSmith API. For BYOC on AWS, see [BYOC onboarding](/langsmith/byoc-onboarding-aws).
> [!NOTE]
>
> BYOC on GCP is in [beta](/langsmith/release-stages). Inputs and behavior can change between releases.
For what LangSmith deploys in your project and the access it gets, see [BYOC architecture on GCP](/langsmith/byoc-architecture-gcp).
## Before you start
You need the following:
* **BYOC enabled on your organization**: Create an organization in LangSmith at [smith.langchain.com](https://smith.langchain.com?utm_source=docs\&utm_medium=cta\&utm_campaign=langsmith-signup\&utm_content=langsmith-byoc-onboarding-gcp), or reuse an existing one, and send its organization ID to the LangChain team to enable BYOC.
* **An organization admin**: Creating a data plane requires the organization admin role, and an API key for that user.
* **A GCP project for the data planes**: Use a project that holds only LangSmith resources. Most of the provisioner's permissions apply only to resources whose names start with `langsmith-`, but some cover the whole project. If the project also holds other resources, set `byo_iam = true` in [Step 2](#step-2-run-the-terraform-module). The project must not already have a `managed_by` tag key, and must hold only one copy of the Terraform module. For details, see [What LangChain can and cannot access](/langsmith/byoc-architecture-gcp#what-langchain-can-and-cannot-access).
* **Permissions in that project**: Permission to create service accounts, grant project IAM roles, enable APIs, and create tags. The tags need Tag Administrator (`roles/resourcemanager.tagAdmin`) on the project.
* **Terraform**: Terraform 1.11.0 or later, with Google provider 6.0 or later, before 9.0.
* **A GCP region**: BYOC on GCP can run in any GCP region. If the region you need is not enabled yet, contact the LangChain team to add it.
* **Resource location policies**: If your GCP organization restricts resource locations, allow the data plane region and `us-central1`. The data plane creates its Private Service Connect endpoint to LangSmith in `us-central1`.
## Set up a data plane
```mermaid theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
flowchart LR
A["1. Get the
external ID"] --> B["2. Run the
Terraform module"]
B --> C["3. Create the
data plane"]
C --> D["4. Wait until
active"]
classDef process fill:#E5F4FF,stroke:#006DDD,stroke-width:2px,color:#030710
class A,B,C,D process
```
### Step 1. Get the external ID
Navigate to **Settings > Data Planes** in LangSmith and use the copy button next to the **Data Planes** header to copy the external ID. Do not make up your own value.
### Step 2. Run the Terraform module
Apply the [`langsmith-byoc-service-account` Terraform module](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/gcp/langsmith-byoc-service-account) in your project. The module:
* Enables the APIs that data planes use. Set `enable_apis = false` if you manage the project's APIs elsewhere.
* Creates the provisioner service account `langsmith-byoc-provisioner`, with its description set to your external ID.
* Grants it custom roles with only the permissions that provisioning and teardown use. Most of them apply only to resources whose names start with `langsmith-`.
* Creates the tag `managed_by: langsmith` in the project, and grants the LangSmith control plane service account `roles/container.admin` only on GKE clusters with that tag. LangSmith tags the data plane GKE clusters and Cloud SQL instances it creates, and the Postgres setup account's Cloud SQL permissions apply only to tagged instances.
* Lets the LangSmith control plane service account, `byoc-crossplane@langchain-prod.iam.gserviceaccount.com`, impersonate it through the Service Account Token Creator role. The module trusts no other LangSmith identity.
```hcl theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
provider "google" {
project = ""
}
module "langsmith_byoc_service_account" {
source = "github.com/langchain-ai/terraform//modules/byoc/gcp/langsmith-byoc-service-account?ref=v0.17.80"
project_id = ""
crossplane_service_account = "byoc-crossplane@langchain-prod.iam.gserviceaccount.com"
external_id = ""
}
output "provisioner_service_account" {
value = module.langsmith_byoc_service_account.provisioner_service_account
}
```
LangSmith requires release v0.17.80 or later of the module. If you applied an earlier release, re-apply the module at v0.17.80 or later.
To create the data plane service accounts and their project roles yourself, set `byo_iam = true` before you create data planes in the project. The provisioner then cannot create service accounts or change the project IAM policy. Set it if the project holds resources that are not LangSmith's. Create the data plane with `byoiam_enabled` set to `true`. For more information, see [Bring your own IAM](/langsmith/byoc-architecture-gcp#bring-your-own-iam).
### Step 3. Create the data plane
LangSmith automatically adds your project to the Private Service Connect accept list during provisioning. You do not need to send your project number to LangChain or wait for manual approval before creating the data plane.
Create the data plane with the LangSmith API, using an organization admin's API key:
```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
curl -X POST https://api.smith.langchain.com/orgs/current/data-planes \
-H "X-API-Key: $LANGSMITH_API_KEY" \
-H "X-Organization-Id: " \
-H "Content-Type: application/json" \
-d '{
"name": "prod",
"region": "",
"gcp_project_id": "",
"provisioner_service_account": "langsmith-byoc-provisioner@.iam.gserviceaccount.com",
"vpc_cidr": "10.80.0.0/16",
"public_load_balancer": false
}'
```
The request takes the following fields:
| Field | Rule |
| - | - |
| `name` | Up to 21 characters: lowercase letters, digits, and hyphens. Must start with a letter, end with a letter or digit, and not start with `internal`. Must be unique in your organization. |
| `region` | The GCP region of the data plane. BYOC on GCP can run in any GCP region. If the region you need is not enabled yet, contact the LangChain team to add it. |
| `gcp_project_id` | The project from [Step 2](#step-2-run-the-terraform-module). |
| `provisioner_service_account` | The `provisioner_service_account` Terraform output. It must be in the project. |
| `vpc_cidr` | The range of the VPC that LangSmith creates. A private RFC 1918 range from `/16` to `/18`. It must not overlap `192.168.0.0/17`, which GKE pods and services use. |
| `public_load_balancer` | `true` for a public endpoint. `false` (default) for an internal endpoint. See [Choose a public or internal endpoint](#choose-a-public-or-internal-endpoint). |
| `byoiam_enabled` | Optional. `true` if you applied the module with `byo_iam = true`. |
| `sandboxes_enabled` | Optional. `true` to deploy [LangSmith sandboxes](/langsmith/sandboxes) in the data plane. Defaults to `false`. |
The API returns `202` with the data plane's `id`, `api_url`, and `status`. Before it accepts the request, LangSmith checks that it can impersonate the provisioner, and that the provisioner is in the project and carries your external ID. If a check fails, the response names the problem. See [Troubleshoot create errors](#troubleshoot-create-errors).
### Step 4. Wait until active
LangSmith provisions the infrastructure in your project. The data plane status moves from `requested` to `provisioning` to `active`. Track it in **Settings > Data Planes**, or with `GET /orgs/current/data-planes/`.
> [!NOTE]
>
> Provisioning can take up to 3 hours. After 3 hours, the status changes to `provisioning_failed`. If that happens, contact the LangChain team.
After the data plane is active, a workspace named `dp-` is available in it, and you can create more workspaces. See the **Create workspaces** step in [BYOC onboarding](/langsmith/byoc-onboarding-aws).
## Use your data plane
### Find the data plane URL
The data plane URL is the `api_url` of the data plane: `https://.gcp.langchain-byoc.com`. You can also find it in **Settings > Data Planes**.
To point applications and API clients at the data plane, see [BYOC usage](/langsmith/byoc-usage).
### Choose a public or internal endpoint
You pick the endpoint type when you create the data plane:
* **Public**: Users reach the data plane from the internet.
* **Internal** (default): The ingress is on an internal load balancer, and the hostname resolves only inside the data plane VPC. Connect your network to that VPC, for example with VPC peering or Cloud VPN, and make the hostname resolve from your network.
Outbound traffic from the data plane leaves through Cloud NAT with a static IP address, so you can allowlist the data plane.
### Change data plane settings
On GCP, you can change the maintenance window. Blob TTL, Fleet OIDC, and network firewall settings are not available.
The maintenance window is two hours in UTC, on whole hours, for example `sun:07:00-sun:09:00`. It applies to Cloud SQL and Memorystore, whose windows last one hour, so LangSmith uses only the start. When it is unset, Google picks the window.
```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
curl -X PATCH https://api.smith.langchain.com/orgs/current/data-planes/ \
-H "X-API-Key: $LANGSMITH_API_KEY" \
-H "X-Organization-Id: " \
-H "Content-Type: application/json" \
-d '{"maintenance_window": "sun:07:00-sun:09:00"}'
```
GKE nodes upgrade automatically on the GKE `REGULAR` release channel.
## Troubleshoot create errors
The create request returns these error codes:
| Code | HTTP | Cause | Fix |
| - | - | - | - |
| `gcp_permissions` | 403 | LangSmith cannot impersonate the provisioner, or the provisioner lacks a permission. | Apply the Terraform module, and check `crossplane_service_account`. |
| `gcp_api_disabled` | 400 | A required API is disabled in the project. | Enable the API named in the message, or keep `enable_apis = true`. |
| `gcp_project_not_found` | 400 | The project does not exist, or the provisioner cannot see it. | Check `gcp_project_id`. |
| `gcp_service_account_not_found` | 400 | The provisioner service account does not exist in the project. | Check `provisioner_service_account` and `gcp_project_id`. |
| `gcp_provisioner_project_mismatch` | 400 | The provisioner is in a different project. | Use the provisioner the module created in the data plane project. |
| `gcp_provisioner_not_owned` | 403 | The provisioner's description is not your external ID. | Reapply the module with the external ID from **Settings > Data Planes**. |
| `byoiam_validation` | 400 | `byoiam_enabled` is `true`, but the project lacks the LangSmith service accounts. | Apply the module with `byo_iam = true`. |
| `gcp_policy_denied` | 403 | An organization policy denied a request, for example a resource location constraint. | Allow the data plane region and `us-central1` in the policy. |
| `gcp_throttled` | 429 | GCP rate limited the requests. | Try again after a minute. |
| `gcp_unavailable` | 502 | GCP returned an error. | Try again after a minute. |
| `organization_admin_required` | 403 | The API key's user is not an organization admin. | Use an organization admin's API key. |
| `organization_external_id_missing` | 409 | BYOC is not set up for your organization. | Contact the LangChain team. |
| `data_plane_name_taken` | 409 | Your organization already has a data plane with this name. | Choose another `name`. |
A request that fails field validation, such as a region that is not enabled or a `vpc_cidr` that overlaps the GKE ranges, returns `400` with the field and the reason.
## Delete a data plane
> [!WARNING]
>
> Do not destroy the Terraform module before you delete the data plane in LangSmith. LangSmith needs the provisioner to delete the data plane resources.
To delete a data plane:
1. Delete the data plane with `DELETE /orgs/current/data-planes/`. You can delete it while it is `active`, `provisioning`, or `provisioning_failed`. LangSmith deletes the resources it created in the project, except the data: the Cloud Storage bucket stays with its objects, and the Cloud SQL backups outlive the instance. See [What teardown keeps](#what-teardown-keeps).
2. Wait until the data plane is gone from **Settings > Data Planes**.
3. If no other data planes use the project, run `terraform destroy`.
### What teardown keeps
Teardown keeps the data plane's data in your project:
* **Cloud Storage bucket**: The bucket and its objects stay. Its labels include the data plane ID.
* **Final Cloud SQL backup**: Cloud SQL takes a final backup when it deletes the instance, and keeps it for 365 days.
* **Automated Cloud SQL backups**: The instance's automated backups stay, and expire one a day.
LangSmith does not delete them later, and neither does `terraform destroy`. Delete them yourself when you no longer need them.
## Get help
When something does not work, [contact LangChain support](https://support.langchain.com) with:
* Your organization ID and data plane name.
* What you did, and what happened.
* Error messages, screenshots, and timestamps.
* For provisioning problems: your GCP project ID, project number, and region.
## See also
* [BYOC architecture on GCP](/langsmith/byoc-architecture-gcp)
* [BYOC overview](/langsmith/byoc)
* [BYOC usage](/langsmith/byoc-usage)
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/byoc-onboarding-gcp.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# BYOC operations
Source: https://docs.langchain.com/langsmith/byoc-operations-aws
How LangChain upgrades, patches, and maintains a LangSmith BYOC data plane, and when maintenance requires a scheduled window.
LangChain operates your data plane after provisioning, including upgrades, scaling, monitoring, and security patching. Most maintenance is non-disruptive and requires no action from you.
## Autoscaling
LangChain scales your data plane as load changes, so you do not need to size or tune it:
* **Stateless LangSmith services**: Scaled horizontally by a horizontal pod autoscaler, with Karpenter provisioning and removing node capacity as pod demand changes.
* **Databases**: LangChain sizes and scales RDS and ElastiCache.
## High availability
Data planes are provisioned for high availability by default. The deployment spans multiple availability zones in your region, and RDS and ElastiCache run Multi-AZ with automatic failover.
> [!NOTE]
>
> To run a data plane without high availability, contact the LangChain team.
## Instance sizes
Data planes are provisioned with default instance sizes for the databases and node groups. To run a data plane on smaller instances, contact the LangChain team.
## LangSmith upgrades
LangChain upgrades the LangSmith version in your data plane daily. Upgrades are rolling, replica-by-replica, so there is no whole-service downtime.
Two mechanisms keep upgrades free of downtime:
* **Horizontal pod autoscaling**: LangSmith services run multiple replicas, sized by a horizontal pod autoscaler, so pods are replaced a few at a time while the remaining replicas continue serving traffic.
* **Pod disruption budgets**: A pod disruption budget caps how many replicas of a service can be unavailable at once, so neither a rolling update nor a node drain takes a service below the capacity it needs to stay available.
## Supporting service upgrades
Background services such as Istio and KEDA are upgraded on a regular cadence. Data planes that still run ClickHouse also receive ClickHouse operator upgrades. These upgrades are non-intrusive, and no service interruption is expected.
## Kubernetes cluster upgrades
The EKS cluster that hosts your data plane requires periodic upgrades to maintain security, compatibility, and access to new features. LangChain performs these upgrades proactively, ahead of AWS end-of-support dates, and coordinates the window with you.
Cluster upgrades fall into two types:
* **Control plane upgrades**: Cover the Kubernetes API server and the components AWS manages alongside it. These are transparent to your workloads and do not restart pods.
* **Node group upgrades**: Roll nodes one by one with make-before-break semantics. New nodes are provisioned on the updated version, pods move onto them, and the old nodes are terminated once migration completes. Pod disruption budgets apply to the drain, so each service stays available, though you might see brief connection resets as individual pods restart. No data is lost.
## Maintenance windows
Any maintenance or upgrade that could cause downtime, such as a restart of RDS or ElastiCache, happens in a scheduled maintenance window that LangChain coordinates with you in advance.
## Observability
You can deploy observability tooling into the cluster, such as a Datadog agent or an OpenTelemetry collector, and your own security monitoring agents, as long as they do not interfere with LangSmith workloads.
LangSmith services emit logs, metrics, and traces the same way they do on self-hosted, so the same configuration applies. See [Export LangSmith telemetry to your observability backend](/langsmith/export-backend).
## Troubleshooting
The LangChain team has no standing access to your data, and can only manage the infrastructure of your data plane. When troubleshooting requires access to data, there are two paths:
* **You run the query**: You run the query yourself, and validate and sanitize the output before sharing it with LangChain.
* **Break-glass access**: You allowlist a specific engineer to perform the operation. You can revoke that access at any time.
> [!NOTE]
>
> If break-glass access is needed, the LangChain team reaches out with instructions.
## Auditing
* **LangSmith audit logs**: Operations on data plane resources are recorded in the data plane and accessible at your data plane endpoint. Control plane actions, such as creating a user, are audited in the control plane. For how to access both, see [Audit logs](/langsmith/audit-logs).
* **EKS audit logs**: Sent to CloudWatch in your account, so you can monitor the commands that were run.
* **VPC flow logs**: Recorded in an S3 bucket in your account. With [BYOVPC](/langsmith/byoc-byovpc-aws), you configure VPC flow logs yourself.
Setting up alerts on those logs is your responsibility.
## See also
* [BYOC architecture](/langsmith/byoc-architecture-aws)
* [Using BYOC](/langsmith/byoc-usage)
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/byoc-operations-aws.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# BYOC operations on Azure
Source: https://docs.langchain.com/langsmith/byoc-operations-azure
How LangChain scales, upgrades, and maintains a LangSmith BYOC data plane on Azure, including instance sizes, maintenance windows, and auditing.
LangChain operates your Azure data plane after provisioning, including upgrades, scaling, monitoring, and security patching. You do not need to size or tune each service. For BYOC on AWS, see [BYOC operations](/langsmith/byoc-operations-aws).
## Autoscaling
LangChain scales your data plane as load changes:
* **Stateless LangSmith services**: KEDA scales each service between its minimum and maximum replica counts. Most services target 70% CPU and 80% memory of their requested resources.
* **Cluster nodes**: AKS [node auto-provisioning](https://learn.microsoft.com/azure/aks/node-autoprovision) adds capacity for pods that cannot be scheduled and removes unused capacity. Each node pool has CPU and memory limits. The general pool is limited to 100 vCPUs and 400 GiB of memory. The system node pool stays at three nodes.
* **Storage**: PostgreSQL storage autogrow is enabled. Blob storage grows with usage, and lifecycle rules expire trace payloads according to their retention tier.
* **Databases**: LangChain monitors usage and can change PostgreSQL and Redis sizes, service replica counts, and node pool limits.
SmithDB uses dedicated node pools for compute and local NVMe cache storage. For storage configuration and retention, see [Data stores](/langsmith/byoc-architecture-azure#data-stores) and [Data protection](/langsmith/byoc-architecture-azure#data-protection).
## High availability
Data planes use zone-redundant PostgreSQL standby servers in regions that support them. Azure Managed Redis has a replica for high availability. Blob storage uses zone-redundant storage (ZRS) in regions with availability zones and locally redundant storage (LRS) elsewhere.
## Instance sizes
Data planes start with the following database and system node sizes. To request different sizes, contact the LangChain team.
| Resource | Default size |
| - | - |
| PostgreSQL (LangSmith) | PostgreSQL 18, `GP_Standard_D2ds_v4`, 32 GiB storage with autogrow |
| PostgreSQL (SmithDB metastore) | PostgreSQL 18, `GP_Standard_D2ds_v4`, 128 GiB storage with autogrow |
| Azure Managed Redis | `Balanced_B3`, high availability enabled, persistence disabled |
| AKS system node pool | Three `Standard_D2s_v6` nodes, fixed size |
| Application and SmithDB nodes | Node auto-provisioning, within each node pool's limits |
LangSmith services start with these resource requests and autoscaling bounds:
| Service | Minimum replicas | Maximum replicas | CPU request | Memory request |
| - | - | - | - | - |
| Backend | 2 | 20 | 1 | 4 GiB |
| Platform backend | 2 | 20 | 500m | 1 GiB |
| Ingest queue | 2 | 20 | 2 | 4 GiB |
| Queue | 1 | 10 | 1 | 4 GiB |
| Listener | 1 | 10 | 1 | 1500 MiB |
| Host backend | 1 | 10 | 500m | 1000 MiB |
| ACE backend | 1 | 10 | 1 | 2 GiB |
| Presidio | 1 | 10 | 250m | 2 GiB |
## LangSmith upgrades
LangChain manages LangSmith version upgrades. Services use horizontal pod autoscaling and pod disruption budgets to limit the impact of replacing pods. Availability during an update depends on the service's replica count and available cluster capacity.
## Supporting service upgrades
LangChain manages supporting services such as Istio and KEDA alongside the LangSmith workloads. Azure data planes store traces in SmithDB and do not run ClickHouse.
## Kubernetes cluster upgrades
AKS applies Kubernetes patch versions and node image updates automatically, within the data plane's maintenance window. The system node pool uses a surge node during upgrades so pods can move onto new capacity.
## Maintenance windows
Azure data planes have a weekly, four-hour maintenance window in UTC. The default is Sunday, 07:00–11:00 UTC (`sun:07:00-sun:11:00`). AKS upgrades and PostgreSQL maintenance use this window.
To change the window, use the API described in [Change data plane settings](/langsmith/byoc-onboarding-azure#change-data-plane-settings). The maintenance-window settings form in the LangSmith UI supports AWS only.
## Observability
The data plane reads PostgreSQL and Redis metrics from Azure Monitor and reports health metrics to LangChain. You can configure LangSmith service logs, metrics, and traces as on self-hosted deployments. See [Export LangSmith telemetry to your observability backend](/langsmith/export-backend).
You can deploy your own observability and security monitoring agents, as long as they do not interfere with LangSmith workloads.
## Troubleshooting
LangChain manages the resources in your data plane through delegated Microsoft Entra roles. Those management roles do not grant data roles on Blob storage, PostgreSQL, or Redis. For the full permission model, see [Access and permissions](/langsmith/byoc-architecture-azure#access-and-permissions).
When troubleshooting requires data, you can run the query yourself, then validate and sanitize the output before sharing it with LangChain. If an engineer needs temporary access, the LangChain team coordinates the access with you.
## Auditing
* **LangSmith audit logs**: Data plane operations are recorded in the data plane, and control plane actions are recorded in the control plane. See [Audit logs](/langsmith/audit-logs).
* **Azure Activity Log**: Records LangSmith calls to Azure Resource Manager in your subscription.
* **Resource and network logs**: LangSmith does not configure Azure diagnostic settings or VNet flow logs. AKS control plane and audit logs, Key Vault audit logs, PostgreSQL logs, and network flow logs are not collected by default. Configure diagnostic settings and flow logs to collect them.
You are responsible for reviewing those logs and configuring alerts.
## See also
* [BYOC architecture on Azure](/langsmith/byoc-architecture-azure)
* [Azure data plane cost estimate](/langsmith/byoc-data-plane-cost-azure)
* [Using BYOC](/langsmith/byoc-usage)
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/byoc-operations-azure.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# BYOC shared responsibility model
Source: https://docs.langchain.com/langsmith/byoc-shared-responsibility
How LangChain and your organization divide responsibility for a LangSmith BYOC deployment across operations, security, support, and compliance.
The BYOC shared responsibility model defines what LangChain manages and what your organization manages in a LangSmith BYOC deployment. Under this model, sensitive data does not transit LangChain infrastructure during normal operation. The sections below cover this division across platform and infrastructure, data and security, and operations and support.
For the multi-tenant SaaS equivalent, see the [LangSmith shared responsibility model](/langsmith/shared-responsibility-model). For the technical structure of the control plane and data plane, see [BYOC architecture](/langsmith/byoc-architecture-aws).
## Access model
* **Control plane and data plane are split**: LangChain runs the control plane. You own the cloud environment that contains the data plane, and LangChain manages the infrastructure inside that environment through delegated access.
* **Access is least privilege, with break-glass as the exception**: The routine access LangChain holds is scoped to provisioning and operations. Data access is not required for normal operations. Incident troubleshooting may require customer-approved break-glass access, granted through the shared support channel.
* **You remain accountable for your cloud account**: You control your cloud account or subscription governance, network connectivity, and internal access policies.
For GCP project access and networking requirements, see [GCP onboarding](/langsmith/byoc-onboarding-gcp).
For Azure resource group access, Key Vault setup, and networking requirements, see [Azure onboarding](/langsmith/byoc-onboarding-azure). For Azure resources and permissions, see [Azure architecture](/langsmith/byoc-architecture-azure).
## Platform and infrastructure
| Area | LangChain responsibilities | Your responsibilities |
| :- | :- | :- |
| **Service scope and architecture** | - Define the BYOC architecture
- Operate the control plane, covering organization configuration, authentication, billing metadata, and frontend assets
| - Get sign-off from your security, infrastructure, and application teams
- Confirm the BYOC architecture meets your requirements
|
| **Cloud account ownership** | - Operate only through customer-delegated roles and in-scope permissions
| - Own your cloud accounts or subscriptions and budgets
- Own account guardrails, such as service control policies on AWS
- Own organization structure and account lifecycle
|
| **Provisioning and changes** | - Provision the BYOC infrastructure and Kubernetes resources that run the LangSmith data plane
- Manage updates and rollouts for BYOC-managed components
- Acknowledge and schedule change requests through the shared support channel
| - Approve onboarding steps and provide the required account and region details
- Avoid manual edits to BYOC-managed resources
- Request changes through the shared support channel
|
| **Networking** | - Configure LangSmith components for the supported connectivity model, such as PrivateLink
- Communicate the required endpoints and constraints
| - Own the internal connectivity your users and applications need to reach the LangSmith BYOC data plane
|
| **Control plane** | - Operate authentication, organization configuration, and API key management
- Serve the static frontend assets and operate the usage and billing surfaces
| - Manage organization-level admins and govern who can create and manage data planes and workspaces
|
| **Data plane services** | - Operate the services that ingest and query traces, prompts, datasets, evaluations, insights, and deployments
- Keep those services healthy through monitoring, scaling, and upgrades
| - Do not co-locate unrelated workloads in the BYOC cluster or private network
- Validate application behavior in your environment
|
| **Scaling and capacity** | - Monitor and scale BYOC-managed services
- Give advance notice before material scaling events where possible, with the expected cost impact
| - Ensure cloud service quotas are high enough for the deployed services, and request increases as needed
- Accept the cost implications in your cloud account
- Define internal cost guardrails and alerts
|
| **Upgrades and patching** | - Roll out upgrades and patches to BYOC-managed components
- Coordinate for major changes and maintenance windows
| - Plan change management internally, including stakeholder communication and staging validation
- Follow your own change control processes
|
For details on how upgrades, autoscaling, and maintenance windows work, see [BYOC operations](/langsmith/byoc-operations-aws).
> [!NOTE]
>
> On AWS, with [BYOVPC](/langsmith/byoc-byovpc-aws), you also create and maintain:
>
> * VPC
> * Subnets
> * Routes,
> * Gateways
> * Customer-side VPC endpoints
> * Flow logs
> * Egress controls
>
> LangChain validates the supplied network before provisioning and manages the workload infrastructure inside it. Customer-managed network resources remain your responsibility during operation and after data plane deletion.
## Data and security
| Area | LangChain responsibilities | Your responsibilities |
| :- | :- | :- |
| **Customer data** | - Design the system so that sensitive data does not transit LangChain infrastructure for normal operation
- Avoid access to customer data in normal operation
| - Own the data in the data plane, including classification, retention, and access controls
- Own the legal and compliance obligations for that data
- Approve any data export or sharing internally
|
| **Data residency** | - Provision all data plane components and storage only within the cloud region you designate
- Keep customer data out of LangChain-managed infrastructure during normal operation
| - Specify the required cloud region at onboarding
- Communicate any change to your data residency requirements in advance
|
| **Secrets management** | - Use secret stores in the customer account for runtime secrets
- Reference secrets without persisting sensitive values in the control plane
| - Apply any organization-specific key management requirements
|
| **Break-glass access** | - Use break-glass access only for incident mitigation, with customer approval and a defined process
- Minimize the duration and scope of that access
- Give advance notice where possible
- Deliver a post-access summary covering timestamps, actions taken, and any data accessed
| - Approve break-glass access when it is required
- Define the internal approval workflow
- Review post-incident access logs and notes
|
| **Access audit logs** | - Provision the logging infrastructure in your account so LangChain access is recorded, including EKS audit logs
- Do not view, analyze, or alert on those logs on your behalf
| - Retain AWS CloudTrail and account-level logs for all LangChain-assumed roles
- View and analyze those logs, and set up your own alerting on them
- Escalate anomalies to LangChain through the shared support channel
|
| **Security incident notification** | - Notify you of a confirmed security incident in LangChain-owned infrastructure that affects your deployment, covering the control plane, corporate systems, and the BYOC build and release pipeline
- Share the incident scope, impact assessment, and remediation steps
- Cooperate on joint forensics
- Do not run security monitoring inside your cloud account
| - Deploy and operate security monitoring for the BYOC components in your account, such as EDR, IDS, container security, cloud security posture management, and log aggregation
- Keep that monitoring from affecting the operation of BYOC-managed resources
- Designate a security contact and define internal incident response procedures
- Notify LangChain promptly of any suspected compromise of customer-side credentials or access
|
| **Compliance and audits** | - Provide documentation on the BYOC architecture and operational model
- Supply audit evidence for LangChain-operated controls, including access logs, change history, security policies, and penetration test summaries
- Support SOC 2, ISO 27001, and equivalent audit programs
| - Own the compliance posture of your cloud environment and all customer-managed controls
- Run or coordinate audits and evidence collection for that environment
|
The IAM permissions that scope LangChain access are described in [Cross-account IAM permissions](/langsmith/byoc-architecture-aws#cross-account-iam-permissions). For how break-glass access works in practice, see [Troubleshooting](/langsmith/byoc-operations-aws#troubleshooting). For where the audit logs live and how to access them, see [Auditing](/langsmith/byoc-operations-aws#auditing).
## Operations and support
| Area | LangChain responsibilities | Your responsibilities |
| :- | :- | :- |
| **Observability** | - Provide and operate service-level monitoring and alerts for BYOC-managed components
- Request customer-provided signals when they are needed for diagnosis
| - Provide requested logs, metrics, and timestamps from your own systems
- Provide the same from your networking layers when troubleshooting requires it
|
| **Incident response and support** | - Act as primary responder for LangChain-managed components, covering the control plane and the BYOC-managed data plane services
- Coordinate communication through the shared support channel
| - Act as primary responder for customer-owned layers, including cloud policies, internal networking, and access controls
- Provide timely access and approvals for investigation
|
| **Backup and disaster recovery** | - Define and operate backup processes for LangChain-managed data plane components
- Provision data planes for high availability across multiple availability zones in a single region
| - Define your internal recovery objectives and validate them with the LangChain team
- Own backups for any customer-managed data stores outside the BYOC scope
|
| **Maintenance windows and change freezes** | - Perform infrastructure maintenance and upgrades inside the agreed maintenance window
- Act outside that window only when a change is required to keep the data plane functioning correctly, such as under increased load
- Accommodate requested change freezes for sensitive business periods, with reasonable advance notice
| - Set an AWS maintenance window in the LangSmith UI, or use the API for GCP and Azure
- Communicate upcoming change freezes, such as fiscal close or major releases, with reasonable advance notice
|
| **Offboarding and termination** | - Remove all LangChain-managed resources, IAM roles, and delegated access within the agreed timeframe on contract termination
- Provide written confirmation that deprovisioning is complete
| - Initiate offboarding through the shared support channel
- Verify resource and access cleanup after confirmation
- Revoke customer-managed roles and access grants tied to BYOC
|
## See also
* [BYOC architecture](/langsmith/byoc-architecture-aws)
* [BYOC operations](/langsmith/byoc-operations-aws)
* [BYOC FAQ](/langsmith/byoc-faq)
* [LangSmith shared responsibility model](/langsmith/shared-responsibility-model)
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/byoc-shared-responsibility.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# BYOC usage
Source: https://docs.langchain.com/langsmith/byoc-usage
Route tracing and API traffic to a LangSmith BYOC data plane, including tracing to multiple endpoints and the path prefixes for each service.
Once your data plane is active, all API traffic for its workspaces goes to the data plane endpoint rather than to the LangSmith Cloud backend. This page explains how to route requests to the right service.
The LangSmith UI handles this automatically: it routes to the correct data plane based on the workspace you have selected. The guidance below applies to your own client code and direct API calls.
## Organizations, data planes, and workspaces
A BYOC deployment adds one level to the standard LangSmith [resource hierarchy](/langsmith/administration-overview#resource-hierarchy): the data plane, which sits between the organization and the workspace.
* **Organization**: The top level. Users, roles, billing, SSO configuration, and API keys belong to the organization and live in the control plane.
* **Data plane**: Belongs to an organization and represents physical separation of data. An organization can have several data planes, each in its own AWS account and region.
* **Workspace**: Belongs to exactly one data plane, which you select when you create the workspace. Traces, datasets, experiments, and other agent data live in a workspace.

Use data planes for physical separation of data, and workspaces for logical separation within a data plane. Common ways to divide data planes are:
* **Per region**, such as `us-east-1` and `us-west-2`, to keep sensitive agent data in a specific region.
* **Per environment and region**, such as prod `us-east-1` and dev `us-east-1`, to hold production and development data in separate AWS accounts.
* **Per business unit**, when each unit owns its own AWS account.
Below the data plane, workspace isolation works the same as on Cloud or self-hosted. For more information, see [Administration overview](/langsmith/administration-overview) and [Workload isolation](/langsmith/workload-isolation).
## Find your data plane endpoint
Each data plane has a base URL. Navigate to **Settings > Data Planes** to see each of your data planes, its state, and its API URL.
> [!WARNING]
>
> Data planes are provisioned with a private endpoint by default, so you need private connectivity to reach the base URL, such as Tailscale, AWS PrivateLink, or VPC peering.
## Trace to a data plane
For tracing in an agent-based workspace, [create an agent and configure agent addressing](/langsmith/create-an-agent#configure-tracing-for-the-agent) before running the examples.
To send traces to a workspace that lives in your data plane, point the LangSmith SDK at the data plane endpoint and authenticate with an API key scoped to a workspace in that data plane:
```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
export LANGSMITH_TRACING=true
export LANGSMITH_API_KEY=""
export LANGSMITH_ENDPOINT="https://"
```
> [!WARNING]
>
> Create `LANGSMITH_API_KEY` from a workspace inside the target data plane. Traces are tenant-scoped, so an API key from a workspace on a different data plane, including a Cloud workspace, is rejected.
For a complete, runnable example, follow the [Observability quickstart](/langsmith/observability-quickstart) and substitute the environment variables above.
## Route API requests
The base URL routes to different services depending on the path prefix:
| Service | Path prefix | Example |
| - | - | - |
| LangSmith | None | `https:///v1/sessions` |
| OTLP ingestion | `/otel` | `https:///otel/v1/traces` |
| LangSmith Agent Server | `/api-host` | `https:///api-host/v2/deployments` |
| LLM Gateway | `/gateway` | `https:///gateway/v1/chat/completions` |
The LangSmith API also accepts an `/api` prefix, so `https:///api/v1/sessions` reaches the same endpoint. The SDK uses the bare data plane host, as shown in [Trace to a data plane](#trace-to-a-data-plane).
## Trace to multiple endpoints
Use these patterns to trace to both Cloud and a data plane, or to multiple data planes.
### Dual write to two endpoints
Set `LANGSMITH_RUNS_ENDPOINTS` to write to multiple endpoints. These replica settings use each agent environment's [`tracer_session_name`](/langsmith/create-an-agent#use-an-environment-project) as `project_name`:
```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
export LANGSMITH_RUNS_ENDPOINTS='[
{"api_url": "https://aws.api.smith.langchain.com", "api_key": "ls__key1", "project_name": ""},
{"api_url": "https://", "api_key": "ls__key2", "project_name": ""}
]'
```
### Choose the destination in agent logic
To decide where to trace at runtime, create a client per endpoint and select between them. Set `LANGSMITH_CLOUD_PROJECT` and `LANGSMITH_BYOC_PROJECT` to the corresponding agent environments' `tracer_session_name` values:
```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
import os
from langsmith import Client, traceable, tracing_context
CLOUD_ENDPOINT = "https://aws.api.smith.langchain.com"
BYOC_ENDPOINT = "https://"
def require_env(name: str) -> str:
value = os.getenv(name)
if not value:
raise RuntimeError(f"Missing required environment variable: {name}")
return value
cloud_client = Client(
api_key=require_env("LANGSMITH_CLOUD_API_KEY"),
api_url=CLOUD_ENDPOINT,
workspace_id=os.getenv("LANGSMITH_CLOUD_WORKSPACE_ID"),
)
byoc_client = Client(
api_key=require_env("LANGSMITH_BYOC_API_KEY"),
api_url=BYOC_ENDPOINT,
workspace_id=os.getenv("LANGSMITH_BYOC_WORKSPACE_ID"),
)
def get_workspace_routing(tenant_id: str):
"""Select the tracing destination for this tenant."""
if tenant_id.startswith("byoc_"):
return byoc_client, require_env("LANGSMITH_BYOC_PROJECT")
return cloud_client, require_env("LANGSMITH_CLOUD_PROJECT")
@traceable
def run_agent_workflow(query: str):
return f"Processed: {query}"
def handle_request(tenant_id: str, query: str):
client, project_name = get_workspace_routing(tenant_id)
with tracing_context(enabled=True, client=client, project_name=project_name):
return run_agent_workflow(query)
```
## See also
* [BYOC onboarding](/langsmith/byoc-onboarding-aws)
* [BYOC architecture](/langsmith/byoc-architecture-aws)
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/byoc-usage.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# Why BYOC
Source: https://docs.langchain.com/langsmith/byoc-why
Compare LangSmith BYOC with self-hosted LangSmith to decide which deployment model fits your organization.
BYOC is for organizations that want the data ownership and network isolation of self-hosting, without spending engineering time building and operating the full LangSmith platform themselves. The data plane stays in your AWS account, and LangChain manages the LangSmith infrastructure.
## What BYOC provides
* **Faster time to value**: You provision an AWS account and the required roles, and LangChain handles the rest of the provisioning flow.
* **Customer-owned data**: Databases, object storage, and compute run in infrastructure that you own.
* **Private networking**: The data plane runs inside your AWS account and can connect privately to your systems without exposing them publicly.
* **SaaS-aligned architecture**: The data plane is provisioned using a tried and tested architecture.
* **Monitoring out of the box**: LangChain has visibility into data plane health and metrics, and can proactively identify, investigate, and remediate issues.
* **Less platform maintenance**: Your engineering team spends more time driving value with LangSmith and less time managing LangSmith infrastructure, upgrades, scaling, and operational drift.
* **Automatic upgrades**: You receive automatic upgrades to a recent version of LangSmith.
* **Lower barrier to multi-environment and multi-region rollout**: Run multiple LangSmith data planes across environments, accounts, or regions without rebuilding the architecture from scratch each time.
## Compare BYOC and self-hosted
The table below compares the two deployment models:
| Dimension | BYOC | Self-hosted |
| - | - | - |
| **Primary value** | Customer-owned data plane with a managed LangSmith operating model | Maximum control over the full LangSmith deployment |
| **Time to value** | Faster: provision the account and role, then LangChain provisions the supported data plane architecture | Longer: you design, provision, connect, secure, and operate the full stack |
| **Operations** | LangChain owns more of the product operating model, upgrade path, and supportable infrastructure pattern | You own deployment, upgrades, scaling, monitoring, and incident response for the full stack |
| **Architecture** | Standardized and close to LangChain SaaS production architecture | More flexible, but easier to drift from supported patterns |
| **Best fit** | Teams that need data isolation and private networking, but do not want to operate every LangSmith component themselves | Teams that require full-stack ownership, unsupported infrastructure patterns, or cannot use a managed control plane |
## Move from self-hosted to BYOC
You can move to BYOC from an existing self-hosted deployment. Users, roles, datasets, experiments, prompts, annotation queue configuration, automation rules, and dashboards can be copied over. Trace migration is supported on AWS. Contact the LangChain team to arrange it.
To plan a migration, [contact our sales team](https://www.langchain.com/contact-sales).
## See also
* [BYOC overview](/langsmith/byoc)
* [BYOC architecture](/langsmith/byoc-architecture-aws)
* [Self-hosted LangSmith](/langsmith/self-hosted)
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/byoc-why.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# Use server-side caching
Source: https://docs.langchain.com/langsmith/caching
Cache values server-side in your agent deployment using stale-while-revalidate and key-value cache APIs.
Agents deployed on [Agent Server](/langsmith/agent-server) often call external services, such as config stores, auth providers, and feature-flag systems. The data these services return rarely needs to be re-fetched on every invocation. The built-in cache lets you store those results server-side so subsequent runs read from memory instead of making redundant network calls.
The cache exposes two layers:
* **`swr`**: stale-while-revalidate. Pass a key and an async loader; the server caches the result, serves it on future reads, and revalidates in the background when the entry goes stale. Use this for most caching needs.
* **`cache_get` / `cache_set`**: low-level key-value API for when you need manual control over reads and writes.
All cache APIs are server-side only and require the Agent Server runtime. Values must be JSON-serializable.
> [!NOTE]
>
> `swr` requires Agent Server runtime **v0.7.79** or later and is currently in **[beta](/langsmith/release-stages)**.
> `cache_get` and `cache_set` require **v0.7.29** or later.
## Quick start
Pass a key and an async loader function. `swr` returns the cached value if available, or calls your loader to fetch it:
```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
from langgraph_sdk.cache import swr
async def fetch_config() -> dict:
"""Call your config service, database, or external API."""
...
result = await swr("config:global", fetch_config)
config = result.value
```
On the first call, `swr` awaits `fetch_config()` and caches the result. On subsequent calls, it returns the cached value instantly and revalidates in the background.
## Control freshness and expiry
Control how long cached values are considered fresh and when they expire:
```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
from datetime import timedelta
from langgraph_sdk.cache import swr
result = await swr(
"config:global",
fetch_config, # async loader defined above
fresh_for=timedelta(minutes=5),
max_age=timedelta(hours=1),
)
```
| Parameter | Default | Description |
| - | - | - |
| `fresh_for` | `timedelta(0)` | Duration to treat a cached value as fresh. During this window, `swr` returns the cached value with no revalidation. |
| `max_age` | `timedelta(days=1)` | Maximum lifetime of a cached entry. After this, `swr` blocks on the loader before returning. Capped at 1 day. |
### How revalidation works
| Cache state | Condition | Behavior |
| - | - | - |
| **Miss** | Key not in cache | Awaits `loader()`, stores result, returns it. |
| **Fresh** | `age < fresh_for` | Returns cached value, no revalidation. |
| **Stale** | `fresh_for <= age < max_age` | Returns cached value immediately, triggers background refresh. |
| **Expired** | `age >= max_age` | Awaits `loader()`, stores result, returns it. |
## Inspect and update cached values
`swr` returns an `SWRResult` object with the value and cache status:
```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
result = await swr("config:global", fetch_config)
result.value # the cached or freshly loaded value
result.status # "miss" | "fresh" | "stale" | "expired"
# Update the cached value directly
await result.mutate({"model": "gpt-5.4-mini", "temperature": 0.5})
# Or force revalidation by calling the loader again
await result.mutate()
```
`.status` tells you whether the value came from cache or was freshly loaded. Call `.mutate(new_value)` to replace the cached entry, or `.mutate()` with no arguments to force the loader to run again.
## Cache auth credentials
Cache credential validation in a [custom auth handler](/langsmith/custom-auth) to avoid hitting your identity provider on every request:
```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
from datetime import timedelta
import httpx
from langgraph_sdk import Auth
from langgraph_sdk.cache import swr
auth = Auth()
http_client = httpx.AsyncClient()
async def validate_token(token: str) -> dict:
"""Validate a bearer token against your identity provider."""
resp = await http_client.get(
"https://idp.example.com/userinfo",
headers={"Authorization": f"Bearer {token}"},
)
resp.raise_for_status()
return resp.json()
@auth.authenticate
async def authenticate(headers: dict) -> Auth.types.MinimalUserDict:
token = (headers.get(b"authorization") or b"").decode()
if not token:
raise Auth.exceptions.HTTPException(status_code=401, detail="Missing token")
result = await swr(
f"auth:token:{token}",
lambda: validate_token(token),
fresh_for=timedelta(minutes=5),
max_age=timedelta(hours=1),
)
return result.value
```
With this setup, the server returns the cached user for 5 minutes without contacting the identity provider. After that, it revalidates in the background for up to 1 hour. After 1 hour, the next request blocks until `validate_token` completes.
## Use with Pydantic models
Pass a `model` parameter to automatically serialize and deserialize Pydantic models:
```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
from pydantic import BaseModel
from langgraph_sdk.cache import swr
class UserProfile(BaseModel):
name: str
email: str
role: str
async def fetch_profile(user_id: str) -> dict:
"""Fetch a user profile from your user service."""
...
user_id = "user-123"
result = await swr(
f"profile:{user_id}",
lambda: fetch_profile(user_id),
model=UserProfile,
)
profile: UserProfile = result.value # deserialized as UserProfile
```
`swr` calls `model_dump(mode="json")` before storing and `model.model_validate()` when reading back.
## Low-level cache API
For simple get/set caching without revalidation, use `cache_get` and `cache_set` directly:
```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
from datetime import timedelta
from langgraph_sdk.cache import cache_get, cache_set
async def compute_embeddings(text: str) -> list[float]:
"""Call an embeddings API or run an expensive computation."""
...
key = "embeddings:doc-42"
value = await cache_get(key)
if value is None:
value = await compute_embeddings("hello world")
await cache_set(key, value, ttl=timedelta(hours=1))
```
### `cache_get`
```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
async def cache_get(key: str) -> Any | None
```
Return the deserialized value, or `None` if the key does not exist or has expired.
### `cache_set`
```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
async def cache_set(key: str, value: Any, *, ttl: timedelta | None = None) -> None
```
| Parameter | Type | Default | Description |
| - | - | - | - |
| `key` | `str` | required | The cache key |
| `value` | `Any` | required | Value to cache. Must be JSON-serializable |
| `ttl` | `timedelta \| None` | `None` | Time-to-live. The server caps this at 1 day. `None` or zero defaults to 1 day |
## Next steps
* [Add custom authentication](/langsmith/custom-auth) to your deployment.
* [Add custom lifespan events](/langsmith/custom-lifespan) to initialize resources at server startup.
* Learn about the [Agent Server architecture](/langsmith/agent-server).
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/caching.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# How to cancel a run
Source: https://docs.langchain.com/langsmith/cancel-run
Cancel a single run or multiple runs via the API, and choose between interrupt and rollback actions.
This guide covers how to cancel runs for your agent via the [LangSmith Agent Server API](/langsmith/server-api-ref). You can cancel a single run by ID or cancel multiple runs by thread or status. Cancellation is useful for stopping long-running or stuck runs, or when a user abandons a request.
## Setup
Create a client and thread:
> [tab] Python
>
> ```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> from langgraph_sdk import get_client
>
> client = get_client(url=)
> assistant_id = "agent"
> thread = await client.threads.create()
> ```
> [tab] Javascript
>
> ```js theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> import { Client } from "@langchain/langgraph-sdk";
>
> const client = new Client({ apiUrl: });
> const assistantID = "agent";
> const thread = await client.threads.create();
> ```
> [tab] cURL
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> curl --request POST \
> --url /threads \
> --header 'Content-Type: application/json' \
> --data '{}'
> ```
## Cancel a single run
The following examples create a run, cancel it with different options, and print the run to show what you get in each case. You can cancel runs in `pending` or `running` status. Trying to cancel a run that is not in `pending` or `running` status will result in an error.
### Cancel with interrupt (default)
**Interrupt** stops the worker executing the run and marks the run as `interrupted`. Nothing is deleted:
* The run record remains (with status `interrupted`). You can fetch it, inspect inputs/outputs, and see the execution history.
* All checkpoints for that run remain stored. The thread state at the last completed step is preserved.
* You can later resume from a checkpoint (for example, with [time travel](/langsmith/human-in-the-loop-time-travel)) or inspect the partial state.
Use **interrupt** when you want to stop a run but keep it for debugging, auditing, or resuming from a checkpoint.
> [tab] Python
>
> ```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> run = await client.runs.create(
> thread["thread_id"],
> assistant_id,
> input={"messages": [{"role": "user", "content": "Long task"}]},
> )
> await client.runs.cancel(thread["thread_id"], run["run_id"])
>
> run_after = await client.runs.get(thread["thread_id"], run["run_id"], wait=True)
> print(run_after["status"]) # "interrupted"
> ```
> [tab] Javascript
>
> ```js theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> const run = await client.runs.create(
> thread["thread_id"],
> assistantID,
> { input: { messages: [{ role: "user", content: "Long task" }] } }
> );
> await client.runs.cancel(thread["thread_id"], run["run_id"], wait=true);
>
> const runAfter = await client.runs.get(thread["thread_id"], run["run_id"]);
> console.log(runAfter["status"]); // "interrupted"
> ```
> [tab] cURL
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> # Create a run (use the run_id and thread_id from the response)
> curl --request POST \
> --url /threads//runs \
> --header 'Content-Type: application/json' \
> --data '{"assistant_id": "agent", "input": {"messages": [{"role": "user", "content": "Summarize the docs"}]}}'
>
> # Cancel with default action (interrupt)
> curl --request POST \
> --url /threads//runs//cancel?wait=true
>
> # Get the run to see status "interrupted" and that the run still exists
> curl --request GET \
> --url /threads//runs/
> ```
### Cancel with rollback
**rollback** stops the run and then removes it and its checkpoints from storage:
* The run record is deleted. The run no longer appears in run lists or history for that thread.
* All checkpoints created by that run are deleted. The thread’s state is reverted to what it was before the run started (as if the run had never been executed).
* You cannot resume or inspect the run after a rollback.
Use **rollback** when you want to fully discard a run and its effects (for example, after a user abandons a request and you do not need to keep partial work).
> [tab] Python
>
> ```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> run = await client.runs.create(
> thread["thread_id"],
> assistant_id,
> input={"messages": [{"role": "user", "content": "Long task"}]},
> )
> await client.runs.cancel(thread["thread_id"], run["run_id"], action="rollback", wait=True)
>
> # Throws an error because the run is deleted
> try:
> await client.runs.get(thread["thread_id"], run["run_id"])
> except Exception:
> print("Run was correctly deleted")
> ```
> [tab] Javascript
>
> ```js theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> const run = await client.runs.create(
> thread["thread_id"],
> assistantID,
> { input: { messages: [{ role: "user", content: "Long task" }] } }
> );
> await client.runs.cancel(thread["thread_id"], run["run_id"], wait=true, action="rollback");
>
> // Throws an error because the run is deleted
> try {
> await client.runs.get(thread["thread_id"], run["run_id"]);
> } catch (e) {
> console.log("Run was correctly deleted");
> }
> ```
> [tab] cURL
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> # Create a run, then cancel with rollback
> curl --request POST \
> --url /threads//runs \
> --header 'Content-Type: application/json' \
> --data '{"assistant_id": "agent", "input": {"messages": [{"role": "user", "content": "Summarize the docs"}]}}'
>
> curl --request POST \
> --url "/threads//runs//cancel?action=rollback"
>
> # Throws an error because the run is deleted
> curl --request GET \
> --url /threads//runs/
> ```
### Cancel with wait
By default, the cancel request returns after the cancellation is requested and the run is cancelled asynchronously. `wait=True` makes the cancel request block until the run has been fully cancelled. This is useful when you want to know the final state of the run after it has been cancelled (e.g., what checkpoints were created, what the final output was).
> [tab] Python
>
> ```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> run = await client.runs.create(
> thread["thread_id"],
> assistant_id,
> input={"messages": [{"role": "user", "content": "Long task"}]},
> )
> # Cancel the run asynchronously
> await client.runs.cancel(thread["thread_id"], run["run_id"])
> # Get the status of the run
> run_after = await client.runs.get(thread["thread_id"], run["run_id"])
> print(run_after["status"]) # "pending" or "running"
>
> # Wait for the run to be properly cancelled
> await client.runs.join(thread["thread_id"], run["run_id"])
> run_after = await client.runs.get(thread["thread_id"], run["run_id"])
> print(run_after["status"]) # "interrupted"
> ```
> [tab] Javascript
>
> ```js theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> const run = await client.runs.create(
> thread["thread_id"],
> assistantID,
> { input: { messages: [{ role: "user", content: "Long task" }] } }
> );
> // Cancel the run asynchronously
> await client.runs.cancel(thread["thread_id"], run["run_id"]);
> // Get the status of the run
> const runRunning = await client.runs.get(thread["thread_id"], run["run_id"])
> console.log(runRunning["status"]) // "pending" or "running"
>
> // Wait for the run to be properly cancelled
> await client.runs.join(thread["thread_id"], run["run_id"])
> const runInterrupted = await client.runs.get(thread["thread_id"], run["run_id"])
> console.log(runInterrupted["status"]) // "interrupted"
> ```
> [tab] cURL
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> # Create a run
> curl --request POST \
> --url /threads//runs \
> --header 'Content-Type: application/json' \
> --data '{"assistant_id": "agent", "input": {"messages": [{"role": "user", "content": "Summarize the docs"}]}}'
>
> # Cancel the run asynchronously
> curl --request POST \
> --url "/threads//runs//cancel"
>
> # Get the status of the run, should be "pending" or "running" until cancellation completes, then "interrupted"
> curl --request GET \
> --url /threads//runs/
> ```
## Cancel multiple runs
Use the bulk cancel endpoint to cancel multiple runs in one request. Both the interrupt and rollback actions are supported.
### Cancel by thread ID and run IDs
Cancel specific runs by passing their IDs.
> [tab] Python
>
> ```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> run1 = await client.runs.create(
> thread["thread_id"],
> assistant_id,
> input={"messages": [{"role": "user", "content": "First request"}]},
> )
> run2 = await client.runs.create(
> thread["thread_id"],
> assistant_id,
> input={"messages": [{"role": "user", "content": "Second request"}]},
> multitask_strategy="enqueue",
> )
>
> await client.runs.cancel_many(
> thread_id=thread["thread_id"],
> run_ids=[run1["run_id"], run2["run_id"]]
> )
>
> # Wait for the runs to be cancelled
> await client.runs.join(thread["thread_id"], run2["run_id"])
> runs_after = await client.runs.list(thread["thread_id"])
> for run in runs_after:
> if run["run_id"] in (run1["run_id"], run2["run_id"]):
> print(run["run_id"], run["status"]) # "interrupted"
> ```
> [tab] Javascript
>
> ```js theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> // Bulk delete by run IDs is not supported in the Javascript SDK
> ```
> [tab] cURL
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> # Create two runs (capture run_id from each response)
> curl --request POST \
> --url /threads//runs \
> --header 'Content-Type: application/json' \
> --data '{"assistant_id": "agent", "input": {"messages": [{"role": "user", "content": "First request"}]}}'
>
> curl --request POST \
> --url /threads//runs \
> --header 'Content-Type: application/json' \
> --data '{"assistant_id": "agent", "input": {"messages": [{"role": "user", "content": "Second request"}]}}'
>
> # Cancel both by run IDs
> curl --request POST \
> --url "/runs/cancel?action=interrupt" \
> --header 'Content-Type: application/json' \
> --data '{"thread_id": "", "run_ids": ["", ""]}'
>
> # List runs to confirm
> curl --request GET \
> --url /threads//runs
> ```
### Cancel by status
Cancel all runs that match a status across all threads in a deployment. Valid status options are `pending`, `running`, or `all`.
> [tab] Python
>
> ```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> run1 = await client.runs.create(
> thread["thread_id"],
> assistant_id,
> input={"messages": [{"role": "user", "content": "First request"}]},
> )
> thread2 = await client.threads.create()
> run2 = await client.runs.create(
> thread2["thread_id"],
> assistant_id,
> input={"messages": [{"role": "user", "content": "Second request"}]},
> )
>
> await client.runs.cancel_many(
> status="running",
> )
>
> # Wait for the runs to be cancelled
> await client.runs.join(thread2["thread_id"], run2["run_id"])
> run_after = await client.runs.get(thread["thread_id"], run1["run_id"])
> print(run_after["status"]) # running run is now "interrupted"
> run_after2 = await client.runs.get(thread2["thread_id"], run2["run_id"])
> print(run_after2["status"]) # runs are cancelled across all threads
> ```
> [tab] Javascript
>
> ```js theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> // Bulk delete by status is not supported in the Javascript SDK
> ```
> [tab] cURL
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> # Create a run
> curl --request POST \
> --url /threads//runs \
> --header 'Content-Type: application/json' \
> --data '{"assistant_id": "agent", "input": {"messages": [{"role": "user", "content": "First request"}]}}'
>
> # Create a second thread
> curl --request POST \
> --url /threads \
> --header 'Content-Type: application/json' \
> --data '{}'
>
> # Create a run in the second thread
> curl --request POST \
> --url /threads//runs \
> --header 'Content-Type: application/json' \
> --data '{"assistant_id": "agent", "input": {"messages": [{"role": "user", "content": "Second request"}]}}'
>
> # Cancel all running runs
> curl --request POST \
> --url "/runs/cancel?action=interrupt" \
> --header 'Content-Type: application/json' \
> --data '{"status": "running"}'
>
> # Get the status of the runs to confirm
> curl --request GET \
> --url /threads//runs/
> curl --request GET \
> --url /threads//runs/
> ```
## Cancel on disconnect
When starting a run with streaming or when waiting on a run, you can set `on_disconnect="cancel"` so that the run is cancelled if the client disconnects. This avoids leaving runs in progress when a user closes the app or loses connection.
> [tab] Python
>
> ```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> # With runs.wait: run is cancelled if the client disconnects
> result = await client.runs.wait(
> thread["thread_id"],
> assistant_id,
> input={"messages": [{"role": "user", "content": "Long task"}]},
> on_disconnect="cancel",
> )
>
> # With runs.stream: run is cancelled if the client disconnects
> async for chunk in client.runs.stream(
> thread["thread_id"],
> assistant_id,
> input={"messages": [{"role": "user", "content": "Long task"}]},
> on_disconnect="cancel",
> ):
> print(chunk)
>
> # With runs.join: wait for an existing run; cancel if client disconnects
> run = await client.runs.create(
> thread["thread_id"],
> assistant_id,
> input={"messages": [{"role": "user", "content": "Long task"}]},
> )
> await client.runs.join(
> thread["thread_id"],
> run["run_id"],
> on_disconnect="cancel",
> )
>
> # With runs.join_stream: join an existing run and stream; cancel if client disconnects
> async for chunk in client.runs.join_stream(
> thread["thread_id"],
> run["run_id"],
> on_disconnect="cancel",
> ):
> print(chunk)
> ```
> [tab] Javascript
>
> ```js theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> // With runs.wait: run is cancelled if the client disconnects
> const result = await client.runs.wait(
> thread["thread_id"],
> assistantID,
> { input: { messages: [{ role: "user", content: "Long task" }] }, onDisconnect: "cancel" }
> );
>
> // With runs.stream: run is cancelled if the client disconnects
> const streamResponse = client.runs.stream(
> thread["thread_id"],
> assistantID,
> { input: { messages: [{ role: "user", content: "Long task" }] }, onDisconnect: "cancel" }
> );
> for await (const chunk of streamResponse) {
> console.log(chunk);
> }
>
> // With runs.join does not support cancel on disconnect in the Javascript SDK
>
> // With runs.joinStream: join an existing run and stream; cancel if client disconnects
> const joinStreamResponse = client.runs.joinStream(
> thread["thread_id"],
> run["run_id"],
> { cancelOnDisconnect: true }
> );
> for await (const chunk of joinStreamResponse) {
> console.log(chunk);
> }
> ```
> [tab] cURL
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> # runs.wait: create run and wait for output; cancel if client disconnects
> curl --request POST \
> --url /threads//runs/wait \
> --header 'Content-Type: application/json' \
> --data '{"assistant_id": "agent", "input": {"messages": [{"role": "user", "content": "Long task"}]}, "on_disconnect": "cancel"}'
>
> # Create and stream a run; cancel if client disconnects
> curl --request POST \
> --url "/threads//runs/stream?on_disconnect=cancel" \
> --header 'Content-Type: application/json' \
> --data '{"assistant_id": "agent", "input": {"messages": [{"role": "user", "content": "Long task"}]}}'
>
> # runs.join: wait on an existing run; cancel if client disconnects
> curl --request GET \
> --url "/threads//runs//join?cancel_on_disconnect=cancel"
>
> # runs.join_stream: join an existing run and stream; cancel if client disconnects
> curl --request GET \
> --url "/threads//runs//stream?cancel_on_disconnect=cancel"
> ```
## Common scenarios
* **Human-in-the-loop and interrupts**: Agents can pause at [interrupts](/langsmith/add-human-in-the-loop) for human input. Cancelling a run stops execution; it is different from an interrupt, where the run is paused and can be resumed with new input.
* **Time travel**: After cancelling with action `interrupt`, the run and checkpoints are still available. You can [resume from a checkpoint](/langsmith/human-in-the-loop-time-travel) (time travel) to replay or branch execution.
* **Double-texting**: When a user sends new input while a run is in progress, the [multitask strategy](/langsmith/double-texting) (enqueue, reject, interrupt, rollback) determines whether the existing run is interrupted or rolled back and how the new run is handled. To cancel runs explicitly from your application, use the cancel API described on this page.
* **Studio**: In [Studio](/langsmith/use-studio), use the **Cancel** button in the run UI to cancel the current run.
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/cancel-run.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# LangSmith Cloud changelog
Source: https://docs.langchain.com/langsmith/changelog
Weekly updates to LangSmith Cloud
Weekly updates to [LangSmith Cloud](/langsmith/observability). For LangSmith Fleet, see the [Fleet changelog](/langsmith/fleet/changelog).
**Subscribe**: This changelog includes an [RSS feed](https://docs.langchain.com/langsmith/changelog/rss.xml) that can integrate with [Slack](https://slack.com/help/articles/218688467-Add-RSS-feeds-to-Slack), [email](https://zapier.com/apps/email/integrations/rss/1441/send-new-rss-feed-entries-via-email), Discord bots like [Readybot](https://readybot.io/) or [RSS Feeds to Discord Bot](https://rss.app/en/bots/rssfeeds-discord-bot), and other subscription tools.
> [!NOTE]
>
> If you use self-hosted LangSmith, see the [self-hosted changelog](/langsmith/self-hosted-changelog) for updates.
**November 2-9, 2026**
## Highlights
* **Coding agents track GitHub pull request outcomes**: Coding agents now show GitHub pull request outcomes and spend on the agent overview. You can set an agent's type to Coding when you create it or from the agent actions menu, then open the GitHub connections dialog from the overview header to connect GitHub accounts, add another account, choose repository access, or reuse an installation already linked to another agent in your workspace. Usage appears directly on the overview, with a **No traces yet** state until production has a trace in the last 30 days. [Learn more](/langsmith/coding-agent-metadata-contract).
* **Online Insights with continuous analysis**: Insights now analyzes your traces continuously and keeps its categories current, so you no longer wait for a scheduled batch report. Ask a question to create an insight, adjust its settings with **Configure** before it runs, then view top categories, category trends over a 7, 14, or 30 day range, and an expandable breakdown with subcategories, feedback, latency, and cost metrics. New insights sample about 1,000 traces per week, and classifications that return arrays are now saved correctly. [Learn more](/langsmith/insights).
* **Full AI search for tracing projects**: You can describe what you want to find in plain language in a tracing project, and AI search turns it into structured filters, a semantic filter, and time bounds. It picks whether to search runs, traces, or threads, applies the result to your view, and shows the applied filters. When a request is ambiguous, AI search offers two or three interpretations under **Did you mean?** so you can pick one without running another search. [Learn more](/langsmith/filter-traces-in-application).
* **Coding agent Usage dashboard with PR spend**: The Coding agent Usage tab now has a card for each of outcome, user, and model. Each card can be grouped, and a **Cost by conversation length** card and a **Top PRs by cost** card list your costliest pull requests with links to GitHub. You choose the time range with the shared date range picker, which accepts presets, typed durations, and specific dates. Pull request spend is attributed to the commit and branch that produced it, so you can see what each coding agent change costs. [Learn more](/langsmith/coding-agent-metadata-contract).
* **Scoped tool policies with call approvals**: Tool policies now let you block tool calls or require the caller to approve them first, and a blocking policy wins when both match the same call. You can scope each policy to every workspace, one workspace, or specific agent environments, and calls made with an agent's API key are also checked against that agent's policies. Workspace admins can create, edit, and delete policies for their own workspace from the **Policies** tab, while organization admins manage all policies.
* **Gateway requests appear as one trace**: Each LLM Gateway request now appears as a single trace with one run per attempt, so a request that falls back to another model shows both attempts in one place instead of two separate traces. Runs record the outcome, provider, model, and upstream status for each attempt, and requests refused before any provider call still get a trace. Policy checks that deny or throttle a request and data policy scans that modify or block content appear as their own runs under the attempt. [Learn more](/langsmith/llm-gateway-traces).
## Tracing
* Your workspace now has an hourly limit on persisted bytes, the full size of ingested runs including large fields and attachments. Ingestion is rejected once a workspace exceeds its `max_hourly_persisted_bytes` value, which defaults to 100 GB.
* OTEL ingest now enforces per-project monthly trace limits. Requests containing spans from a project over its limit receive a 429 response, while spans from other projects in the same workspace continue to be accepted.
* Session endpoints now include `GET /api/v2/sessions`, which lists projects with cursor paging and a `type` filter for `PROJECT`, `AGENT`, and `EXPERIMENT`, plus `GET /api/v2/sessions/{session_id}`, which returns one project with RFC 7807 error responses. The Python and TypeScript SDKs now include `sessions.delete` and `sessions.retrieve`.
* `POST /v1/trajectories/query` now returns conversation keys, message keys, message types, dotted orders, anchor IDs, agent types, insertion times, and available tools for messages you select in `message_select`. Send `Accept: text/event-stream` to stream results from `POST /v1/trajectories/query` or `GET /v1/trajectory/{scope_id}/stats` as JSON Patch events, and the stats response now includes a `tools` list with call counts and latencies for each tool.
* Every LangSmith CLI command that prints JSON now accepts `--jq` to filter the output with a jq expression, so you can trim results without installing `jq`. Strings, numbers, and booleans print bare, and objects and arrays print as compact JSON.
* You can now page through `langsmith runs list`, `traces list`, `prompt list`, `prompt commits`, and `hub list` with `--cursor`, so you no longer need to guess offsets. Pass `--cursor ""` on the first call to get `cursors.next` in JSON output, then pass that value back to resume right after the last item.
* You can now run `langsmith traces get` on a trace ID without `--project` on LangSmith Cloud. The CLI finds the trace in your workspace, and it asks for `--project` or `--project-id` on deployments that cannot run that lookup.
* `langsmith self-update` now detects when the CLI was installed with pip, pipx, or uv and prints the upgrade command for that install instead of replacing the binary. Use `--force` to update in place anyway.
* You can now call `instrumentation.WithoutContent(ctx)` in the Go SDK to trace LLM calls without recording prompts or completions, so spans keep model, usage, timing, and status and use less memory under high concurrency.
* Dashboard chart filters can now use v2 filter syntax for run, root-run, and any-run scopes. Chart saves reject a ratio metric whose run filter and operand filters mix legacy and v2 syntax, or whose combined filter is invalid.
* You can now download full traces of up to 2,000 runs as a single JSON file, up from 1,000. Traces with more than 2,000 runs show an error and must be downloaded run by run.
* `POST /runs` and `PATCH /runs/{id}` now reject request bodies over 200 MB with a 413 error, matching the limit on batch and multipart uploads.
* Project responses now return `total_cost`, `prompt_cost`, and `completion_cost` as numbers instead of text, so you can read them directly without parsing. This is a breaking change for SDK code that treats cost as text, such as Go code that calls `strconv.ParseFloat` on `TotalCost`.
* Ingest on BYOC data planes now keeps accepting runs during brief auth outages by using recently verified credentials.
* Coding agent Usage charts now refresh only when you press the new **Refresh** button beside the date range picker, so they no longer reload on focus, reconnect, or tab switches.
## Administration
* Your workspace now opens in the unified agent experience as soon as it is marked ready. The classic experience remains available as an opt-out in workspace settings.
* Revoked, deleted, and expired API keys stop authenticating right away instead of waiting for cached auth to refresh. Your tracing keys, service keys, and personal access tokens are checked against their current state on every request.
* `GET /api/v1/settings` now returns the full workspace model, the same response as `GET /api/v1/workspaces/{id}`. It adds fields such as `is_deleted`, `is_personal`, `permissions`, and `role_name`, and existing clients keep working.
* Members settings now match the API Keys page, with a searchable list, role and status filters, an All/Active/Pending/Deactivated toggle, sortable columns, and CSV export that follows your current filters. Select a member row to edit their name or role, and open a workspace count to search that member's workspaces. Role details and permissions previews now appear in invite and edit dialogs, with built-in workspace roles labeled Workspace Admin, Workspace Editor, and Workspace Viewer. Selecting Organization Admin sets the workspace fields to All workspaces and Workspace Admin, and you can find the reason for that in the disabled fields' tooltip.
* Workspaces that still call the deprecated `POST /runs/query` endpoint now see a countdown to its removal on January 31, 2027, in a banner at the top of the page. The banner offers a **Copy migration prompt** button for your coding agent, grows more urgent as the deadline approaches, and cannot be snoozed in the last 30 days.
* Organization model prices are now available for all workspaces. Admins and operators can set one price for an organization, and every workspace in it prices against that price unless the workspace defines its own. Organization prices reach only the workspaces on the data plane that served the write.
* Workspace-scoped MCP tools now require a `workspace_id` that is a LangSmith workspace UUID, and calls without one return an error instead of silently using the credential's default workspace. Organization-scoped tools do not require it.
* The `langsmith_agent` resource and `data.langsmith_agent` data source are now available in the LangSmith Terraform provider. You can create, update, import, and destroy agents as Terraform resources, and read their environments and tracing project IDs.
* Terraform: The langsmith_workspace resource now accepts an optional data_plane_id, so you can create, rename, and delete workspaces on a BYOC data plane. Import and refresh keep workspace metadata visible with a warning when the data plane list is forbidden, and changes and deletion stay blocked until the data plane ID resolves.
* Custom organization roles now work with SCIM and SSO group sync. Name a group `LS:Billing Manager` to grant the **Billing Manager** organization role. Groups that reference an ambiguous role name are rejected, and unrelated groups still sync. Assignments update at the next sync, and a missing groups claim now removes SSO-managed assignments, as an empty list does.
* SCIM token creation, update, and deletion now require the `organization:scim-tokens:manage` permission. The Admin and Operator roles include it, and custom roles that relied only on `organization:authentication:manage` must add it to keep managing SCIM tokens.
* OIDC login now verifies ID token signatures against your provider's published keys before it trusts any identity claims. Token and UserInfo requests no longer follow redirects, so credentials cannot be sent to a redirect destination; self-hosted providers must expose their token and UserInfo endpoints directly, and providers without a reachable JWKS endpoint or a supported asymmetric signing algorithm can no longer log in.
* Microsoft Azure is now available as a cloud option when you sign up for LangSmith and in the Data Region menu when you log in. Choosing Azure takes you to the Azure US Central region.
* Resource tags now let you assign agent environments to a tag, so tagged projects appear as the agent name and environment, such as **Support bot** and **Production**. Selecting an agent lists its environments, and each tagged environment links to its tracing project.
* You can now bind workspace service keys to each environment of an external agent from the **API keys** item in the agent's settings menu. LLM Gateway requests made with a bound key are attributed to that agent and environment, and managing these keys requires the `workspaces:manage-keys` permission.
* Access policies now show the Add rule action beside the rules in the editor, and the Edit action sits beside Delete in the policy table. Role changes made in the policy editor are saved together when you select Save changes.
* BYOC deployments now pay 60% of SaaS rates for Agent Server and database Standard Units, which lowers those BYOC resource charges by 40%. SaaS, legacy LCU and LSU meters, database storage, and self-hosted Agent Run pricing are unchanged.
* Threshold-based model pricing is now available on BYOC data planes. Runs that exceed a model's token threshold, such as long-context input, are priced at the higher rate. Data planes on `0.18.18` or later get this pricing; check your version under **Settings** > **Data plane**.
* Dynatrace and PagerDuty alert actions now require the `workspaces:manage-secrets` permission to use a workspace secret. Dynatrace actions can only send to the exact host bound to the secret, and cross-host redirects are blocked.
## Deployment
* Deferred checkpoint deletion is now on by default for Postgres deployments. Thread delete and prune accept `sync_checkpoint_delete=true` to remove checkpoint data before the request returns.
* Runs that hit the stream size limit now send a gap event in place of the dropped event, so your client knows it missed an update instead of silently keeping the previous state.
* Run streams now end with an `end` event that reports the run's final status: `success`, `error`, `timeout`, `interrupted`, or `rollback` for a stateless run. If a stream closes without an `end` or `error` event, get the run to see how it ended.
* Run streams on the standard routes accept `lifecycle`, which sends an event when each subagent starts and ends, with the id of the tool call that started it. Tool events on these routes now arrive in the shape the v1 React hook parses.
* Run streams accept a repeatable `namespace` query parameter, so you can stream one conversation: the main agent's (`namespace=`) or one subagent's (`namespace=tools:`). The stream drops the events of subagents that conversation starts. Without the parameter, streams are unchanged.
* Thread streams now announce which interrupts a run answers, so other open tabs hide them without a reload. v1 thread streams get an `interrupts` event, and Protocol v2 clients get `input.answered` on the `input` channel.
* Runs that resume an interrupt now accept `strict_resume: true` on run creation and on the Protocol v2 `input.respond` and `run.start` commands. A resume that answers an interrupt that is not waiting fails with `UnknownInterruptError` and leaves the thread unchanged. Python graphs need langgraph 1.2.20, which `/info` reports as `strict_resume`; JS graphs need @langchain/langgraph 1.7.0.
* Single-run cancel requests now accept `reason=taken` to mark input absorbed for steering, so you can tell that interruption apart from an ordinary cancellation. For thread-scoped cancellations, the recorded `cancel_reason` also includes the ID of the run that was active on the thread.
* Thread state endpoints now accept a `select` parameter, so you can return only the fields you need, such as `values.messages`, instead of the full state. On Postgres-backed servers, selected reads also skip loading the state you did not ask for.
* JS graphs with an output schema now stream only their output keys in `values` and `updates`, and `/runs/wait` returns only those keys. Runs that include the `events` stream mode now stream the same `values` and `updates` as runs without it.
* BYOC data planes that build images in their own cluster now accept GitHub repositories as deployment sources. Builds run as Jobs in your cluster, with build logs in the UI, and GitHub deployments are sized with `resource_spec` like Docker image deployments.
* GitHub outcomes for coding agents now work on BYOC deployments. Agents link GitHub through the workspace's Engine GitHub App installation, with no separate OAuth step.
* Scale-to-zero dev deployments are now available on AWS. New dev deployments scale to zero when idle and wake on the next request. The create page shows the Serverless option and scaling settings on AWS when your organization has scale-to-zero enabled.
* Azure BYOC data planes can now be created in 19 regions, up from 4, including Canada, Europe, the UK, India, Japan, Korea, Southeast Asia, and Australia. You can also add up to 14 customer tags to the Azure resources of a data plane, and the create data plane form now works on Azure with the Entra tenant ID, resource group ID, and VNet CIDR fields.
* Azure BYOC data planes now reach Blob storage and Key Vault only through private endpoints in the private link subnet, and storage accounts no longer accept public network access. The private link subnet, set by `privateLinkSubnetCidr`, must now be /28 or larger, and your customer role needs the `Microsoft.Storage/storageAccounts/PrivateEndpointConnectionsApproval/action`, `privateEndpointConnections/write`, and `privateEndpointConnections/delete` permissions.
* Data planes on Google Cloud can now be created from the Data Planes page, with Google Cloud region, project ID, provisioner service account, VPC network CIDR, and load balancer access fields. Each data plane in the list and in the data plane pickers now shows its cloud logo.
* Your GCP BYOC data plane now sends VPC Flow Logs for every subnet to Cloud Logging in your project, recording all flows aggregated over 10 minutes. The GKE cluster also enforces your project's Binary Authorization policy on pod images. A project without a policy allows every image, so existing workloads are not blocked.
* AWS data planes now deny S3 requests made over TLS versions below 1.2 for their blob, SmithDB, ClickHouse backup, sandbox snapshot, and VPC flow-log buckets.
* BYOC workspaces now show a connecting screen while your browser checks the data plane, instead of a half-loaded app. If a data plane is unreachable, the outage screen appears at once on your next visit in the same tab, and the app rechecks automatically every 30 seconds until the data plane recovers. The workspace switcher also shows a status dot beside each BYOC data plane so you can spot an outage before you switch.
* Deployment metrics now reject a `step` below 60 seconds, so `GET /v2/deployments/{id}/metrics` returns a 400 error for a smaller `step` and `step_seconds` values below 60 fail validation. Metrics are sampled every 30 to 60 seconds, so smaller steps return gaps rather than finer data.
* Analytics for an agent's deployment now includes a **Deployments** section with API Server, Workers, Postgres, and Redis charts. The **Monitoring** tab is hidden on deployments bound to an agent environment, and their alert settings now appear at the bottom of **Overview**.
* Agent Servers with both a license key and a LangSmith Cloud API key now authenticate with the API key first and fall back to the license key if that check fails. Agent Servers that authenticate against LangSmith Cloud with an org-scoped or multi-workspace API key now fail at startup, so set `LANGSMITH_CONTROL_PLANE_API_KEY` to a key scoped to a single workspace.
* New GCP BYOC data planes run their system nodes on N2 machine types, `n2-standard-4` by default, instead of E2. Existing data planes keep their current system pool.
* In multi-process mode, the `/metrics` endpoint now exposes `lg_api_run_failed_terminal_counter_total`, labeled by `error_category`, which counts runs that fail without retry. It also exposes `lg_api_sweep_failed_counter_total`, which counts sweeper iterations that fail to reclaim abandoned runs.
* Managed Deep Agents channels can now receive Slack edits, deletions, reactions, and changes to a channel itself, such as creation, rename, or archive, as `provider_event` deliveries. Choose them with `forwarded_events` on the channel, and edits and deletions arrive only in threads the channel already follows.
* Agents can now run in the background on Slack channels without a status indicator or Stop button on each message. Set `show_progress` to `false` on the event to keep replies, errors, and interrupts while hiding the thinking status and progress updates.
* Managed Deep Agent traces from GitHub-backed deployments now include the exact source commit as `revision_id`, so you can tie each trace to the code that ran. Explicit `LANGSMITH_REVISION_ID` and `LANGCHAIN_REVISION_ID` values you set still take precedence.
* Agent deployments can now assume roles in AWS, Azure, and Google Cloud with LangSmith workload identity, so you no longer need to store cloud keys as deployment secrets. Set `LANGSMITH_AWS_ROLE_ARN` for AWS, `LANGSMITH_AZURE_CLIENT_ID` and `LANGSMITH_AZURE_TENANT_ID` for Azure, or `LANGSMITH_GCP_WORKLOAD_IDENTITY_PROVIDER` for Google Cloud, and trust only the exact agent subject in that cloud.
* Deployments can now exchange their API key for an agent badge, a signed token valid for five minutes that names the agent bound to the deployment, at `POST /v1/agent-auth/token`. Personal API keys are refused.
* Agent responses now include `agent_uuid`, the agent's permanent identifier. Use it as the subject when you write workload identity trust policies, since `id` can be reused after an agent is deleted.
## Datasets and experiments
* Bulk example metadata update is now available in the Python, JavaScript, Java, and Go SDKs and the CLI through **update-metadata**. You can change metadata on many dataset examples at once, including moving examples into and out of dataset splits. Examples that are not in the dataset are reported as NOT_FOUND.
* You can now list datasets with `GET /api/v2/datasets`. Each page returns `items` and a `next_cursor` that is null on the last page. Pass `next_cursor` as `cursor` to get the next page, and use `sort_order` to choose ascending or descending order.
* The `PUT /api/v1/datasets/{dataset_id}/splits` endpoint is deprecated and will be removed after May 31, 2027. Use the bulk example metadata update instead, with an `ARRAY_ADD` or `ARRAY_REMOVE` operation on the `dataset_split` key. Responses now include `Deprecation`, `Sunset`, and `Link` headers that point to the successor.
* Update parameters for datasets and annotation queues are now plain typed fields in the Go, Python, Java, and TypeScript SDKs, which breaks Go SDK code that used the old update types. The CLI `datasets update` command now takes `--transformation`, and the old `--transformations` flag still works.
* You can now choose a row height for experiment results tables: **Default**, **Tall**, or **Fit** to show each cell's full content. Your choice is remembered in your browser and carried in shared links. The control is unavailable in compact mode.
## Evaluators
* You can now create decision model evaluators with providers that use your own API key, such as OpenAI, without the LLM Gateway. Options that only run through the LLM Gateway, such as SemIf and ScaleDown, remain hidden until the gateway is enabled.
* Decision-model evaluators can now judge whole threads. Set `group_by` to `thread_id` on decision-model rules to evaluate each thread once it goes idle, instead of each run. Thread rules require `session_id`.
* Evaluators that use OpenAI models can now pick a **Flex** service tier in the evaluator form. Flex evaluator calls wait up to 10 minutes for a score, and each call is attempted once.
* Evaluators now accept an optional `metadata` JSON object on create, get, list, and update, and you can filter the evaluator list by `metadata` to find evaluators with matching values. Set `metadata` to null on update to clear it.
* Evaluator endpoints now return errors as RFC 7807 problem details with `application/problem+json`. Each error message appears in both `detail` and the deprecated `error` field, and status codes are unchanged.
* New OpenAI LLM-as-a-judge evaluators now start on `gpt-6-luna` instead of `gpt-6.1-sol`. Workspace default presets are unchanged.
* List run rules now returns one page at a time. Pass `page_size` and `cursor` to step through results, and use `next_cursor` from each response to fetch the next page.
* Coding agent overview now shows a Work type card that breaks down your agent's threads by the kind of work each one asks for: feature, bugfix, refactor, question answering, review, or off topic. The card shows each type's share, thread count, and cost, and it guides you through adding the Coding Work Type evaluator if you have not set it up yet. The Coding Work Type evaluator is available now as a prebuilt template that labels each coding-agent thread from its first message, and it requires a `TYPESAFE_API_KEY` secret in your workspace.
## Feedback
* You can now add or remove categories on a categorical feedback config with a PATCH to `/feedback-configs`, using `add_categories` and `remove_categories`, without re-sending the whole list. Retried edits are safe, and the Python and JavaScript SDKs expose the change as `add_feedback_categories` and `remove_feedback_categories`.
* Multi-select rubric tags in annotation queue CSV exports now list every category a reviewer picked for a run in one cell, separated by `; `, instead of showing only the most recent pick. Repeated picks from several reviewers appear once.
* Custom apps can now keep their current view in the URL through `window.langsmith.setRoute`, so links, refreshes, and Back and Forward return to the same view. Apps can also open external `https://` links with `window.langsmith.openUrl` and save files with `window.langsmith.download`, and the viewer confirms each one first.
* Annotation queue custom views now show each run's image attachments inline, so you can label product photos without opening the run. Images from other remote sources still do not load.
## Gateway
* You can now call Groq and Mistral chat completions through the LLM Gateway at `/groq/v1/chat/completions` and `/mistral/v1/chat/completions`, with usage and spend tracked for each call. Add `groq` or `mistral` to your Model Access policy to allow these routes.
* Saved model configs for DeepSeek, Groq, Mistral, Azure OpenAI, Anthropic on Vertex AI, and Databricks now run through `custom/`. DeepSeek, Groq, and Mistral requests always go to each provider's own API, so a saved base URL is ignored.
* Fallback triggers in the fallback chain form are now grouped by error type, such as rate limits and overload, server errors, and request timeouts. Select a group to enable all of its status codes, or click individual codes to fine-tune them. Time to first output is now a single field, and leaving it blank turns the timeout off.
* Kimi K3 replaces Kimi K2.6 in the gateway model list, Gateway Credits model access, the Playground Fireworks dropdown, and Managed Deep Agents model selection. Kimi K2.6 is no longer offered, because Fireworks has retired it.
* Spend caps can now count Anthropic OAuth usage. Turn on **Count Anthropic OAuth spend** in a spend cap's **Subscription settings (optional)** to include OAuth requests in the cap and in the Usage tab. Leave it off for flat-rate subscriptions.
* You can now set a spend limit that splits by a custom header for one API key, user, workspace, or organization, so each value of that header gets its own limit for only that subject. Select one subject in the spend-limit form and check **Separate limits by custom header** to create it.
* The LLM auth proxy now sends your IdP token only when your org has an Allowed URLs list, and it no longer sends the LLM auth proxy JWT on a redirect to a host outside that list. Requests to orgs set to **Allow all** or **Block all** no longer include the IdP token.
* Tool kits now appear on the Tools page for every workspace. Client setup for connected MCP servers is now on tool kits.
* Kit tools are now visible before you connect a server: tools/list shows the linked tools each missing credential unlocks, and calling one returns 428 with a connect link until the credential is connected.
* Tool kit refresh now returns 200 when a linked server needs a credential, and the response lists each missing credential with its verification URL in `missing_credentials`.
* Workspace admins can now store one credential for a header-based MCP server that every caller in the workspace uses. Setting it with `PUT /v1/managed-tools/servers/{id}/credential?credential_owner_type=workspace&credential_owner_id=` permanently deletes every other owner's credential on that server, and calls without a usable workspace credential return a 409 that asks a workspace admin to fix it.
* Agents can now hold their own tool credentials. Admins connect credentials for an agent environment, and calls made with the agent's bound API key use them. Deleting an agent environment also deletes its credentials.
## Sandboxes
* Narrow AWS and GCP proxy rules with `match_hosts`, so hosts outside the list are no longer intercepted or authenticated. Presigned AWS URLs and GCS signed URLs now pass through unchanged on reads, so downloads from third-party signed links work again.
* Browser sandboxes are now available to every SaaS workspace as a beta, without requesting access. Browsers created with `POST /v2/sandboxes/browsers` are deleted 14 days after they stop by default, and you can set `delete_after_stop_seconds` to change that delay or to `0` to keep a stopped browser.
* You can now set `persistent` in the TypeScript SDK when you call `SandboxClient.createSandbox`. Pass `false` to turn off filesystem persistence for a sandbox, or leave it out to keep the server default.
* BYOC operators on AWS can set `sandboxes.juicefs.redisAuth` to `iam` when they create a data plane, so sandbox JuiceFS metadata connects to Redis with IAM authentication instead of a password secret. The setting cannot change after the data plane is created.
## Engine
* Engine is now available on Azure and GCP BYOC data planes. Turn it on with `spec.langsmith.engine.enabled`. On Azure, Engine calls Azure AI Foundry with workload identity, so no API key is needed. On GCP, Engine calls Claude through Vertex AI with workload identity. Engine requires sandboxes.
* Creating an issue with the option to have Engine generate a pull request now opens the PR when its fix run finishes. You need the `issues:update` permission on the project to use this option; Engine agents cannot use it.
* Engine now @mentions a coding agent's Slack bot under each new issue when you set one on a Slack destination, and the agent fields are available to every workspace.
* Issue charts now mark the pull requests that caused an issue and the ones that fixed it, with a chip on each marker line. Hover or click a chip to see each PR's title, link, and merge time.
* Applying a proposed context fix from the Engine issue page now requires a signed-in user with write access to the target Context Hub repo. Engine runs can still create and delete proposals, but they can no longer apply them to Context Hub.
## Prompts and playground
* You can now set a model's extra header value to a workspace secret in the Playground, so gateway credentials such as an `api-key` stay encrypted instead of being stored in plain text in the model config. Use the key icon in the header row to switch a value to a secret name.
* Prompt Hub repos and commits are now available in the TypeScript and Python SDKs. Use `client.repos` to manage repos and their directories, and `client.commits` to create, retrieve, and list commits.
## Fixes and improvements
> [accordion] Show all fixes
>
> * Fixed an issue where `PUT /store/items` ignored your store's `default_ttl` when the request omitted `ttl`. Items now expire after the configured default, and authorization handlers receive that default before the write so they can change or disable it.
> * Run details now show the `priority` and `priority_cache_read` token and cost breakdowns for OpenAI priority runs, which were missing before.
> * Runs created with `on_disconnect` set to `cancel` now stop when a client disconnects before the stream response arrives, instead of running to completion.
> * JS graphs no longer stream the tokens of model calls tagged `langsmith:nostream` in legacy `messages` mode. Those calls now stay out of your `messages/partial` and `messages/metadata` events, matching `nostream`.
> * Fixed an issue where string values that contain the text `\u0000`, such as generated HTML or JavaScript, came back with `\ufffd` in place of that text in state, streams, and stored threads. Actual NUL characters still become `\ufffd`, and the text now survives unchanged.
> * The Worker Job Stats chart now shows the true peak of concurrent jobs for each time range. Max Jobs and Active Jobs no longer grow inflated when you widen the time range.
> * Feedback that arrives after an evaluation finishes now appears in the comparison header averages, the evaluation progress, and the grid rows without a page reload.
> * Deleting a thread now also drops its cached stream events, so a thread re-created under the same id no longer replays the deleted thread's events when you join its stream with `Last-Event-ID`.
> * Fixed an issue where adding or removing a plan for an organization left plan-gated routes returning 403 "no plan found" for up to 60 seconds. Plan changes now take effect right away, and agents load as soon as a plan is attached.
> * VPC associations that you add to a BYOC private ingress zone are no longer removed during reconciliation, so they stay in place until decommissioning, and `additionalVpcAssociations` now lists only the VPCs you configure.
> * Online Evaluators no longer lists rules that Insights creates for itself, so you no longer see an "Evaluator not found" error when you open Insights. Your own evaluators and spend charts remain unchanged.
> * Scans now continue when the error or baseline query fails, as long as other queries returned traces. The run records a gap for the failed slice instead of aborting, and a retry over the newer half of the window that succeeds is logged as narrowed.
> * Resumable run streams no longer send an event twice when a Redis timeout or connection reset makes the server retry the publish.
> * Runs and thread streams that Redis cuts now reconnect in the SDKs and resume from the last event, instead of being reported as failed. Streams that stop reading for 30 seconds also end and reconnect.
> * `GET /v2/runs/{run_id}` now returns the run when `start_time` is omitted, instead of returning 501 Not Implemented. Single-run reads with permission filters also work without `start_time`.
> * Uploading an empty CSV, a CSV with only a header row, or a CSV that lacks the requested input or output column now returns a 400 error with a clear message instead of a 500 error.
> * Creating a BYOC data plane no longer fails with a 500 error when your organization sets a maximum service key expiry. The data plane's agents key is now exempt from that policy, and creation succeeds.
> * Snapshot captures of overlay sandboxes with deep layer stacks no longer fail with deadline exceeded. The capture request now gets 20 minutes, so large sandboxes finish in a single request. Failed captures no longer stay pending.
> * Custom output renderers now appear in annotation queues that have custom output rendering turned on. Queues without a saved **Classic Trace View** setting now open in the classic view by default.
> * Runs no longer fail on their first execution when your priority callback returns a `fairness_weight` key. The server ignores that key and logs a warning, and the run uses `priority` and `fairness_group`.
**October 26-November 2, 2026**
## Highlights
* **Granular workspace administration permissions**: You can now delegate workspace administration by action instead of granting the broad `workspaces:manage` permission. New permissions cover settings, retention, usage controls, security policy, resource tags, integrations, sandbox proxy profiles, credentials, restricted role assignment, and workspace deletion, and the UI shows controls based on the permissions a role holds. Existing custom roles with `workspaces:manage` receive the new permissions automatically and keep their current access, and the built-in Workspace Admin role includes them. [Learn more](/langsmith/rbac).
* **Organization custom roles for delegated administration**: You can now create custom roles scoped to your organization and assign them to members, pending invitations, and service account keys. Organization roles let you delegate granular administration without granting Admin or Operator. Custom organization roles cannot include legacy `organization:manage`, access-control management, authentication management, or Teams management permissions, and they are restricted by default. Members with `organization:members:manage` can invite or assign unrestricted roles, while restricted roles require `organization:access-control:manage`. [Learn more](/langsmith/rbac).
* **Prioritize runs with a priority callback**: You can add a `priority` section to `langgraph.json` that names a callback, and it sets each thread's priority from -5 to 5 at its first run. When every worker is busy, runs at lower levels start first, and runs at the same level start oldest first. Runs return `priority`, threads return `run_priority` and `fairness_group`, and the metrics report queue depth and wait time per level. Ordering applies when your deployment uses Redis, and removing the `priority` section turns levels off. The callback needs langgraph-sdk 0.4.9 and langgraph-cli 0.4.38 or later. [Learn more](/langsmith/agent-server-scale).
* **Human-in-the-loop prompts over MCP**: MCP clients on revision 2026-07-28 that support form elicitation are now asked for input when a graph pauses, and the tool call resumes with the answers. Text questions, interrupts with a `response_schema`, form and URL questions relayed from MCP tools, and LangChain human-in-the-loop reviews to approve, edit, reject, or answer are all supported. Clients that do not declare the required elicitation capability receive a missing-capability error, `-32021`, that names what to enable. [Learn more](/langsmith/server-mcp-elicitation).
* **Review queued runs in their trajectory**: Run items in annotation queues now open in the run's trajectory, scrolled to the turn being graded, so reviewers read the conversation the way it appears in tracing instead of raw inputs and outputs. Messages use the same parser as the trace page, so provider-native content such as Anthropic `tool_use` blocks renders correctly. Child runs, and runs with no trajectory, show their inputs and outputs in conversation order, with each tool call folded into one row. The new view is read-only. To edit a run's inputs and outputs before you add it to a dataset, turn on **Classic Trace View** in the queue's data formatting settings. [Learn more](/langsmith/annotation-queues#data-formatting).
* **Custom views for annotation queues**: You can now replace the default trace view in an annotation queue's middle pane with a custom view that you describe to LangSmith Chat, such as a chat transcript without tool calls. Chat previews each draft on the current queue item, and nothing is saved until you click **Save**. One view can serve several queues, and reviewers switch between the default and custom views with the **Custom view** toggle. A custom view is display only and cannot call the LangSmith API. Custom views succeed custom output rendering, which will be deprecated. [Learn more](/langsmith/annotation-queue-custom-views).
## Tracing
* Multipart and OTel batch ingestion now enforce all short-term usage limits, so your traces over an events-per-minute, hourly request, or hourly bytes limit get a 429 response. Batch requests to `/runs/batch` now count toward those limits as well.
* Default ingest limits for new and existing tenants are now 300,000 events per minute, 1,000,000 tracing requests per hour, and 15 GB of tracing payloads per hour. Tenants that still use the previous defaults are moved to the new limits, while customized values stay as they are.
* You can now stream v2 run, thread, and trace queries from the Python, JavaScript, Go, and Java SDKs, and from the CLI. Use the new `streaming` methods with `ai_search` to get results as Server-Sent Events.
* Run queries now return subtree totals for token and cost fields on root and intermediate runs. Parent runs in your run tables show usage that includes their descendant runs. Descendant usage counts even when a filter or time range excludes those descendants from the results.
* Agent Server and tracing integrations now accept an agent `address` in place of a project name, so you can send root runs for the Claude Agent SDK, Google ADK, OpenAI Agents SDK, OpenAI Realtime, and Gemini Live to an agent environment. Setting both an `address` and a project name is rejected.
* Tool Gateway can now write each tool call into your LangSmith trace as a child run under the calling run, when the request includes the `langsmith-trace` and `baggage` headers. Each run records the tool, server, kit, the identity the call acted as, outcome, and timing, but never tool arguments or results. Workspace admins can also turn on **Record tool call traces** in the new **Usage** tab on the Tools page, which lists recent tool calls and opens each one's trace.
* Tracing for OpenAI's hosted Agents API is now available in beta through `wrap_openai`: each finished session turn appears in LangSmith as a trace with one run per model call, tool call, and subagent, and each session is one thread. Turns started inside a `@traceable` function nest under that run.
* The `POST /api/v1/runs/group` endpoint is now deprecated and will be sunset on January 31, 2027. Use `POST /api/v2/threads/query` to query threads instead. The endpoint continues to work until then.
* The Python SDK now shows deprecation warnings for `list_runs()`, `read_run()`, and other methods that will be removed on January 31, 2027, when you call them from your own app code. To hide them, pass `-W ignore::DeprecationWarning` to Python.
* Your AI search parse requests are now rate limited per source IP at 25 requests per minute, and excess requests receive HTTP 429. Rotating `x-api-key` or `x-user-id` headers no longer resets this limit.
* Your `POST /api/v1/sessions` and `PATCH /api/v1/sessions/{session_id}` responses now return the complete session, including `last_run_start_time`, the same fields as a default GET. The Python SDK's `sessions.create()` and `sessions.update()` return a `TracerSession`, and the TypeScript SDK's `sessions.update()` returns the deprecated `TracerSessionWithoutVirtualFields`.
* You can now store your API key as a reference instead of in plaintext: `langsmith profiles create` accepts `--api-key-env` to read the key from an environment variable, or `--api-key-cmd` to run a command such as a password manager lookup, and the CLI and Go SDK resolve it each time the profile is used. The Python SDK reads `api_key_env` profiles too, while the JS and Java SDKs do the same but do not yet run `api_key_cmd`.
* You can now choose which `langsmith auth login` profile and config file the SDK uses, with the new `profile` and `profileConfigPath` options in JavaScript and `profile` and `profile_config_path` options in Python. Set `preferProfileAuth` or `prefer_profile_auth` to use that login even when `LANGSMITH_API_KEY` is set, with the profile's endpoint and workspace. Clients that do not set these options behave as before.
* Write replicas on another instance no longer receive your base workspace ID, which fixes 403 errors on every write. Each `LANGSMITH_RUNS_ENDPOINTS` entry can now set its own `workspace_id`, which is sent as that replica's tenant for org-scoped keys.
* Alerts for an agent now show across all of its environments, and you can filter them by environment. When you create an alert, the agent and environment are prefilled, and the alert form shows which agent the alert belongs to. You can also switch the agent from the alert form.
* Agents now show the custom avatar you upload for them everywhere they appear in the app, including the agent switcher, tables, simulations, search results, and the agent overview header.
* The LangSmith CLI no longer offers an `--accept` flag on any generated command, including `sessions dashboard`, `threads query`, `traces query`, and `public:runs` commands. Before this change, passing `--accept text/event-stream` printed nothing and exited with status 0.
* Commands that take a project now accept `--project` with a project name, so you no longer need the project's UUID. If `LANGSMITH_PROJECT` is set, commands that require a project use it when you do not pass one, and `--session-id` and positional IDs still take precedence.
* Selecting a day in the date-time range calendar now covers the full day, from midnight through 23:59:59. If the end day is today, the range ends at the current time instead.
* Bulk exports now accept v2 filter syntax, such as `run_type:llm`, on SmithDB-backed deployments. Filters are checked when you create the export, so an invalid filter returns a 400 error with the reason.
## Evaluators
* You can now create a decision-model evaluator in one API call, choosing Jev, SemIf, OpenAI Decisions, a TypeSafe-compatible endpoint, or a saved model configuration. Each question becomes a feedback key on the project or dataset you attach it to.
* New evaluators start with **Trace Evaluator Runs** turned off, so their runs are not traced unless you turn it on. Existing evaluators keep their current setting.
* LLM-as-judge evaluators now return a 400 error when you save them with a prompt that has no model or no output schema, including when you reuse an existing evaluator. Each run no longer fails with a raw langchain_core error, and the message tells you to select a model or add an output schema, such as `score: bool`.
* Thread evaluators now let you set Compacted from a gear on the trajectory preview, so your evaluator can grade a compacted trajectory without a separate picker option. The variable stays named `trajectory`, and a Custom badge marks it when compaction is on.
* You can now list evaluators, get a single evaluator by ID, and list run rules from MCP clients. Evaluator lists omit code, which you can read with `get_evaluator`. Run rule responses mask webhook header values and alert routing keys, and show only the host of each webhook URL.
* You can now search evaluator templates by name, description, type, or category in the Configure Evaluator picker and the empty state on the Evaluators page. Matching templates appear as you type, and a Clear search button restores the full gallery when nothing matches.
* You can now bulk-delete online evaluators from the LangSmith CLI with `langsmith online-evaluators bulk-delete`, passing one `--evaluator-id` per evaluator. The command asks you to confirm before it deletes, and `--yes` skips the prompt.
## Datasets and experiments
* JavaScript evaluations now accept an `uploadRuns` option, either a boolean or a function that receives each example, so you can choose which runs upload while every result stays available locally and to summary evaluators.
* You can now download CSV exports with each cell on a single line by choosing the single-line option in the dataset format selector or the experiment download dialog. Line breaks in cells appear as literal `\n` and `\r`, and the default CSV download still keeps original multiline cell values.
* You can now cap a taskset run's model spend with a monthly spend limit, and cancel a run that is queued, preparing, or running with a new cancellation endpoint. Trials that finish after a run's last progress check are now recorded when the run times out or is cancelled, instead of being marked not run. Capped runs on self-hosted instances are rejected with a 400 error.
## Feedback
* Annotation queue review now uses three column headers, so you can move between items with the arrow keys and find **View all**, item navigation, and reviewer actions in one place. Press V to close the item pane and open it again, and hover over buttons to see their shortcuts. Requeue is no longer available for any queue type.
* The annotation queue sidebar now shows each run's name, a preview of its inputs, and its relative start time, with threads marked by a chat icon and their first user message as the preview. Each row also shows the first eight characters of its run ID on a second line, so reviewers can tell apart runs that share a name.
* Annotation queues have a new **Show reviewer notes to other reviewers** setting under **Collaborator Settings**. When it is on, your review pane lists other reviewers' notes on each run as read-only entries with their names. It is off by default, so queues keep blind reviews unless you turn it on.
* Rubric items in annotation queues can now be required or hidden based on the answers to earlier items, using the new `required_if` and `visible_if` fields. A rule can only reference an item that comes before it in the rubric, and omitting either field keeps its stored value.
* The Add feedback picker on runs now lists keys with human feedback in the current project first, under **Recently used in this project**, and removes the dashed suggestion chips from the Feedback section.
## Prompts and playground
* New Anthropic and Anthropic-compatible model configurations start with a max output tokens default of `8192` instead of `1024`, and resetting the max output tokens field restores `8192` for Anthropic configurations. Existing saved configurations and explicit token limits are unchanged.
* The deprecated LangServe provider no longer appears in the provider picker in Playground, evaluators, or saved model configurations. Your existing LangServe configurations keep working, and automatic default model selection no longer chooses LangServe.
* You can now select GPT-6.1 Terra from the OpenAI model dropdown in Playground, model configurations, and Model Access suggestions by choosing `gpt-6.1-terra`.
* Prompt Hub errors for the `langsmith` CLI now follow RFC 7807 problem details, with `application/problem+json` bodies on commit endpoints and per-field messages in `errors` for `422` responses from the repos endpoints. Deleting a repo that does not exist now returns `200` instead of `404`, so retrying a delete is safe.
* You can now page through long commit histories and repo lists with `page_size` and `cursor`, using the `next_cursor` value from each response until it is `null`.
* LangSmith Chat's docs tool now searches and reads official LangChain and LangSmith documentation directly from docs.langchain.com, so it no longer depends on a Chat LangChain deployment and returns the source text for LangSmith Chat to answer from.
* LangSmith Chat can now find your Tool Gateway kits and their tools' input schemas, so it can write calls from custom apps to services like Google, Slack, and your own APIs. LangSmith Chat lists the kits you can use, and for a kit it lists each tool with its input schema and any services you have not connected yet.
* LangSmith Chat now opens a fresh chat in each new browser tab and window instead of resuming the conversation from your previous session. Past conversations remain available in the thread history.
## Deployment
* Creating a Azure data plane now requires the direct role assignments for LangSmith in the resource group to use your organization's external ID as their description. Creation fails with a 403 error, `azure_external_id_mismatch`, when they do not. Reapply the LangSmith BYOC Terraform module with your external ID before creating a new data plane, and deleting an existing data plane still works without it.
* You can now supply your own security groups for the AWS EKS cluster, Postgres, SmithDB metastore, Redis, and the ingress NLB through `spec.vpc.byoVpcSecurityGroupIds`, with 1–5 IDs per role. Crossplane then creates no security groups or rules for those roles, which helps accounts that deny `CreateSecurityGroup` and `Revoke*`. You can also set `karpenter.amiId` once to apply to every node class that does not set its own `amiId`.
* GCP data planes now take per-service image versions under `spec.langsmith.images`, the same way AWS and Azure data planes do. Rollouts of LangSmith images to GCP data planes now move every service to the new release tag, and third-party images keep their own tags.
* Bring-your-own-cloud (BYOC) Azure data planes can now reach a private AKS cluster API through a private endpoint on the cluster, without access to the AKS node resource group. Your cluster does not need an API Server VNet Integration subnet, and you no longer need to create the **private-link** subnet's delegation. Azure requires the approval of the endpoint, which LangSmith requests automatically.
* Azure BYOC clusters now run database pods on dedicated node pools, and SmithDB query, ingestion, and compaction workers cache data on local NVMe disks. New metastores default to PostgreSQL 18. Your system pool stays at three fixed nodes by default.
* Azure BYOC teardown now keeps your resource group, Key Vault, and trace and SmithDB Blob storage. Teardown deletes the AKS cluster, PostgreSQL, Redis, sandbox storage, network resources, and private DNS.
* Your BYOC Azure data plane creation now checks regional and VM-family vCPU quota for the system node pool before it starts, and it stops with an error if the quota is insufficient. The check also enables PostgreSQL zone-redundant high availability only when the selected region and size support it across two zones, and otherwise creates a single server.
* New BYOC data planes on Azure now start with three fixed `Standard_D2s_v6` system nodes, each with 2 vCPU and 8 GiB of memory, to match the AWS system node group. Existing data planes keep their current system node size.
* Self-hosted and BYOC system nodes that use a custom launch template now require IMDSv2 and always encrypt the node volume. Existing node groups that use a custom launch template roll to the new template version.
* Internal and public load balancers in AWS BYOC deployments now expose only HTTPS on port `443`. Monitoring that calls the load balancer directly on port `15021` must use a different path, because health checks still reach gateway pods on that port.
* New GCP and Azure data planes stay on the Crossplane composition revision that matches their **module-version**, so applying a new Crossplane release no longer moves them. Existing GCP data planes need a one-time update to the same selector before GCP releases apply on merge.
* Redis Cluster deployments that connect with **REDIS_DATABASE_URI** now take TLS from the URI scheme: use `rediss://` to enable TLS, the same as standalone Redis. The `REDIS_CLUSTER_USE_SSL_CONNECTION` setting now applies only when the cluster is seeded from `REDIS_CLUSTER_DATABASE_URIS`. Self-hosted Helm chart users who set `redis.external.cluster.tlsEnabled` with `connectionUrl` should switch to `rediss://`, since `nodeUris`, `password`, and `tlsEnabled` are deprecated in Helm chart v0.18 and supported through v0.19.
* On LangSmith Azure, `langgraph deploy --remote` now uploads your source tarball and builds it for you, and `langgraph deploy` now builds and pushes your image locally. Older LangGraph CLIs get a message asking you to upgrade before either command works.
* Deployment logs and build logs now load for deployments on Azure LSD. Previously the Logs tab returned an error there. Build logs also show for Azure builds, including builds that already ran.
* Azure deployment creation now shows the GitHub connection and repository picker instead of a plain repository URL field.
* Azure deployments now collect compute and database usage every five minutes and report hourly totals for billing. Usage from before `2026-10-27T00:00:00Z` is not reported.
* Managed Deep Agents is now available on GCP and Azure BYOC data planes when Fleet is enabled. Agent revisions, deployment workers, Trigger Server, and Agent Auth OAuth callbacks now reach your data-plane endpoint, and trigger and channel APIs are exposed at both the direct and chart-derived paths.
* Deployments that push images with `internal_docker` now store their image repository in the deployment's workload region, so images pushed from the CLI land next to the deployment. Existing deployments move to the regional repository the next time you request a push token or start a build.
* When webhooks are disabled with `http.disable_webhooks`, your runs and crons no longer resolve or store the `webhook` URL you send, and a cron PATCH whose only field is `webhook` returns a 422 saying webhooks are disabled.
* Run attempts and drains are now stored in Postgres, so your runs no longer lose their retry count when Redis restarts or drops counters between retries. During rollout, active runs might run for more than the allocated number of retries on failure.
* Metrics requests for deployments that omit `step` now pick a step that returns about 60 points per series, with a minimum of 60 seconds. For example, a 30-day query no longer fails with a 502 error, and a 7-day query returns 10080-second intervals instead of a point per minute.
* Deployments now set `LANGSMITH_ENDPOINT` to the same value as `LANGCHAIN_ENDPOINT`, so app code that reads only `LANGSMITH_ENDPOINT` sends traces to the correct region. You can now set `LANGSMITH_ENDPOINT` on Cloud SaaS deployments, and a value you set yourself still takes precedence over the default.
* Studio now shows a wrench icon and tool count on each ToolNode in the graph, with a hover card listing every tool the node runs. While tools run, a badge beside the node names them, for Python and JS agents.
* Agent Server images and user graph dependencies now accept redis-py 8.x, so your graphs can install redis-py 8 without a version conflict.
* Runs now include a `langgraph_graph_load_ms` value in their metadata, showing how long your graph took to load. You can filter on it in LangSmith traces to find slow graph loads. For prebuilt graphs that are not created by a factory, the value is close to 0.
* You can set `systemNodeGroup.releaseVersion` in your BYOC AWS configuration to move EKS-selected system nodes to a patched AMI release. System nodes now also follow the cluster's Kubernetes version, so they upgrade after the control plane during an EKS upgrade.
* Bring-your-own-VPC data planes on AWS can now place databases in your app subnets. Set `byovpc.private_db_subnet_ids` to the same IDs as `byovpc.private_app_subnet_ids` if your VPC has no dedicated database subnets. Public subnets must still be distinct from the other tiers.
* GCP data planes now allow up to 512 vCPUs and 2048 GB of memory for automatically provisioned nodes, up from 96 vCPUs and 384 GB. Rolling updates on a full LangSmith install no longer fail with a Pending pods error caused by the old cap.
* Newly provisioned AWS BYOC data planes now start their backend and listener services with larger default CPU and memory allocations. Existing data planes keep their configured resources.
* GCP BYOC data planes on the US control plane can now run in **us-west1**. Customers can select this region when they create a data plane.
* Self-hosted data planes can now run scale to zero deployments with `dev_zero` and `dev_free_zero` when your administrator enables the setting. Deployments created from an image without `deployment_type` still stay non-zero.
* Your agent can now load Google Sheets through LangSmith Tool Gateway once your workspace has Gateway enabled and Google Sheets allowed. The agent reads spreadsheets directly, and every Sheets edit, such as writing ranges, adding sheets, or creating charts, waits for your approval before it runs. Connecting Sheets starts Google sign-in only when you ask for it.
* The thread storage endpoint, `GET /threads/{id}/storage`, now returns storage usage for threads on SQLite deployments, matching Postgres.
## Engine
* Removing an Engine evidence trace from an issue can now be undone. Click Undo in the "Trace removed from issue" toast, or on the greyed card itself, to put the trace back on the issue with its original reason. Undoing a removal also takes its rejection back out of the issue's history, so Engine does not treat the removal as a correction.
* Engine now records the feedback keys it cites for each issue trace, and the issue detail lists those keys with their trace counts. Clicking a key opens the newest trace that cites it. Linking a run to an issue through the API now returns the stored link, including any `triggering_feedback_keys`.
* Engine is now off by default for BYOC data planes until you enable it on each data plane; an unset Engine setting no longer inherits your LangSmith Cloud setting, and existing explicit choices are unchanged.
* Engine can now call model gateways behind LangSmith's LLM auth proxy without a static API key. Set `ENGINE_GATEWAY_AUTH=llm_auth_proxy` to have each Engine run mint its own short-lived token. Setting this together with `ENGINE_GATEWAY_API_KEY_FILE` is a configuration error, and `GO_ENDPOINT` must be set explicitly.
## Gateway
* The custom **Gateway** workspace role now grants only `gateway:invoke` and `workspaces:read`. Existing service keys assigned this role lose the removed permissions when your Terraform configuration applies, so confirm that your keys do not depend on creating runs or projects, managing model prices, exporting data in bulk, or reading agent auth connections.
* You can now target LLM Gateway policies at specific Agents, at every Agent in one or more environments, or at one Agent within an environment. Spend caps, rate limits, model access, and guards apply to the Agents you select in a workspace. Set the **workspace_id** matcher with **agent_id** and/or **agent_environment** matchers, using `LOCAL`, `DEVELOPMENT`, `STAGING`, or `PRODUCTION` for the environment.
* Saved max-token and reasoning-effort defaults on your model configurations now apply to gateway requests, so requests that omit these settings use the values you saved. Explicit values in a request still take precedence over saved defaults.
* Gateway usage reports now show input, output, and total token counts alongside spend, with exact counts available on hover, so you can reconcile gateway usage with your tracing projects. Cached token share also appears for model breakdowns.
* You can now call a second Azure resource in your workspace by writing its name in the model field as `/`, such as `ai-gateway-uat-eastus2/gpt-5.4`. Each resource uses its own API key, stored as a workspace secret named `AZURE_FOUNDRY_API_KEY_`, and requests for an unknown resource return a 400 that names the secret to add. Existing `azure/` models work as before.
* You can now turn on model cooldown in the **Advanced** section of fallback chains. When a model fails the number of times you set, your gateway skips it for the cooldown period you choose, and the last model in the chain is always tried.
* Gateway traces now record whether an agent was verified by an agent badge or by its API key, in the new `gateway.agent_proven_by` metadata field. Badge checks are off until you set `AGENT_AUTH_BADGE_PUBLIC_JWKS`, and gateway policies can match on the `agent_proven_by` field.
* The workspace MCP servers list now shows ten servers per page with pagination controls below it, so **Built-in tools** stay near the top of the page.
* The BigQuery tool server now includes `bigquery_query_read_only`, which runs one read-only GoogleSQL SELECT query. Nested SELECTs, CTEs, joins, and unions are supported. Multi-statement scripts and write statements are rejected before they run.
* Tool kits now have a search mode for agents with many tools. Add `?mode=search` to a kit's MCP URL, and `tools/list` returns three tools: `search_tools` finds matching tools, `get_tool` returns one tool's definition, and `call_tool` runs a tool after checking its arguments against the schema. Calling a tool directly by name still works, and the default `full` mode is unchanged.
## Sandboxes
* Sandbox usage now shows CPU (vCPU-hours), memory (GiB-hours), and storage (GiB-hours) in place of dollar estimates, with daily charts grouped by workspace or resource, Top Resources ranked by any of the three metrics, and CSV export of individual resources. Storage totals now keep recorded measurements when some hourly samples are missing, and days with no storage measurements appear as gaps.
* Non-persistent sandboxes are now available to all tenants. Set `persistent` to `false` when you create a sandbox to get a disposable sandbox whose writes are discarded on stop. Creates that omit `persistent` remain persistent, and combining `persistent: false` with `preserve_memory_on_stop` or snapshot capture is still rejected.
* Sandbox proxy rules can now rewrite HTTPS requests to a different destination with a `rewrite` rule. Set `host` to send matching requests to an HTTPS destination, or `sandbox` with `port` to send them to another sandbox in your workspace over an existing sandbox link. Use `credentials` to choose whether incoming credential headers are stripped (the default), redacted, or kept.
* Proxy-backed AWS role rules now accept `session_tags`, so your role's policy can scope each sandbox with `${aws:PrincipalTag/...}` without hitting the 2,048-character session policy limit as you add mounts. Tags are fixed at create, and your role's trust policy must allow `sts:TagSession` for the LangSmith principal.
* Batch deleting sandboxes now skips any sandbox outside your editing scope, reporting it as `sandbox not found` instead of deleting it. Sandboxes you can edit are still deleted.
* Sandbox memory history on the Metrics tab now reports guest RAM, so an overlay sandbox that reads its shared base no longer shows memory above its configured limit. Memory history recorded before the host upgrade for overlay sandboxes is cleared.
* Sandboxes are now available on new Azure BYOC data planes. Sandboxes run on dedicated nodes with their own workload identity, and your data plane stores sandbox files in its own Blob storage.
* Command history is now available in sandboxes in the EU, APAC, and AWS production regions. Your sandboxes capture command history, and the authenticated history endpoints return it for list, detail, and output reads.
* The Go SDK now runs commands in a sandbox without a shell through the new `Argv` field on `Run`, and the `Timeout` field now sets the timeout you request instead of falling back to the server default.
* Self-hosted LangSmith installs now show a banner to organization admins and operators when the sandbox runtime falls behind or runs ahead of the control plane's release, or when sandbox hosts stop reporting, and the banner names the setting to change.
* Sandbox browsers are available in beta. A browser is a sandbox that runs one persistent Chrome, which you keep logged in to your sites and lend to your agents. Each attached sandbox drives its own window over the Chrome DevTools Protocol, and you can watch every window in LangSmith, take one over to log in or enter details, and hand it back. Logins survive restarts. Manage browsers through the `/v2/sandboxes/browsers` API or the Go SDK, and connect clients outside a sandbox, such as Playwright on your laptop, through each attachment's `api_cdp_url`. [Learn more](/langsmith/sandboxes).
## Administration
* Organization members with custom roles can no longer demote, remove, rename, or reset the password of Organization Admins or Operators. Only Organization Admins can manage Organization Admins, and Admins and Operators can manage Operators and reset other users' basic-auth passwords.
* You can now assign Organization Viewer or Organization Restricted to workspace-scoped service keys when you create or edit them. Workspace access stays limited to the workspaces you select.
* Callers without the rules:update permission now see run rule webhook header values masked as \*\*\*\*\*\*\*\* instead of the real credentials, and saving a masked value back to a rule returns a 400 error instead of overwriting the stored secret.
* Admins can now restrict specific tag keys on new datasets, projects, experiments, prompts, and sandboxes with ABAC deny policies on the tag-on-create permissions. Editors can still apply all other tags when they create these resources. Creating a sandbox with tags now requires the sandboxes:tag-on-create permission instead of workspaces:resource-tags:manage, so Editors and deployment-runtime keys can tag sandboxes at create unless a deny policy restricts the key.
* You can now delete access policies from the policy table after typing the full policy name to confirm, and the policy stays in place with the error shown if the deletion fails. You can also add roles when you create a policy, and attach or remove roles from an existing policy's details.
* You can now retrieve the list of resource and permission pairs that access policies support, so you can build policy editors that offer only valid choices. Only organization managers with the ABAC entitlement can call the new `/api/v1/platform/orgs/current/access-policies/catalog` endpoint.
* Teams are now available in the public LangSmith REST API, with 17 operations for managing teams, members, workspace grants, and access policy attachments. Enabled organizations no longer need a rollout override for the Teams settings pages.
* Workspace picker groups workspaces under their dataplane name and region, with LangSmith Cloud workspaces in a separate group. Search matches dataplane names and regions as well as workspace names and IDs.
* Organization members with `organization:read` can now select a data plane in workspace pickers without infrastructure read access. The picker shows only the data planes and workspaces you can access, and it still falls back to the full list on older backends.
* Model price tiers can now be defined by context length: your workspace can set a `prompt_tokens_above` threshold on a model price through `/api/v1/model-price-map`, and tiers are priced by their threshold alongside the standard row.
* Org admins can now upload a CSV of email addresses when inviting members, and the invite form shows a clear alert with the number to remove when your list goes over your remaining seats or the 500-invite limit.
* Paid organizations without a card on file now see a "No payment method on file" message and a **Set up billing** button on the billing page. Adding a card keeps your current plan, and Developer organizations no longer see a "Remove payment method" action when there is no card to remove.
* Agents connected through the remote MCP server can now create, update, and delete custom model prices, and filter the model price list by `provider`, so you can price models at your own negotiated rates.
* You can now retrieve, rename, and delete workspaces from the LangSmith CLI with `langsmith workspaces retrieve`, `langsmith workspaces update`, and `langsmith workspaces delete`, using the `--id` flag for the workspace ID. Delete still asks for confirmation before it runs.
* Custom app editor now discards undeployed changes when you leave edit mode: reopening the editor loads the latest deployed version of your app, and the exit dialog says so.
## Fixes and improvements
> [accordion] Show all fixes
>
> * Workspace switching is available again in the collapsed sidebar in LangSmith and Fleet, so you can change workspaces without expanding navigation.
> * Agent list requests no longer fail with a 500 timeout after a few pages of results on self-hosted installs without PgBouncer. Requests to `GET /api/v1/agents` now return within normal response times for tenants with many Agents.
> * Online evaluator previews now show the full trace by default when you add an evaluator from a tracing project. Before, a template card could open the preview on a single inner step, and the evaluator test graded that step. New evaluators now start with the **top-level traces only** filter.
> * Engine retries a failed repository clone once before giving up. If the retry also fails, your scan reports the connected repository as unavailable this run instead of treating it as disconnected, and run metadata lists the failed repository URLs.
> * Experiment batches no longer re-send their request after a timeout, rate limit, server error, or lost connection, so runs and model calls are not duplicated. Errors that occur after a batch starts now stop further retries and are reported as failures.
> * Fixes Playwright's browser driver and other subprocesses started from worker threads failing to launch on LangSmith Deployments. Subprocesses now start normally from your deployment's worker threads.
> * Tool calls that retry after you decline or cancel a Tool Gateway connection now return an error that names the servers you did not connect, instead of asking you to connect the same account again.
> * Creating a sandbox from a snapshot whose layers overflowed Firecracker's pmem window failed with "Cannot create pmem device" and a 500 error. Layered captures now squash the lineage before the window overflows, and creates from snapshots that cannot boot on any host are refused with a 422 error that reports the snapshot's size.
> * Invitation links that show as expired after SSO sign-in now offer **Switch sign-in method** or **Switch account**, which signs you out and returns you to the invitation so you can sign in with the invited email.
> * Failed root runs in thread Details now show their error status and error preview instead of appearing as successful.
> * Code evaluators that return `0` or `False` now record that score as feedback instead of dropping it. Evaluators that return an unusable value now show an error explaining why, instead of leaving the run with no score.
> * Prompt webhook deliveries for tag creates and updates now send `created_at` as an RFC 3339 UTC timestamp, such as `2026-10-19T14:35:00Z`. Receivers that parse timestamps strictly no longer reject these deliveries.
> * Engine scans on large projects no longer abort when a latency, token, or cost p99 query times out. The scan completes with the error and baseline traces, and the agent is told which outlier stratum is missing.
> * Deployment pages no longer stay on a loading state indefinitely when a deployment stops responding. The **Assistants** and **Threads** tables now time out after 30 seconds, show **Deployment not responding**, and keep retrying until the deployment answers.
> * Your first Gateway Credits purchase after upgrading a free organization to developer no longer fails with "Your organization is not set up to purchase Gateway Credits." The dialog waits for the upgrade to apply, shows a "Finishing your upgrade" banner, and completes the purchase on its own.
> * Snapshots now become ready and gain their tag in the same step, so a box created by name:tag right after a snapshot shows ready no longer returns a 404 `snapshot ":" not found` error. A build whose tag is refused by the naming rules now fails at once and is not retried.
> * Onboarding emails and invite emails with the LangSmith logo now send again. Previously, they failed to send and left the logo missing.
> * Files passed as `attachments` on `updateRun` or on a `RunTree` patch are now stored with the run in the JavaScript SDK, instead of being silently dropped.
> * Evaluator tables now show the spend limit that applies to each LLM rule, including the organization's default weekly limit once the rule has made its first evaluator call. Rules without a limit of their own no longer show N/A under **Weekly Limit** and **Percent of Spend Limit** on the evaluator page and in a project's **Evaluators** tab. Rules that never call an evaluator model, such as code evaluators, still show N/A. The `effective_spend_limit` field is returned on rule responses.
> * Connecting a GitLab token and the scheduled token rotation now work on instances that cap token lifetimes below a year. Rotation steps down through 180, 90, 60, 30, 14, 7, and 2 days and keeps the longest lifetime your instance accepts. Tokens that were previously stuck failing every 15 minutes after a cap was lowered now rotate on the next sweep.
**October 19-26, 2026**
## Highlights
* **New sidebar for all workspaces**: The new sidebar now appears in every workspace and replaces the old sidebar. The organization and workspace menu at the top of the sidebar replaces the LangSmith wordmark and product switcher, so you switch organizations and workspaces from one place. The custom wordmark logo no longer appears in the sidebar; upload a custom organization avatar to brand it. [Learn more](/langsmith/navigate-agents).
* **Create examples with reference_outputs**: The API and the Python, JavaScript, Go, and Java SDKs now use `reference_outputs` to set the expected outputs when you create examples, including in bulk. `outputs` still works as a deprecated alias, but sending both `reference_outputs` and `outputs` in the same request is rejected. Existing code keeps working, and responses, updates, and multipart uploads still use `outputs`. [Learn more](/langsmith/manage-datasets-programmatically).
* **Store rejects ambiguous namespace labels**: Store operations from your graphs now reject namespace labels that are empty or contain `.`, the same rule the HTTP store API already applies. Previously a label such as `"tenant.bob"` addressed the same items as the namespace `("tenant", "bob")`, so graph code that built namespaces from untrusted input could read, overwrite, or delete another namespace's items. Such calls now return an invalid input error, and the fix is also in Agent Server 0.16.2 and 0.15.5. [Learn more](/langsmith/agent-server-changelog).
* **Organization-wide bulk export creation limits**: LangSmith Cloud now limits bulk export creation across all workspaces in an organization, in addition to the existing per-workspace limits: 1,000 creates per hour and 1,000 active schedules per organization by default. When an organization exceeds a limit, `create_bulk_export` returns a 429 response, with a `Retry-After` header for the hourly limit. Exports that existing schedules create automatically do not count toward the hourly total, so running schedules are never blocked. [Learn more](/langsmith/data-export).
## Tracing
* The `langsmith` CLI now includes `threads query`, `threads stats`, `threads aggregate-stats`, `threads share`, `traces query`, `runs create`, `runs ingest-batch`, `runs get-url`, `runs share`, `public runs retrieve`, and `public runs query`, so you can search threads and traces, write runs, and share them without calling the API directly.
* Filtered run trees now have a **Full tree** or **Matches only** switch below the active filters, so you can keep the full trace hierarchy visible with matching runs highlighted. Matches only remains the default.
* Your trace tooltips and thread summaries now show a **Cache hit rate** based on cache-read tokens as a share of input tokens, and the thread summary displays it as a percentage. Cache hit rate appears as 0% when your model reports zero cache reads, and it is hidden when the usage is not reported.
* Trajectory now keeps your reading position in the URL: reloading or sharing a thread link opens Messages at the turn and run you were reading, and a Back to trajectory button on Details returns you to that message.
* Bulk export partitions no longer fail within minutes when the trace store is busy. A rejected partition now waits and runs again for up to 2 hours without using up its retries.
* You can now open the **Share** menu on a run and choose **Copy URL** to copy the link to the current view without making the run public.
* You can now filter traces by when their feedback was modified by passing `min_feedback_modified_at` and `max_feedback_modified_at` to `POST /v2/traces/query`, the same feedback window that `/v2/runs/query` already supports. The bounds apply to the feedback conditions in `trace_filter` or `tree_filter`, so each request must include at least one feedback condition, such as `eq(feedback_key, "correctness")`.
* You can now request up to 10 sum, avg, min, max, or percentile aggregates over token and cost fields in one call to `/v2/runs/analytics` by sending a `metrics` array instead of `metric`, so you no longer need to run the same query once per metric.
* The LangSmith MCP `query_runs` and `fetch_runs` tools now return `app_path` by default, so agents can link directly to the canonical run page in the LangSmith UI instead of building trace URLs from run IDs.
* You can now drag table column headers to reorder columns, and the order is saved per table in each browser. Hover or focus a header to reveal a grip to its left, or use **Move left** and **Move right** in the column menu.
* Global search now lets you search across all agents with the new **Filter by current agent** toggle in the search footer, and sandboxes are included when filtering by agent.
* Agent registry CRUD is now available in the Go, Java, JavaScript, and Python SDKs, so you can create, retrieve, list, update, and delete agents with typed objects and the `client.agents` service.
* Creating an agent with the Python, JavaScript, Go, or Java SDK no longer requires `source_type`; when omitted, it now defaults to `EXTERNAL`, so your endpoint-hosted agent is registered without extra configuration.
* You can require explicit agent creation for tracing in your workspace, so traces and tracing projects no longer create agents implicitly; send traces only to agents you register with `POST /api/v1/agents`. Workspace admins can turn this on with the `require_explicit_agent_creation_for_tracing` field in the workspace settings API, and requests that would create an agent from a trace are rejected with a 403 error.
* Agents now record an owner: new agents are assigned to the user who creates them, and the owner appears in the **Owner** column of the All Agents table and on the agent overview page. Workspace managers can change an owner from the agent actions menu, and the `owner_id` field on `PATCH /api/v1/agents/{agent_id}` sets or clears it.
## Prompts and playground
* LangSmith Chat's model picker now offers Sonnet 5.5, Opus 5.5, GPT-6.1 Sol, GPT-6 Luna, and Gemini 3.8 Flash, and Sonnet 5.5 is the default for new chats. Sonnet 5, Haiku 4.5, and GPT-5.6 Terra have been removed from the picker, and your saved model configurations keep working.
## Feedback
* Feedback can now record the ID of the feedback config it was written against through the new `feedback_config_id` field, and the server rejects IDs that do not belong to the same feedback key in your workspace.
* You can now read, edit, and delete run feedback, create and update feedback tokens, and delete feedback configs from the `langsmith` CLI with `langsmith feedback retrieve`, `langsmith feedback update`, `langsmith feedback delete`, `langsmith feedback tokens create`, `langsmith feedback tokens update`, and `langsmith feedback configs delete`. The deprecated `langsmith feedback ""` alias is removed, so use `langsmith report` to submit a note and `langsmith feedback` to manage existing feedback.
* Creating a feedback tag now refuses a key that is already used in the same place, such as a queue rubric, the queue review view, or a run's feedback, with the message "This feedback tag is already used here." Queues also cannot be saved with a rubric that lists the same key twice.
* You can create a key's enforced feedback config from the JS and Python SDKs with `isEnforced` or `is_enforced`, which requires the `feedback-configs:manage-enforced` permission that workspace admins have. Creating a config no longer changes a key's score direction unless you pass `isLowerScoreBetter` or `is_lower_score_better`.
* Feedback created with a `traceId` through the JS SDK is now batched with your runs and sent in the background, so `createFeedback` returns immediately. Call `awaitPendingTraceBatches()` to wait for delivery; feedback with `extendTraceRetention: false` still posts directly to `/feedback`.
## Datasets and experiments
* The `langsmith` CLI now includes commands for comparative experiments, dataset sharing, splits, cloning, and version tagging. Run `langsmith datasets retrieve-version` to read a version by time or tag, `langsmith datasets versions retrieve-diff` to compare two versions, and `langsmith datasets update-tags` to move a tag to a version.
* You can now list examples with only the fields you select by passing `exclude_default_fields=true` to `GET /api/v1/examples`, combined with `select`, so that `select=id` returns only example IDs without inputs or other default fields. The default response is unchanged when the flag is omitted. The Python, JavaScript, and Go SDKs expose this through `list_examples`, `listExamples`, and `ExampleListParams`.
## Evaluators
* Trajectory evaluators can now grade a shortened version of each conversation. Turn on the **Compacted** switch under the trajectory source in the evaluator editor, and the evaluator receives the shortened messages both when it runs and when you test it.
* Your TypeSafe and TypeSafe-compatible evaluators can now send extra request headers, such as `TypeSafe-Danger-Zone-Long-Context`, from the **Extra Headers** field in the model configuration. Long threads that previously hit the context limit can now be scored with the beta long-context option enabled.
* Sandbox evaluator **Test** results now show the full evaluator traceback in expandable error details, so you can see which evaluator function and line failed. Tracebacks over 64 KiB are shortened in the middle and marked as truncated.
* You can now create, update, and check spend for online evaluators from the `langsmith` CLI with `langsmith online-evaluators create`, `update`, and `spend`. Listing, reading, and deleting evaluators remain available through `langsmith evaluator list`, `get`, and `delete`.
* Code evaluators can now score whole threads. Select **Threads** for a code evaluator rule, turn on **Enable advanced features**, and define `evaluate(ctx)`. Set the evaluator's input to `thread`, `all_messages` (the default), `human_ai_pairs`, or `first_human_last_ai` to choose which view of the conversation it receives. Each thread gets one score. [Learn more](/langsmith/online-evaluations-code).
## Deployment
* Your review form now shows a decision picker for human-in-the-loop interrupts, so you choose approve, edit, reject, or respond and fill in only that decision's fields, and a single-decision interrupt no longer makes you type the decision type by hand. Per-call tool approvals in chat use the same approve, edit, reject, and respond card one tool call at a time, and long decision descriptions start cut short behind a Show more button.
* `GET` and `POST /threads/{thread_id}/history` now accept a `select` parameter that returns only the named fields of each state, such as `tasks` or `checkpoint`, or a single key of the state values like `values.messages`. Unknown fields and `values.` with no key return a 422 error, so you can request just what your client reads from each history entry.
* Studio's right-side Interact and Trace panel can now be hidden with **Hide side panel** and shown again with **Show side panel**, and it stays hidden when you switch between Graph and Chat or reload the page. Showing it restores the width you had before.
* Studio chat lists your most recently updated threads first, so a thread moves to the top when a run starts or finishes instead of staying at the bottom of the list.
* New AWS data planes created without a `trace_storage` value now store traces in SmithDB instead of ClickHouse. To keep the ClickHouse default, pass `trace_storage` set to `CLICKHOUSE` in your `POST /orgs/current/data-planes` request. Existing data planes keep their current trace storage.
* The MCP endpoint now returns HTTP 403 for requests whose `Origin` header your CORS settings do not allow, on every MCP protocol revision, which blocks DNS rebinding attacks. Loopback origins such as `http://localhost` remain allowed, so list your browser-based MCP clients' origins in `CORS_ALLOW_ORIGINS` or `CORS_CONFIG`.
* You can now stop every in-flight run on a deployment at once with the new kill switch, which is available to Workspace Admins by default and to custom roles that have the `deployments:cancel-runs` permission. Pressing Stop returns the operation's progress and keeps updating until all targeted runs have stopped, and the latest operation remains visible after a page reload.
* JS graphs can now call their own deployment with the SDK client by passing the `langgraph_api:url` context variable as `apiUrl`, including under custom auth, where the calls run as the user who started the run.
* You can now enter custom IAM role names and a custom Karpenter instance profile name when you create an AWS data plane with **Use Existing IAM Roles**, so the data plane works with the names from your BYOIAM Terraform module outputs. Set them under **Advanced settings**, and the names are only accepted when `byoiam.is_enabled` is `true`.
* Managed Deep Agents are now enabled on AWS BYOC data planes, and trigger and channel endpoints under `/api/v1/triggers` and `/api/v1/channels` are routed to the trigger server, so your channel and trigger requests reach it and agent revisions can read Context Hub through the public data-plane URL.
* Production deployments on Azure now get their own private managed PostgreSQL database, provisioned automatically with each deployment, and you can resize it when you change the database tier.
* Deployment metrics charts in the **Monitoring** tab now load on Azure deployments, showing CPU, memory, restarts, replicas, requests, latency, and run queue for your deployment. Azure metrics requests over 32 days are shortened to the last 32 days.
* Azure BYOC data planes now reach the LangSmith control plane over Azure Private Link, so your data plane sends its API and heartbeat traffic to a private endpoint inside your VNet while your applications keep the same hostnames. LangSmith approves the endpoint connection automatically, and HTTPS requests can fail or time out until approval completes.
* Your Azure BYOC Redis connections now verify the certificate hostname for cluster shards, so Redis startup no longer relies on skipping that check.
* Self-hosted installations with one database and authentication, and BYOC data planes, can now migrate existing tracing projects and experiments to Agent Platform agents automatically. The migration stays off until you set `AGENT_PLATFORM_MIGRATION_ROLLOUT_ENABLED` to `true`, and each BYOC workspace reports readiness to the control plane after it is verified.
* AWS BYOC data planes in private mode can now skip the Route53 private hosted zone and apex record by setting `spec.ingress.customerManagedDns` to `true`, which requires a BYO VPC. Point your own DNS for the ingress hostname at the internal NLB, and your data plane readiness will not wait on Route53 records.
* Self-hosted deployments on the bundled operator can now manage extra ServiceAccounts and SecretProviderClasses from the deployment settings, with a YAML/JSON editor and Secret mount paths for SecretProviderClasses.
* Thread history responses are now capped by size when `LANGGRAPH_THREAD_HISTORY_MAX_STATE_BYTES` is set: history returns the newest state and stops before the entry that would exceed the limit, so large threads no longer produce oversized responses. The variable is off by default.
* Queue workers now scale on runs that can start: the queue autoscaler counts running runs plus one pending run per thread that is due within 10 minutes and has nothing running, so runs waiting behind a running run on their thread no longer add queue pods.
* Local runs with `langgraph dev` no longer report usage to LangSmith, so they are no longer billed at the self-hosted rate. Deployments built from the published images keep reporting as before.
## Engine
* You can now connect a GitLab instance in **Settings > GitLab** with a service account token, then add GitLab projects to an Engine board alongside GitHub repositories. Scans, fixes, and merge request reviews work on GitLab projects, and merging a fix's merge request completes its issue.
## Gateway
* Model fallback chains now accept an optional `ejection` block with `failure_threshold` and `cooldown_seconds`. When a candidate fails the chain's trigger conditions the threshold number of times within the window, your gateway skips that candidate for the cooldown period and moves to the next candidate, so repeated provider failures no longer slow every request.
* You can now route requests to Deep Infra through the LLM Gateway with your workspace **DEEPINFRA_API_KEY**, using either Chat Completions at `/deepinfra/v1/chat/completions` or Anthropic Messages at `/deepinfra/v1/messages`, and set Deep Infra as a fallback provider.
* Your Usage tab can now break down spend by any `X-Gateway-*` header through the new **Custom Dimension** option in **Breakdown by**, which defaults to `X-Gateway-Service` and works without a spend policy. Changing the header name updates the chart and the URL, so shared links keep the same grouping.
* Requests to the LLM Gateway that authenticate with a deployment's service key, including preview deployments, now include the Agent and environment that the deployment is bound to in request metadata and gateway traces, so you can filter gateway policies and traces by agent.
* Gateway traces for a single request now share a `gateway.request.id`, and each attempt records its position in the fallback chain, the gateway overhead before its provider call, and the time spent on failed fallbacks, so you can group a request's attempts and see where its latency went.
* Gateway traces that exceed your monthly trace limit are now stored without their content instead of being rejected, and the trace metadata includes `content_quota_exceeded: true` so you can identify them.
* You can now call OpenAI Decisions models through the unified `/v1/systemone` endpoint by setting `model` to `openai/gpt-6-luna`, using OpenAI's native Decisions request and response format without translation.
* Traces for BYOK calls to Anthropic and OpenAI now include a `provider_key_hint` metadata field that shows a redacted form of your key, so you can match each trace to the key that made the call and reconcile it against vendor billing. Calls to other providers and calls to custom endpoints do not record a hint.
* You can now register a private MCP server and build a personal tool kit from it that only you can see and use. Choose **Personal** when you add an MCP server or create a tool kit, and find them on the Users tab under **Tools**.
* Workspace admins can now list every member's personal MCP servers by passing `owned_by=any` to `GET /v1/managed-tools/servers`, with each server showing its owner. Members who call it receive a 403 response.
* New tool kits default to **Use connected tools**, so a kit with servers from a profile and servers added by you returns tools from the connected servers instead of failing discovery when one credential is missing.
* Managed MCP servers and tool kits now send clients that support URL elicitation a link to connect the required credential, instead of only a 428 response that requires a retry. Clients without that support keep the existing 428 response.
* Managed tools server lists now show a `credential_status` for each server (`connected`, `needs_connect`, `needs_reconnect`, or `unavailable`), so you can tell when a server needs you to connect or reconnect and when Agent Auth is temporarily unavailable. Listing servers also makes a fixed number of Agent Auth calls regardless of how many servers are on the page, so lists load faster.
* Managed tools MCP servers no longer send your custom credential headers to a different host, port, or scheme after a redirect; cross-origin redirects now fail with a blocked-redirect error, and same-origin redirects keep working. Servers that redirect to another origin must be registered at their final origin.
## Sandboxes
* Sandboxes now live-migrate to another host when their host drains, with no per-tenant flag or per-sandbox opt-in required. Sandboxes that cannot move, such as those with role-backed S3 mounts, are still suspended. Your requests in flight at the moment the sandbox pauses can fail with a 409 `Sandbox closed the connection while the request was in flight.` error, and `extra_config.experimental.live_migration` is still accepted at create but ignored.
* Snapshots can now carry sandbox settings with the new `include` parameter on `POST /api/v2/sandboxes/boxes/{name}/snapshot`, so a sandbox created from the snapshot starts with its mounts, proxy config, env vars, resources, lifecycle timers, and labels unless the create request sets them. Capturing `mounts`, `proxy_config`, or `env_vars` that hold literal secrets requires `confirm_allow_snapshot_secret_values: true`, and access delegation is never carried.
* Service URLs and browser window links can now be embedded in an iframe on the origins you name with `embed_origins`, so your app can show a sandbox's dev server or a browser window next to its own UI. Viewers using a LangSmith login sign in from inside the frame through a popup, and token-mode links return an `embed_url` that keeps the token out of server logs.
* Redirects returned by your sandbox, such as a service URL that sends `/` to `/login`, now reach the browser unchanged and resolve against the service URL host, instead of being followed by the platform.
* Updating, starting, or stopping a sandbox now requires runtime access: the sandbox's creator, or a role with `sandboxes:exec`. Editors with only `sandboxes:update` who did not create the sandbox receive a 403 and their changes are no longer saved or pushed to the host.
* Sandboxes now allow up to 256 concurrent TCP connections per vCPU. Connections beyond the limit are closed immediately, and new connections are refused until usage drops.
* Sandbox registry listing now supports cursor pagination with `page_size` and `cursor` on `GET /api/v2/sandboxes/registries`, so you can page through registries without skipping or repeating results when registries are added or removed between requests.
* Private ECR registries now authenticate with an IAM role on BYOC AWS data planes that have sandboxes enabled. Register an ECR registry with a role ARN, then browse its repositories and build snapshots from images in that registry.
* Enabling sandboxes on an AWS data plane created before sandbox provisioning shipped now succeeds. Previously, enablement failed on these data planes.
* You can now manage sandbox registries, browsers, service URL sharing, snapshot lookups, and usage costs from the `langsmith` CLI under `langsmith sandboxes`, including `sandboxes registries update` with `--new-name` and `sandboxes browsers attachments create` with `--window-name`.
* In follow view, a browser window now holds still and pans only while your pointer rests on one of the arrow zones at its edges, so the page no longer slides with every pointer move.
## Administration
* Tracing keys now receive a 403 Forbidden on the Agent Server auth routes, the OAuth token routes, the LLM auth proxy JWT routes, and the internal alerts aggregation route, so they can no longer reach these endpoints. In multipart run ingestion, feedback sent with a tracing key is dropped while the batch's runs still ingest, and a batch containing only feedback returns 403 Forbidden.
* Tracing keys now have their own maximum expiry: admins set the **Tracing Key Maximum Expiry (days)** limit in **Settings** > **Max expiry settings**, separate from the Service key limit, and new Tracing Only keys default to and are capped by that value.
* You can now manage API keys in one streamlined table, with saved column preferences, URL-backed filters that persist when you share a link, and full-schema CSV exports that include every matching key. The Workspaces column shows the single workspace name directly, or opens a searchable list when a key spans several workspaces, and the default workspace always appears first.
* You can now edit the SAML metadata URL or XML of a configured SSO provider in **Settings** > **SSO Configuration** without deleting and recreating the configuration. The new metadata must have the same entity ID as the current configuration.
* Self-hosted deployments using **OAuth with PKCE** now show a dismissible warning to organization admins that the method is deprecated and will be removed in a future release, with a link to the migration guide for switching to OAuth with a client secret.
* Workspaces created on the new experience can now switch to the classic experience from **Settings** > **General**, and switch back again.
* The `langsmith` CLI now creates workspaces with `langsmith workspaces create`, reads workspace settings with `langsmith settings list`, reads server details with `langsmith info list`, and reads product feedback with `langsmith product-feedback retrieve`. You can also run `langsmith auth signup` to create a LangSmith account in the browser and log the CLI in to it.
* Your workspace info endpoint at `GET /v1/platform/workspaces/current/info` now returns a `dashboard_url` field with the base URL of your LangSmith dashboard, so you no longer need to derive it from the API hostname. The same field is returned from the `PATCH` response.
## Fixes and improvements
> [accordion] Show all fixes
>
> * Percentage error alerts that filter on an error message now report the correct error rate instead of 100%, and the alert preview divides matching errors by all runs in the same population.
> * Experiment comparison computed columns that show a single output field, such as `outputs.response`, now display a preview with an **Expand** button instead of the "too large to render" error when full outputs are not yet loaded.
> * Categorical feedback labels that are numbers, such as `1`, now stay selected after you pick them in an annotation queue rubric or on the run page, instead of appearing unselected after saving. Clicking the selected label again still clears it.
> * Clicking **Evaluator trace** from a feedback popover now opens the evaluator's trace with the run peeked on first load, so your trace no longer briefly shows "Something went wrong" before it appears. Evaluator traces for evaluators without an evaluator page now open under **All agents** instead of the agent picker.
> * Playground experiment batches that exceed the request timeout now return a result for every run, so completed runs keep their outputs and evaluators receive them instead of batches stalling with no result.
> * The Engine GitHub repository picker now shows repositories as each page loads, so large installations with more than 100 repositories no longer stay in the loading state until every page has arrived.
> * Fixed the Redis run queue starting two runs of one thread at the same time, so a thread's runs now run one after another. Also fixed a pending run that stayed queued until the sweep after its earlier run was cancelled or deleted; the next run now starts without waiting for the sweep.
> * Sandbox cost breakdowns now show dollar amounts for Standard Units invoices instead of Unavailable, with compute and storage priced per resource and totals that match the invoice.
> * Traces now appear for Claude calls made through Amazon Bedrock Runtime, including inference profile model IDs such as `global.anthropic.*` and `us.anthropic.*`, for both JSON and streamed responses. Each call writes a trace, spend record, and policy-violation record in the `gateway` project, as it does for direct Anthropic calls.
> * Command-click or Ctrl-click on a run in the runs table now opens the correct trace in a new tab, including in tables that show runs from multiple projects.
> * Evaluator spend under one cent now displays its real value instead of $0, so a week with $0.00026 of spend shows \$0.0003 on the spend tile, chart tooltips, and the weekly limit row, and the chart's y-axis labels show distinct sub-cent values.
> * Shared links to experiment traces now load on open instead of showing "Something went wrong" when the trace's example is far down the results table.
> * Running a two-prompt experiment from the playground on an agent-scoped URL, an annotation-queue run, or a Studio thread run no longer freezes the tab. Both prompt columns now complete.
> * Engine now links the pull request for commits that landed through a merge queue or submit queue, instead of showing (no PR) when the commit message names the PR.
> * Runs whose stream events fail to publish now finish their work instead of stopping early and being recorded as successful, timed-out runs end their stream with a `TimeoutError` error event, and resumable runs in `messages` stream mode replay their message events when rejoined with `Last-Event-ID`.
> * When an MCP server rejects your stored credential, your client now receives a LangSmith reconnect link instead of the upstream server's sign-in challenge, so you can reauthorize the connection from LangSmith.
> * Browser window links now load their live view script, so the window page no longer shows a "This page's script is missing." error and streams video in every stream mode.
> * Trace queries that time out now show a **Query timed out** error with guidance to narrow the time range or simplify filters, instead of **No runs found**. Partial results still appear with a prompt to narrow your time range.
> * Expanded sections in the dataset example side panel now update to the selected example when you switch between examples, so every part of the panel matches the example you selected.
> * Playground now returns a 502 status with the provider's message when a model provider fails with a 5xx error, instead of a generic 500 that looked like a LangSmith failure. Retry the request to see if the provider has recovered.
**October 12-19, 2026**
## Highlights
* **Tracing-only API keys**: You can now create tracing-only API keys scoped to one or more workspaces, so applications can send traces without being granted broader access. Create keys from the new **Tracing Only** option, then list and revoke them from the **Tracing** tab in organization settings or through the `/orgs/current/tracing-keys` API. Tracing keys can only write runs and create projects, so a leaked key cannot read data or change other resources. [Learn more](/langsmith/create-account-api-key#tracing-keys).
* **ScaleDown provider in LLM Gateway**: You can now call ScaleDown operations (summarize, extract, classify, compress) and its Decisions model through the LLM Gateway. Use the native `/scaledown` routes, unified `/v1/chat/completions`, or `/v1/systemone`, and runs are traced and priced as ScaleDown. You can also name ScaleDown in model access policies, save it as a model configuration, and use it as a fallback candidate. [Learn more](/langsmith/llm-gateway-direct-model-access).
* **Create BYOC data planes on GCP**: You can now create and delete BYOC data planes in your own GCP project with `POST /orgs/current/data-planes`, passing `cloud` as GCP along with `gcp_project_id`, `provisioner_service_account`, `region`, and `vpc_cidr`. GCP data planes run Cloud SQL Postgres in high availability by default, and you can set a two-hour weekly `maintenance_window` in the data plane settings. GCP BYOC is available on the US control plane for organizations with BYOC enabled. Creating a GCP data plane is API-only for now. [Learn more](/langsmith/byoc).
## Administration
* The **Settings** > **Webhooks** page now pages through all webhooks, filters by type and feature, and offers a **Send test event** action for every feature. The Destinations and Configurations tables now show every row, not only the first 25.
* Engine access is now split into separate permissions: `organization:engine:read` to view Engine configuration and access requests, `organization:engine:manage` to turn Engine on or off and manage managed evaluation consent, and `organization:usage-controls:manage` to change spend limits and pause or resume runs. Organization Admins and Operators keep their existing access, and users with only spending permission see project labels and spending controls without full project configuration.
* You can now create and delete organization-wide teams from **Settings** > **Organization Teams**. Creating a team opens a dialog for its name and description, and deleting one asks you to type the team's name first. Both actions require organization team management permission, and the buttons are disabled with a tooltip when you lack it. Workspace teams are now created and removed only by granting or revoking an organization team's access to a workspace, so each grant always has exactly one workspace team that starts with no members or policies.
* IdP-synced teams now pick up members from SCIM groups and SSO group claims whose names match the team's IdP group name, so a user who belongs to a matching group joins the team and keeps its workspace access without an organization role.
* Workspace secrets can now be assigned allowed hosts: the secrets list can include each secret's hosts, and the new per-key `PUT /current/secrets/{key}` and `DELETE /current/secrets/{key}` endpoints let you create, update, and remove a secret along with its hosts. You can also view and edit a secret's allowed hosts and header on the workspace secrets page, and set them when adding a provider secret.
* Webhook destinations now report a delivery status in the API. A destination whose endpoint fails three times in a row is marked `FAILING` with a reason, such as `URL_NOT_FOUND` or `AUTH_FAILED`, and returns to `HEALTHY` after a successful delivery.
* Organization creation is now consistent between the **Settings** organization picker and the organization menu in the footer. Creating a new organization is disabled for SAML SSO sessions and when the instance disables organization creation, and it no longer requires management permission in the current organization.
* Agent Auth can now create a GitHub App owned by an agent from the App's manifest, or bring an existing GitHub App by its App ID and private key, and then install it through a session on the app's connection. Agents can read an app's GitHub status, change its webhook URL, and delete it, which also uninstalls it from every account where it is installed.
* Self-hosted and BYOC installations can now configure their own Slack App from organization settings, with credentials scoped to each data plane and Slack notifications available in BYOC data planes.
* Device activation now shows the name, logo, and links of the app requesting the code before you approve it, and preselects the organization and default workspace you picked last time. Select **Change** to open a searchable picker for either.
* Webhook destinations that have failed on every delivery for more than 24 hours now receive each event once, without retries. A destination resumes retries after its next successful delivery.
* You can now create as many Context Hub webhooks as you need in a workspace; the per-workspace limit no longer applies, and the Context Hub page no longer shows a webhook count. The Prompt Hub webhook limit is unchanged.
* You can now filter the **Settings** > **Model pricing** list by provider and sort it by start date, and both settings stay in the page URL so you can share or bookmark a filtered view.
* Startup program customers on the Plus plan now move to the October 2026 Startup plans and keep their current term. The Plus plan now lists its workspace limit as "Up to 3 workspaces" on the pricing, Members, and upgrade pages.
## Engine
* Close an issue as Done, Not Important, or Incorrectly Flagged from the new **Close** menu, and a banner under the header shows how it was closed. Done reopens if the issue recurs, while Not Important and Incorrectly Flagged stay closed. The **Incorrectly Flagged** filter is now **Dismissed**.
* Installation administrators can now configure one Engine GitHub App for their self-hosted or BYOC deployment from **Settings**, without editing deployment environment variables. Repository connections, sign-in, and webhooks use the configured App, and replacing or deleting it takes effect immediately.
* Every active Engine issue now offers a coding-agent handoff right away, with no seven-day wait, and boards with a connected repository keep the PR button as the primary action.
* Fix pull requests that Engine opens on your GitHub repositories are now ready for review instead of drafts, so the CI and review workflows in your repository run on them as usual. The **Open a pull request for every fix** setting in **Issue boards** now uses this behavior.
* Issue charts now mark when each fix's pull request merged, drawing a dashed line labeled PR #N on the recurrence and metric charts, so you can see whether recurrences stopped after a fix. An issue whose description names the pull request that introduced it also gets a red marker on both charts, and its chart start moves back to that merge when the gap is no wider than the traces' span.
## Gateway
* Azure Foundry models can now be used with an Entra ID service principal (tenant ID, client ID, and client secret workspace secrets) instead of an API key, so organizations that disable API keys on their Azure resources can use the gateway. An existing `AZURE_FOUNDRY_API_KEY` still takes precedence when set.
* Gateway requests that send a conversation or prompt cache key in the body but no session header now get tagged with that key as their session, so traces from OpenAI, LangChain, and Vercel AI SDK clients no longer show an empty thread.
* You can now edit a custom model configuration from its card in the LLM Gateway playground by selecting the sliders button on the card, without selecting the model first. The card updates right after you save.
* Gateway policy names in simulator block errors are now links that open the matching policy row in the gateway settings, with the row highlighted, so you can jump straight to the policy that blocked a request.
* TypeSafe-compatible configurations can now use an endpoint URL exactly as entered, without LangSmith appending `/v1/systemone`. Clear the **Append /v1/systemone** checkbox in the model configuration to use this mode; authentication remains Bearer-only.
* Gemini 4 Argon is now available in the Playground and in gateway model configurations for Google AI and Vertex AI, and TypeSafe gateway configurations now include the `jev-1.14.0` model alongside `jev-latest` and `jev-preview`.
* Responses from configured custom models and fallback models now report the model that actually served the request, so model pricing reflects the underlying provider model instead of the custom alias.
* You can now add an Anthropic Compatible Endpoint in the Gateway and Playground by entering a full endpoint URL, model name, and workspace API key. Requests are sent to the exact URL you enter, and Anthropic subscription credentials are never forwarded to it.
* Each row in the Model Fallbacks table now has an **Open in Simulator** link that opens the Simulator with the chain's primary model preselected, so you can run the fallback chain right away. Aliases and models that are no longer available open the Simulator with nothing selected.
## Sandboxes
* Writable S3 mounts can now encrypt uploads with a customer-managed KMS key by setting `encryption.kms_key` to a KMS key ARN in the mount's region. Uploads to buckets whose default encryption is SSE-KMS also persist now, instead of being deleted after the write succeeds.
* Sandbox command history is now enabled in APAC, EU, and US GCP production regions, so you can view retained stdout and stderr from sandbox commands, including after a Box has stopped.
* Sandboxes can now authenticate to AWS, GCP, and Azure with short-lived workload identity instead of static keys: set `aws.role_arn`, `gcp.workload_identity_provider`, or an `azure` proxy rule with `tenant_id` and `client_id`, and the egress proxy adds the cloud credentials to requests so the sandbox never holds them. Azure Blob Storage is also available as an `azure_blob` mount type.
* Running sandboxes can now be live-migrated off a draining host with a pause of only tens of milliseconds, instead of being suspended and woken on another host.
* Sandboxes on BYOC data planes no longer stop together when their host runs out of memory. Sandboxes can now use the full node. Existing BYOC data planes keep their current limits until their configuration is updated.
* Sandboxes are now available to Azure production organizations, letting you create, run, stop, resume, and delete sandboxes and open their service URLs at `*.azure.smithbox.dev`. Sandbox compute and storage usage is reported for billing.
## Tracing
* The All agents page now shows agents in a sortable table with Name, Most Recent Run, Created At, Trace Count, Total Cost, Error Rate, latency, tokens, and Agent ID columns; Trace Count, Total Cost, and Total Tokens now sum across all environments, and a new "About these metrics" tooltip explains which columns use the most recently active environment.
* You can now send OpenTelemetry traces to an Agent environment instead of a project by setting the `Langsmith-Agent-Id` and `Langsmith-Agent-Environment` headers. Span attributes such as `gen_ai.agent.name` do not address traces, so existing exports keep going to their project. The Go tracer also reads the `LANGSMITH_AGENT_ID` and `LANGSMITH_AGENT_ENVIRONMENT` variables, and the Java exporter accepts an address through its builder.
* Runs and traces queries in the API now accept `min_feedback_modified_at` and `max_feedback_modified_at` to filter by when feedback was last modified, as long as the query includes a feedback condition. Requests that use these bounds on a deployment that cannot apply them return a 501 error instead of ignoring the bounds.
* Trace messages now include each LLM call's prompt cache breakdown in group metadata, so you can see per call whether the prompt was read from cache or written to it, including the cache TTL, under `token_usage.input_token_details` and `cost.prompt_cost_details`.
* Long filter queries can now wrap across multiple lines. A new **Wrap filters** button appears when a query overflows the filter bar, and your choice is remembered for each project and run details view. Wrapping is off by default.
* You can now rank grouped metric results by total cost by setting `rank_groups_by` to `total_cost`, so when a query returns more groups than `limit`, the groups with the highest cost are kept. The default is still run count. This option works with **name**, **run type**, **tag**, and **metadata** group-bys, and is not supported with **project** or **feedback** group-bys.
* Cached input tokens from OpenTelemetry GenAI spans now count at the cache rates instead of the full input rate. Spans sent with the dotted keys `gen_ai.usage.cache_read.input_tokens` and `gen_ai.usage.cache_write.input_tokens` are now read, and reasoning tokens sent as `gen_ai.usage.reasoning.output_tokens` are now recorded.
* Dashboard ratio KPI charts now include a **Display as percentage** option, so a value such as 0.16 runs per feedback can appear as 16%. Decimal display remains the default, and your choice is saved when you edit the chart.
* You can now sort the Agents list by `name`, `last_run_start_time`, or `created_at` in ascending or descending order with the `sort_by` and `sort_order` query parameters on `GET /api/v1/agents`. Agent responses also include a `created_at` timestamp.
* You can now rename an agent from the **Agent settings** menu on the agent overview page, and the new name appears in the agent details and agent list right away.
* You can now start a new agent from a Build / Connect menu: **+ Agent**, the agent switcher's **+**, and the **Create new agent** tile all open the same menu, with Build (Without code, With code) and Connect (Trace an existing agent) choices.
## Datasets and experiments
* The annotation queue and dataset pickers now list every queue and dataset in your workspace, not just those matching your agent scope, and load more as you scroll. After you add tracing runs, threads, or examples to a queue or dataset from a picker, that queue or dataset is tagged to your current agent so it appears there next time.
## Deployment
* MCP tool results are now returned as valid JSON instead of Python repr() text, failed runs include the full error message, and a tool that pauses for human input returns an explicit error instead of looking like a success.
* Azure data planes can now be created and deleted from the API on Azure control planes. Creating an Azure data plane takes a resource group ID and an Entra tenant ID, and returns 202 while the reconciler applies the data plane. Deleting an Azure data plane also works while it is still provisioning.
* The MCP endpoint now accepts clients on MCP revision 2026-07-28, which send their protocol version and capabilities with each request and discover the server with **server/discover**.
* A2A SendMessage now honors non-blocking configuration: setting `configuration.returnImmediately` to `true` (or the legacy `blocking` to `false`) returns the new task right away with its submitted or working state, so you can poll it with GetTask until it completes. Blocking remains the default, and non-boolean flag values are rejected with an invalid params error.
* Deployment runtime keys now mint with a new `DEPLOYMENT_RUNTIME` role, which has Editor permissions plus gateway, sandbox, and agent-auth-credentials:use access, instead of workspace admin. Agent Auth credential reads from deployments with user-owned connections now work without granting `workspaces:manage`. Keys created before this change keep their existing permissions.
* Local image builds with `langgraph deploy` now work on LangSmith AWS deployments once your administrator configures the push role. Pushes go to a separate per-deployment ECR repository. This requires a newer LangGraph CLI, and the server tells older clients to upgrade.
* Renaming a tracing project that a deployment sends traces to now returns a 409 error, so deployment traces stay in one project. Rename the project only after you detach or redeploy the deployment.
* Serverless M and L deployments now run a single replica, matching the Serverless S tier, so the replica count shown in the plan summary is the count your deployment actually uses.
* You can now create an AWS data plane that stores and queries runs in SmithDB only, without ClickHouse. Set `trace_storage` to `SMITHDB` when you call `POST /orgs/current/data-planes`; the default remains `CLICKHOUSE`. Existing data planes keep ClickHouse, and turning it off on an existing data plane is not yet supported.
* Self-hosted deployments can now set the CPU autoscaling target as a percentage of the container's CPU limit, turn off CPU scaling or the CPU limit for the api-server and queue, and configure scale-up and scale-down behavior for autoscalers, in the container spec editor and the API.
* Subagent calls in the Studio chat tab now show a live card with the subagent's name, task, status, and the tool it is currently running, and expanding a call shows the subagent's conversation before its arguments and result.
* Runs now ignore a `cron_id` sent in `config.configurable`, `context`, or `checkpoint`, so only runs fired by a cron carry a `cron_id`.
* You can now deploy a Managed Deep Agent from a GitHub repository. Point the deployment form at a project directory with `agent.py`, `agent.ts`, or `agent.tsx` at its root, and LangSmith checks the entrypoint before it queues a build. The deployment page shows channel authorization links and any warnings from syncing the agent's schedules and channels.
## Evaluators
* Code evaluators can now use workspace secrets: select a secret in the advanced features panel and the sandbox proxy sends its header to the hosts allowed for that secret, so the secret value never enters the evaluator code. Saving fails with a clear error when a secret has no allowed hosts, has no header, or cannot be used under your organization's restricted egress settings.
* Evaluator spend charts, stat cards, and spend-limit monitoring on the Evaluators page now show only the evaluator spend for the agent you have selected, instead of the application tag filter. Filtering **Evaluators** spend data by agent is also available in the SDKs through the new `agent_id` parameter.
* You can now attach an existing workspace evaluator to an agent from the empty state of the Evaluators page, using the new **Add existing evaluator** button. Evaluators from the dataset attach flow now list all workspace evaluators, and attaching a dataset to an evaluator also attaches that dataset to your agent.
* Ask LangSmith Chat to create an evaluator from the Playground's Evaluate mode and it now opens the New Evaluator panel for the selected dataset with a drafted judge that is grounded in each example's reference outputs; you still press **Create** to save it. Outside Evaluate mode, LangSmith Chat finds and confirms a dataset, switches the Playground to Evaluate mode over it, and opens the same panel.
* Rules that are turned off no longer count toward your run rule limit, so you can keep disabled rules without using up a slot. Enabling a rule or creating one as enabled now returns an error when your tenant already has the maximum number of enabled run rules.
* Thread rules now stop fetching a window once its threads exceed the size limit, record an error for that window, and move on to the next window instead of running the worker out of memory. Evaluator validation returns a clear message when a project's recent threads are too large to evaluate.
## Feedback
* Annotation queue and manual feedback forms now follow a key's enforced feedback config, so scores outside its range are flagged before you submit, and the form shows the enforced rules instead of letting you define a conflicting config.
## Prompts and playground
* Prompt webhooks are now available in the Python, TypeScript, Go, and Java SDKs and in the `langsmith prompt-webhooks` CLI command, so you can list, create, retrieve, update, test, and delete them programmatically or from the terminal.
* Playground requests that use the OpenAI or Azure OpenAI Responses API with unsupported Seed or input schema settings now return a clear 422 error that names the rejected fields, and Playground invocations that run longer than 290 seconds now return a 504 timeout error with a retry suggestion instead of an ingress failure.
* Organization-scoped model configs can now be read and, with the right permission, managed with a service key that has no workspace, so API calls that previously returned a workspace-required error now succeed.
* Tag webhooks now report the same author name as commit attribution in the `created_by` field, so tag creation and update events show the name of the user who made the change instead of an empty value when the profile has no display name.
## Fixes and improvements
> [accordion] Show all fixes
>
> * Tool results from Anthropic models now appear under their matching tool calls in traces instead of as User messages, so each result shows beside the call that produced it.
> * Runs started or resumed through HTTP event-streaming commands are no longer blocked from being created by a malformed `langsmith-metadata` baggage value.
> * Experiment comparison and grouped views no longer fail with a "time_range duration exceeds maximum of 401 days" error for experiments that have no explicit start time or that were created long ago. These views now load, with the lookback limited to 400 days.
> * Sending feedback with a thread ID to a project older than 400 days no longer fails with a 500 error; the anchor run is now found within the 400-day retention window.
> * LangSmith Chat now reports a failing tool call back to the model instead of ending the turn, so a tool error such as a 503 or a missing resource lets the model retry or tell you what failed, and other tool calls in the same step still finish.
> * Rules whose run output contains the literal text `\u0000` no longer fail to save their batch with an "invalid input syntax for type json" error, so affected rules commit their windows instead of retrying them on every run.
> * Claude Code image reads now work on Responses routes, so a tool result that contains an image is translated instead of failing with a 400 error about non-text blocks.
> * Audit log entries that contain NUL bytes in their operation name or enrichment fields are no longer rejected by the database, so the rest of the batch is saved and the affected entries are stored with the NUL bytes removed.
> * Sandbox costs in **All Workspaces** now keep the totals and rows from workspaces that load successfully when another workspace fails, with a partial-results warning and a **Retry** button that lists each workspace that could not be loaded.
> * Selecting AI search from a scope with an existing query now adds a separate AI search row and keeps your typed query in place, instead of clearing it.
> * Cancelled runs now stop within one heartbeat interval even when the cancel signal is briefly lost, instead of continuing until the run finishes.
> * Sorting by **End Time** in the dataset Experiments table no longer shows a "Failed to load experiments" error; that column now has no sort control, so the table loads normally.
> * The composite score picker now lists every feedback key that has number scores, including keys from annotation queues with categorical rubrics and keys written through feedback links. Before, those keys were missing from the picker.
> * Thread evaluators now receive the user and assistant turns in `human_ai_pairs` and `first_human_last_ai` for threads that contain a tool message without `tool_call_id`, instead of an empty input.
> * Opening a deleted prompt or context resource URL now shows a "Prompt not found" or "Resource not found" page with a link back to the list, instead of an endless loading skeleton.
> * Running `agent-browser` with `--cdp`, `connect`, `--auto-connect`, or a provider against a sandbox browser no longer fails with a "Cannot use --ca-cert with --cdp" error, and the attached browser works as expected.
> * Requests that send `typesafe-*` headers to the gateway now pass those headers through to the upstream provider, so features such as long-context requests that depend on them work as expected.
> * Invite email links for organizations created with newer UUIDv7 IDs now open the invitation instead of showing "Page not found".
> * The expand button now opens the **Shortcuts** pane when side navigation is open on narrower browser windows, instead of doing nothing.
> * Studio keeps its top bar and agent selector visible when an agent fails to load, such as when no assistants are deployed or the server is unreachable, so you can switch to a different agent.
**October 5-12, 2026**
## Highlights
* **AI search for runs, traces, and threads**: You can now describe what you are looking for in plain language on a tracing project page and search runs, traces, and threads with it. Select the AI option in the filter bar, type your query, and click Search or press Enter to apply it together with your structured filters, date range, and selected tab. Stats and filter counts are unavailable for submitted AI searches. Organization administrators turn on AI search in organization settings, including for personal organizations. When the service is busy, you see an "AI search is busy" message and can submit again. [Learn more](/langsmith/filter-traces).
* **Find text within run details**: You can now search the loaded content of a run with Find, opened with Cmd/Ctrl+F in the active pane. Find matches input and output messages, object fields, tags, and metadata, shows a match count, and provides next and previous controls. Selecting a result expands the target and scrolls to the highlighted text, including the exact line and columns in JSON and YAML views. [Learn more](/langsmith/view-traces).
* **Granular organization permissions replace manage access**: Organization actions now require dedicated permissions instead of the single broad organization manage permission, so you can grant access to members, access control, authentication, security policies, billing, usage controls, retention, data planes, workspace creation, OAuth applications, and GitHub integrations separately. Updates through `PATCH /orgs/current/info` check the permission for each field you send, and read access to billing, data planes, and integrations is separate from manage access. Organization Admins and Operators keep their existing access, and the UI hides or disables controls you do not have permission to use. [Learn more](/langsmith/rbac).
* **Self-serve plans move to October 2026**: Existing self-serve Cloud customers are moving onto the October 2026 plans, which price usage in LangChain Standard Units. The new plan starts on the 1st of the current month at 00:00 UTC, so usage for the whole month is billed under it. Customers with a contract, a credit grant, or price adjustments on their plan stay on their current plan. [Learn more](/langsmith/pricing-plans).
## Administration
* You can now turn on AI search for your organization from the Projects page, with a consent step that explains data processing and PHI limits. Organization admins can enable it directly, and other members can send a request to their admins from the same dialog.
* Teams can now be managed with organization-level and workspace-level permissions, and the Teams APIs return 403 unless your organization has the `can_use_teams` setting enabled. Built-in roles such as Organization Admin and Workspace Admin receive the new teams permissions automatically.
* The ABAC settings page now includes Attributes, Policies, and History tabs, each with search and filters that persist in the URL and a CSV export. Attribute values show how many resources carry each value, and History lists policy create, update, delete, attach, and detach events for a chosen time range.
* You can now export organization members and API keys to CSV from the **Settings** page. The export includes every row that matches your current tab, search, and workspace filters, including rows on other pages.
* Custom roles can now be granted Engine permissions in **Settings** > **Roles**, with all four Engine permissions shown in the role editor and saved with the role.
* Traces from enterprise plans and self-hosted deployments are now billed at a flat 0.0075 LSU per trace, with no extended retention surcharge, unless your contract sets different rates.
* Bulk exports now bill each completed export partition by its uncompressed bytes through usage reporting in Metronome, so partition usage appears in your billing records once the feature is enabled for your environment.
* Custom MCP servers behind a LangSmith tunnel now accept headers such as `x-api-key` and `Cookie` exactly as servers outside a tunnel do, so customers no longer need to rename them, and OAuth-protected MCP servers can use a tunnel for their token, registration, and protected-resource endpoints. An authorization endpoint behind a tunnel is rejected at provider creation and update with a 400 error, because the browser cannot reach it.
* The hosted LangSmith MCP server now accepts access tokens issued for the LangSmith API, so one OAuth grant can be used for both the API and MCP. Other token audiences are still rejected.
* Agent Auth now mints GitHub App installation tokens, so agents can call `connections.get` on a `github_app` connection and receive a working token with the permissions you allowed, renewed automatically before it expires.
## Deployment
* Deployment settings now open in a side pane from the gear button, with General, Source, Preview Builds, LLM Gateway, and Scaling sections saved together through one Save. Scaling moved out of the header into the pane, and the pane is 960px wide, so fields no longer stretch across the full viewport.
* Deployment overview now shows a Revisions card beneath Details, with the current revision pinned at the top and New Revision as its primary action, so you can check status without leaving the page. The separate Revisions tab is removed, and bookmarks to tabs after Overview open the tab to their right.
* Deployment Monitoring now includes a Traces section with trace count, latency, and error rate charts that follow the same time picker as the server metrics, and the 7-day Trace Count chart has moved off the Overview to give Details more room.
* Custom headers for the deployment now live in the Connect dialog, where you can add, edit, and save them without leaving the page. Headers are still stored only in your browser, and the Settings dialog no longer shows them.
* The Source section of the deployment details card now shows where each deployment comes from: GitHub deployments link to the tracked branch or tag with auto-deploy status, Docker and template deployments show their image, and CLI uploads show that they deploy with langgraph deploy.
* Deleting a deployment now removes its database and metadata immediately instead of after a delay, so you can delete its tracing project right away and create a new deployment with the same name without waiting. Deleting a deployment now requires you to type "permanently delete" to confirm.
* You can now change the GitHub repository of an existing deployment in **Settings** > **Change repository**, or with `source_config.repo_url` on `PATCH /v2/deployments/{id}`, so a renamed or transferred repository no longer requires a new deployment. Saving does not redeploy; the next revision builds from the new repository.
* You can now edit environment variables on preview deployments and save them as a new revision, using the same editor as regular deployments. Deployment settings, scaling, and rollback remain unavailable for previews.
* You can now pass `exclude_metadata` to `POST /threads/search` and `POST /threads/count` to leave out threads whose metadata matches any object you list, such as automation threads in the Open SWE sidebar.
* Paused threads no longer show as `idle` after a run is cancelled or rolled back before its first checkpoint; they stay `interrupted` while their interrupts are pending. Cancelled runs now report why in `cancel_reason`, and thread `error` holds only real failures.
* Deployment log requests now read at most five pages from the logging backend per call, so sparse filters return sooner; when a response is short or empty, follow the returned cursor with **Search older** or keep the live tail running to get more lines.
* Studio chat now accepts TXT, CSV, TSV, Markdown, and JSON files, and sends them as text so Send no longer does nothing when you attach one.
* Studio's top bar now shows a **Connection** button for deployed agents, which opens the Agent Server URL and custom headers for that deployment. A rejected deployment's failure screen offers **Set custom headers**, which saves the headers to that deployment and retries. Header editors also gain a **Bulk edit** option that accepts YAML, JSON, or a pasted cURL command, and it imports the `-H` headers from the command.
## Gateway
* Gateway fallback simulation lets you test a workspace fallback chain by picking a model in the simulator and choosing Healthy, Rate limit, or Outage behavior for each model in the chain, so you can see which model answers and how much latency each fallback adds.
* Added OpenAI Decisions to the gateway at `/openai/v1/decisions` and `/openai/decisions`, so you can send native question-and-answer requests through the gateway with model access policies applied and get typed answers back unchanged. Decisions requests now appear as traces in LangSmith with answers and token usage, and count toward gateway spend caps.
* Scaledown compress, extract, classify, summarize, and decisions requests now produce traces in LangSmith with input and output token counts, and the models are priced at \$0.05 per million input tokens.
* You can now choose Automatic, Bedrock Runtime, or Bedrock Mantle as the preferred Bedrock endpoint for Bedrock models in the LLM gateway. Automatic keeps the current routing based on the model ID, so you only need to pick an endpoint for models available through both Bedrock surfaces.
* Gateway traces now have their own **Traces** tab next to **Usage**, so you can browse, filter, and expand requests sent through the LLM Gateway without leaving the Gateway page. Links from the **Usage** tab open this tab with the same filters applied.
* You can now add custom regex patterns to guard policies in the Gateway, so you can have matching text redacted from requests before they reach the upstream model. Add a pattern in the `detect.custom` field of the guard policy config, using a single Go regular expression (RE2 syntax) of up to 512 bytes.
* You can now invoke managed-tools MCP servers and gateways with an access token from your workspace's OIDC identity provider by sending it in the X-Agent-Auth-Principal-Authorization header. Workspace managers can link one provider under **Settings** > **Tools** > **Configure OIDC**.
* MCP gateways now support up to 10,000 tools, and you can choose connection requirements for each gateway: **Require all connections** makes every provider connected before any tools are available, while **Use connected tools** lets people use connected providers and keeps unavailable tools hidden.
* Adding a server as Public now fails with a clear error when the server requires OAuth or other authentication, instead of saving a server that shows Connected but cannot list its tools. Servers that answer without credentials, such as DeepWiki, Exa, and Jina, still save as Public.
* The managed tools OpenAPI spec at /v1/managed-tools/openapi.json is now available in production, not only in development and staging. Requests still require workspace authentication, the lmt_enabled entitlement, and mcp-servers:read permission.
## Sandboxes
* Sandbox command history is now retained for Boxes that have run Execute API commands, so you can list, filter, and search past commands and read their stdout and stderr output after the Box stops. This capability is off by default and must be enabled by your deployment through `SANDBOX_COMMAND_HISTORY_ENABLED`.
* Sandbox egress can now route through your own HTTP forward proxy: set `SANDBOX_EGRESS_UPSTREAM_PROXY_URL`, or `sandboxes.authProxy.httpProxy` in the self-hosted Helm chart, to send plain HTTP as absolute-form requests and HTTPS and raw TCP through CONNECT tunnels. Destinations listed in `SANDBOX_EGRESS_UPSTREAM_PROXY_NO_PROXY` use standard NO_PROXY matching and are dialed directly.
* Self-hosted customers on Azure can now disable access keys on Azure Managed Redis and still run sandboxes by setting `sandboxes.juicefs.redis.iamAuthProvider` to `azure`, so sandbox file metadata connects with Microsoft Entra ID instead of a password. The sandbox host and the formatter Job need Azure Workload Identity, and that identity needs a data access policy on the Redis instance.
* Sandbox filesystem capacity is now capped at 640 GiB by default, so creating or resizing a sandbox above that limit returns a validation error instead of failing later. Operators can change the limit with `SANDBOX_MAX_FS_CAPACITY_BYTES`, and existing sandboxes keep their current size.
* You can now suspend the sandbox host pool by setting `spec.sandboxes.host.suspended` to `true`, which stops sandbox hosts and hides the sandbox UI while keeping managed storage and configuration in place. Setting it back to `false` restores the sandbox UI and host capacity, and the host autoscaler resumes control of replicas.
## Tracing
* OpenTelemetry span attributes that are not part of the LangSmith schema are now stored in run metadata for all tenants in US, EU, AWS, Azure, and GCP APAC production environments, so they appear in the **Metadata** section of each trace.
* Custom charts now support token and cost detail metrics, including cache creation and read, reasoning, audio, image, and video, with sum, min, max, and percentile aggregations. The Prompt cache hit rate chart template is available for tracing projects, and these metrics appear only on data planes that report token detail support.
* You can now add any environment from any agent to a dashboard chart, including environments that belong to agents other than the one currently selected.
* Adds `GET /api/v1/sessions/resolutions`, which takes an agent environment, an experiment ID, or the workspace's evaluators and returns the tracing project `session_id` for that address, so you can pass it to any endpoint that accepts a project ID. Addresses you cannot read return 404, and BYOC workspaces return 501 for now.
* Multipart run uploads and OTEL trace batches now count toward your short-term ingestion limits for tracing bytes, tracing requests, and events per minute. OTEL trace batches also now stop with a 429 once you reach your monthly unique-traces limit, instead of writing past it.
* Trace tree requests now return at most 1000 runs by default, down from 5000, and a `max_runs` value above 1000 is rejected.
* Semantic run, trace, and thread queries are now rate limited per workspace and endpoint: frontend requests allow 25 per minute and API-key requests allow 10 per minute, and requests over the limit return a 429 with Retry-After.
* Agents in the Agent list are now ordered by their latest run start time, so agents with recent activity appear first, and agents without runs appear last. If you saved a list cursor from before this change, the request now returns 400; restart from the first page to continue.
* When ingestion adopts a new tracing project as an agent, the agent now also gets empty **Local**, **Development**, and **Staging** environments alongside **Production**. Migrated agents keep their original tracing data in **Production**, and other environments are created when a deployment requests them.
* Insights reports now include category and subcategory endpoints that let you browse classified root runs and their counts for a saved Insights configuration when online Insights is enabled.
* Run rule webhooks that reach the shared delivery engine now report their final delivery result in the rule log, so a webhook that fails or does not finish in time shows as an error on its batch and runs instead of as a success.
* Self-hosted installs with an online license key now receive new model prices hourly, so prices no longer wait for a full release. Installs that have turned off usage reporting, air-gapped installs, and data planes do not sync.
* LangSmith Chat now always opens in the right sidebar, which can be resized, and the left navigation collapses when LangSmith Chat opens. The floating window and the **Move to sidebar** and **Detach from sidebar** controls are removed.
## Engine
* Engine now watches CI on the pull requests it opens for your issues and, when checks fail on its own commits, automatically pushes a revision that reproduces the failing checks and fixes them, up to three revisions or 90 minutes per chain.
* Boards can now notify you when Engine opens a fix pull request. Slack destinations that also get issue alerts post the fix PR as a reply in that issue's thread.
* Slack destinations can now mention a coding agent on new issues, or under the Fix PR ready message when that is on, with a custom instruction set in the **Message to the agent** box. Engine's own fix run continues independently of the mention.
* Engine is now available on BYOC data planes that report Engine enabled, and each data plane has its own independent monthly Engine budget. Background Engine runs on these data planes now honor your current plan eligibility and Engine opt-out settings.
* Engine now uses GPT-6.1 Sol as its heavy OpenAI fallback and GPT-6 Luna for Codex fix reviews and implementation, with usage priced in LCU for both models.
* The issues agent can now file an issue from a single trace, so one clear failure no longer has to wait for a second matching trace before it is reported. Patterns that still lack evidence remain on the Agent Overview watch list.
* Board trace filters now show how many traces from the last 30 days match the condition as you type, and **Add** is disabled when it would match none, so a filter on a child run no longer saves with zero traces.
* The Engine agent can now read a repository's full commit history and compare commits through the GitHub REST API from its sandbox, including on private repositories, so it can trace an issue past the 50-commit clone's root. Access is read-only and the token never enters the sandbox.
* Closed issues with a pull request now keep a view-only PR link, the history line names the merged PR or Linear sync that resolved the issue, and "Watch" is now "Save for later" across the issue board and LangSmith Chat.
* Issue validation now replays each source run against its fix preview deployment, so a validation no longer fails when the original run used non-chat input, checkpoint state, or agent-type configuration that trace-only chat reconstruction could not reproduce. Roots that cannot be replayed are reported with a stable failure reason instead of being judged.
* Self-hosted deployments can now pull a FIPS-compliant Insights Engine image, `langsmith-insights-engine-fips`, alongside the existing Insights and LangSmith Chat FIPS images.
## Evaluators
* Code evaluators in run rules can now define `evaluate(ctx)` to score runs, and the sandbox prefers it over `perform_eval` in Python and `performEval` in JavaScript, which still work as before. The `ctx` object exposes `run` and `example`, with the same fields available as attributes.
## Feedback
* Annotation queue reviewer notes now save as you type, so each run keeps a single note that persists when you reload or move to another item, with no send button required.
* Feedback comments and evaluator reasoning now render markdown, so headings, lists, bold, italic, and inline code stay readable in the trace view, annotation queues, experiments, and the runs table popover.
* Annotation queue rubric items now return the feedback config they use, so the rubric shows the right scale or categories when a feedback key has more than one config. Items not yet linked to a config show the key's first config, and deleted configs are left out.
## Datasets and experiments
* Dataset tables now preview the most distinguishing input field in each example instead of the first field, so rows with a shared value such as a constant brand no longer look identical in the Inputs column of the Examples tab, public shared datasets, and experiment comparison tables.
## Prompts and playground
* You can now select Claude Haiku 5.5 in the Playground and in gateway model configuration for Anthropic, Amazon Bedrock, and Google Vertex AI.
## Fixes and improvements
> [accordion] Show all fixes
>
> * Fixed an issue where runs could be missing from SmithDB when a trace was upgraded (for example, after feedback was added) before the run's initial data finished writing. Runs now appear in SmithDB, and pending run updates are no longer left with an empty end time.
> * Fixed a crash in the run detail view and peek pane when a run's message list became shorter while the page was open; the view now renders the remaining messages instead of failing.
> * Deep-linked traces now appear in the thread view even when the thread index has not caught up yet, and turns that are still missing a number show a refresh button in place of the number so you can load it on demand.
> * Runs, Traces, and Threads keep rows that already loaded when a search fails partway through, showing the error in a banner above them. Failed later pages no longer load endlessly or fetch further automatically, and Search retries them.
> * Fixed a bug where tool results and messages inside LangChain and LangGraph traces could show the wrong jump target and spurious issue banners; the Open run action now works correctly for linked runs inside sub-agents.
> * Command-click on macOS or Ctrl-click on Windows and Linux on a run in the runs table now opens that trace in a new tab, while an ordinary click still opens the run in the side panel.
> * Run queries that return too much data now fail with a clear 400 error that says the run exceeds the response size limit, and overloaded query requests now return a 429 that asks you to retry later instead of a generic 503.
> * OpenAI Responses traces that include additional tools now show each tool definition inside its Developer message, with descriptions, typed parameters, and required fields, instead of falling back to the Fields view.
> * Custom dashboards you created in your workspace now appear in the **Dashboards** list when an agent is selected in agent monitoring, instead of being hidden by the agent filter.
> * Agents in projects with restricted access now open right after creation instead of showing "Project not found" until the project list refreshes.
> * Creating or upserting a project named `evaluators`, `playground`, or another internal tracing name now keeps it as a plain project instead of an agent, and renaming an agent to one of those names returns a 409 error with a clear message.
> * Insights reports no longer publish when parent category generation fails. Instead, the job ends with an error, and if the clustering model rejects the request, the error message tells you to check your model credentials and settings.
> * Claude Haiku 5.5 runs are now costed at its base rate of \$0.10 per million input tokens instead of the five-times-higher long-context rate, which had inflated costs for first-party, Vertex, and Foundry runs.
> * Past LangSmith Chat chats now show their saved messages right away instead of an empty panel for up to a few minutes when the chat uses a Bedrock model with an IAM role.
> * LangSmith Chat turns no longer fail with "network error" when your connection drops mid-turn, such as when Wi-Fi changes or a VPN reconnects. The run continues on the server and reconnects to your chat instead of being cancelled.
> * Fixes DeltaChannel reads and prunes that could lose state on threads with checkpoints saved without snapshot counters, or with durability="exit"; reads and prunes of these threads now keep the channel's older values intact.
> * Fixed a bug where a DeltaChannel written by several parallel tasks in one super-step could be read back in a different order than the run produced, so **get_state** and the next run returned reordered values; these now match the order the run returned.
> * Creating a run with a run ID that already exists now returns a 409 Conflict error on SQLite, Postgres, and in-memory deployments, instead of an internal server error or being silently ignored.
> * Rejoining a failed resumable run with `Last-Event-ID` now replays the run's final `error` event, so a client that reconnects after a failure can tell the run failed. Joining with a `stream_mode` filter also returns that `error` event.
> * Fixed v2 thread event streams ending silently when reading events fails: the SSE stream and WebSocket now send a final error frame with the unknown_error code before closing, so clients can tell a failed stream from an idle one.
**September 28-October 5, 2026**
## Observability and evaluations
### Tracing
* The LangSmith MCP adds a `query_runs` tool that accepts the same parameters as the SDK's `client.runs.query()`, including typed `selects` for costs, token breakdowns, and full inputs and outputs, with cursor pagination. It returns token counts and USD costs by default. `fetch_runs` now also returns costs and token counts, and is deprecated in favor of `query_runs`.
* Costs now resolve for every OpenAI model on the pricing page, including those listed only under "All models", such as GPT-5.6 Luna and Terra. The daily price sync previously read only the models the page shows by default, so the rest kept stale prices. [Learn more](/langsmith/cost-tracking).
* Costs now resolve for the open models Vertex AI hosts through Model-as-a-Service: DeepSeek, Qwen, GLM, Kimi, MiniMax, and GPT-OSS. [Learn more](/langsmith/cost-tracking).
* The Messages view now shows the user message on OpenAI Responses API calls that send it as a plain string, which is how calls chained with `previous_response_id` or a conversation send each new turn.
* The Messages view requests smaller pages, so long threads no longer fail with a response size error.
* When a trace or thread filter fails, LangSmith shows the error below the filter and keeps the selected run details open, so you can edit or clear the filter without leaving the page.
* Creating a public trace or thread share link now requires permission to read the runs, including their inputs and outputs.
* The LangSmith Chat model picker now offers Claude Sonnet 5.5. Sonnet 5 stays the default.
* LangSmith Chat can now take about four times as many steps in one turn, so a large custom app build finishes instead of ending with a "Recursion limit of 250 reached" error.
* Chat on a Gemini 3.x model through Vertex AI now completes turns that call several tools in a row.
* Apps that LangSmith Chat builds now page through lists such as annotation queue items instead of showing only the first page.
* Sorting tracing projects by **Most Recent Run** now orders projects whose runs reference dataset examples by their latest run, instead of grouping them with empty projects.
### Datasets and experiments
* LLM-as-a-judge evaluators using Claude Opus 5.5 or Sonnet 5.5 on Amazon Bedrock no longer fail because of unsupported forced tool choice.
* Creating an evaluator now selects the default evaluator model preset from model settings, including LangSmith Gateway presets.
* Clicking **Test** on a thread or trajectory evaluator now shows export and validation failures instead of appearing to do nothing. Evaluator tests also show configuration errors, such as a missing endpoint URL, in the evaluator panel.
* Deleting a code evaluator no longer times out waiting for sandbox snapshot cleanup.
* Experiment run progress now reflects recorded runs when available, rather than only settled batches.
* **Add to dataset** now saves the full source run metadata, and metadata you supply is merged with the run's metadata instead of replacing it.
* Replacing a dataset's examples with `PUT /v1/platform/datasets/{dataset_id}/examples` succeeds again when the request updates existing examples.
* LLM-as-a-judge evaluators whose prompt carries both an old and a current output schema now check scores against the schema the judge uses, so scores are saved under the right feedback keys.
### Feedback
* Runs opened in an annotation queue now show the same top bar as runs in tracing, so annotators can switch between the Trajectory and Details views while reviewing.
* Annotation queue instructions keep their line breaks in the review side panel, so multi-line and list-style instructions display as written.
* Adding a run to a dataset from an annotation queue now saves your edits when the output is a single message, and shows an error if the example cannot be created.
### Prompts and playground
* GPT-6.1-Sol is available and selected by default for new OpenAI prompts in the Playground and new model configurations.
* Claude Sonnet 5.5 is available in the Playground and model configurations for Anthropic, Amazon Bedrock, and Vertex AI.
* Gemini 3.7 Flash and Gemini 3.8 Flash are available in the Google Gemini and Vertex AI model selectors.
* The LangSmith MCP's `get_prompt_by_name` now returns the prompt template. New tools let agents push prompt versions, browse commits, manage commit tags, update or delete prompts, and read and commit Context Hub agent and skill files.
* Editing a Context Hub webhook now loads its saved custom headers, so saving no longer overwrites them.
* Loading a saved Bedrock Converse configuration whose model ID is an application inference profile ARN now keeps the provider set in **Extra Parameters**.
### Engine
* Engine usage, spend limits, and pricing now display in LangChain Standard Units (LSUs). Dollar amounts are unchanged. [Learn more](/langsmith/engine#manage-engine-costs).
* Issue validation requests its judgment as a tool call, so a failed structured-output response no longer aborts the run.
* Engine projects that previously selected Skills for Coding Agents now use standard issue analysis, with scan cadence based on their configured analysis level.
* Engine project boards no longer show the floating feedback survey.
## Deployment
* Agents connected to LangSmith's native MCP server can find deployments and revisions and read build or runtime logs, filtered by revision, time, search text, and severity. Deployment summaries omit secrets and environment configuration.
* The revision line on a deployment's **Overview** tab shows the commit title, links to the commit on GitHub, and shows the exact time in your local time zone. A failed revision reads "Build failed" or "Deploy failed", with the full error a click away.
* Deployment log API entries now say whether a line came from the API server, a queue worker, the build, or the platform, which replica wrote it, and selected fields of structured JSON log lines such as run and thread IDs.
* Studio's thread sidebar and the deployment **Threads** tab request only the fields they display, so lists load for deployments whose threads previously exceeded the Agent Server response size limit.
* Searching server or build logs for text that contains quotes or backslashes now returns matching lines instead of an "Invalid or expired offset" error. Log searches are limited to 1,000 characters.
* Server and build logs for deployments hosted on AWS now list the most recent lines first when sorted newest first.
* The deployment **Overview** tab no longer shows a Postgres disk usage banner. Disk usage is still charted on the **Monitoring** tab.
## Sandboxes
* The LangSmith MCP can read, write, and search sandbox files, stream long-running sandbox commands, share sandbox ports behind LangSmith login, and report sandbox usage, organization usage, audit logs, usage limits, trace retention settings, and organization members.
* Sandbox proxy rules accept `match_headers` entries such as `"authorization: Bearer account-b"`, so several rules on one host can each swap a different placeholder for its own credential and serve multiple accounts.
* A memory-preserving sandbox that was snapshotted while running now resumes with all of its memory after its next stop and start.
* A brief storage backend error no longer leaves a sandbox's filesystem returning I/O errors until restart.
## Administration
* OAuth applications registered under **Settings** > **OAuth applications** can use one access token for both the LangSmith API and the Remote MCP server, instead of authorizing each separately.
* Calls through LangSmith Managed Tools now appear in audit logs as `invoke_mcp_server` or `invoke_mcp_gateway`, with the server or gateway and the tool called. Audit log entries also include the request's duration and user agent.
* Search organization and workspace settings from the keyboard, and open **Settings** with Command + comma on Mac or Ctrl + comma on Windows and Linux.
* Search permissions by group, name, or identifier in role previews and the role editor.
* Usage charts and CSV exports keep historical usage when billing metrics change and hide metrics with no usage.
* Sign-up and login retries no longer carry stale authentication errors into their return URLs.
### LLM Gateway
* Route ScaleDown requests through the LLM Gateway with your workspace's `SCALEDOWN_API_KEY`. Native compression, extraction, classification, decisions, summarization, and batch APIs keep their request and response formats.
* The LLM Gateway applies existing custom provider fallback policies when you call a saved model configuration through a unified endpoint. Explicit model configuration policies take precedence.
* The LLM Gateway now accepts a Responses `function_call_output` whose output is an array of text parts. Gemini and other translated providers previously returned a 400 on this form, which broke MCP tool results sent by LangChain.
* Fallback chain model selectors show **Workspace** or **Organization** badges for custom model configurations.
**September 21-28, 2026**
## Observability and evaluations
### Tracing
* The Trajectory view is available to everyone, with turn navigation, expandable messages, and consistent trace details.
* The tracing quickstart and guided onboarding now cover Claude Code, OpenAI Codex, VS Code Copilot, and Cursor, with plugin installs and environment setup generated for your project and region. [Learn more](/langsmith/trace-claude-code).
* Gemini runs now report cost regardless of which SDK traced them. Previously, Gemini calls traced through clients other than `google_genai` showed no cost. [Learn more](/langsmith/cost-tracking).
* Traces can now contain up to 100,000 runs.
* Revamped tracing filters are available whenever SmithDB queries are enabled, without a separate feature flag.
* The **Error** column shows error descriptions directly in the trace table again.
* The trace **Tools** tab shows function tools alongside provider server tools such as OpenAI `tool_search`.
* Delete a bulk export destination that no bulk export uses with `DELETE /api/v1/bulk-exports/destinations/{destination_id}`. Destinations still referenced by a bulk export are rejected.
* Custom model price entries now have a **Clone** action, like built-in entries.
* Run latency values over two minutes display in minutes.
* The LangSmith Chat model picker now offers Claude Opus 5.5 and Gemini 3.8 Flash, and Gemini models complete turns instead of failing on the first message.
* Drop or attach images in LangSmith Chat, anywhere in the panel.
* LangSmith Chat lists runs with previews of their inputs and outputs and opens a run in full only when needed, so large projects no longer make chats and custom app builds fail with "An internal error occurred".
* LangSmith Chat renews its access during a long turn, so reads of your queues, datasets, and runs keep working instead of ending the turn with an "Invalid token" error.
* LangSmith Chat groups three or more consecutive exploration actions while building custom apps. Groups open automatically when an action fails or needs attention.
* Chat keeps working past the first tool call when a workspace model configuration points at Gemini on Vertex AI.
### Datasets and experiments
* Completed annotation queue items can now be deleted from the queue's single-item and bulk views, and through the delete APIs.
* Custom output renderers in the experiment comparison and single-experiment panes now receive the example's inputs in `metadata.inputs`. Reference outputs are sent with `type: "reference"`, matching the documented message format. [Learn more](/langsmith/custom-output-rendering).
* Trajectory evaluators are available on every data plane that reports the trajectory runtime as supported, without a per-workspace rollout flag.
* The trajectory API returns each message's tool definitions only when the request sets `include.tool_definitions` to `true`. The rule editor's **Test** preview now matches what live trajectory evaluations send to the judge.
* **Include annotator name and comment per row** on the experiment CSV export now takes effect for every workspace.
* Online LLM-as-a-judge evaluators that return a placeholder JSON field such as `output` now store feedback under the evaluator's configured name.
* Updating an online evaluator rule through the API no longer fails when the request includes a hub prompt reference but leaves out `evaluator_version`.
* Thread evaluators no longer offer the **Align Evaluator** flow or correction datasets, since alignment requires run-level examples.
* Pairwise annotation queues now show `true` and `false` output values when a field is expanded.
### Feedback
* Annotation queue rubric items now appear in the order they were added instead of alphabetically, in the queue editor, the review sidebar, and CSV exports.
* Feedback extra metadata, including nested metadata, now round-trips through direct and multipart ingestion.
* The legacy `error` field on feedback creation is deprecated. Send evaluator failures through `extra.error`. The legacy field remains supported and takes precedence when both are provided.
### Automations
* Evaluator traces now use the evaluator's display name instead of the generic `RunnableSequence` name.
* When an automation cannot fetch runs after its retries are used up, the rule log shows the error that occurred, such as a timeout.
### Engine
* Paste, drop, or attach up to four images in the Engine chat composer and send them with your message.
* Engine settings open in the board's detail area instead of a slide-over pane, so a settings link can be shared and reopened.
* Engine highlights support for finding and fixing issues across multiple GitHub repositories, with a shortcut to manage connected repositories in settings.
* References to other Engine issues in descriptions and proposed fixes link directly to the matching issue. Hover over a link to see the issue title.
* Connecting a GitHub repository no longer starts a fix run for every open code-rooted issue at once. A fix run starts when you ask for one, or on the board's schedule.
* Unlinking a pull request from an issue now holds. Engine reads the issue marker only when the pull request is opened, so put the marker in the body when you open it.
* Engine boards can use write-only custom authentication headers when replaying traces against deployments with custom authentication.
* Engine fix branches now start with `langsmith-engine/` instead of `issues-agent/`. Issues with a fix branch reserved before this change keep their `issues-agent/` branch.
* Retrying or editing a message after a turn was cut short no longer fails with "Attempting to delete a message with an ID that doesn't exist".
### Prompts and playground
* Claude Opus 5.5 is available in the Playground for Anthropic, Amazon Bedrock, and Vertex AI, and is the default model for new sessions with those providers.
* The OpenAI model dropdowns now suggest `gpt-6-sol` and `gpt-6-luna`.
* The Playground renders editable prompts from traces containing LangChain message objects, including multimodal content and messages without an explicit role.
* Prompt webhook custom headers now persist when saved.
* The Playground no longer crashes when streaming longer responses.
## Deployment
* The **Overview** tab summarizes the deployed revision on a single line, with its source, age, and logs, and reports a newer rollout there as it queues, builds, or fails. A deploy that failed after replacing the running workload offers a rollback from that line.
* Production deployment pages show whether the deployment is responding to requests right now, separately from revision status. The badge also appears for deployments served from a custom URL.
* GitHub revisions show the commit title alongside a badge with the branch and short SHA. The Deployments API returns `repo_commit_title` next to `repo_commit_sha` on each revision.
* Deployments pinned to an annotated Git tag now record the commit the tag points to in `repo_commit_sha`.
* Server logs include API and worker logs for AWS deployments whose pod names are shortened by Kubernetes.
* Studio waits for deployment details to load instead of briefly showing a connection error, and shows the cause when a deployment cannot be loaded.
## Sandboxes
* `access_delegation` on sandbox create now works with a workspace service key, so a deployment that holds only a service key can give its sandboxes capped LangSmith access. Narrowing the key's role narrows the sandbox, and deleting the key revokes it.
* Each file shared through a sandbox download link is served from its own host, and `csp_sandbox_flags` accepts `allow-same-origin`, so an HTML page can use `localStorage` and IndexedDB without other files reading them.
* Sandbox calls return 503 with a `Retry-After` header while no host is available, instead of a 502, so clients that retry on 503 recover during host maintenance.
* Creating a snapshot from an image with no `linux/amd64` variant, such as an arm64-only image built on Apple Silicon, now fails immediately with a message naming the image's platforms.
* The snapshots table shows tags as badges and a short snapshot ID below each name. Snapshot selectors offer the latest version of each system snapshot.
* Browser editing for Custom Apps is available to eligible workspaces with sandbox support enabled, and Custom Apps no longer displays a `Beta` badge.
## Administration
* Cloning a dashboard now requires both the `charts:read` and `charts:create` permissions. Roles that can only view charts, such as Workspace Viewer, can no longer clone dashboards, and custom roles that should keep cloning need `charts:create`.
* Changing the role on a workspace-scoped service key now requires permission to manage keys in every workspace the key covers.
* Preview the base permissions of each selected role in the service key creation form.
* Agent Auth connections support encrypted, write-only `token_request_headers` for OAuth token exchange, refresh, and revocation.
* Resolving Agent Auth principals accepts the `deployments:create` permission in addition to `workspaces:manage`, so Workspace Editors can run `mda dev` with user-owned connections.
### LLM Gateway
* Choose hosted models, providers, or saved configurations from a searchable model picker, run a sample request, and copy its code. [Learn more](/langsmith/llm-gateway).
* Keep sample code visible while a Gateway request runs, then inspect the response, serving model, HTTP status, token usage, and trace. [Learn more](/langsmith/llm-gateway).
* The LLM Gateway no longer blocks Claude Max and other provider-billed subscription requests when a Gateway spend policy is exhausted. Rate limits, model access policies, and guardrails still apply.
* The LLM Gateway preserves Claude feature headers and classifier fields through Anthropic, Amazon Bedrock, and Vertex AI Messages routes, including streaming. This enables Claude Code's no-charge server-side auto mode checks where the model and platform support them.
* Vertex AI model configurations route Anthropic Claude models to Vertex AI's native Anthropic Messages API, while Gemini and open models keep using the OpenAI-compatible endpoint.
* The LLM Gateway omits temperature from unified API requests unless the destination OpenAI model and reasoning setting support it, preventing unsupported-temperature errors on newer models.
* The `phase` marker Claude Code sends on partial-turn content blocks no longer causes a 400 error when a `/v1/messages` request targets a Chat Completions model. The marker is dropped with a warning.
* The spend chart y-axis shows cents when total spend is below a dollar, instead of rounding every label to \$0.
**September 14-21, 2026**
## Observability and evaluations
### Datasets and experiments
* The completed items list in an annotation queue now offers Add to Dataset for selected thread items, importing each thread as a multi-turn example.
* Edit and delete in the experiments table now check project permission, to match BE.
* Charts now show shape-aware loading skeletons instead of temporary zero values while data loads. Evaluator spend charts use bar and metric placeholders that preserve the final layout.
* Downloading experiment results with "Include annotator name and comment per row" now keeps automated evaluator scores in every feedback column, alongside human annotations.
* The evaluators list API accepts an agent_id filter to return evaluators attached to the agent's environments or tagged datasets.
* An evaluator using an organization-scoped model configuration that authenticates with an API key no longer attempts a per-model OAuth token exchange. Amazon Bedrock models configured this way are no longer rejected as unsupported.
* Categorical evaluator fields resize with the editor pane, keeping descriptions and remove-category buttons inside the feedback configuration card.
* Evaluator side panels disable Save while the configuration is invalid and display the reasons. Correcting the configuration enables saving again.
* Evaluator forms explain validation errors in the Save tooltip instead of a banner. Save remains disabled until the configuration is valid.
* Evaluator side panels show mapping errors and prevent saving when run evaluators use thread or trajectory sources, or thread and trajectory evaluators use run sources. Validation updates when the evaluator target changes.
* Evaluator variable mapping now explains clearly that trajectory and non-trajectory variables cannot be used together.
* Trajectory evaluation selects the latest trace by its root run's start time rather than a child LLM run's start time. Trajectory metadata reports each trace's actual root start time and marks scopes with missing root timestamps as incomplete.
* The evaluator configuration form now displays the complete sampling-rate percentage at every supported input size.
### Feedback
* The header count and the delete confirmation on the annotation queue "View all items" page now reflect the active time range instead of the whole queue. The item count endpoint accepts min_start_time and max_start_time.
* Changing a feedback score on a completed queue item previously raised a "Failed to update review time" error even though the score saved. The toast is gone; the score still saves as before.
* The annotation queue size endpoint now counts queue entries whose runs were deleted, matching the queue's run list instead of silently dropping them.
### Tracing
* Publicly shared thread pages no longer show a share action that cannot succeed.
* Insights no longer warns that it is optimized only for OpenAI or Anthropic when both selected models use another provider.
* Insights report jobs now retry with a smaller page size when a trace scan times out, instead of failing the whole report.
* Alerts using input, output, or error text filters match runs regardless of the blob storage and ClickHouse search settings. Search tokens are still written to ClickHouse only when both blob storage and ClickHouse search are enabled.
* Starting a new conversation immediately after a reply, then sending a message, no longer loses that message. LangSmith Chat now streams it into the new conversation instead of dispatching it against the previous one.
* When a tracing batch takes longer to upload than the server will wait, /runs/multipart and /runs/batch now stop reading and return 408 Request Timeout instead of a 503. A timeout caused by the server rather than the upload returns 504.
* Insights now recommends a capable thinking model and a fast summarization model with a large context window, without warning against mixing providers.
* The LangSmith Go and Java SDKs can now save Insights report configurations, enabling clients to create UI-visible Insights reports programmatically.
* The Columns menu on a tracing project's traces and runs table now lets you deselect Status and Name, and drag them into any order alongside the other columns.
* Dashboard chart feedback key suggestions now include keys from both run-level and thread-level feedback.
* The project stats sidebar shows Cache Hit % above streaming rate, helping you see the share of input tokens served from the prompt cache.
* Select TURN_NUMBER when listing thread traces to return each trace's chronological position across pages. Turn numbers are also available for public shared threads.
* The LangSmith Go and Java SDKs can now list, update, and delete saved Insights report configurations, including their recurring schedules.
* LangChain trajectories use message IDs from root runs to identify the main conversation, falling back to the existing selection when no unique match is available or optional root enrichment fails. Other formats do not fetch this enrichment. Processing runs and optional roots share one byte budget, and the default message-view and trajectory contribution limits are 200 MB.
* The thread traces API now accepts `trace_filter` and `tree_filter` query parameters for filtering root runs and matching runs anywhere in a trace tree.
* The disclosure header of the linked-issues section in the trace detail pane now renders at its intended height instead of clipping its content.
### Engine
* Engine issue descriptions preserve their concise prose while rendering mentioned file paths, functions, classes, tools, and code identifiers as inline code.
* The issue detail header read its timestamp from the issue's last-modified time, so routine updates, such as Engine linking new evidence and refreshing the description, made a closed issue appear to have just been marked done. The header now reads "Updated ``"; who closed the issue and when is shown in the history below it.
* Engine now scans projects whose names contain punctuation, Unicode, or other special characters instead of leaving their boards stuck while analysis starts.
* An Engine scan no longer fails outright when its project-stats request does not come back. It proceeds with the errored and baseline traces it can still select, tells the agent which selections are missing, and records why the stats call failed.
* The LangSmith Chat composer now accepts focus when a side pane such as Edit Engine Settings is open, so you can ask questions without closing your settings first.
* LangSmith Chat keeps your conversation as you navigate and reload within a browser tab, and starts a new one in a new tab or after you restart the browser. Earlier conversations are still available from the conversation history.
* Opening a past LangSmith Chat conversation no longer fails with "Unable to connect to LangGraph server" when the workspace's model credential can no longer be resolved. Reading a conversation only needs its stored history; sending a new message still reports the underlying credential error.
* Run local production-parity red-team checks against supported Dev targets with their configured trace project and repository context.
* The LangSmith Chat icon and suggested question now share one continuous background, so the launcher reads as a single pill in light and dark mode.
* Engine now reads the contents of successful tool results rather than only their status, so it files issues where a call returned less data than its own result claims or where a value arrived truncated. Defects that never surface as an error are no longer passed over.
* The Home page no longer shows the Engine announcement banner. Engine remains accessible through its Home card and issues section.
* Engine issue boards now show a spinning “Generating fix” action instead of “Open PR” while a fix is still being generated.
* An Engine Red Team run on a project that Engine has already scanned now starts from that project's Agent Overview and runs a shorter confirmation scan, instead of re-deriving the application map every time.
### Automations
* Automations grouped by thread can now send webhook payloads with matched conversations and their runs.
* A backfill that finds every run on a page already processed now continues to the next page instead of ending the window early, so the runs behind that page are still evaluated.
* A thread or trajectory automation batch that fails its last retry no longer leaves a partial page cursor behind, so the next scheduled window starts from the beginning of the window instead of mid-page. An automation whose trajectory service URL is not configured now records one failed rule-log entry instead of retrying until the attempt limit.
* A trajectory evaluator's retention upgrade no longer bounds the trace by an approximate start time, so the root run and its earliest children are upgraded along with the rest. The evaluated-run link on a trajectory evaluator's trace is withheld until it can point at the right run.
### Monitoring and alerting
* Choosing a Slack channel for alert notifications now works in workspaces large enough that the channel list had stopped loading altogether.
* Charts now show loading placeholders that match their final visualization, including bar, line, donut, metric, and sparkline charts.
## Deployment
* Scale-to-zero deployments reject rollbacks to revisions below LangGraph API 0.13.0 or without a known compatible version. The rollback dialog directs you to rebuild the target commit with a supported version.
* Your plan's included free Serverless deployment is now assigned automatically no matter how you create it. Previously only deployments created through the web app took the free slot, so a first deployment created via the CLI or API was billed even when a free one was available.
* Newly created Slack apps in mention mode respond to explicit mentions in group DMs and their threads, preventing duplicate runs from overlapping events. One-to-one DMs and all-messages mode continue to receive ordinary messages.
* Section dividers in agent overview cards and Gateway connection panels have stronger contrast in light and dark mode.
* The Studio memory editor keeps its close button visible while you scroll through long memory items.
* Filter the custom apps list by creator and preserve the selection in the page URL.
* Creating a dev deployment now shows how many free deployments your organization has left and uses an available free slot automatically. The separate free deployment option has been removed.
* Self-hosted upgrades can rerun the usage metering migration without duplicate-trigger errors or replacing existing model pricing with default rates.
* Managed Deep Agents can discover OAuth settings from an MCP server's authentication challenge when well-known metadata lookup fails.
## Sandboxes
* View compute and storage cost estimates for individual sandboxes and snapshots in Granular usage. Filter by workspace, date, and resource type, and export the breakdown as CSV.
* New custom apps open the preview panel when Polly starts writing files. The unfinished first draft stays covered until generation completes and the preview is ready.
* Custom app previews show an animated loading illustration while starting, with a static version for reduced motion. Published previews fade in when ready.
* Pasting an ECR repository or image URL keeps AWS IAM role authentication available. Registry forms explain that the registry hostname is saved and repositories are selected when creating a snapshot.
* Create sandboxes from a shared, read-only catalog of system snapshots: system/default:latest, system/custom-apps:latest with Smith Apps tooling, and system/code-evaluators:latest with NumPy preinstalled. Choose system or workspace snapshots from the same sandbox and Fleet selectors.
* The system/code-evaluators:latest snapshot includes pandas, jsonschema, SciPy, and scikit-learn alongside NumPy, so evaluators can use ACE's supported Python packages without installing them.
* A sandbox calling the API under an access-delegation grant can still create sandboxes, but can no longer give one a grant of its own. Audit entries for a delegated call now name the sandbox that made it.
* A sandbox's service URLs can now be listed, showing which ports are shared and how, and sharing can be turned off for one port or all of them. Previously a service URL could be created but never inspected or withdrawn.
* An app served behind a LangSmith-login service URL now receives the signed-in user's id and email as X-Langsmith-User-Id and X-Langsmith-User-Email. The signed X-Langsmith-User-Token carrying the same identity is unchanged, and remains the right choice for an app that needs to verify it.
## Administration
* You can revoke and reinstate personal access tokens directly from the API Keys table in Settings. Reinstatement preserves the token's expiry date, and expired tokens show a disabled Reinstate key action with an explanation.
* Revoking a personal access token preserves its original expiry. Reinstating the token restores access only while that expiry remains valid.
* Adds a reusable ThinkingState component for AI activity, with three animation variants, an opt-in elapsed timer, and reduced-motion support.
* Agent Auth automatically registers MCP OAuth clients that require client-secret authentication, storing their credentials securely alongside existing public-client support.
* Managed Parallel tools require a paid workspace plan. Tool calls returning HTTP 200 record usage at 1,000 calls per LangSmith Unit.
* Agent-auth principal creation accepts provider and subject without an issuer. Omitted or null issuers use an empty namespace, while supplied issuers retain their existing validation.
* Browser Back retains navigation guards when returning to the initially loaded page, including cleanup of empty, undeployed custom apps.
* Open Notifications in the sidebar to view platform announcements and account notices without interrupting your work. Incident alerts remain at the top of the page.
### LLM Gateway
* Group LLM Gateway usage by Model Provider within an API key or user to compare spend across providers and filter to specific providers.
* The Gateway provider search field now uses a more comfortable height while remaining aligned with standard component sizes.
* Gateway requests now log traces only to the shared gateway project instead of also creating duplicates in API-key or user-specific projects. Existing caller-specific projects and their historical traces remain unchanged.
* The LLM Gateway now supports direct passthrough requests to TypeSafe's System One API using workspace credentials.
* LangSmith applies configured LLM Gateway guard policies to TypeSafe System One prompt state before forwarding requests.
* LLM Gateway traces for TypeSafe Jev calls now include token usage and calculate costs at TypeSafe's published rate.
* LangSmith now supports TypeSafe in model access policies and provides System One examples for direct Gateway requests.
* Gateway data protection now scans string values throughout nested TypeSafe System One state objects and arrays, including fields such as name, id, and instructions. Redaction preserves the native payload structure for both Gateway Credits and bring-your-own-key requests.
**September 7-14, 2026**
## Observability and evaluations
### Feedback
* Feedback in annotation queues are now attributed by whichever identity the request resolves, so a reviewer's own answers count toward required fields.
* When a score sent through the SDK violates the workspace feedback key configuration, multipart ingest now accepts the request and records error feedback on the run with the rejection reason in the comment, instead of returning a 400 that dropped the run and every other feedback sent with it.
* The annotations pane notes now work when the session_id is invalid, but a valid trace_session_id is provided.
### Engine
* Engine issue validation now reconstructs prior thread turns before replaying a trace, so follow-up failures are judged in the same conversation context.
* Engine issue validation now retries when preparing replay traces hits a Runs API rate limit, instead of treating that as a permanent failure and leaving the result inconclusive.
### Tracing
* Starting September 14, 2026, traces ingested into LangSmith SaaS with extended retention are kept for at most 180 days. Existing extended retention settings above 180 days are applied as 180 days for new traces, and new settings above 180 days are rejected. Self-hosted and BYOC deployments are unchanged. [Learn more](/langsmith/usage-and-billing#data-retention).
* Chat on a tracing project now reads the filters, view, time window and selection you have on screen, names runs and threads by what was asked rather than by the app that served them, and says what it is working through while it reasons.
* Interacting with LangSmith Chat in the sidebar, including conversation history and model selection, keeps the peeked run or thread pane open. Clicking outside the pane and chat still dismisses the pane.
* Model configurations that set a Vertex AI multi-region location such as `us` or `eu` now reach the correct Google endpoint instead of failing with a 400. Configurations using a single region or `global` are unaffected.
* LangSmith MCP now includes a `list_model_price_maps` tool for searching and paginating model pricing rules in a workspace.
* Trace tree connector lines now join smoothly between rows.
### Prompts and playground
* Switching between files in Context Hub now keeps the selected Preview or Source view.
* Organizations with the LLM auth proxy enabled can select Google Vertex AI models in the playground and Agent Builder without storing a Vertex service account key in the workspace.
* Context Hub repositories now support up to 1,500 files, allowing agents with larger skill collections to sync successfully.
* OpenAI model configuration dropdowns now suggest gpt-6-astra.
### Datasets and experiments
* Trajectory online evaluators now route to the correct applier and receive trajectory input. Malformed configurations surface as visible errors instead of silently producing empty evaluations. When trace retention is enabled, trajectory rules extend retention for the latest trace in each resolved trajectory.
## Deployment
* Find custom apps by name or creator from the custom apps list.
* Updating install or build commands through the deployment API now creates a new revision. Docker sources reject these commands because they deploy prebuilt images.
* After a Managed Deep Agent run paused for credentials resumes, the Slack connect card is removed instead of being replaced with a confirmation, so the agent's reply is the next thing in the thread.
* Managed Deep Agent runs paused on a Slack credential prompt now resume once the last connection completes, instead of stalling after all integrations are connected.
## Sandboxes
* LangSmith Cloud can now assume tagged customer IAM roles for ECR repository discovery and snapshot image pulls.
* Sandboxes now use the guest kernel's maximum open-file limit, allowing highly concurrent agents and subprocesses to run without exhausting the default descriptor ceiling.
* Sandboxes now pass raw TCP connections to literal public IP addresses when the destination IP and port are explicitly allow-listed. This supports clients that resolve a service and dial its public IP directly. [Learn more](/langsmith/sandbox-auth-proxy).
## Administration
* Authenticated service startup checks now use endpoint authentication when the deployment info endpoint is protected.
* LangSmith Cloud now warns organization admins in the days before an enterprise contract or a cancelled plan expires, so they can renew before losing access.
* Workspace administrators can view workspace-level Agent Auth connections from the Integrations settings page, including authentication type and update details.
* Workspace administrators can select an Agent Auth connection to inspect its associated credential metadata without exposing secret or token material.
* Built-in workspace roles stop returning the retired repos:\* and run-rules:\* permissions, which were renamed to prompts:\* and rules:\* and are rejected when creating a custom role. Copying a built-in role's permission list into a new custom role now works. [Learn more](/langsmith/organization-workspace-operations).
* The organization SSO login URL now accepts a `redirect_to` path, so a link like `/sso/login/?redirect_to=/o//projects/p//r/` lands on that page after SAML sign-in instead of the workspace root.
* Organization Operators can no longer grant the Organization Admin role to a service key, or change the roles of a service key that already holds it. A service key also can no longer change its own roles; another credential must make the change.
### LLM Gateway
* GET /v1/models now returns only the models your model access policies allow, so the gateway no longer advertises models that would be rejected when called.
* New model access policies now include a generated policy name that you can keep or edit before creation.
* The LLM Gateway uses each saved model configuration's provider and API preference when selecting a fallback, so Bedrock Claude models use the Messages API instead of an OpenAI-compatible endpoint.
* Data policy dialogs now show a Personally Identifiable Information (PII) option under Data protection for every organization. Organizations without the PII entitlement see it locked, with a link to request access.
* The LLM Gateway returns resolved model names and cost-tracking provider identities in the `x-langsmith-gateway-metadata` response header for unified requests, including configured models and fallbacks. Client-side tracing can use these values as `ls_model_name` and `ls_provider` for accurate pricing, while preserving normalized pricing model names across fallbacks.
* Model Access policies can now allow a workspace's saved model configurations, either all of them or a chosen few, by enabling the new "Model configurations" provider. Requests that reach a configuration, including fallback candidates that resolve to one, are permitted for the calling credential's workspace, where previously any Model Access policy blocked them.
**August 31-September 7, 2026**
## Observability and evaluations
### Automations
* Configuring an evaluator with a trace or tree filter no longer times out while loading the sample run shown in the preview.
### Datasets and experiments
* The add-to-dataset popup for threads now offers New Dataset, which creates the dataset empty and adds the selected threads to it.
* Requesting dataset runs with a limit above 100 now returns a 422 naming the cap instead of a generic internal error.
* Mapping an evaluator prompt variable to a single message, such as `output.messages[0]`, now renders that message instead of an empty value.
* Validating examples with unsupported completion outputs now reports a schema validation error instead of failing with an internal error.
* Passing a malformed share token to the shared-dataset projects endpoint now returns a validation error naming the bad value instead of an internal error.
* Trajectory batch reads now run on a dedicated in-cluster gRPC service instead of the `smith-go` monolith, so load and memory pressure from trajectory evaluations no longer competes with UI and API traffic.
* Dataset CSV and JSONL exports now require both dataset read and download permissions. Direct API requests without download permission return a forbidden response.
* IssueBench now includes a benchmark task that compares pre- and post-Opus 5 agent traces for cost and trajectory regressions.
* Dataset experiments launched from edited Hub prompts save portable Gateway model configurations while preserving the variable mappings used for execution. Saved drafts exclude runtime credentials and remain compatible with standard LangChain SDKs.
* Editing surfaces such as evaluator forms, playground prompts, and dataset examples no longer error out when the editor unmounts while its content is still refreshing.
### Engine
* When Engine marks an issue as a duplicate, the issue header now shows a Duplicate link to the original instead of a history note that included the other issue's id.
### Prompts and playground
* Requesting, updating, or deleting a playground model configuration with a malformed ID now returns a validation error naming the bad value instead of an internal error.
* Sending a null artifact to the prompt canvas now returns a 422 naming the missing field instead of a generic internal error.
* Context Hub now opens markdown files in Source mode on the exact bytes stored in the repo, and saving a change no longer rewrites files you did not edit. Previously, the rich-text editor reserialized every markdown file in the directory on load, which could strip XML-style delimiters and add backslash escapes to untouched content.
* Claude Fable 5.1 is now available in the Anthropic, Bedrock, and Vertex AI model selectors in the playground.
* Prompts saved with a LangSmith Gateway model now use a standard ChatOpenAI manifest with the unified Gateway URL and a `LANGSMITH_GATEWAY_API_KEY` secret reference, so they can be pulled and run with standard LangChain SDKs.
* Amazon Bedrock models in the Playground now expose the same request timeout and max retries options as other providers, so long-running agent calls are no longer cut off at the AWS client default of 60 seconds.
* Gateway presets retain their model settings and stay selected when reopened without changes. You can explicitly clear a model selection, and new Gateway configurations no longer preselect a model or impose a default output-token limit.
* The Playground now runs saved LangSmith Gateway models, including models with bound settings, through the configured Gateway using the authenticated request context. Ordinary OpenAI and custom-endpoint models keep their existing routing.
### Tracing
* The thread header now has Add to dataset and Add to annotation queue buttons in every thread view, including Messages, Turns, and Details, so a whole thread can be added without selecting a run.
* Use the new `/v2/threads/stats` endpoint to retrieve thread and trace counts, latency, token, cost, and feedback statistics for a tracing project.
* Thread query clients can request server-sent events to receive results progressively while preserving cursor pagination.
* Use `/v2/threads/stats` on self-hosted deployments backed by ClickHouse, including when SmithDB queries are disabled. Scoped trace and thread filters still require SmithDB and are ignored otherwise; tree filters are best-effort.
## Deployment
* When a Slack channel event fails before reaching your Managed Deep Agent, for example a dropped delivery, a missing bot token, an interrupt that cannot be shown, or an ambiguous route, it now surfaces in `mda logs` and the deployment logs UI instead of failing silently.
* LangSmith MCP connectors use Client ID Metadata Documents when supported, with dynamic client registration retained as a compatibility fallback.
* Agent OAuth connections now show a provider-branded result page after authorization, making successful and failed connection attempts clearer.
* Managed Deep Agent channel replies now name a missing workspace connection and show how an agent developer can configure it, instead of reporting only a generic run failure.
## Sandboxes
* Commercial private ECR registries can now assume an AWS IAM role on demand, enabling repository and tag search while avoiding expiring saved authorization tokens.
## Administration
* Self-hosted LangSmith operators can configure how many days before license expiration the warning banner appears with `LICENSE_EXPIRATION_WARNING_DAYS`. The default remains seven days.
* OAuth authorization sessions now accept `owner_type` and `owner_id`, so a human can authorize a managed credential for either a user or an agent.
* Workspace editors can now assign resources to an Application tag value from Settings > Resource Tags instead of hitting a permission error. [Learn more](/langsmith/set-up-resource-tags)
* The workspace switcher now accepts workspace IDs in addition to workspace names, making it easier to locate a workspace when only its ID is known.
* OAuth authorization sessions now accept workspace owners, allowing one managed OAuth credential to be shared across a workspace.
### LLM Gateway
* Set `ls_provider` on OpenAI-compatible model configurations to populate trace metadata and match custom models to provider-specific pricing through the LLM Gateway. [Learn more](/langsmith/ls-metadata-parameters#ls_provider)
* LLM Gateway fallback chains can now advance to the next model when a candidate does not return response headers within a configured timeout. Active response streams continue after headers arrive.
* Gateway requests authenticated with a session or OAuth bearer token retain their authentication and workspace context across internal routing, including model fallbacks. This prevents authentication failures when a request requires another Gateway hop.
**August 24-31, 2026**
## Observability and evaluations
### Tracing
* ABAC policies can grant access to matching project traces.
* Open deployment threads directly in tracing.
* Clearer Engine issue actions now appear on traces.
* You can read shared threads through the public API.
* Trace and tree filters now apply to thread evaluations.
* Unsupported run filters now return clearer errors.
* Studio Trace nested run selection now works correctly.
* The Gateway usage view can open filtered traces.
### Datasets and experiments
* Experiment evaluator column names now use the full column width.
* You can clone model configurations.
* Tuned Evaluators are easier to find in tracing projects.
* Data grids now adapt to enlarged browser fonts.
* Form errors are announced consistently.
* The dashboard crosshair stays synchronized across charts.
* The Engine chat launcher now suggests questions.
### Engine
* Engine now uses application-scoped project counts.
* Create existing Engine issues in Linear.
* You can open a pull request for an Engine issue straight from the toolbar.
* Engine issues stay in sync with Linear.
* Engine now shows a release announcement in the sidebar.
* Engine now distinguishes a missing capability from an errored or partially wired tool, reducing false-positive Feature Gap issues.
* Pull requests for Engine fixes now open automatically.
* Opening a second linked trace from an Engine issue now works reliably.
* Open PR also works for fixes that have fallen behind the base branch.
* Engine usage now costs 40% fewer Usage Credits.
### Gateway
* Newer OpenAI models now route through Amazon Bedrock.
* Trailing slashes now work on LLM Gateway routes.
* Recursive LLM Gateway configurations are now prevented.
* PII redaction is now a separate LLM Gateway entitlement.
* Claude Max OAuth traffic is now excluded from Gateway spend.
* Saved model configurations now work on the unified LLM Gateway endpoint.
* Custom providers now work on the unified LLM Gateway endpoint.
* Gateway data policies are available by default.
* You can use saved model configurations in LLM Gateway routing.
* Gemini Enterprise Agent Platform gateway now supports existing web credentials.
* OpenAI-compatible API base paths are now respected.
* Custom provider configurations become available faster.
* LLM gateway traces no longer capture request and response content by default.
* Long-lived API keys are now available in the Gateway quickstart.
### Platform and deployment
* Dedicated deployments now run at least two replicas.
* Run rules now support Redis cluster-safe mode.
* Thread annotation queues are now available in self-hosted deployments.
* Thread automations can add to annotation queues in self-hosted deployments.
* Sandbox execution timeout errors are clearer.
* Updating a sandbox's proxy config no longer conflicts with a start.
### Fleet
* Fleet sandbox APIs now work with external OIDC auth.
* Fleet computers keep uploaded Excel workbooks locally.
* Check Outlook calendar availability.
**August 17-24, 2026**
## Observability and evaluations
### Datasets and experiments
* Freeform rubric items in an annotation queue now support an optional regex validator. A reviewer's comment that doesn't match the configured pattern is blocked from saving, with an inline error, instead of silently persisting.
* Organization admins can open Tuned Evaluator settings directly from paused evaluator warnings and disabled-toggle tooltips. Other users see guidance to contact an organization admin.
* Annotation queues now support a Data Formatting setting that hides selected JSON paths from a run's Inputs and Outputs while reviewing; pick fields via checkboxes generated from a sample run, or type a path manually. Applies to run items only, not threads.
* Tuned Evaluators are now hidden in BYOC workspaces and self-hosted deployments, where LangChain-managed inference is unavailable.
### Tracing
* Hovering a bar in the trace waterfall view now shows the same run info tooltip as the run tree, including start and end time, time to first token, token and cost breakdown, and tags.
* Insights now recommends GPT-5.6 Terra and Claude Sonnet 5 for thinking, plus GPT-5.6 Luna for OpenAI summarization.
* Opening a trace from an Insights category now keeps the trace pane header inside the pane: the header actions, including Run in Studio, switch to their compact form whenever the pane is too narrow for the full-size buttons.
* LangSmith Chat now reads as a record of what it did. Every tool it runs gets a row naming the action and what it acted on, with the result one click away; a plan appears when it takes one on, and a subagent shows the steps it is working through. Long results fold to a readable height, files and diffs render as files and diffs, and the panel can be resized or docked to the sidebar.
* Add a guard in the langchain and anthropic trajectory extractors to prevent errors when a run's messages field isn't stored as a list, consistent with the vercel and otel adapters.
* Insights category names that do not fit in the table column now show their full text on hover.
* Insights table columns can now be narrowed beyond their header labels, with full header text available on hover when truncated.
* Thread detail panes now slide into view consistently when opened from a tracing project.
* Opening a shared link to an issue now loads that specific issue, including issues marked as ignored, instead of displaying the first issue in the list.
* Runs using the bare "gpt-5.6" model id now calculate cost correctly. The pricing rule previously only matched the "gpt-5.6-sol" id variant.
* Controlled inputs no longer create redundant local state updates, preventing rare page crashes while typing in tracing filters.
### Engine
* The recurrence chart on an issue now labels its x-axis with a day-and-month axis instead of repeating the month on every tick, runs its window up to the present, and states when the issue was last seen. An issue that stopped recurring months ago no longer looks like one that recurred this morning.
* Copy Fix now pastes diagnosis, linked traces, and LangSmith CLI commands, plus a silent PR marker. When a PR in the connected repo includes that marker, Engine attaches it and shows open, closed, or merged status.
* Each row in the Engine issue list now shows the timestamp the list is sorted by, labeled and right-aligned; "Created 5d ago", "Updated 3h ago", "Seen 11m ago"; in place of the trace count. Hovering any issue date, on the row or in the issue header, shows the created, updated, and last-seen times together.
* The Engine overview no longer shows a duplicate configuration button. Engine settings remain available from the issue board toolbar.
* Sorting the Engine issue board now orders purely by the chosen field (Severity, Last Seen, Last Updated, Created, or number of traces), including resolved and dismissed issues. Status and other filters hide mismatches immediately, and each board remembers its sort and filters in the browser.
* The Fix panel can detach a linked GitHub pull request from an issue without closing it, so a different PR can be attached afterward.
* The issues API accepts a `trace_id` query parameter that returns only the issues with a run linked from that trace.
* Searching the project switcher on the Engine page now matches project names the same way the tracing project list does, instead of returning loosely-related projects.
* A pull request opened from an Engine issue now takes its title and description from the fix run's own commit message, so it explains the change a reviewer is looking at instead of restating the issue report. Every fix PR also links back to the issue it came from.
* The sidebar no longer displays the Try Engine promotional popover over the Tracing link.
* Listing Slack channels for a workspace with tens of thousands of conversations needs more than one of Slack's rate-limit windows. The background refresh now has a budget that spans them, so the picker fills instead of staying empty.
* The Slack channel picker for watching alerts now opens toward the left, keeping the full channel list visible within the issue panel.
* The Engine issue list now opens on a Default sort that leads with watched issues that have picked up new traces, then open and fixing work, then quiet watched issues, with closed and ignored ones last. Severity and last-seen order issues within each group.
* The Engine issue list's Status filter now covers triage state only; Open, Resolved, and Incorrectly Flagged; where Open includes issues with a fix in flight or under watch. A new Activity filter selects those independently, so filtering to Open no longer hides issues Engine is actively working on.
* The standalone Engine page now links directly to the selected project's tracing view.
* LangSmith Chat now reads the Issues Board beyond the issue you have open, ranking issues by what to triage first, what fired most recently, or what cites the most traces, and measuring how a board breaks down, recurs, spreads and trends over a period you choose. It also checks an issue against the traces it cites before telling you the failure is real.
* Listing Slack channels stopped after a fixed number of pages, so a workspace with tens of thousands of archived conversations had its channel list quietly cut short. Paging now runs until Slack reports the end of the list.
### Prompts and playground
* Context Hub repositories containing legacy files beneath linked directories can now be read, materialized, cloned, and edited. Reads use the linked directory contents, and the next successful edit removes conflicting legacy entries without changing linked repositories.
### Monitoring and alerting
* Create and edit alert actions now remain in a sticky footer, so you can submit changes without scrolling to the bottom of the form. [Learn more](/langsmith/alerts).
* The Streaming rate over time template now divides runs with a first token time by LLM runs only, so a new chart matches the streaming rate shown elsewhere in LangSmith.
* Adds a reusable BarChart component to the LangSmith design system, standardizing grouped and stacked bars, horizontal and vertical layouts, multiple value axes, threshold bands, interactions, and keyboard accessibility.
* Webhook test notifications now show the destination's HTTP status and reason phrase, helping you diagnose URL, availability, and authentication failures.
### Automations
* Thread webhook and annotation-queue automations now show thread filters instead of run filters, and no longer default to Is Trace = true.
* Automation rules scoped to threads now show the project's thread idle time, with a link to change it in project settings.
## Deployment
* Studio chat now shows results for provider built-in tools such as web_fetch and web_search, and groups a run of consecutive tool calls into a single collapsible entry instead of one row per call.
* Self-hosted deployment forms now preserve fractional CPU request and limit values for application and queue containers.
* GCP Redis IAM cluster discovery now uses TLS when Redis cluster TLS is enabled, allowing self-hosted deployments to combine IAM authentication with TLS-required Memorystore clusters.
* Studio switches deployment and connection controls to compact icons when the graph pane is narrow, preventing toolbar actions from overlapping.
* Deployment Overview now surfaces high Postgres disk usage and pending run counts, so operators can spot issues without opening Monitoring.
## Sandboxes
* Sandboxes now mount Context Hub repositories through a read-only, host-served filesystem, so files are directly accessible without polling for asynchronous guest materialization. Repository updates appear atomically, and mounts recover across memory-backed stop and start.
* Attach a free-form description when creating or capturing a snapshot, and to proxy rules and proxy configs. Descriptions are stored and returned on reads, so you can hand an agent a plain-language summary of what its sandbox image and network access can do.
* Sandbox file downloads now accept a Range header, so you can fetch part of a large file or resume an interrupted transfer instead of starting over. Responses carry an ETag for safe resumes and the same path answers HEAD, reporting a file's size without transferring it.
* You can now mint a signed link that downloads a single sandbox file with no LangSmith credential, so files can be handed to a browser or any client that cannot carry an API key. Links are served from the sandbox service domain, never expire unless you set expires_in_seconds, and can pin the response content type and disposition. A link's content is cached indefinitely, so mint a new link when the file changes.
* Sandbox proxy rules and callbacks no longer accept match_hosts patterns like `*.com` or `*.co.uk`, which would have sent injected credentials to every host under a top-level domain. Wildcards must now name a registrable domain, such as `*.example.com`.
* GET /v2/sandboxes/boxes now pages with page_size and an opaque cursor, returning items and next_cursor. The limit and offset parameters and the sandboxes and offset response fields still work but are deprecated.
* Updating a sandbox's proxy configuration no longer requires the sandbox to be running. A stopped sandbox stores the new configuration and applies it the next time it starts, instead of rejecting the request.
* GET /v2/sandboxes/snapshots now pages with page_size and an opaque cursor, returning items and next_cursor. The limit and offset parameters and the snapshots and offset response fields still work but are deprecated.
## Administration
* Organization admins can now delete custom roles from the roles settings page. Roles still in use by a user, SCIM group, or SSO settings cannot be deleted until reassigned.
* Each data plane card in organization settings now has a copy button next to its name, so you can grab the data plane ID without opening dev tools.
* Custom roles can now grant feedback-configs:create, feedback-configs:update, and feedback-configs:delete independently of feedback submission, so a role can be scoped to submitting feedback without also being able to create, edit, or delete feedback config (rubric) definitions.
* Billing settings now name the two credit tabs Credit usage (previously Contract usage) and Credit grants (previously Credits). Credit usage tracks burndown against your prepaid gateway credits.
* The Storybook overview now links every component card to its dedicated page and shows accurate progress examples.
* The login CAPTCHA now appears beside the active email or SSO field while preserving entered form values when switching methods.
* Workspace roles can grant API key creation and deletion without granting full workspace administration. Key managers can scope service keys to permitted workspaces and assign unrestricted roles.
### LLM Gateway
* The Gateway Credits balance card now explains that credits access models hosted by LangChain, and the Gateway home quickstart notes that running a request costs a trace but no additional LangChain fee.
* Running a request against Gateway Credits (hosted models) in the Gateway home quickstart now offers to set a monthly spend limit, matching the Bring Your Own Key flow.
* The three cards at the top of the Gateway home page; Spend limits, Model fallbacks, and Gateway usage; are now static orientation content instead of clickable shortcuts, so they read as a quick summary of what LLM Gateway does rather than navigation.
* The LLM Gateway now returns 424 Failed Dependency instead of a generic 400 Bad Request when a required provider API key is absent from workspace secrets. The error response also identifies the missing secret and explains how to resolve it.
* The LLM Gateway browser quickstart now lets you create a monthly workspace spend limit inline, right where you're recommended one, instead of opening a separate dialog.
* The API key modal launched from Gateway home now defaults to a personal access token and hides the service key, key type, and default workspace fields that don't apply to a new Gateway user. Expiration is capped at 30 days.
* Gateway Credits balance, policy spend, and Gateway Monitoring's spend stats, chart, and table now show `<$0.01` for a positive amount under a cent instead of rounding it down to `$0.00`, so a small amount of spend no longer looks like nothing happened.
* The LLM Gateway now forwards Claude Code Max OAuth credentials for every organization, without requiring a workspace Anthropic API key.
* LLM Gateway spend controls and data protection policies now open in focused side panes, keeping actions visible in the header and warning before unsaved changes are discarded.
* Gateway traces now carry a `gateway.credential_source` metadata field naming the credential that paid for each upstream LLM call (`credits`, `byok`, `subscription_oauth`, or `platform_managed`), allowing you to filter and chart Gateway Credits usage separately from bring-your-own-key usage, plus a `gateway.provider` field naming the provider route that served the call.
* Default gateway spend and rate limits can track and enforce separate buckets for each value of a configured X-Gateway request header.
* LLM Gateway rate-limit creation and policy editing now use focused side panes with unsaved-change warnings. New policies receive descriptive generated names, and optional custom-header conditions are grouped under an advanced section.
* Gateway spend limit forms can configure custom-header buckets, and cost policy tables show which header separates each default limit.
* The LLM Gateway now supports xAI API keys and Grok models through native and unified Responses and Chat Completions endpoints, with tracing and spend attribution. [Learn more](/langsmith/llm-gateway).
* LLM Gateway fallback policies can now route failed provider-model requests through an ordered chain of native provider models and saved model configurations. Configure which HTTP status codes advance to the next candidate, while successful requests continue directly to the original model.
* The Model Fallbacks tab now lets you create and manage automatic fallback chains for provider models. Choose ordered backup models or saved model configurations, select which HTTP errors trigger fallback, and copy a ready-to-use Gateway request example.
* LLM Gateway model fallback policies can now route between providers that use OpenAI Chat Completions, OpenAI Responses, or Anthropic Messages formats. The gateway translates requests, non-streaming responses, and streaming responses for both unified and direct provider endpoints.
**August 10-17, 2026**
## Observability and evaluations
### Datasets and experiments
* Annotation queue tables now label queue contents as items instead of runs, covering both single-run and pairwise queues.
* Datasets whose input, output, or metadata keys contain a colon can now be exported to CSV. This unblocks datasets built from runs with feedback, where feedback is stored under a `source_run_feedback:` metadata key.
* Managed evaluator configuration no longer shows evaluator tracing controls.
* The Datasets & Experiments table now labels dataset names with a Dataset column header, making the relationship between datasets and experiments clearer.
### Monitoring and alerting
* In dashboards and other surfaces where "All time" is unavailable, clearing both dates in the date picker now disables Apply instead of silently submitting an all-time range that fails to load.
* Opening a run from a dashboard chart's runs table now shows a single trace pane instead of stacking a second, identical pane behind the first.
### Automations
* Online evaluators configured with a saved custom provider model configuration (OpenAI-compatible or Anthropic-compatible) now use that configuration's endpoint and credentials on live traces instead of failing with a permission error.
* Non-admin users can now save evaluator edits from the dataset, tracing project, and thread panes without hitting a retention-permission error.
* Automations grouped by thread can now add one annotation queue item for each matched conversation, so reviewers can inspect the whole thread instead of only one run.
* Thread webhook and annotation-queue automations now show thread filters instead of run filters, and no longer default to `Is Trace = true`.
### Engine
* The Slack channel list now refreshes in the background even when Slack rate-limits the request, so large workspaces no longer lose picker options.
* Engine fix runs no longer push a branch for every code fix. The commit is parked on a hidden ref and the branch is created when you open a pull request, so connected repositories keep a clean branch list.
* Engine now highlights only Slack notifications in its announcement area and continues to honor prior dismissals.
* Unread Engine issues now show a lighter brand pip aligned to the right of the title, so new issues are easier to scan without competing with the title.
### Tracing
* The Turns view in thread detail is deprecated in favor of the Messages or Details view, and LangSmith Cloud removes it on October 31, 2026, while self-hosted removes it in v17.
* Thread annotation-queue and webhook automations now require SmithDB queries.
* LangSmith Chat now offers GPT-5.6 Sol, GPT-5.6 Terra, and GPT-5.6 Luna alongside the existing OpenAI models.
* LangSmith now recognizes older trace links containing timestamp-prefixed run and trace IDs.
* The tracing quickstart now opens with Deep Agents selected and leads with Deep Agents, LangGraph, and LangChain framework guides.
* Trace details now surface LLM Gateway outcomes, policy limits, selected models, and fallback attempts in a dedicated Gateway section. Errored LLM runs blocked by the gateway also show a Blocked badge in the trace tree.
## Deployment
* LangSmith services now accept both IPv4 and IPv6 connections.
* Deployments now resolve the latest agent server version more reliably, preventing slow revision creation and duplicate revisions caused by request timeouts, especially in Asia Pacific.
* LangSmith workers using Microsoft Entra ID authentication for standalone Redis now start successfully and continue refreshing credentials after the event loop starts.
## Sandboxes
* Mounting a git repository into a sandbox no longer fails silently. Clones now trust the sandbox's certificate bundle, so the repository appears at its mount path instead of starting in an empty directory.
* Sandboxes now retain recent CPU, memory, and network usage history, making it easier to understand resource consumption and diagnose performance bottlenecks.
* WebSocket connections through a sandbox service URL now reach your service with their query string intact. Dev servers that authenticate their own WebSocket with a query parameter, such as Vite's HMR token, now connect instead of failing.
## Administration
* The signup page animation stays aligned with the hero content after the confirmation message appears.
* Users with the tag-on-create permission for datasets, projects, or prompts can now see and apply tags when creating those resources, instead of only workspace managers.
* The API Keys page now filters keys across the full paginated list by key, description, and workspace.
* The organization usage dashboard renders its charts again; they previously could appear blank even when usage data was present, showing only the workspace legend.
### LLM Gateway
* Requests to Bedrock models through the unified LLM Gateway now use the API format supported by each model family. Anthropic models use Messages, OpenAI models use Responses, and other Bedrock models use Chat Completions, preventing unsupported API errors for models such as Claude Opus.
* The LLM Gateway can now reach Amazon Bedrock with an assumed IAM role or AWS access keys instead of a static Bedrock API key, and existing Bedrock API keys still take precedence when multiple credential types are configured.
* The LLM Gateway quickstart now hides the Run request action for workspace members without gateway invocation permission.
* LLM Gateway responses now include an `X-LangSmith-Gateway-Metadata` header describing gateway routing, limits, guard activity, and upstream errors, and clients can attach it to their own traces as `ls_gateway_info` metadata.
**August 3-10, 2026**
## Access control
* Access-policy endpoints now report errors as RFC 7807 problem details. Error messages move from the `error` field to `detail`, and semantically invalid request bodies return HTTP 422.
* Set a resource tag key or value description to `null` to clear it through the PATCH API.
* New connections to the hosted LangSmith MCP server failed to register when the client requested a confidential authentication method. Dynamic client registration now issues a public client in that case instead of returning an error, so connecting from Claude and other MCP clients works again.
* Role permission and access policy changes now invalidate cached authorization results reliably, including when an older transaction commits after a newer update.
* LangSmith now refreshes cached role access policies as soon as their permissions change, preventing stale authorization decisions in split-plane deployments.
* The Active, Pending, and Deactivated tabs on the Members settings page now switch on the first click while keeping pagination and sorting in sync.
## Datasets and experiments
* Attachment and object downloads now always declare how the browser should handle the response. Files whose type is unrecognized, or that were stored without a type, are delivered as downloads instead of being rendered in the page.
* Creating a dataset from the Datasets or Home empty state now opens the new dataset instead of briefly showing a Page not found screen.
* Dataset JSON schema descriptions are now safely rendered in editor tooltips.
* Creating or validating an example with a `dataset_id` that is not a well-formed UUID now returns a 422 naming the field instead of a 500.
* Listing or counting examples with an unsupported `filter` expression, an unfilterable attribute, or a `has(...)` comparison whose value is not valid JSON, now returns a 422 naming the `filter` parameter instead of a 500.
* Creating an experiment no longer converts an existing tracing project with the same name. Rename the experiment or choose a new project name when a conflict exists.
* Scrolling through large experiment comparison results no longer re-fetches the first page of examples on every lazy-load, cutting redundant network traffic and reducing load time.
## Monitoring and alerting
* Chart headers on dashboards no longer overflow or wrap when the title or description is long, the description now truncates with a hover tooltip that reveals the full text. The expand-chart action also picks up the standard icon-button hover treatment.
* Alert previews now treat integer metadata and its string representation consistently with alert evaluation.
## Engine
* Disabling Engine for an organization or pausing it for a project now offers a short prompt asking why, with an optional comment. It takes one tap and goes straight to the team building Engine.
* Engine spend controls now explain that new runs pause at the monthly limit while runs already in progress may finish and increase billed spend beyond it.
* The Engine tab is visible again on tracing projects before Engine is turned on, so admins can enable it, members can request access, and personal organizations can upgrade, all from the tab itself.
* Engine GitHub settings now link to setup instructions for LangSmith Cloud and self-hosted deployments, with clearer guidance when a connection fails.
* Engine scans on non-coding-agent boards apply the configured priority chips, user instructions, and trace-scope filter instead of reviewing the whole project.
* Engine issue descriptions now preserve Markdown paragraph boundaries so updates, additional symptoms, and corrections remain easy to scan.
## Feedback and evaluation
* Feedback corrections can now reset a score to its original value, including zero.
* Group by metadata and metadata columns are selectable again in the experiment comparison view.
* A long evaluator name in a feedback card's Source row now truncates instead of extending past the card, and a corrected score keeps its edit control clear of the paging arrows when a key has several entries.
* Switching a feedback value to a different category now saves even when both categories map to the same numeric score. Previously the change was silently dropped on run details and in annotation queue rubrics.
* The pencil for correcting an evaluator score is now hidden unless you have permission to update feedback. Previously it appeared for anyone who could see the score, and saving the correction failed.
* LangSmith now rejects credential-bearing and non-GitHub remote URLs when rendering evaluation commit links.
* Attachments stored on a run now appear when you review it in an annotation queue, including pairwise queues. Previously only media inlined in the run's inputs or outputs was shown.
* The evaluator spend table keeps the All runs filter badge inactive when an evaluator has no filters.
* Daily evaluator spend, weekly totals, and spend limit monitoring on the Evaluators page now respect the currently selected application, instead of showing data across all applications.
* The evaluator spend chart once again keeps its evaluator and project/dataset grouping control in the chart header for easier access.
## Tracing and observability
* Chat model runs sent through the gateway's unified endpoint with provider/model slugs now match model pricing rules, producing accurate trace costs.
* Insights reports only analyze traces, so the "Is Trace" condition in a report's filter is now fixed. Setting it to false previously produced a report that ran successfully but never found any insights.
* LangSmith Chat now respects the Provider API setting on workspace OpenAI model configurations. Models configured for the Responses API no longer fall back to Chat Completions, which made newer reasoning models fail when a reasoning effort was set.
* Large PDF, JSON, and CSV previews on a message now render instead of showing an empty frame, and PDF and JSON previews gained an open-in-new-tab control next to the expand control.
* Trace views now source token and feedback stats from SmithDB without attempting unavailable ClickHouse queries.
* Waterfall filters in thread details now keep deeply nested matches visible and preserve filter controls while newly ingested traces are still appearing.
* LangSmith MCP's `fetch_runs` tool can now include invocation parameters, including the tool and function schemas sent to an LLM, for easier tool-calling diagnosis.
* PDF attachment icons now align consistently with other file types in attachment lists.
* The thread query API now supports trace, run-tree, and thread-level filter expressions through `trace_filter`, `tree_filter`, and `thread_filter`.
* Public shared-trace links now show a 'temporarily unavailable, try again' message when the trace query times out, instead of the misleading 'trace not found, ask the owner to re-share' message.
* Clicking a starter prompt without the selected model's API key configured now shows the add-a-key form, the same as typing a message, instead of failing the request.
## Prompts and playground
* Claude models on Gemini Enterprise Agent Platform now load successfully in the Playground when no credentials secret is configured, matching existing Gemini behavior under GCP Workload Identity or AWS IRSA.
* The Prompts page now supports filtering by prompt type, prompt tags, and commit tags, so you can quickly narrow the list down to the prompts you're looking for.
* Model configurations now show an inline error, instead of a silent save, when a required Bedrock, Azure OpenAI, or Gemini Enterprise Agent Platform provider field is left blank.
* Studio's chat pane no longer shows a 'No data' placeholder between sending a message and the first streamed token. The assistant message now appears once it has content to show.
* The Playground now reports missing AWS credentials and other Bedrock rejections as request errors with the provider's own message, instead of a generic server error.
* Studio chat now shows elapsed response status, preserves complete streamed responses, and follows new output without interrupting readers who scroll up.
## Automations
* Manually triggering an automation rule through the API now works. `POST /runs/rules/{rule_id}/trigger` and the `rule_ids` form of `POST /runs/rules/trigger` previously returned a 500 for every request.
* You can manually trigger any automation in your workspace, including webhook-only, alert-only, and extend-retention rules. Previously the trigger endpoint only recognized a subset of actions and returned not found for the rest.
* Online evaluators configured with an OpenAI-compatible or Anthropic-compatible custom endpoint now use that endpoint's own URL and API key on live traces instead of failing with an authentication error. Evaluators on custom endpoints are not counted toward evaluator spend limits.
## Deployment
* Self-hosted deployment forms now support Redis CPU and memory requests and limits. The configured values are applied to the Redis workload managed by the Kubernetes operator.
* Deployments that use a platform-default LangGraph API version now correctly reuse matching images instead of starting unnecessary rebuilds.
* Managed Deep Agent deployments entering public preview report their normal deployment usage.
* Rolling back a deployment that was created from an uploaded source archive now redeploys that revision's archive instead of the most recent one.
* A Managed Deep Agent deployment's Details sidebar now links to the Context Hub repo holding its deployed instructions, skills, and memories. Archived repos are labelled so it is clear when the context is no longer live.
## Sandboxes
* Resuming a suspended sandbox now checks your organization's real sandbox quota, including plan-specific limits, instead of the default cap. Requests that genuinely exceed quota return 429 with a quota message rather than 502 Bad Gateway.
* Self-hosted LangSmith now enables sandbox API and UI access only when the deployment license includes sandbox access.
* Online self-hosted LangSmith installations now report finalized sandbox uptime and resource usage for billing when phone-home usage reporting is enabled. Offline and opted-out installations do not send sandbox usage.
## Administration
* The organization submenu now opens when you hover over the organization row in the footer menu.
* Self-hosted deployments refresh their license every 5 minutes instead of every 24 hours, so entitlement changes take effect shortly after they are made. A failed refresh no longer restarts the service, it keeps using the last verified license until that license's own expiry. The tuning knob is now LICENSE_REFRESH_INTERVAL_SECONDS (default 300), replacing LICENSE_REFRESH_INTERVAL_HOURS.
* Searching workspaces with Cmd+K now highlights the query in the organization heading, making it clear why a term that matches an organization name returns all of that organization's workspaces.
* The account menu now offers Get help. Enterprise users can submit a support request in LangSmith, while other cloud users are directed to the Support Portal.
* The Plans and pricing page now preserves browser back and forward trackpad gestures and centers the plan cards.
## LLM Gateway
* Requests to moonshotai/kimi-k3 and moonshotai/kimi-k2.6 through gateway credit models in the LLM gateway are now matched against a price map when sent in user-traced code.
* LLM Gateway Usage now provides interactive spend legends, consistent chart layouts, and tooltips that stay visible. Single-series views clearly explain spend that is not affiliated with a user instead of showing an empty chart.
* You can now purchase as little as \$4.50 in Gateway Credits, equivalent to 3 LCUs.
* Bedrock requests through the LLM gateway now use the Amazon Bedrock price map so their costs are calculated correctly.
* The credit balance now shows above the connect card, and the shortcut cards for cost controls, model fallbacks, and spend monitoring stay visible (locked, with an "Upgrade plan" prompt) instead of disappearing for Developer-plan orgs.
* The Cost Controls, Rate Limiting, and Model Fallbacks tabs now explain what isn't in force yet, with a create button and a docs link above the policy tables. Each tab's create button, dialog title, and submit button also share one label, such as "Create spend limit" instead of a generic "Create policy".
**July 27-31, 2026**
## Observability and evaluations
### Datasets and experiments
* LangSmith exposes annotation queue item endpoints for adding, listing, updating, deleting, counting, positioning, and reviewing run or thread queue items through the public API and SDK generation flow.
* Uploading a .csv or .jsonl dataset now works regardless of the Content-Type the browser reports. Windows browsers label .csv files as an Excel type, which previously caused valid uploads to fail. Uppercase filenames such as DATASET.CSV are also accepted.
* Evaluator lists on a dataset or tracing project now show an evaluator's current name instead of the name it had when it was attached. Feedback keys are unchanged by a rename.
* Metadata columns in the experiment comparison grid, including `example.metadata.`, now render their values instead of staying empty.
* LangSmith marks every legacy endpoint replaced by the SmithDB SDK migration guide as deprecated: the v1 runs query and retrieve endpoints, the v1 run sharing and public-run read endpoints, `POST /api/v1/datasets/{dataset_id}/runs`, and the annotation queue run endpoints. All of them now respond with `Deprecation: true`, a `Sunset` date of January 31, 2027, and a `Link` header pointing at the migration guide and, where a single replacement exists, the successor endpoint. [Learn more](/langsmith/smithdb-sdk-migration).
* Dataset experiment tables can sort by feedback score when SmithDB queries are enabled and ClickHouse queries are disabled.
* Annotation queue item APIs use project_id for the tracing project. Request bodies also accept session_id as an alias.
* Dataset example views restore clear spacing between the example details and tab navigation.
* Pairwise annotation queue runs again include the tracing project id needed to create feedback when ClickHouse query support is disabled.
* Correcting an evaluator score from the experiment results grid now updates the cell and its popover right away instead of requiring a page refresh.
* The Configure Evaluator pane's header and templates navigation again paint the same background as the pane itself in dark mode.
* Dataset and run attachments now resolve relative signed download URLs before previewing, opening, or downloading them in self-hosted deployments.
### Monitoring and alerting
* Adds a reusable ChartCard component to the LangSmith design system, standardizing chart titles, move, expand, and overflow actions, responsive full-width layouts, and chart and legend spacing.
### Engine
* A resolved issue on an Engine Issue Board now returns to Open as soon as Engine links a new matching trace to it. Previously the trace was filed as evidence but the issue stayed closed, so a problem that came back never resurfaced on the board. Dismissed issues stay dismissed.
* The issue detail header now renders category and tag badges on the same line as the title instead of stacking them underneath, tightening the header and reducing wasted vertical space.
* The "Engine failed to complete a run" trigger is no longer offered when configuring a Slack channel or webhook destination on an issue board. Destinations already subscribed to it keep receiving those notifications.
* Engine run webhooks and sandbox links now resolve the externally reachable API base from LANGSMITH_PUBLIC_API_ENDPOINT, falling back to LANGCHAIN_PLATFORM_ENDPOINT and then LANGCHAIN_ENDPOINT. Installs whose chart set only LANGSMITH_PUBLIC_API_ENDPOINT were building relative URLs, which made every non-shadow Engine run fail because the run webhook was rejected as a loopback address.
### Tracing
* Trace detail panes once again use an elevated background that matches their section headers.
* Bulk exports accept a new opt-in `feedbacks` column that carries each run's individual feedback entries, with their key and comment, as a JSON array. Add `feedbacks` to `export_fields` when creating an export; exports that omit `export_fields` keep their existing columns.
* Delete an entire trace from the run details actions menu after confirming the destructive action.
* Negative feedback-key filters now return matching traces correctly when ClickHouse uses optimized runs tables.
* When a project configures a custom output renderer, the trace Output section now offers it as a Custom option alongside Markdown, Plain, JSON, and YAML instead of replacing them. Custom stays the default, and your choice is remembered.
* Tracing project activity and sorting stay up to date for self-hosted deployments using Redis versions before 6.2.
* `POST /api/v1/runs/stats` now returns a 404 when the requested tracing project does not exist in your workspace, and reports other client errors, such as a `start_time` older than the supported lookback window, with their real status and message instead of a generic 500 internal server error.
* Self-hosted deployments now catch up missing tracing project last-run timestamps so project sorting reflects recent historical activity.
* Run filters now support total, prompt, and completion token counts and costs consistently across routed query backends.
* Token Count / Cost filters now default to total tokens / cost instead of input tokens. Input and output token / cost breakdowns remain available in the selector.
* On a tracing project, resetting a view now moves the Threads/Traces/Runs switcher back in step with the rows being shown. Previously the switcher could stay on Runs while the table had already returned to traces.
### Feedback
* The annotation queue item endpoints are now documented at their served path under /api/v1/platform, so the generated SDK methods for listing, adding, updating, counting, deleting, and placing queue items reach the API instead of returning 404.
* PDFs and other documents attached to a message now render in a full-width preview frame with a header control that opens them nearly full screen, instead of collapsing to a thumbnail-sized box.
### Prompts and playground
* When a model provider rejects a playground run, such as a wrong API key or an exhausted quota, the playground now shows the provider's own error message instead of a generic server error, so the cause is clear from the error itself.
* Playground batch and invoke endpoints now sanitize buffered run trees into JSON-safe payloads before responding, so online evaluations no longer fail with opaque 500s when a run graph cannot be serialized.
### Automations
* Forking an evaluator attaches the copy to the project or dataset named in the fork dialog. Previously the copy could be created attached to nothing, leaving the original evaluator running the version you had just edited away from.
## Deployment
* The Create New Deployment form now shows a clear, per-field message when a submitted value fails validation (e.g. an invalid image path) instead of the raw backend error payload.
* Deleting a tracing project whose LangGraph deployment is still within its post-deletion retention window now schedules the project to be removed along with the deployment, and explains that in the error message instead of asking you to delete a deployment you already deleted.
* The delete confirmation for a LangGraph deployment now says that cleanup of the underlying database runs after you confirm, and that a deleted deployment's name stays reserved until that cleanup finishes.
## Sandboxes
* Sandboxes accept a new streaming execute request that returns stdout and stderr as Server-Sent Events, for clients that cannot hold a WebSocket. Passing a command ID reuses a running command, and a separate resume request continues an interrupted stream instead of running the command again.
* Sandboxes now ship with the `langsmith` CLI on PATH, so agents can query traces, runs, and datasets without installing it first.
* Sandbox and snapshot rows now use single-column layouts with actions in context menus, snapshot sources remain available in their menus, and wrapped names stay left-aligned.
* Engine sandbox commands in self-hosted deployments now authenticate over WebSocket with the deployment service key, preventing 401 failures after successful sandbox creation.
* The `langsmith` CLI in sandboxes is updated to v0.2.44. Its requests now resolve on self-hosted deployments that serve the API under `/api`, where commands such as `trace messages` and the project issues commands previously failed.
## Administration
* The LangSmith home page now provides quick access to copy the current organization and workspace IDs.
* On self-hosted installations authenticating with OAuth/SSO, the Remote MCP authorization endpoint returned a 400 because the SSO login route shadowed it. OAuth clients can now complete the authorize step and connect to the Remote MCP server.
* Self-hosted deployments with an online license key (beacon access) now see the monthly organization usage graph automatically, without needing the enable_monthly_usage_charts org config. Offline deployments are now pointed to the Granular usage tab for locally-recorded billable usage.
* Switching workspaces or organizations keeps you on the same page when the route has no workspace-specific resource IDs. Routes that reference a specific resource continue to open the destination workspace home page.
* LangSmith now refreshes expired browser sessions and retries interrupted API requests before asking you to log in again.
### LLM Gateway
* Gateway policies with a blank or whitespace-only name now fall back to showing the policy ID instead of rendering an empty name cell, and the policy update endpoint now rejects blank names the same way creation already does.
* The Gateway usage spend chart now shows the top 12 individual spenders per bucket, rolling the rest into an "Other" series, and its hover tooltip lists every contributor at once with the bucket total pinned beneath them.
* The home page onboarding flow now includes a step for choosing how your agent reaches a model: bring your own provider API key, or use Gateway Credits. Choosing Gateway Credits lets an organization admin pre-purchase prepaid credit and shows the API key and gateway URL needed to start sending traffic, with no provider account required.
* The custom X-Gateway-\* header condition on LLM Gateway spend-cap and rate-limit policies now works with organization-, workspace-, and user-scoped policies too, not just API-key-scoped ones, so you can split a single subject's traffic into separate caps by header value regardless of how the policy is scoped.
* Default spend cap and rate limit policies in LLM Gateway now expand to show the per-user, per-workspace, and per-API-key policies materialized underneath them.
* The Gateway Credits purchase dialog now shows the credit balance your purchase will land you on, and states the fee-inclusive total directly above a single purchase button. Large amounts no longer push the credits readout and total outside the dialog.
* Enterprise organizations without Data Protection now see the tab in the LLM Gateway, greyed out with a link to request access, instead of the tab being hidden entirely.
* The connect card now appears above the Gateway Credits balance on the LLM Gateway Home page, and the generated code snippets list the API key before the base URL to match common convention.
* Generating an API key from the LLM Gateway Home connect card now shows the standard one-time key reveal dialog, and each provider's "Configured" status now reflects the workspace's actual secrets instead of a fixed list.
* The "Purchase Credits" button on LLM Gateway Home now opens the credit purchase dialog instead of showing a "coming soon" message, and the balance bar now shows spend against what's actually purchased instead of against the plan's purchase limit.
* The Cost Controls and Model Fallbacks shortcuts on LLM Gateway Home now read "View cost controls"/"View model fallbacks" for members who can't manage the org, instead of "Manage"/"Configure".
* Gateway Home code samples now use the gateway hostname constructed for each LangSmith region and default to the Responses API where supported. [Learn more](/langsmith/llm-gateway).
* LLM Gateway policy tabs now clarify that policies apply across the organization, while Usage clarifies that spend is scoped to the selected workspace.
* The home onboarding step now states your Gateway Credits balance in US dollars, matching the amount you purchase, instead of converting it to LCUs.
* The prompt you copy into your coding agent during onboarding now states how the agent should reach a model, based on the provider you picked: Gateway Credits, or your own provider API key.
* Homepage spacing and surface tinting now match design review feedback, and several small copy fixes clarify credit limits, provider status, and organization-level purchase limits.
* LLM Gateway Home again includes Google Gemini and generates valid model identifiers for Gemini and Baseten connect samples. [Learn more](/langsmith/llm-gateway).
* LLM Gateway Home now highlights the selected model and lets you switch connect samples between Chat Completions, Messages, and Responses formats.
* The LLM Gateway Usage tab now explains when usage queries aren't available for a deployment instead of showing failed dashboard requests.
* When you select Gateway Credits during onboarding, the prompt copied into your coding agent now includes the correct Gateway URL for your deployment. [Learn more](/langsmith/llm-gateway).
* Gateway Credits checkout now remains on the active purchase step while a free workspace upgrades to the Developer plan, instead of briefly showing the saved-card view before closing.
* Requests that set prompt_cache_options (or the deprecated prompt_cache_retention) now enable Anthropic prompt caching when the LLM Gateway translates an OpenAI Chat Completions or Responses request to a Claude model, instead of ignoring the field. Anthropic's default cache lifetime applies, and prompt_cache_key, prompt_cache_retention, and prompt_cache_options are all preserved when translating between the Chat Completions and Responses formats.
* Tooltips on disabled LLM Gateway policy controls now read "You need organization admin access to create policies" instead of referencing the raw organization:manage permission string.
* The Gateway Usage tab no longer shows an in-page workspace dropdown. The page is already scoped to your current workspace, and its subtitle now names that workspace directly.
**July 20-24, 2026**
## Observability and evaluations
### Datasets and experiments
* `GET /annotation-queues/{id}/items` now returns THREAD queue items alongside RUN items, with an optional item_type filter. THREAD list rows expose identity on the item (thread_id/session_id/start_time) and omit nested thread; RUN list still hydrates nested run for now (same omit planned for metadata-only list). Traces and messages load via the v2 threads APIs when reviewing.
* `GET /annotation-queues/{id}/runs` and related size endpoints exclude THREAD queue rows (run_id is null) so mixed queues no longer return 500. Use GET /items for thread listing.
* Project settings now require a thread idle time of at least two minutes to ensure thread evaluations include all ingested runs.
* Annotation queue item add requests now consistently enforce a 100-item limit for runs and threads. Over-limit errors clearly show the configured limit.
* `GET /annotation-queues/{id}/items` returns Postgres membership metadata for RUN and THREAD items without hydrating nested run or thread payloads from ClickHouse or SmithDB. Orphan queue rows remain listed. The include_stats query parameter is removed. Annotate payloads load via get-one / review APIs.
* When you bulk-add runs from a tracing project, its default dataset now appears first in the dataset picker.
* Annotation queue review lists now label unnamed run rows as `Run `, matching thread rows and making mixed queues easier to scan.
* Opening the pairwise experiment comparison from a pairwise annotation queue no longer crashes the page when both compared runs come from the same experiment.
### Tracing
* The Insights reports pane can now be collapsed to give report details more space.
* Insights cluster summary columns can now expand to show more of each summary.
* LangSmith MCP's `fetch_runs` tool now returns `first_token_time` when that value is recorded for fetched runs, making TTFT analysis available without a separate SDK query.
* Legacy run URLs now resolve the run metadata and redirect to the SmithDB trace view instead of showing an error.
* Trace usage limit banners now appear only for workspace members whose user-scoped limit has been exceeded.
* The Deployment button on tracing project pages now opens the deployment page within the app instead of reloading the UI.
* Clicking the already-selected run or trace in a thread's trace tree now keeps it selected instead of deselecting it and scrolling back to the first trace.
* Fixed two frontend call sites that could reach POST /runs/stats with an empty or missing session, preventing spurious 422 errors in the Insights job config and session rules form.
* MCP run query tools now return gateway timeout responses without retrying, reducing duplicate load when a run query times out.
* Pressing Enter to confirm characters from an input method editor (e.g. Pinyin for Chinese, or Japanese/Korean IMEs) in LangSmith Chat now commits the composed text instead of prematurely sending the message.
* LangSmith Chat now surfaces a run's system prompt inline when reading a traced LLM run, so it can explain why a model behaved a certain way without missing the system prompt. It also recognizes system prompts stored as provider-level fields (OpenAI Responses `instructions`, Anthropic `system`).
* LangSmith Chat traces now show the model you configured instead of mislabeling it as GPT-3.5-Turbo when a custom model endpoint is used.
* The Run in Studio button is now hidden on public (shared) run pages, where it previously pointed to an authenticated page that shared viewers cannot open.
* Navigating between traces now clears stale sharing state, so unshared traces no longer appear public.
* The run, trace, and thread detail panels now enforce a minimum width when resized, so their header no longer overflows and forces the view to scroll sideways.
* Restore `is_in_dataset` on trace and run responses when the query is proxied to the V1 backend in ClickHouse-only mode. The V1 select now forwards `in_dataset` so the Python backend computes it and the proxy renames it back to `is_in_dataset` for V2 callers.
* BYOC workspaces now avoid requesting trace table fields that older data planes do not support, preventing invalid request errors when viewing traces.
* Custom dashboard charts can now query summed latency and first-token time metrics through the runs analytics SmithDB path.
* Custom dashboard charts can now query minimum and maximum latency, time-to-first-token, token, and cost values through SmithDB-backed runs analytics.
* Custom dashboard charts can now query P90 and P95 for latency, first token time, tokens, and cost metrics, in addition to the existing P50 and P99.
* Custom dashboard charts can now aggregate feedback scores by sum, P50, P90, P95, and P99, in addition to the existing average, min, and max.
* The LangSmith homepage now provides clearer onboarding steps for coding agents and tracing, including a direct shortcut for creating a tracing project.
### Prompts and playground
* Editing agent and skill metadata in the Context Hub now shows save progress, reports actionable errors without discarding changes, and displays successful updates immediately.
* Prompts with a repo readme now display it in a dedicated Readme section of the prompt view.
* Gemini 3.6 Flash and Gemini 3.5 Flash Lite are now available in Fleet, Agent Builder, and playground model selectors, with usage pricing support.
* Pasting content into rich-text editors, such as the prompt playground and agent chat, now works reliably again.
* Previewing a single dataset row after running a full experiment now resolves the row's evaluator scores instead of showing a feedback cell that loads indefinitely, and the resulting feedback chips render with their proper colors.
* LangSmith no longer keeps system-added top_p values when switching OpenAI prompts to reasoning models, preventing invalid invocation parameters. Users who still need top_p can add it as an extra model parameter for supported non-reasoning models.
### Engine
* The organization Engine usage page now lets you switch between a workspaces view and a projects view of month-to-date LCU spend, each ranked by spend. The Engine spend API returns the authoritative total independently of the breakdown.
* Engine no longer shows redundant hover tooltips on issue category badges or the default Fix action. Permission and PR status explanations still appear when they add context.
* Engine opens the Slack or webhook destination form immediately when no destinations are configured.
* Engine issue category labels now appear on a dedicated row below the title for more consistent spacing and readability.
* Engine now shows a warning beside a linked repository when it cannot access it, including failures caused by renamed or deleted repositories and broken GitHub connections.
* On an Engine issue, navigating to the next or previous linked trace now stays in the conversation view for traces that belong to a thread, instead of switching to the single-trace view.
* Engine now shows a clickable Paused status in the issues header when scheduled scanning is paused, so you can see its status and open settings directly.
* Engine now works in supported self-hosted deployments without Eppo rollout configuration, while organization enablement and existing permissions remain enforced.
* Opening the project spend limit from the pause confirmation now scrolls the settings pane to the limit editor.
* Engine Overview now displays the current Engine package version so you can see when the underlying experience changes.
### Monitoring and alerting
* Self-hosted alert webhook delivery now honors `SSRF_ALLOW_K8S_INTERNAL`, so internal Kubernetes service hostnames can be used when that setting is enabled. Metadata endpoints, localhost, and private IP protections remain controlled by their existing SSRF policy settings.
### Automations
* Thread (grouped) evaluators now require a minimum idle time of 120 seconds. Setting a project's thread idle time below 120s is rejected.
* Leaving feedback on a run in a thread now makes the thread eligible for re-evaluation, so thread-level evaluators re-run when new feedback arrives.
* Editing an online evaluator (LLM-as-judge or custom code) no longer intermittently fails when sandbox validation is slow.
## Deployment
* Worker and API server CPU charts now plot a peak (max) series alongside the average, so a single replica with high CPU usage is no longer hidden by the fleet-wide average.
* Worker and API server memory charts now plot a peak (max) series alongside the average, so a single replica approaching its memory limit is no longer hidden by the fleet-wide average.
* Creating a deployment with a name that's already in use within your workspace now returns a 409 Conflict instead of a 500 error.
* Hybrid deployments remain compatible with older listeners during control-plane upgrades, preventing new deployments from remaining queued.
## Sandboxes
* A sandbox proxy configuration can now define environment variables that are applied to every command in the sandbox. This is handy when a tool refuses to run unless a credential env var is present (for example gh needs GH_TOKEN) even though the egress proxy injects the real credential on the wire. Set a placeholder value so the command starts.
* Attach free-form key/value labels when creating a sandbox or snapshot. Labels are stored and returned on reads; sandboxes inherit their snapshot's labels, and snapshots built from a Docker image inherit the image's labels.
* Sandbox network egress now tries every resolved IP for a destination instead of only the first, so requests to multi-homed hosts (for example apt package mirrors) no longer fail when the first address is unreachable on the requested port.
* Creating a sandbox with only mem_bytes set now derives a matching CPU allocation automatically, so requests for larger-memory sandboxes no longer need an explicit vcpus value to satisfy the CPU-to-memory ratio.
## Administration
* Selecting All Workspaces on the Granular Billable Usage page now loads usage successfully for organizations with many workspaces.
* The Granular Usage page now shows a notice that long-lived trace usage isn't tracked in self-hosted deployments, so the "Long-lived only" filter is expected to show zero results there.
### LLM Gateway
* Gateway Monitoring now shows spend for the workspace you're viewing rather than the whole organization, with a dropdown to switch workspaces from the page. Spend cards show N/A instead of a repeated error message when a workspace's gateway project can't be resolved.
* The Rate Limiting tab in Gateway Policies now supports creating, editing, deleting, and enabling/disabling request- and token-based rate-limit policies, alongside the existing cost-control and data-protection policy management.
* Editing a materialized LLM Gateway policy now turns it into a standalone override, preventing later default policy changes from overwriting its custom limits.
* You can now call LangChain-managed models through the LLM gateway without configuring your own provider credentials. Usage is metered at cost and bounded by a monthly spend cap based on your plan; once the cap is reached, further requests are blocked until the next month. The cap can be raised on request. [Learn more](/langsmith/llm-gateway-langchain-provider).
* Selecting an entity filter on the LLM Gateway spend monitoring page no longer flips the breakdown to a different dimension.
* Selecting more than one entity in any Gateway Monitoring breakdown filter (model, user, or API key) now returns spend for all chosen entities instead of no data.
* The Gateway Monitoring spend chart now formats axis labels and tooltip ranges in UTC to match its UTC-anchored buckets, so viewers in non-UTC timezones no longer see off-by-one dates.
* The LLM Gateway spend chart and table now label spend from service keys as "Unaffiliated with any user" instead of showing a blank name, with a tooltip explaining that the spend came from a workspace/org-scoped key rather than an individual.
* API-key-scoped LLM Gateway spend-cap and rate-limit policies can now add a custom X-Gateway-\* header condition, so a single API key can match different limits per header value. For example, a reseller can set separate caps per downstream customer without distributing multiple keys.
* Stat card and table headers in the LLM Gateway monitoring page's Spend tab (e.g. "Total Spend", "Daily Avg", "API Key") now capitalize every word, matching the header style used elsewhere in the product.
* When a specific start/end date is selected in the LLM Gateway monitoring page's date range picker, the button now shows the dates in UTC and appends "(UTC)" so it's clear the range doesn't follow your local timezone. Relative ranges like "Last 7 days" are unaffected.
* The "Spend share" column on the LLM Gateway Monitoring spend dashboard no longer cuts off its header text.
* The LLM Gateway now lives in a dedicated top-level sidebar section instead of under Settings, with a new Home tab listing your custom model configurations and a ready-to-run code snippet for the gateway. Old Settings gateway links redirect automatically.
* A Home banner for LangSmith Cloud orgs with LLM Gateway enabled highlights how Gateway manages costs and improves runtime reliability. [Learn more](/langsmith/llm-gateway).
**July 13-17, 2026**
## Observability and evaluations
### Datasets and experiments
* The legacy feedback formula endpoints (`POST/GET /feedback/formulas` and `GET/PUT/DELETE /feedback/formulas/{feedback_formula_id}`) that back composite scores are deprecated in favor of [composite evaluators](/langsmith/composite-evaluators-ui), which implement a composite score as a code evaluator plus a run rule, and are scheduled for removal on 2026-08-20. Migrate existing feedback formulas to the new composite model.
* Expanding the run tree for repetition runs in [experiment comparison](/langsmith/compare-experiment-results) views now works reliably when a repetition root has a project ID but no session ID.
* POST /v2/datasets//experiment-runs is the supported public API for paginated experiment comparison. Legacy dataset comparison helpers are removed from the public OpenAPI spec and generated SDKs; existing HTTP routes continue to work for LangSmith UI clients.
* Adds `langsmith evaluator create-llm` to define structured LLM-as-judge evaluator rules from a prompt, schema, and model config file, targeting a project or dataset.
* Creating [dataset examples](/langsmith/manage-datasets) from [source runs](/langsmith/manage-datasets) now correctly fetches run inputs and outputs backed by SmithDB, and no longer fails the whole request if one of several source runs can't be found.
* Multi-turn evaluators now include a Test action that runs the evaluator against a sample thread before you save the rule.
* Add RUN items to a single [annotation queue](/langsmith/annotation-queues) with POST /annotation-queues//items. The server resolves runs via ClickHouse or SmithDB and returns a standards-shaped items envelope; THREAD support follows in a later release.
* The LangSmith CLI now updates existing code evaluator rules in place when `evaluator upload --replace` is used, avoiding a delete-before-create window if the replacement upload fails.
* Split the read datasets into a new download datasets permission. Enforce this new permission in both the application and in APIs. The download button is disabled for those users without the download permission. [Learn more](/langsmith/organization-workspace-operations#datasets).
* Public dataset experiment traces open correctly when experiment runs provide their project identifier through the v2 response shape.
* A run rule with a 0 sampling rate processes no runs, but the scheduler still enumerated it every tick. The scheduler query now skips rules with sampling_rate 0 (parity with the is_enabled check), so they are never dispatched.
* Dataset and experiment tables now truncate long input and reference-output text and show detected base64 images as small thumbnails with a delayed larger preview, avoiding oversized hidden DOM content.
* Experiment tables now defer full payload rendering and output diff preparation until those views are requested, improving responsiveness for runs with large agent trajectories.
* Public dataset share links now resolve the sessions list (with stats) from SmithDB when ClickHouse querying is disabled, so shared dataset pages no longer fail to load on SmithDB-only deployments.
* Add conversation threads to a single [annotation queue](/langsmith/annotation-queues) with POST /annotation-queues//items using item_type THREAD (thread_id + session_id). Mixed RUN and THREAD batches are supported; the server resolves threads via ClickHouse or SmithDB.
* Code evaluators now get more time to run each batch, so evaluators that import heavy libraries like scikit-learn are less likely to time out.
* POST /annotation-queues//items now accepts at most 200 items per request and returns a clear validation error when the limit is exceeded. Requests at the limit continue to succeed.
* Applying an evaluator to an existing experiment could fail with "Failed to start evaluation" on large experiments. It now starts reliably even when the run count is temporarily unavailable.
* Linked runs load correctly from public dataset shares when LangSmith uses the ClickHouse compatibility path.
### Tracing
* The tracing and evaluation onboarding quickstarts now show the correct LANGSMITH_ENDPOINT for bring-your-own-cloud data plane workspaces instead of the shared multi-tenant endpoint.
* Bulk export compression now defaults to zstandard (zstd) for improved performance. Self-hosted environments retain the gzip default via the FF_BULK_EXPORT_DEFAULT_COMPRESSION environment variable.
* [LangSmith MCP tools](/langsmith/langsmith-mcp-server) that fetch runs or thread history now accept project UUIDs in addition to project names, making trace URL investigations faster and less error-prone.
* OpenTelemetry resource attributes (set via OTEL_RESOURCE_ATTRIBUTES) now appear on traces as metadata namespaced under otel.resource.\*, so you can attach details like user IDs without changing how your tracer emits spans.
* LLM spans in the trace view now show the model provider's brand logo (OpenAI, Anthropic, Google/Gemini, Azure, Mistral, DeepSeek, xAI, and speech providers), resolved from the run's ls_provider metadata.
* Fixed a bug where non-primitive metadata values did not appear in run details.
* Run stats scoped to an explicit run-id list (for example Insights per-cluster stats) now compute on SmithDB, which scopes results to those runs instead of falling back to project-wide totals.
* Organization model settings now let you search pricing rules by model name, match rule, or provider. Paginated loading fetches additional rules as you scroll, making large numbers of model price maps manageable.
* Assistant messages carrying tool calls were rendered twice in the v2 messages view for traces produced by the @anthropic-ai/sdk JavaScript SDK. Dedup now normalizes content-block field order so the same message emitted as an LLM output and replayed as an input on the next turn collapses to a single row.
* Run errors whose stack trace arrived fully escaped (no real line breaks) now render as properly formatted multi-line text instead of one long wrapped line.
* LangSmith MCP's `fetch_runs` tool now accepts `min_start_time` and `max_start_time` arguments, so agents can search traces outside the default recent window.
* Adds a `GET /v2/runs/{run_id}/url` endpoint that returns the LangSmith UI URL for a specific run.
### Engine
* When an [Engine](/langsmith/engine) project reaches its monthly spend limit, the Next Run status chip and project spend card now show a clear "Monthly spend limit reached" state with a button that takes you straight to raising the limit.
* LangSmith exposes [Engine](/langsmith/engine) issue listing and retrieval through hosted MCP tools and generated SDK methods. Agents and API clients can fetch issue details directly by issue ID or filter issues by project, status, severity, tag, and update time.
* A new [Engine](/langsmith/engine) board callout points you to the trace-scope setting, where you can restrict Engine's reviews to runs matching a run name or metadata value.
* The Engine setup screen now shows an estimated monthly cost based on the project's recent trace volume and size, so you know roughly what to expect before starting analysis.
* The Engine issue list now uses a single filter and sort menu with a compact, nested layout for Priority, Status, Tags, and Sort by, replacing the previous two separate popovers.
* The [Engine](/langsmith/engine) issue list now shows the active sort order as a removable chip next to your filter chips whenever it differs from the default.
* Engine issues can now be marked Fixing or Watching, and you can get a Slack alert when new traces recur on a watched issue.
* The [Engine](/langsmith/engine) issue list no longer shows scan-timing details (next scan countdown, last run time, or a Run now action); a Pause/Resume control remains available in its own section in board settings.
* Engine now verifies concrete claims in agent responses against trace evidence, improving detection of ungrounded artifacts, values, and claimed actions.
### Prompts and playground
* Playground runs now retain evaluator scores and reasoning while backend feedback updates are polled, preventing completed results from appearing blank.
* LangSmith now waits for model preset defaults to finish loading before initializing the Playground, preventing OpenAI from replacing a custom default preset during page load.
* The model configuration default button now switches to a selected state when you make a preset your default.
* Playground model settings now apply typed custom model names when the selector closes, so you no longer need to click the typed option explicitly.
* Custom evaluator errors in the Playground results table now reliably show the failure message, instead of sometimes displaying a blank error indicator.
* Configure workspace-wide HTTPS webhooks for every Context Hub commit, with signed payloads, custom headers, and secret rotation controls.
### Feedback
* Adding runs to an annotation queue via the by-key endpoint now falls back to the ClickHouse run lookup when SmithDB queries are disabled, so the SDK's annotation-queue additions work regardless of whether SmithDB is enabled.
* The POST /feedback/eager endpoint is deprecated in favor of POST /feedback and is scheduled for removal on 2026-08-10. Update any direct integrations calling /feedback/eager to use POST /feedback instead.
* Feedback creation now accepts a thread identifier, enabling feedback to be associated with a conversation thread instead of only an individual run or session.
* GET feedback requests can now filter by a thread ID within a project, making thread-level feedback retrievable without resolving a run first.
* Annotation queue rubric feedback now loads the thread-scoped feedback for thread queue items.
* Annotation queue rubric feedback now saves against the selected thread for thread queue items.
### Monitoring and alerting
* When a custom dashboard chart has no data or would produce too many bins, the empty state now surfaces the active stride (e.g. 1M) and selected range (e.g. Last 12 hours) so it's clear what to adjust.
* When hovering the +N chip in a dashboard chart's legend, the expanded popover now paints above adjacent chart cards instead of being clipped behind them.
* Metadata grouping keys without returned values no longer show a misleading empty value tooltip in dashboards.
### Automations
* Resolved an unbounded memory leak in the SAQ queue worker where croniter objects were rebuilt every second, accumulating cached entries that were never released. The croniter dependency is bumped to 6.2.2+ and croniter objects are now reused across schedule ticks.
## Deployment
* You can now edit an existing cron's schedule, input, and end time from a deployment's Crons tab, instead of deleting and recreating it.
* LangSmith frontend images now install nginx 1.31 packages to pick up the latest Chainguard security fixes.
* Deployment creation now checks free deployment usage with the same backend quota count used during submission, preventing the form from offering a free Serverless or Development option when the organization quota is already used.
* LangSmith Deployment now lets you update compute and database resource tiers independently for supported hosted deployments. The scaling action applies the selected resources and rolls out a new revision.
* Hosted project deployment views now label scale-to-zero development deployments as Serverless, with free deployments shown as Serverless (free).
* The deployment form now shows the free serverless option immediately while checking an organization's remaining deployment allowance.
* Refines error handling when attempting to create a deployment with no GitHub repository selected.
* Serverless deployments can now update compute tiers correctly without requiring an external database tier.
* Self-hosted deployments now authenticate correctly to node-based AWS ElastiCache with IAM in both single-node and cluster configurations.
## Sandboxes
* Sandboxes can now opt into keeping their memory when they stop, so the next start resumes where it left off instead of cold-booting. Set preserve_memory_on_stop when creating a sandbox; it defaults to off.
## Administration
* Workspace switcher labels now show the full workspace name on hover when the visible label is truncated. This makes similarly prefixed workspace names easier to distinguish.
* Some new users could get stuck on the last onboarding step, with a loading spinner that never finished. This is now fixed.
* Organization admins can now rename their organization directly from the organization switcher in settings.
* Organization admins can now generate, view, and delete SCIM bearer tokens directly from Settings > Access and Security, instead of using the API, to set up SCIM provisioning with their identity provider. [Learn more](/langsmith/user-management#set-up-scim-for-your-organization).
## Other
* When you add runs to an [annotation queue](/langsmith/annotation-queues) without specifying `extend_trace_retention`, short-lived traces stay on short-lived retention. Pass `extend_trace_retention=true` to upgrade traces to extended retention.
**July 6-10, 2026**
## Observability and evaluations
### Datasets and experiments
* Model, prompt, and tool chips in the Experiments table config cells now lay out from real measurements for accurate truncation, and the +N overflow badge is a clickable dropdown whose entries expose the same actions (filter, group by, open in playground, and details) as a chip's own menu.
* Evaluators linked to Hub prompts now load correctly for flat and playground-shaped prompt commits, fixing crashes when editing existing evaluators.
* The experiment comparison view now offers an optional, reorderable "Splits (latest)" column that shows each example's current dataset split assignments as chips, reflecting live membership rather than the as-of-run snapshot.
* Evaluator spend charts on project and dataset evaluator tabs keep their desktop layout on narrow screens and scroll horizontally instead of compressing the chart and stat cards.
* The experiment comparison and group-by views now show each example's current dataset split rather than the split it had when the experiment ran, so you can tell whether failures already belong to a split without re-running the experiment.
* Comparison view now loads token and cost stats from SmithDB for root runs, so the stats columns populate again instead of staying blank
* LangSmith now caps reusable evaluators per workspace to prevent unbounded resource growth. Contact support if your workspace needs a higher limit.
* Creating dataset examples from source runs now correctly fetches run inputs and outputs backed by SmithDB, and no longer fails the whole request if one of several source runs can't be found.
* Select multiple rows in an experiment (or select all matching the current filters) and add, replace, or remove their dataset splits in one action, or copy the selected examples to another dataset, instead of editing rows one at a time.
* The `/runs/rules/validate` endpoint now supports [thread evaluators](/langsmith/online-evaluations-multi-turn). Pass `test_thread_id` and `session_id` to test a multi-turn evaluator against a real conversation before saving.
* The thread evaluator config preview now shows the thread message formats the evaluator actually maps, instead of listing every available format.
* The evaluator config now shows a locked "Trace count ≥ 2" filter for managed thread evaluators, making it clear they only run on threads with multiple turns.
* Experiment comparison and individual experiment views now load run rows on self-hosted deployments that authenticate the UI via SSO/OAuth session cookies. Previously these views could show 'No results found' even though metrics and feedback loaded.
* Experiment statistics now refresh promptly for recently run experiments while keeping historical experiment scans bounded.
* The Assertions evaluator added via "Add evaluator" now reads assertions from the reference output like the auto-attached version, so it grades against the real assertions instead of always failing.
* Evaluator spend chart y-axes now abbreviate amounts of \$1,000 or more, making high-spend values easier to scan.
* A run rule whose sampling rate was 0 (or unset) sent an out-of-range sample_rate to the SmithDB query service (which rejected it) and zeroed out ClickHouse thread grouping. Both the flat and grouped fetch paths now fall back to 1.0 (no sampling) so these rules query successfully.
* Exporting a dataset comparison view as CSV now returns a clear "file is too large to export" error instead of a generic server error when the export exceeds internal size limits.
* Each split chip in a row's Splits cell is now interactive in the experiment results and comparison views, with an Edit splits action that opens the single-example split picker so you can reassign splits without leaving the table.
### Tracing
* The batched-run ingestion log now emits run_verbs as a list of run_id and verbs objects instead of a map keyed by run UUID, preventing structured-log aggregators from exhausting dynamic field limits.
* Authenticated users viewing public runs now see sidebar navigation for their last selected workspace. Logged-out viewers continue to see the public run without authenticated workspace navigation.
* LangSmith MCP tools that fetch runs or thread history now accept project UUIDs in addition to project names, making trace URL investigations faster and less error-prone.
* OpenTelemetry resource attributes (set via `OTEL_RESOURCE_ATTRIBUTES`) now appear on traces as metadata namespaced under `otel.resource.*`, so you can attach details like user IDs without changing how your tracer emits spans.
* Native OpenTelemetry child spans are no longer dropped when they arrive before an SDK-attributed parent span; they are buffered and correctly nested regardless of arrival order.
* Thread pages now show an explicit access-control message when trace loading is denied by ABAC, instead of a generic retrieval error.
* All time filters in tracing views now query the full retention window instead of falling back to a shorter backend default. This keeps trace, thread, and run results consistent when expanding the time range.
* OpenTelemetry traces from VS Code Copilot Chat now render as one clean nested trace per user turn. Auxiliary title/summary calls and orphaned tool spans are suppressed, message roles are corrected, token counts are de-duplicated, and standardized metadata (integration, agent runtime, thread ID, repo/git details) is attached automatically.
* Insights cluster run stats (run count, latency, tokens, and feedback) now reflect only the runs in each cluster instead of showing the same project-wide totals for every cluster.
* LangSmith Chat now authenticates to Chat LangChain with guest tokens when searching documentation, so docs answers keep working as Chat LangChain tightens authentication.
* The Trace Messages viewer now identifies the "main" conversation for traces that include middleware guardrails or subagent side-conversations, so the message list shows only the primary interaction instead of interleaving middleware/subagent partitions. Correctness is verified by an expanded snapshot suite covering 11 integrations across LangChain, OpenAI Agents SDK, Vercel AI SDK, Claude Agent SDK, deepagents, and raw provider wrappers.
* Custom dashboard charts can now query P50 and P99 for input and output costs without failing runs analytics requests.
* The thread stats API now accepts a `filter` query parameter, letting you scope aggregated stats to traces matching a LangSmith filter expression (e.g. start time or trace ID).
* LangSmith Chat now mints Managed Deep Agent guest tokens from the Chat LangChain LangGraph host (`POST /identity/guest`) when searching documentation, instead of the legacy Chat LangChain frontend guest route.
### Engine
* Upgrades the Redis client to improve recovery from Redis cluster topology changes, fixing cases where cluster reconnects could stall.
* Engine now lets the parent agent recover from model-actionable subtask failures and retries transient provider or network errors before failing a run. This helps issue scans continue through recoverable model errors while preserving hard failures for auth, configuration, and code exceptions.
* LangSmith exposes Engine issue listing and retrieval through hosted MCP tools and generated SDK methods. Agents and API clients can fetch issue details directly by issue ID or filter issues by project, status, severity, tag, and update time.
* Engine-generated examples with assertions now add the Assertions evaluator when saved to a dataset from an annotation queue, matching the direct Add offline examples flow.
* The Engine issue list now uses a single filter and sort menu with a compact, collapsible layout for Priority, Status, Tags, and Sort by, replacing the previous two separate popovers.
* The Engine issue list now shows the active sort order as a removable chip next to your filter chips whenever it differs from the default.
* The Engine issue list no longer shows scan-timing details (next scan countdown, last run time, or a Run now action); a Pause/Resume control remains available in its own section in board settings.
### Prompts and playground
* Self-hosted Playground and evaluator outbound model calls now honor proxy environment variables while preserving SSRF validation on every request.
* Typing a workspace member's name or email in the Context Hub search box now also returns the prompts and resources they created.
* Playground and evaluator calls to Amazon Bedrock using IAM Trusted Entity now resolve the correct LangSmith AWS credentials before assuming customer roles in AWS-hosted LangSmith. This fixes failures that reported "Failed to assume role" before the customer role was assumed.
* Outbound model calls that route through a forward proxy now send the original hostname in the proxy CONNECT tunnel instead of a resolved IP, so proxies that allowlist tunnel targets by domain no longer reject them. This fixes self-hosted Playground and evaluator calls to internal OpenAI-compatible endpoints reachable only through such a proxy.
* Reviewing a prompt commit now displays every extra parameter (such as verbosity) set on the model, not just a fixed subset.
### Feedback
* POST requests to add runs to an annotation queue accept an optional `extend_trace_retention` query parameter. When set to false, short-lived traces are not upgraded to extended retention. The default remains true for backward compatibility.
* Feedback creation resolves run metadata from SmithDB when the client provides session and start time, so SmithDB-only deployments no longer depend on ClickHouse for eager feedback writes.
* The `POST /feedback/eager` endpoint is deprecated in favor of `POST /feedback` and is scheduled for removal on 2026-08-10. Update any direct integrations calling `/feedback/eager` to use `POST /feedback` instead.
### Monitoring and alerting
* Dashboard chart tooltips and axes now show up to eight fractional digits (previously two), so very small costs and rates no longer round down to zero.
## Deployment
* The multi-select dropdown (e.g. Selected Tools) on the Studio assistants page now renders above the configuration dialog instead of behind it, so its options are visible and selectable.
* Redis connections using Microsoft Entra ID (Azure IAM) authentication now re-authenticate automatically before the access token expires, so long-lived connections no longer drop. Clustered Azure Redis is now supported for IAM auth as well.
* The deployment Crons tab now shows each schedule in your local timezone instead of raw UTC, matching the Next Run Date column.
* LangSmith Deployment now supports updating a deployment to a fixed resource tier through the control plane API. The update applies the selected tier's resource configuration, resizes Cloud SQL or RDS, and rolls a new revision.
* You can now rename a deployment from its Settings: give it a friendly display name without recreating it. The deployment's URLs and infrastructure are unchanged.
## Sandboxes
* S3 sandbox mounts now default endpoint_url to [https://s3.amazonaws.com](https://s3.amazonaws.com) when it is not provided, so the field is no longer required when mounting standard AWS S3 buckets.
* Sandboxes can now burst CPU up to 2x their requested allocation when the host has spare capacity, and you can request fractional (sub-core) vCPU down to 0.05.
* Self-hosted LangSmith installations now show the Sandboxes navigation item and use the instance-level sandbox flag to open the Sandboxes page.
* Shells and tools inside a sandbox now report the sandbox's name as the hostname instead of a generic default, and the name resolves from within the sandbox.
* Self-hosted LangSmith installations can open the Sandboxes page without enabling the Deployments frontend.
* Sandboxes now set common CA-bundle environment variables by default, so Python, Node, Deno, curl, and git tooling automatically trusts the sandbox's egress proxy certificate and no longer fails with TLS certificate-verification errors when its traffic is proxied.
## Administration
* The roles table on the Organization Roles settings page now scrolls correctly when there are more roles than fit on screen.
* You can now fetch a single workspace directly via `GET /api/v1/workspaces/{workspace_id}` instead of listing all workspaces and filtering client-side.
* Organization admins can disable model providers across every workspace from organization settings. Disabled providers are hidden in the playground, evaluators, Fleet, and other model pickers, and workspace admins cannot re-enable them.
* The email confirmation page now shows only the Confirm account step in the sidebar instead of future onboarding steps you have not reached yet.
* Self-hosted deployments now apply explicit DEFAULT_ORG_FEATURE\_\* and DEFAULT_FEATURE\_\* environment variables over stored organization and tenant config values, so operators can enable or disable features and limits globally without editing Postgres.
* The navigation product switcher now shows the configured organization logo alongside the LangSmith or Fleet wordmark instead of repeating the organization logo.
* Organization admins can now toggle role restriction from the Roles settings page. Restricted roles can only be assigned by users with the workspaces:manage permission.
* The organization-wide public sharing toggle now lives on the General settings page alongside the other organization settings, replacing its standalone Configuration section.
* When a user is removed from all mapped SSO groups, the organization and workspace access granted through SSO group sync is revoked on their next sign-in. Access assigned by other means (SCIM, JIT, or manual invitation) is unaffected.
* Workspace invite batch requests are now rate limited per workspace to reduce bulk invitation abuse. [Learn more](/langsmith/usage-and-billing#workspace-invite-batch-endpoint).
* LangSmith Home now shows a banner promoting Interrupt, our agent conference in London and NYC this fall, with a link to get tickets.
### LLM Gateway
* The LLM gateway now supports `POST /openai/v1/responses/compact` (and the legacy `/responses/compact`), routing it through the chat-shape responses handler.
* When a gateway spend-cap policy targets more than one user, workspace, or API key, the create/edit policy form now explains that the limit applies to the combined spend across the selected entities rather than per entity.
* The LLM gateway now forwards every documented OpenAI API route it does not handle directly (models, files, batches, images, and more) to the upstream provider, so clients can reach the full OpenAI surface through the gateway. Custom OpenAI-compatible providers inherit the same passthrough routes.
* The LLM Gateway policies page now lets you sort each section by spend limit or usage percentage, and filter down to a specific workspace, user, or API key.
* LLM gateway data protection redaction now prepends a short disclaimer to redacted message text so models know SAFE_TO_USE placeholders are safe to reuse verbatim.
* The LLM Gateway now proxies Anthropic's Files and Managed Agents endpoints, so you can use them with your gateway-managed workspace key alongside Messages and Models.
* Creating an LLM Gateway spend or data protection policy now applies to the organization you are signed in to, replacing the organization dropdown with a read-only display of the current organization.
* Long selected values, like a user's email in the Gateway Policies filter, now truncate with an ellipsis instead of overlapping the dropdown chevron.
* The LLM Gateway now accepts workspace-scoped LangSmith OAuth bearer tokens across its provider routes, so OAuth clients can invoke configured models without a LangSmith API key.
## Other
* When you add runs to an annotation queue without specifying `extend_trace_retention`, short-lived traces stay on short-lived retention. Pass `extend_trace_retention=true` to upgrade traces to extended retention.
**June 29 - July 3, 2026**
## Observability and evaluations
### Datasets and experiments
* Model, prompt, and tool chips in the [Experiments](/langsmith/analyze-an-experiment) table config cells now lay out from real measurements for accurate truncation, and the +N overflow badge is a clickable dropdown whose entries expose the same actions (filter, group by, open in playground, and details) as a chip's own menu.
* Expanding the run tree for repetition runs in [experiment comparison](/langsmith/compare-experiment-results) views now works reliably when a repetition root has a `project ID` but no `session ID`.
* [Evaluators](/langsmith/evaluators) linked to Hub prompts now load correctly for flat and playground-shaped prompt commits, fixing crashes when editing existing evaluators.
* Code evaluator upload now accepts Python entrypoints annotated with PEP 604 union return types (for example `-> dict | None`).
* `POST /v2/datasets/{dataset_id}/experiment-runs` is the supported public API for paginated experiment comparison. Legacy dataset comparison helpers are removed from the public OpenAPI spec and generated SDKs; existing HTTP routes continue to work for LangSmith UI clients.
* Each example's dataset splits now render as chips in the dataset Examples table, laid out from real measurements with a clickable +N overflow menu when an example belongs to more splits than fit the column.
* The [experiment comparison](/langsmith/compare-experiment-results) view now offers an optional, reorderable "Splits (latest)" column that shows each example's current dataset split assignments as chips, reflecting live membership rather than the as-of-run snapshot.
* [Evaluators](/langsmith/evaluators) spend charts on project and dataset evaluator tabs keep their desktop layout on narrow screens and scroll horizontally instead of compressing the chart and stat cards.
* The [experiment comparison](/langsmith/compare-experiment-results) and group-by views now show each example's current dataset split rather than the split it had when the experiment ran, so you can tell whether failures already belong to a split without re-running the experiment.
* LangSmith now caps reusable [evaluators](/langsmith/evaluators) per workspace to prevent unbounded resource growth. Contact support if your workspace needs a higher limit.
* Creating [dataset examples](/langsmith/manage-datasets) from [source runs](/langsmith/manage-datasets) now correctly fetches run inputs and outputs backed by SmithDB, and no longer fails the whole request if one of several source runs cannot be found.
* Custom code evaluators that time out or fail on a run now record an error on that run instead of silently leaving it without feedback, so partial evaluation failures are visible on the experiment.
* The Open source run action on an example page now reads session and start time from dedicated example fields populated at creation, enabling reliable navigation to the source trace on SmithDB.
### Tracing
* LangSmith now enforces user-defined monthly trace limits scoped to individual projects and users. New traces that exceed a configured limit are rejected, while patches and feedback for already-accepted traces continue to flow through.
* The tracing and evaluation onboarding quickstarts now show the correct `LANGSMITH_ENDPOINT` for bring-your-own-cloud data plane workspaces instead of the shared multi-tenant endpoint.
* Sharing, viewing, or unsharing any run in a trace now operates on the trace root, so every run in a shared trace is publicly viewable, and public run links open the selected run within the shared trace.
* Projects with existing traces no longer incorrectly display the onboarding screen when filtered or scoped to a time window with no recent runs. The project run-count check now looks back 30 days instead of the previous one-hour window.
* Bulk export compression now defaults to zstandard (zstd) for improved performance. Self-hosted environments retain the gzip default via the `FF_BULK_EXPORT_DEFAULT_COMPRESSION` environment variable.
* LangSmith now returns clearer 409 Conflict messages when duplicate run create or update payloads are submitted. The message indicates whether the duplicate was a run create or run update request when possible.
* LangSmith [MCP tools](/langsmith/langsmith-mcp-server) that fetch runs or thread history now accept `project UUIDs` in addition to project names, making trace URL investigations faster and less error-prone.
* OpenTelemetry resource attributes (set via `OTEL_RESOURCE_ATTRIBUTES`) now appear on traces as metadata namespaced under otel.resource.\*, so you can attach details like user IDs without changing how your tracer emits spans.
* Vercel AI SDK traces sent over raw OpenTelemetry now render in the Messages view. Previously these traces showed an empty Messages tab because no format adapter claimed them.
* Thread stats requests that opt into streaming now return the main stats first and add feedback stats when they are ready.
* When a runs query times out, the runs table now shows a timeout banner for better responsiveness.
* LangSmith now preserves traces in multipart ingestion batches when one run has oversized inputs or outputs. Oversized input and output fields are replaced with a placeholder instead of rejecting the entire batch.
### Engine
* When an Engine project reaches its monthly spend limit, the Next Run status chip and project spend card now show a clear "Monthly spend limit reached" state with a button that takes you straight to raising the limit.
* LangSmith exposes Engine issue listing and retrieval through hosted [MCP tools](/langsmith/langsmith-mcp-server) and generated SDK methods. Agents and API clients can fetch issue details directly by `issue ID` or filter issues by project, status, severity, tag, and update time.
* A new Engine board callout points you to the trace-scope setting, where you can restrict Engine's reviews to runs matching a run name or metadata value.
### Prompts and playground
* Self-hosted [Playground](/langsmith/playground-model-providers) and evaluator outbound model calls now honor proxy environment variables while preserving SSRF validation on every request.
* When you save a prompt to an application from the playground, LangSmith keeps the workspace application filter on All Applications instead of switching the rest of the UI to that application.
* Typing a workspace member's name or email in the [Context Hub](/langsmith/prompt-context-hub#context-hub) search box now also returns the prompts and resources they created.
* The playground now includes Claude Sonnet 5, Claude Fable 5, and Claude Opus 4.8 in the Anthropic, Bedrock, and Gemini Enterprise Agent Platform model selectors. New Anthropic playground sessions default to Claude Sonnet 5.
### Feedback
* Editing the score on evaluator-generated feedback (for example from the experiment comparison view) now saves correctly instead of failing with "Failed to add feedback correction".
* Adding feedback or reviewer notes from the LangSmith UI no longer upgrades short-lived traces to extended retention. Long-lived traces are unchanged.
* Feedback statistics queries now route through the official ClickHouse client, resolving query failures and improving compatibility with ClickHouse 25.x.
### Monitoring and alerting
* Alert chart previews now handle relative date ranges consistently, preventing failures when loading 14-day or 30-day previews.
* [Dashboards](/langsmith/dashboards) chart tooltips and axes now show up to eight fractional digits (previously two), so very small costs and rates no longer round down to zero.
* Time-series charts on custom dashboards now leave gaps for missing data points instead of plotting them as zero, and lines connect across those gaps so trends remain readable.
### Automations
* Applying a prebuilt evaluator without a filter now defaults to running on root runs only, matching manually created evaluators. Previously it ran on every nested run in a trace.
* Turning an online evaluator or automation on or off now saves for any role that can edit rules, instead of silently reverting for members without the retention-configuration permission.
## Deployment
* Self-hosted deployments can now request CPU and memory above the previous Cloud limits of 8/16 cores and 32/16 GB, bounded only by your cluster capacity. Lower bounds, multiple-of-128 granularity, and Redis memory ordering are still enforced.
* Custom Slack app triggers can now opt in to let third-party bots trigger an agent. Enable the allow bot triggers toggle on a registration to accept events from external bots; echoes from your own and other LangSmith-registered bots are still dropped to prevent loops.
* Agents now skip unreachable or misconfigured non-default MCP servers immediately instead of retrying them, removing a slow round-trip from the tool-loading step and cutting time-to-first-token.
* Standby (uptime) minutes for LangGraph Platform deployments could be billed more than once when replicas reported overlapping intervals across separate usage-reporting runs. Reporting now deduplicates each minute across runs so it is billed at most once.
## Sandboxes
* Sandbox command output is now re-chunked into bounded single WebSocket frames, so clients that do not reassemble continuation frames (including the Go SDK) can read large streamed or replayed output without truncated JSON.
* S3 sandbox mounts now default `endpoint_url` to [https://s3.amazonaws.com](https://s3.amazonaws.com) when it is not provided, so the field is no longer required when mounting standard AWS S3 buckets.
* [Sandboxes](/langsmith/sandboxes) can now burst CPU up to 2x their requested allocation when the host has spare capacity, and you can request fractional (sub-core) vCPU down to 0.05.
* When creating a sandbox, you can now configure Git, S3, and GCS filesystem mounts, including mount paths, Git remotes, bucket settings, and cache options. Configured mounts appear in the sandbox table and detail view.
* The LangSmith SDKs now support creating, listing, updating, and deleting sandbox registries for pulling private container images, alongside the existing sandbox and snapshot operations.
* Sandbox snapshot builds can now request an XFS root filesystem for sandbox-host based environments.
* Sandbox creation no longer fails intermittently with "sandbox not ready" errors when an underlying host is disrupted. Affected capacity now retries the contended resource lock and recovers automatically instead of leaving the pool degraded.
* Sandbox host startup now validates the full version directory before reuse, so a missing initrd no longer causes create-time failures after a partial or stale install.
* Creating a sandbox snapshot from a Docker image now records the image's tag (e.g. ubuntu:24.04 becomes the 24.04 tag), and creating a sandbox from a snapshot name without a tag resolves the latest tag, mirroring Docker.
* Self-hosted LangSmith installations now show the [Sandboxes](/langsmith/sandboxes) navigation item and use the instance-level sandbox flag to open the Sandboxes page.
## Administration
* A new Project and user limits tab on the enterprise Usage configuration page lets you set monthly trace-count limits scoped to a specific project or user. Add, edit, and delete limits from the page.
* Anonymous organizations now show an "Anonymity mode is on" banner on the members page, and the usage breakdown hides the group-by-user option for non-internal viewers.
* New API keys now default to a finite expiration date instead of requiring a custom value. When an organization enforces a shorter maximum, the form defaults to that maximum instead.
* You can now fetch a single workspace directly via GET /api/v1/workspaces/ instead of listing all workspaces and filtering client-side.
* Org and workspace admins can now edit the role of a pending member invite directly from the Members settings page, without needing to cancel and re-send the invite.
* The Usage limits page now shows each workspace's configured total and extended (long-lived) trace limits, including caps that were previously hidden while the spend limit displayed "Unlimited".
* The batch workspace invite endpoint no longer returns a 409 error when inviting users who are already pending org invitees or active org members. Those users are added directly to the workspace without requiring a new org invite.
* The role selector in the edit pending member invite dialog now uses a scrollable select, matching the invite flow. This ensures all custom roles are accessible when many workspace roles are defined.
* Self-hosted deployments can now encode spaces in the OIDC authorization request as %20 instead of +, so single sign-on works with identity providers that reject the default + encoding of the scope list. Enable it by setting OAUTH_URL_ENCODE_SCOPE_SPACES=true.
* Billing upgrade dialogs now stay within the viewport and scroll when payment or business details make the form taller than the screen.
* Non-admin callers with manage-members permission can no longer assign restricted roles to workspace members or invite users with restricted roles to the workspace.
* Filter the organization's service keys and personal access tokens by workspace on the API keys settings page.
* Users without workspaces:manage permission cannot use restricted roles for invites, role changes, or user deletions in the UI.
* Adding existing active or pending organization members to a workspace no longer fails when organization-level invites are disabled. Disabled org invites continue to block new organization invitees.
* The Roles settings page now scrolls correctly when an organization has more roles than fit on screen.
* Organization admins can once again edit the role of and remove other organization admins from the Organization Members settings page. Organization Operators, who share the same admin-level permissions but should not manage other admins, are now correctly prevented from editing, removing, or promoting members to Organization Admin.
### LLM Gateway
* LLM gateway data protection policies can now configure whether a guard pipeline timeout allows the request through or blocks it. Existing policies default to allowing requests on timeout.
* The LLM gateway now supports POST /openai/v1/responses/compact (and the legacy /responses/compact), routing it through the chat-shape responses handler.
* Guard policies now let you choose which PII rule categories to detect, with separate faster rule-based and slower model-based detection options, instead of a single on/off PII toggle.
* Gateway guard secret redaction now detects additional token formats, including SendGrid API tokens, Google OAuth access tokens, JWTs, Slack webhook URLs, and legacy LangSmith keys.
* The [LLM Gateway](/langsmith/llm-gateway) policies page now lets you sort each section by spend limit or usage percentage, and filter down to a specific workspace, user, or API key.
**June 15-19, 2026**
## Observability and evaluations
### Automations
* [Automations](/langsmith/rules) now let you control trace retention per action, so traces matched by a rule can stay at base retention instead of being upgraded.
### Engine
* The [Engine](/langsmith/engine) issue board now shows a Connect GitHub action when GitHub is not connected, so you can set up pull request creation without leaving the board.
* [Engine](/langsmith/engine) now has a unified enablement screen with access requests, and organization settings consolidate Engine usage and limits in one place.
* Organization admins now receive [Engine](/langsmith/engine) spend emails when spend crosses each configured threshold, and pausing or disabling Engine now asks for confirmation.
### Datasets and experiments
* [Experiments](/langsmith/analyze-an-experiment) now show live loading progress in the header and the Progress column, so you can track completed and evaluated runs in real time.
* [Evaluators](/langsmith/evaluators) now include a trace-retention toggle in the advanced options, so scored traces can stay at base retention when that fits your workflow.
* [Evaluator](/langsmith/evaluators) prompt editing now offers an advanced mode for editing Mustache templates directly with separate variable mappings.
* You can now apply resource tags when creating a [dataset](/langsmith/manage-datasets), including from scratch, file upload, or a clone.
* Auto-attached Assertions [evaluators](/langsmith/evaluators) now read assertions from the reference output, so experiment scores reflect actual pass and fail results.
### Prompts and playground
* [OAuth client credentials](/langsmith/model-configurations#oauth-client-credentials) now support per-workspace setup on model configurations, so workspace admins can self-serve OAuth on saved prompts and models.
* The [Playground](/langsmith/playground-model-providers) now exposes a Reasoning Summary option for OpenAI reasoning models on the Responses API.
* The model dropdown no longer suggests OpenAI models for an OpenAI Compatible Endpoint, so you can enter your own [custom model name](/langsmith/model-configurations).
### Tracing
* [Trace query syntax](/langsmith/trace-query-syntax) now has a full operator reference, field table, and quick examples, so API filtering is easier to discover.
* The [OpenTelemetry guide](/langsmith/trace-with-opentelemetry) now explains how to link spans to an existing LangSmith SDK trace and what happens when a parent span never arrives, so cross-process traces are easier to debug.
### Monitoring and alerting
* [Dashboards](/langsmith/dashboards) now include a chart builder with chart templates, a create and edit pane, and brush and series controls on time series charts.
* You can now send [alerts](/langsmith/alerts) to Slack as a native notification target and connect or disconnect the Slack app from the UI.
## Deployment
* Preview [deployments](/langsmith/deployment) now build the image for the preview commit instead of reusing the parent deployment's image.
## Sandboxes
* [Sandbox auth proxy](/langsmith/sandbox-auth-proxy) now documents GCP rules and service-account handling, so Google API access through the proxy is clearer.
* [Sandboxes](/langsmith/sandboxes) now marks AWS US SaaS availability as generally available, so the region table reflects the current rollout.
* [Sandboxes](/langsmith/sandboxes) now support Git mounts and Google Cloud Storage bucket mounts.
## Admin and billing
### Administration
* [Organization settings](/langsmith/administration-overview) now clarify that SSO/SCIM group names can omit spaces, so enterprise IdPs that disallow spaces still work cleanly.
* The Vanta MCP integration is now generally available to all workspaces.
* Applying tags when creating datasets, prompts, and projects is now governed by dedicated [tag-on-create permissions](/langsmith/administration-overview).
### LLM Gateway
* The [LLM gateway](/langsmith/llm-gateway) now supports native Gemini routes for Gemini Enterprise Agent Platform and the OpenAI embeddings endpoint.
* [Gateway guard](/langsmith/llm-gateway) policies now accept a granular PII configuration and a configurable timeout action.
### Usage and billing
* [Granular billable usage](/langsmith/granular-usage) now clarifies org scoping, so you can interpret usage totals more accurately.
**June 8-12, 2026**
## Observability and evaluations
### Engine
* [Engine](/langsmith/engine) now shows only project-level spend in project view, so org-wide spend stays in the org settings surface.
* [Engine](/langsmith/engine) now keeps the Slack issue-alert deck pinned above the scrolling issues list, so the callout stays visible as you browse.
### Datasets and experiments
The experiments table now displays loading progress bars showing the number of runs completed and evaluated, and experiments that predate this feature show a placeholder progress bar.
* [Dashboards](/langsmith/dashboards) now support time series bar and line charts backed by the v2 chart API, so monitored metrics can use the newer chart type.
* Categorical feedback now shows derived percentages in experiment tables, so pass/fail metrics are easier to scan.
### Prompts and playground
* [Playground](/langsmith/playground-model-providers) now mints OAuth bearers end to end for OAuth-enabled presets, so long-running batches and streams keep working.
## Sandboxes
* [Sandbox auth proxy](/langsmith/sandbox-auth-proxy) now supports GCP auth flows, so sandbox workloads can reach Google APIs through the proxy.
## Fixes
* The Engine trial modal no longer shows the rough-math LCU bullet, so the pricing copy is less misleading.
**June 1-5, 2026**
## Observability and evaluations
### Automations
* [Run rule](/langsmith/rules) webhook payloads now include a trace deep link for each run, so downstream systems can jump straight back to the trace.
### Engine
* Per-workspace [Engine](/langsmith/engine) spend is now generally available: you can view LCU and USD spend directly on the Engine settings page, including session-level spend.
* The Engine settings page now surfaces additional Engine details in one place.
* You can rotate [Engine issue-board webhook](/langsmith/engine-webhooks) signing secrets from both the API and the webhook settings UI.
* The Engine issues list adds a sort option by trace count.
### Datasets and experiments
* A new out-of-the-box [Assertions evaluator](/langsmith/assertions) scores outputs against an explicit list of criteria specified in the reference output, and an Assertions rule is auto-attached when you add assertion-style examples to a dataset.
* Evaluator metrics are improved in the experiment detail, [comparison](/langsmith/compare-experiment-results), and global experiments tables.
### Prompts and playground
* The [Playground](/langsmith/playground-model-providers) supports Amazon Bedrock API key authentication, letting you authenticate with a bearer token instead of AWS credentials.
### Tracing
* The [trace view](/langsmith/view-traces) now shows an unread indicator on a run's actions menu when the run has reviewer notes you have not seen yet.
* The waterfall view is now full-height with sticky turn headers, so you keep your place while scrolling through long traces.
* Global search now includes context and sandboxes
## Deployment
* You can now trigger a LangSmith Deployment from the [Studio](/langsmith/studio) page.
* LangSmith Deployment now supports [deploying Google Agent Development Kit (ADK) agents](/langsmith/deploy-google-adk).
## Sandboxes
* [Sandbox proxy rules](/langsmith/sandbox-auth-proxy) now support configuring AWS authentication, so sandboxes can reach AWS services through the proxy with signed requests.
* Sandboxes can create [snapshots](/langsmith/sandbox-snapshots) from a Dockerfile build source.
## Admin and billing
### Administration
* Organization admins can now disable personal access token creation from the [organization settings](/langsmith/administration-overview) page.
### Usage and billing
* [Granular billable usage](/langsmith/granular-usage) now supports filtering and grouping by retention tier, separating long-lived from short-lived traces.
* The Granular Billable Usage page now surfaces LangSmith Deployment usage, including nodes executed, agent runs, and agent uptime, alongside trace usage.
## Fixes
* Performance improvements for the loading of large traces.
* Filter values for metadata are now preserved when you reopen a filter dropdown to edit it.
* Dataset creation now uses a multi-select dropdown for choosing CSV fields.
**February 16-20, 2026**
## Observability and evaluations
### Insights
* The [Insights Agent](/langsmith/insights) now supports scheduled reports on daily, weekly, or custom cron intervals, so report generation runs without manual triggering. Time ranges compute dynamically, so a "last 24 hours" report always reflects the most recent window when it runs, not when you configured it.
### Datasets and experiments
* You can now pin any experiment as a baseline. The pinned experiment stays at the top of the [Experiments](/langsmith/compare-experiment-results) view and serves as the automatic comparison point for later runs, surfacing performance deltas across every column so improvements and regressions are immediately clear.
**February 2-6, 2026**
## Observability and evaluations
### Cost tracking
* [Cost tracking](/langsmith/cost-tracking) now extends beyond LLM calls. Submit custom cost metadata for any run, such as an expensive tool call, a third-party API, or a retrieval step, to monitor, debug, and optimize spend across your entire agent stack from a single dashboard.
### Tracing
* You can now [configure which parts of a trace's inputs and outputs](/langsmith/configure-input-output-preview) appear in the tracing table, so teams working with custom trace formats can surface the most relevant fields, reduce clutter, and identify traces that need a closer look faster.
**December 15-19, 2025**
## Observability and evaluations
### Annotation and human feedback
* New pairwise [annotation queues](/langsmith/annotation-queues) let reviewers compare two runs side by side and choose whether option A is better, option B is better, or the two are equal across rubric items. LangSmith automatically pairs runs between two experiments and manages queues, reviewer assignments, and trace access, so you can run A/B evaluations across agents, prompts, and models, including for subjective dimensions like tone, correctness, usefulness, or style.
**December 8-12, 2025**
## Observability and evaluations
### Tracing
* LangSmith Fetch, a new command-line tool, brings LangSmith traces directly into your terminal, coding environment, or IDE. Install it with `pip install langsmith-fetch`, then retrieve traces with filters such as `--limit`, `--after`, and `--last-n-minutes`, or bulk-export traces and threads to files for analysis, scripting, or dataset creation.
**December 1-5, 2025**
## Observability and evaluations
### Cost tracking
* [Cost tracking](/langsmith/cost-tracking) now automatically records token usage and derived costs for major model providers, and you can submit custom cost data for tools, retrieval steps, and other operations. Costs appear across trace trees, project stats, and dashboards, with an editable price map for non-standard pricing.
**November 17-21, 2025**
## Admin and billing
### Administration
* LangSmith is now on the Okta Integration Network, so enterprise teams can provision and deprovision users with SCIM and configure SSO through Okta's guided setup. See the [administration overview](/langsmith/administration-overview) for access control options.
**October 20-24, 2025**
## Observability and evaluations
### Insights
* The [Insights Agent](/langsmith/insights) is now generally available for Plus and Enterprise plans. It analyzes production traces to surface usage patterns, agent behaviors, and failure modes, with usage-pattern clustering, poor-interaction analysis, and custom grouping and filtering.
### Datasets and experiments
* [Multi-turn evals](/langsmith/online-evaluations-multi-turn) measure end-to-end agent conversations across multiple exchanges, scoring semantic intent, semantic outcomes, and agent trajectory, including tool calls and decisions.
**October 13-17, 2025**
## Observability and evaluations
### Datasets and experiments
* [Dataset creation](/langsmith/manage-datasets) now infers schema automatically from uploaded CSV and JSONL files, supports adding metadata fields during upload, supports column mapping and renaming, and supports bulk additions to existing datasets from new uploads.
## Deployment
* LangGraph Platform is now [LangSmith Deployment](/langsmith/deployment) and LangGraph Studio is now [LangSmith Studio](/langsmith/studio). LangSmith now spans three services: Observability, Evaluation, and Deployment. Existing deployments, APIs, workflows, pricing, and contracts are unchanged, and no action is required.
**October 6-10, 2025**
## Observability and evaluations
### Datasets and experiments
* You can now write custom code [evaluators](/langsmith/evaluators) in JavaScript in addition to Python, so TypeScript teams can stay in their ecosystem end to end.
**September 22-26, 2025**
## Observability and evaluations
### Datasets and experiments
* [Composite evaluators](/langsmith/online-evaluations-composite) combine multiple evaluator scores into a single metric using a weighted average or weighted sum, with customizable weights.
**September 8-12, 2025**
## Admin and billing
### Administration
* You can now create service keys at the [organization level](/langsmith/administration-overview), scoped to multiple workspaces or the entire organization, and assign roles, including custom roles, for granular permissions.
**August 25-29, 2025**
## Deployment
* [LangSmith Deployment](/langsmith/deployment) now queues revisions automatically, processing each new revision only after the current one finishes to prevent overlapping deployments and conflicts.
**August 11-15, 2025**
## Deployment
* [Studio](/langsmith/studio) now includes Trace Mode, which shows your LangSmith traces directly in Studio and supports annotating runs and adding them to datasets for evaluation.
**July 28 - August 1, 2025**
## Observability and evaluations
### Datasets and experiments
* Align Evals provides a playground-like interface for iterating on [evaluator](/langsmith/evaluators) prompts and comparing human-graded scores side by side with LLM-generated scores to surface misaligned cases.
## Deployment
* LangSmith now links traces to the server logs in [LangSmith Deployment](/langsmith/deployment), so you can open user and system logs directly from a trace.
**July 21-25, 2025**
## Observability and evaluations
### Tracing
* [Data export](/langsmith/data-export) now supports scheduled exports of traces, so external systems such as data warehouses, monitoring platforms, and dashboards stay in sync without custom infrastructure.
**July 7-11, 2025**
## Deployment
* A new Monitoring tab shows [deployment](/langsmith/deployment) metrics, including CPU and memory usage, API request latency, and active run counts, over a customizable time range.
**June 30 - July 4, 2025**
## Observability and evaluations
### Datasets and experiments
* You can now create custom views of [evaluation results](/langsmith/analyze-an-experiment) by breaking fields from inputs, outputs, and reference outputs into their own columns, hiding or reordering columns, and adjusting decimal precision on feedback scores.
## Admin and billing
### Administration
* LangSmith [API keys](/langsmith/administration-overview) now support expiration dates, so you can scope access for temporary tasks or team members.
**June 16-20, 2025**
## Observability and evaluations
### Prompts and playground
* The [Playground](/langsmith/playground-model-providers) now supports calling built-in tools from OpenAI and Anthropic, such as web search and MCP, so you can verify tool selection and argument passing.
## Deployment
* [Studio](/langsmith/studio) now lets you run agent evaluations in the UI without code, comparing against reference outputs and grading responses with custom criteria.
**June 2-6, 2025**
## Observability and evaluations
### Cost tracking
* [Cost tracking](/langsmith/cost-tracking) now accounts for cached tokens, multiple token modalities such as text and image, and reasoning tokens, and supports tracking costs for arbitrary token types.
**May 26-30, 2025**
## Observability and evaluations
### Prompts and playground
* [Prompts](/langsmith/prompt-context-hub#prompts) now support webhook triggers that sync a prompt to external systems such as GitHub, databases, or CI/CD pipelines when it is updated.
**May 19-23, 2025**
## Deployment
* Every agent deployed on [LangSmith](/langsmith/deployment) now exposes its own Model Context Protocol (MCP) endpoint, so the agent can be used as a tool in any client that supports streamable HTTP for MCP, with no custom code or infrastructure.
## Admin and billing
### Usage and billing
* SaaS customers can now view monthly [usage charts](/langsmith/granular-usage) that track all billable metrics in one place.
**May 12-16, 2025**
## Observability and evaluations
### Monitoring and alerting
* [Agent observability](/langsmith/observability) surfaces tool calls and run stats, including the most-used tools and runs, their latency, and which generate the most errors.
## Deployment
* LangGraph Platform, now [LangSmith Deployment](/langsmith/deployment), reached general availability for deploying and managing long-running, stateful agents at scale, with one-click GitHub-to-production deployment, integrated memory and persistence, scalable APIs, and an agent registry across cloud, hybrid, self-hosted, and developer deployment options.
* [Studio](/langsmith/studio) v2 runs locally without the desktop app, supports editing prompts and configuration in the UI, integrates with the Playground, and lets you download production traces to debug them locally.
**May 5-9, 2025**
## Observability and evaluations
### Tracing
* LangSmith now supports [multimodal content](/langsmith/log-multimodal-traces) for images, PDFs, and audio across the playground, annotation queues, and datasets, including attaching files to dataset examples without base64 encoding and visualizing the content in the app.
**April 21-25, 2025**
## Observability and evaluations
### Monitoring and alerting
* [Alerts](/langsmith/alerts) send real-time notifications on error rates, run latency, and feedback scores, so you can catch production failures proactively.
**March 31 - April 4, 2025**
## Observability and evaluations
### Prompts and playground
* The [Playground](/langsmith/playground-model-providers) now lets you create datasets inline and add examples to existing datasets without leaving the Playground.
**March 24-28, 2025**
## Observability and evaluations
### Tracing
* LangSmith now has end-to-end native [OpenTelemetry support](/langsmith/trace-with-opentelemetry) for LangChain and LangGraph applications, including distributed tracing across microservices.
### Datasets and experiments
* You can now define [evaluators](/langsmith/evaluators) for datasets and tracing projects directly in the UI with no code, including LLM-as-a-judge evaluators with prebuilt templates, customizable prompts, variable mapping, scoring, and few-shot support.
**March 17-21, 2025**
## Deployment
* [Studio](/langsmith/studio) now lets you view and edit node logic in the UI by tagging configuration fields with `langgraph_nodes`, edit prompts without code changes, and sync Playground experiments back to the graph.
**March 10-14, 2025**
## Observability and evaluations
### Tracing
* LangSmith now supports tracing [OpenAI Agents SDK](/langsmith/trace-with-openai-agents-sdk) applications with two lines of code, for step-by-step observability of agent execution and reasoning.
### Datasets and experiments
* You can now rename an [experiment](/langsmith/analyze-an-experiment) in the UI, either from the Playground table header after a run or with the pencil icon in the Experiments view.
**February 24-28, 2025**
## Observability and evaluations
### Datasets and experiments
* You can now group [experiment results](/langsmith/analyze-an-experiment) by metadata to analyze evaluation performance across segments such as user groups or subject areas.
## Fixes
* A new ingest-backend service separates trace ingestion from frontend request handling, improving average request processing and high-traffic response times.
**February 17-21, 2025**
## Observability and evaluations
### Prompts and playground
* The [Playground](/langsmith/playground-model-providers) can now use workspace secrets saved in LangSmith, for consistent credential management across environments.
**February 3-7, 2025**
## Observability and evaluations
### Datasets and experiments
* A new [experiment view](/langsmith/analyze-an-experiment) gives each feedback key its own column and adds filtering, sorting, and a heat map to spot patterns and performance areas.
## Deployment
* You can now open LLM runs from [Studio](/langsmith/studio) in the LangSmith Playground for debugging, visualization, and prompt experimentation within threads.
**January 27-31, 2025**
## Observability and evaluations
### Tracing
* [Traces](/langsmith/view-traces) now include a waterfall graph that highlights latency bottlenecks and shows which components run in parallel versus sequentially.
**January 20-24, 2025**
## Observability and evaluations
### Prompts and playground
* The [Playground](/langsmith/playground-model-providers) adds a streamlined prompt settings UI, a default model configuration, an enhanced tool management modal, and improved side-by-side comparison.
### Datasets and experiments
* New [Pytest and Vitest integrations](/langsmith/pytest) let you run evaluations using familiar testing frameworks, with debugging, metrics tracking, and built-in evaluation functions.
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/changelog.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# LangSmith Chat
Source: https://docs.langchain.com/langsmith/chat
Use Chat in LangSmith to analyze traces, threads, prompts, and evaluations.
**LangSmith Chat** (formerly Polly) is built directly into your LangSmith [workspace](/langsmith/administration-overview#workspaces) to help you analyze and understand your application data.
Chat helps you gain insight from your traces, conversation threads, and prompts without having to dig through data manually. By asking natural language questions, you can quickly understand agent performance, debug issues, and analyze user sentiment.
 Chat appears in the right-hand bottom corner of the following locations within [LangSmith UI](https://smith.langchain.com?utm_source=docs\&utm_medium=cta\&utm_campaign=langsmith-signup\&utm_content=langsmith-chat):
\
\
**Observability & Debugging:**
* [Projects](#projects): Browse and filter runs across a project.
* [Trace pages](#trace-pages): Analyze individual runs and execution traces.
* [Thread views](#thread-views): Understand conversation threads and user interactions.
* [Engine](#engine): Investigate detected issues and their linked traces.
**Prompt Engineering:**
* [Playground](#playground): Edit and optimize prompts.
* [Prompt Hub pages](#prompt-hub-pages): Explore and understand shared prompts.
**Evaluation & Testing:**
* [Dataset Experiments](#dataset-experiments): Analyze experiment results and compare runs.
* [Dataset Examples](#dataset-examples): Browse and understand dataset structure.
* [Annotation Queues](#annotation-queues): Review runs and make informed annotation decisions.
* [Evaluators](#evaluators): Build and refine evaluators with AI assistance.

## Get started
Before you start using Chat, you need to add an API key for the model you're using:
In the [LangSmith UI](https://smith.langchain.com?utm_source=docs\&utm_medium=cta\&utm_campaign=langsmith-signup\&utm_content=snippets-langsmith-set-workspace-secrets), ensure that your API key is set as a [workspace secret](/langsmith/set-up-hierarchy#configure-workspace-settings).
Adding workspace secrets requires permission to manage secrets in the workspace. If you do not have it, ask a workspace admin to add the secret for you or to grant you access.
To add a workspace secret:
1. Navigate to **Settings** > **Integrations** > **Provider secrets**.
2. Select **+ Secret**.
3. Under **Provider**, select your model provider. LangSmith names the secret with the environment variable the provider expects, such as `OPENAI_API_KEY`. Enter your secret in that field.
If your provider is not listed, leave **Custom** as the provider. Enter the environment variable name your provider expects as the **Key** and your API key as the **Value**.
4. Select **Save**.
> [!NOTE]
>
> If your provider authenticates with OAuth2 `client_credentials`, configure the credentials on the model configuration instead. Workspace secrets are not required in that case. See [OAuth client credentials](/langsmith/model-configurations#oauth-client-credentials).
> [!NOTE]
>
> Chat calls model providers from LangSmith's egress IP addresses. If your model provider (or a proxy in front of it) restricts traffic by IP, allowlist the LangSmith egress IPs listed in [Allowlist IP addresses](/langsmith/cloud-platform-features#allowlist-ip-addresses).
### Supported models
Chat supports the following model providers out of the box:
* Anthropic (Claude)
* OpenAI
* Google Gemini
* AWS Bedrock
* Groq
* Mistral
* xAI
* DeepSeek
* Fireworks AI
You can also use any custom model you've configured in [Playground Settings](/langsmith/prompt-engineering-concepts#playground) by enabling the **Available in Chat** toggle on that configuration. Workspace admins manage which custom models are available.
### Keyboard shortcuts
| Action | Mac | Windows/Linux |
| - | - | - |
| Toggle Chat open/closed | `Cmd+I` | `Ctrl+I` |
| Clear current thread | `Cmd+Shift+O` | `Ctrl+Shift+O` |
## Observability
### Projects
On a project's run list, Chat can browse and filter runs across the entire project, create datasets, and add examples. Use Chat to quickly explore what's happening across your traces without manually paging through results.
**Example questions:**
* "Show me all the failed runs from the last 24 hours"
* "Which runs took the longest?"
* "Add the failing runs to my test dataset"
* "How many runs errored this week?"
### Trace pages
On an individual [trace](/langsmith/observability-concepts#traces), Chat analyzes the [run](/langsmith/observability-concepts#runs) data and execution trajectory. Chat examines the full trace context, including [run metadata](/langsmith/observability-concepts#metadata), inputs, outputs, intermediate steps, and configuration to help you understand what happened and identify areas for improvement.
**Example questions:**
* "Is there anything that the agent could have done better here?"
* "Why did this run fail?"
* "What took the most time in this trace?"
* "Summarize what happened in this trace"
### Thread views
Under the **Threads** tab, Chat analyzes conversation [threads](/langsmith/observability-concepts#threads) to help you understand user sentiment, conversation outcomes, and interaction patterns. Use Chat to identify user pain points and understand whether issues were resolved.
**Example questions:**
* "Did the user seem frustrated?"
* "What issues is the user experiencing?"
* "Was the user's problem solved?"
* "What was the main topic of this thread?"
### Engine
On the [Engine](/langsmith/engine-issues) page, open Chat to investigate detected issues and their linked traces. Chat can help you understand the selected issue, or answer questions across multiple Engine issues. For example:
**Example questions:**
* "What went wrong?"
* "Why was this flagged?"
* "Explain the proposed fix"
* "What are my most pressing issues?"
* "How many new issues do I have?"
## Prompt engineering
### Playground
In the [Playground](/langsmith/prompt-engineering-concepts#playground), Chat helps you edit and optimize your [prompts](/langsmith/prompt-engineering-concepts#prompts-in-langsmith). Use automated options like **Optimize prompt**, **Generate a tool**, or **Generate an output schema**, or give Chat custom instructions for editing your prompt. Chat can directly modify the playground state—updating messages, tools, output schemas, and examples—so you can iterate on prompts conversationally.
**Example questions:**
* "Make it respond in Italian"
* "Add more context about the user's role"
* "Make the tone more professional"
* "Simplify the instructions"
### Prompt Hub pages
When viewing a prompt in the [LangSmith Hub](/langsmith/prompt-engineering-concepts#prompts-in-langsmith), Chat helps you understand the prompt's structure, messages, tools, and configuration. This is useful for exploring and learning from shared prompts.
**Example questions:**
* "What does this prompt do?"
* "What tools does this prompt use?"
* "Explain the structure of this prompt"
* "What are the key instructions in this prompt?"
## Evaluation
### Dataset Experiments
On the **Datasets** page under the **Experiments** tab, Chat analyzes experiment results and helps you compare runs across different experiments. Chat can identify patterns, summarize performance, and help you understand which approaches work best.
**Example questions:**
* "Which experiment performed best?"
* "What are the main differences between these runs?"
* "Summarize the results of this experiment"
* "What patterns do you see in the failures?"
### Dataset Examples
On the **Datasets** page under the **Examples** tab, Chat helps you understand your dataset structure, browse examples, and identify data patterns. This is useful for understanding what data you're working with and preparing datasets for experiments.
**Example questions:**
* "What type of data is in this dataset?"
* "Show me examples with errors"
* "What patterns do you see in the inputs?"
* "How many examples are in this dataset?"
### Annotation Queues
In **Annotation Queues**, Chat helps you analyze runs before making annotation decisions. Whether you're reviewing runs individually or comparing them pairwise, Chat provides insights into run behavior, errors, and execution patterns to inform your scoring.
**Example questions:**
* "What went wrong in this run?"
* "Summarize what happened in this run"
* "Compare these two runs"
* "What should I consider when scoring this?"
### Evaluators
In the **Evaluators** builder, Chat helps you write and refine evaluator logic. Chat can generate evaluator code, suggest improvements, and help you test your evaluator against examples.
**Example questions:**
* "Write an evaluator that checks for hallucinations"
* "Improve the accuracy of this evaluator"
* "What does this evaluator check for?"
* "Add handling for edge cases"
## What's next
Learn more about the features that Chat helps you explore:
> [card] [Observability](/langsmith/observability)
>
> Learn more about tracing and monitoring your LLM applications
> [card] [Threads](/langsmith/threads)
>
> Understand how threads work in LangSmith
> [card] [Prompt Engineering](/langsmith/prompt-context-hub#prompts)
>
> Create and iterate on prompts in the Playground
> [card] [Evaluation](/langsmith/evaluation)
>
> Evaluate and test your applications systematically
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/chat.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# Implement a CI/CD pipeline using LangSmith Agent Server and Evaluation
Source: https://docs.langchain.com/langsmith/cicd-pipeline-example
This guide demonstrates how to implement a comprehensive CI/CD pipeline for AI agent applications deployed in LangSmith Agent Server. In this example, you'll use the [LangGraph](/oss/python/langgraph/overview) open source framework for orchestrating and building the agent, [LangSmith](/langsmith/observability) for observability and evaluations. This pipeline is based on the [cicd-pipeline-example repository](https://github.com/langchain-ai/cicd-pipeline-example).
## Overview
The CI/CD pipeline provides:
* **Automated testing**: Unit, integration, and end-to-end tests.
* **Offline evaluations**: Performance assessment using [AgentEvals](/oss/python/langchain/test/evals), [OpenEvals](/langsmith/openevals#setup) and [LangSmith](/langsmith/observability).
* **Preview and production deployments**: Automated staging and quality-gated production releases using the Control Plane API.
* **Monitoring**: Continuous evaluation and alerting.
## Pipeline architecture
The CI/CD pipeline consists of several key components that work together to ensure code quality and reliable deployments:
```mermaid theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
graph TD
A1[Code or Graph Change] --> B1[Trigger CI Pipeline]
A2[Prompt Commit in PromptHub] --> B1
A3[Online Evaluation Alert] --> B1
A4[PR Opened] --> B1
subgraph "Testing"
B1 --> C1[Run Unit Tests]
B1 --> C2[Run Integration Tests]
B1 --> C3[Run End to End Tests]
B1 --> C4[Run Offline Evaluations]
C4 --> D1[Evaluate with OpenEvals or AgentEvals]
C4 --> D2[Assertions: Hard and Soft]
C1 --> E1[Run LangGraph Dev Server Test]
C2 --> E1
C3 --> E1
D1 --> E1
D2 --> E1
end
E1 --> F1[Push to Staging Deployment - Deploy to LangSmith as Development Type]
F1 --> G1[Run Online Evaluations on Live Data]
G1 --> H1[Attach Scores to Traces]
H1 --> I1[If Quality Below Threshold]
I1 --> J1[Send to Annotation Queue]
I1 --> J2[Trigger Alert via Webhook]
I1 --> J3[Push Trace to Golden Dataset]
F1 --> K1[Promote to Production if All Pass - Deploy to LangSmith Production]
J2 --> L1[Slack or PagerDuty Notification]
subgraph Manual Review
J1 --> M1[Human Labeling]
M1 --> J3
end
classDef trigger fill:#F6FFDB,stroke:#6E8900,stroke-width:2px,color:#2E3900
classDef process fill:#E5F4FF,stroke:#006DDD,stroke-width:2px,color:#030710
classDef decision fill:#FDF3FF,stroke:#7E65AE,stroke-width:2px,color:#504B5F
classDef output fill:#EBD0F0,stroke:#885270,stroke-width:2px,color:#441E33
classDef alert fill:#F8E8E6,stroke:#B27D75,stroke-width:2px,color:#634643
classDef neutral fill:#F2FAFF,stroke:#40668D,stroke-width:2px,color:#2F4B68
class A1,A2,A3,A4 trigger
class B1,C1,C2,C3,C4,D1,D2,E1 process
class H1,I1 decision
class F1,G1,K1 output
class J2,L1 alert
class J1,J3,M1 neutral
```
### Trigger sources
There are multiple ways you can trigger this pipeline, either during development or if your application is already live. The pipeline can be triggered by:
* **Code changes**: Pushes to main/development branches where you can modify the LangGraph architecture, try different models, update agent logic, or make any code improvements.
* **PromptHub updates**: Changes to prompt templates stored in LangSmith PromptHub—whenever there's a new prompt commit, the system triggers a webhook to run the pipeline.
* **Online evaluation alerts**: Performance degradation notifications from live Agent Servers
* **LangSmith traces webhooks**: Automated triggers based on trace analysis and performance metrics.
* **Manual trigger**: Manual initiation of the pipeline for testing or emergency deployments.
### Testing layers
Compared to traditional software, testing AI agent applications also requires assessing response quality, so it is important to test each part of the workflow. The pipeline implements multiple testing layers:
1. **Unit tests**: Individual node and utility function testing.
2. **Integration tests**: Component interaction testing.
3. **End-to-end tests**: Full graph execution testing.
4. **Offline evaluations**: Performance assessment with real-world scenarios including end-to-end evaluations, single-step evaluations, agent trajectory analysis, and multi-turn simulations.
5. **LangGraph dev server tests**: Use the [langgraph-cli](/langsmith/cli) tool for spinning up (inside the GitHub Action) a local server to run the LangGraph agent. This polls the `/ok` server API endpoint until it is available and for 30 seconds, after that it throws an error.
## GitHub actions workflow
The CI/CD pipeline uses GitHub Actions with the [Control Plane API](/langsmith/api-ref-control-plane) and [LangSmith API](/langsmith/smith-api-ref) to automate deployment. A helper script manages API interactions and deployments: [https://github.com/langchain-ai/cicd-pipeline-example/blob/main/.github/scripts/langgraph_api.py](https://github.com/langchain-ai/cicd-pipeline-example/blob/main/.github/scripts/langgraph_api.py).
The workflow includes:
* **New agent deployment**: When a new PR is opened and tests pass, a new preview Agent Server is created using the [Control Plane API](/langsmith/api-ref-control-plane). This allows you to test the agent in a staging environment before promoting to production.
* **Agent deployment revision**: A revision happens when an existing Agent Server with the same ID is found, or when the PR is merged into main. In the case of merging to main, the preview Agent Server is deleted and a production Agent Server is created. This ensures that any updates to the agent are properly deployed and integrated into the production infrastructure.

* **Testing and evaluation workflow**: In addition to the more traditional testing phases (unit tests, integration tests, end-to-end tests, etc.), the pipeline includes [offline evaluations](/langsmith/evaluation-concepts#offline-evaluations) and [Agent dev server testing](/langsmith/local-dev-testing) because you want to test the quality of your agent. These evaluations provide comprehensive assessment of the agent's performance using real-world scenarios and data.

> [accordion] Final Response Evaluation
>
> Evaluates the final output of your agent against expected results. This is the most common type of evaluation that checks if the agent's final response meets quality standards and answers the user's question correctly.
> [accordion] Single Step Evaluation
>
> Tests individual steps or nodes within your LangGraph workflow. This allows you to validate specific components of your agent's logic in isolation, ensuring each step functions correctly before testing the full pipeline.
> [accordion] Agent Trajectory Evaluation
>
> Analyzes the complete path your agent takes through the graph, including all intermediate steps and decision points. This helps identify bottlenecks, unnecessary steps, or suboptimal routing in your agent's workflow. It also evaluates whether your agent invoked the right tools in the right order or at the right time.
> [accordion] Multi-Turn Evaluation
>
> Tests conversational flows where the agent maintains context across multiple interactions. This is crucial for agents that handle follow-up questions, clarifications, or extended dialogues with users.
See the [LangGraph testing documentation](/oss/python/langgraph/test) for specific testing approaches and the [evaluation approaches guide](/langsmith/evaluation-approaches) for a comprehensive overview of offline evaluations.
### Prerequisites
Before setting up the CI/CD pipeline, ensure you have:
* An AI agent application (in this case built using [LangGraph](/oss/python/langgraph/overview))
* A [LangSmith account](https://smith.langchain.com?utm_source=docs\&utm_medium=cta\&utm_campaign=langsmith-signup\&utm_content=langsmith-cicd-pipeline-example)
* A [LangSmith API key](/langsmith/create-account-api-key) needed to deploy agents and retrieve experiment results
* Project-specific environment variables configured in your repository secrets (e.g., LLM model API keys, vector store credentials, database connections)
> [!NOTE]
>
> While this example uses GitHub, the CI/CD pipeline works with other Git hosting platforms including GitLab, Bitbucket, and others.
## Deployment options
LangSmith supports multiple deployment methods, depending on how your [LangSmith instance is hosted](/langsmith/platform-setup):
* **Cloud LangSmith**: Direct GitHub integration.
* **Self-Hosted/Hybrid**: Container registry-based deployments.
The deployment flow starts by modifying your agent implementation. At minimum, you must have a [`langgraph.json`](/langsmith/application-structure) and dependency file in your project (`requirements.txt` or `pyproject.toml`). Use the `langgraph dev` CLI tool to check for errors—fix any errors; otherwise, the deployment will succeed when deployed to LangSmith Agent Server.
```mermaid actions={false} theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
graph TD
A[Agent Implementation] --> B[langgraph.json + dependencies]
B --> C[Test Locally with langgraph dev]
C --> D{Errors?}
D -->|Yes| E[Fix Issues]
E --> C
D -->|No| F[Choose LangSmith Instance]
F --> G[Cloud LangSmith]
F --> H[Self-Hosted/Hybrid LangSmith]
subgraph "Cloud LangSmith"
G --> I[Method 1: Connect GitHub Repo in UI]
G --> J[Method 2: Control Plane API with GitHub Repo]
I --> K[Deploy via LangSmith UI]
J --> L[Deploy via Control Plane API]
end
subgraph "Self-Hosted/Hybrid LangSmith"
H --> S[Build Docker Image langgraph build]
S --> T[Push to Container Registry]
T --> U{Deploy via?}
U -->|UI| V[Specify Image URI in UI]
U -->|API| W[Use Control Plane API]
V --> X[Deploy via LangSmith UI]
W --> Y[Deploy via Control Plane API]
end
K --> AA[Agent Ready for Use]
L --> AA
X --> AA
Y --> AA
AA --> BB{Connect via?}
BB -->|LangGraph SDK| CC[Use LangGraph SDK]
BB -->|RemoteGraph| DD[Use RemoteGraph]
BB -->|REST API| EE[Use REST API]
BB -->|LangGraph Studio UI| FF[Use LangGraph Studio UI]
classDef trigger fill:#F6FFDB,stroke:#6E8900,stroke-width:2px,color:#2E3900
classDef process fill:#E5F4FF,stroke:#006DDD,stroke-width:2px,color:#030710
classDef decision fill:#FDF3FF,stroke:#7E65AE,stroke-width:2px,color:#504B5F
classDef output fill:#EBD0F0,stroke:#885270,stroke-width:2px,color:#441E33
class A trigger
class B,C process
class D,U,BB decision
class E process
class F decision
class G,H process
class I,J,S,T process
class K,L,V,W process
class X,Y,AA output
class CC,DD,EE,FF output
```
### Prerequisites for manual deployment
Before deploying your agent, ensure you have:
1. **LangGraph graph**: Your agent implementation (e.g., `./agents/simple_text2sql.py:agent`).
2. **Dependencies**: Either `requirements.txt` or `pyproject.toml` with all required packages.
3. **Configuration**: `langgraph.json` file specifying:
* Path to your agent graph
* Dependencies location
* Environment variables
* Python version
Example `langgraph.json`:
```json theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
{
"graphs": {
"simple_text2sql": "./agents/simple_text2sql.py:agent"
},
"env": ".env",
"python_version": "3.11",
"dependencies": ["."],
"image_distro": "wolfi"
}
```
### Local development and testing

First, test your agent locally using [Studio](/langsmith/studio):
```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
# Start local development server with Studio
langgraph dev
```
This will:
* Spin up a local server with Studio.
* Allow you to visualize and interact with your graph.
* Validate that your agent works correctly before deployment.
> [!NOTE]
>
> If your agent runs locally without any errors, it means that deployment to LangSmith will likely succeed. This local testing helps catch configuration issues, dependency problems, and agent logic errors before attempting deployment.
See the [LangGraph CLI documentation](/langsmith/cli#dev) for more details.
### Method 1: LangSmith Agent Server UI
Deploy your agent using the LangSmith Agent Server UI:
1. Go to your [LangSmith dashboard](https://smith.langchain.com?utm_source=docs\&utm_medium=cta\&utm_campaign=langsmith-signup\&utm_content=langsmith-cicd-pipeline-example).
2. Navigate to the **Agent Servers** section.
3. Click the **+ Agent Server** button in the top right.
4. Select your GitHub repository containing your LangGraph agent from the dropdown menu.
**Supported deployments:**
* **Cloud LangSmith**: Direct GitHub integration with dropdown menu
* **Self-Hosted/Hybrid LangSmith**: Specify your image URI in the Image Path field (e.g., `docker.io/username/my-agent:latest`)
> [!NOTE]
>
> **Benefits:**
>
> * Simple UI-based deployment
> * Direct integration with your GitHub repository (cloud)
> * No manual Docker image management required (cloud)
### Method 2: Control plane API
Deploy using the Control Plane API with different approaches for each deployment type:
**For Cloud LangSmith:**
* Use the Control Plane API to create deployments by pointing to your GitHub repository
* No Docker image building required for cloud deployments
**For Self-Hosted/Hybrid LangSmith:**
```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
# Build Docker image
langgraph build -t my-agent:latest
# Push to your container registry
docker push my-agent:latest
```
You can push to any container registry (Docker Hub, AWS ECR, Azure ACR, Google GCR, etc.) that your deployment environment has access to.
**Supported deployments:**
* **Cloud LangSmith**: Use the Control Plane API to create deployments from your GitHub repository
* **Self-Hosted/Hybrid LangSmith**: Use the Control Plane API to create deployments from your container registry
See the [LangGraph CLI build documentation](/langsmith/cli#build) for more details.
### Connect to your deployed Agent
* **[LangGraph SDK](/langsmith/langgraph-python-sdk)**: Use the LangGraph SDK for programmatic integration.
* **[RemoteGraph](/langsmith/use-remote-graph)**: Connect using RemoteGraph for remote graph connections (to use your graph in other graphs).
* **[REST API](/langsmith/server-api-ref)**: Use HTTP-based interactions with your deployed agent.
* **[Studio](/langsmith/studio)**: Access the visual interface for testing and debugging.
### Environment configuration
#### Database & cache configuration
By default, Agent Server hosting provisions PostgreSQL and Redis instances for you. To use external services, set the following environment variables in your new Agent Server or revision:
```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
# Set environment variables for external services
export POSTGRES_URI_CUSTOM="postgresql://user:pass@host:5432/db"
export REDIS_URI_CUSTOM="redis://host:6379/0"
```
See the [environment variables documentation](/langsmith/env-var-self-hosted) for more details.
## Troubleshooting
### Wrong API endpoints
If you're experiencing connection issues, verify you're using the correct endpoint format for your LangSmith instance. There are two different APIs with different endpoints:
#### LangSmith API (Traces, ingestion, etc.)
For LangSmith API operations (traces, evaluations, datasets):
| Region |
URL
|
| GCP US |
`https://api.smith.langchain.com`
|
| GCP EU |
`https://eu.api.smith.langchain.com`
|
| GCP APAC |
`https://apac.api.smith.langchain.com`
|
| AWS US |
`https://aws.api.smith.langchain.com`
|
| Azure US |
`https://azure.api.smith.langchain.com` |
For self-hosted LangSmith instances, use `http(s):///api` where `` is your self-hosted instance URL.
> [!NOTE]
>
> If you set the endpoint in the `LANGSMITH_ENDPOINT` environment variable, use the API URL, such as `https://api.smith.langchain.com` or `http(s):///api` if self-hosted.
#### Control Plane API (Agent Server deployments)
For control plane operations (Agent Server deployments and revisions):
| Region |
URL
|
| GCP US |
`https://api.host.langchain.com`
|
| GCP EU |
`https://eu.api.host.langchain.com`
|
| GCP APAC |
`https://apac.api.host.langchain.com`
|
| AWS US |
`https://aws.api.host.langchain.com`
|
| Azure US |
`https://azure.api.host.langchain.com` |
For self-hosted LangSmith instances, use `http(s):///api-host` where `` is your self-hosted instance URL.
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/cicd-pipeline-example.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# LangGraph CLI
Source: https://docs.langchain.com/langsmith/cli
**LangGraph CLI** is a command-line tool for building and running the [Agent Server](/langsmith/agent-server) locally. The resulting server exposes all API endpoints for runs, threads, assistants, etc., and includes supporting services such as a managed database for checkpointing and storage.
## Installation
1. Ensure Docker is installed (e.g., `docker --version`).
2. Install the CLI:
```bash [Python (pip)] theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
pip install langgraph-cli
```
```bash JavaScript theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
# Use latest on demand
npx @langchain/langgraph-cli
# Or install globally (available as `langgraphjs`)
npm install -g @langchain/langgraph-cli
```
3. Verify the install
```bash [Python (pip)] theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
langgraph --help
```
```bash JavaScript theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
npx @langchain/langgraph-cli --help
```
### Quick commands
| Command | What it does |
| - | - |
| [`langgraph dev`](#dev) | Starts a lightweight local dev server (no Docker required), ideal for rapid testing. |
| [`langgraph build`](#build) | Builds a Docker image of your Agent Server for deployment. |
| [`langgraph deploy`](#deploy) | Builds and deploys a LangGraph image directly to LangSmith Agent Server in a single step. |
| [`langgraph dockerfile`](#dockerfile) | Emits a Dockerfile derived from your config for custom builds. |
| [`langgraph up`](#up) | Starts the Agent Server locally in Docker. Requires Docker running; LangSmith API key for local dev; license for production. |
For JS, use `npx @langchain/langgraph-cli ` (or `langgraphjs` if installed globally).
## Configuration file
To build and run a valid application, the LangGraph CLI requires a JSON configuration file that follows this [schema](https://raw.githubusercontent.com/langchain-ai/langgraph/refs/heads/main/libs/cli/schemas/schema.json). It contains the following properties:
> [!NOTE]
>
> The LangGraph CLI defaults to using the configuration file named **langgraph.json** in the current directory.
> [tab] Python
>
> | Key | Description |
> | - | - |
> | `dependencies` | **Required** unless [`source`](#configuration-file) is set. Array of dependencies for the Agent Server. Dependencies can be one of the following: - A single period (`"."`), which will look for local Python packages.
- The directory path where `pyproject.toml`, `setup.py` or `requirements.txt` is located. For example, if `requirements.txt` is located in the root of the project directory, specify `"./"`. If it's located in a subdirectory called `local_package`, specify `"./local_package"`. Do not specify the string `"requirements.txt"` itself.
- A Python package name.
|
> | `graphs` | **Required**. Mapping from graph ID to path where the compiled graph or a function that makes a graph is defined. Example: - `./your_package/your_file.py:variable`, where `variable` is an instance of `langgraph.graph.state.CompiledStateGraph`
- `./your_package/your_file.py:make_graph`, where `make_graph` is a function that takes a config dictionary (`langchain_core.runnables.RunnableConfig`) and returns an instance of `langgraph.graph.state.StateGraph` or `langgraph.graph.state.CompiledStateGraph`. See [how to rebuild a graph at runtime](/langsmith/graph-rebuild) for more details.
|
> | `auth` | *(Added in v0.0.11)* Authentication and authorization configuration. Contains: - `path` (required): Path to your authentication handler (e.g., `./your_package/auth.py:auth`), where `auth` is an instance of `langgraph_sdk.Auth`. See [authentication guide](/langsmith/auth).
- `disable_studio_auth` (optional): If `true`, Studio cannot use LangSmith auth as a fallback. Defaults to `false`.
- `allow_langsmith_api_keys` (optional, Agent Server v0.14.0rc2+): If `true`, run LangSmith API-key auth alongside custom auth. Requests with an `Authorization` header go to custom auth; all others go to LangSmith (`x-api-key`). Custom `@auth.on` handlers still run. Defaults to `false`.
- `openapi` (optional): Security schemes to document in OpenAPI. See [OpenAPI security](/langsmith/openapi-security).
|
> | `priority` | *(Added in v0.18.0)* Run priority configuration. Contains: - `path` (required): Path to your `Priority` instance (e.g., `./priority.py:priority`), where `priority` is an instance of `langgraph_sdk.Priority`. Requires `langgraph-cli>=0.4.38`.
See [Prioritize runs](/langsmith/run-priority). |
> | `base_image` | Optional. Base image to use for the Agent Server. Defaults to `langchain/langgraph-api` or `langchain/langgraphjs-api`. Use this to pin your builds to a particular version of the langgraph API, such as `"langchain/langgraph-server:0.2"`. See [https://hub.docker.com/r/langchain/langgraph-server/tags](https://hub.docker.com/r/langchain/langgraph-server/tags) for more details. (added in `langgraph-cli==0.2.8`) |
> | `image_distro` | Optional. Linux distribution for the base image. Must be one of `"debian"`, `"wolfi"`, `"bookworm"`, or `"bullseye"`. If omitted, defaults to `"debian"`. Available in `langgraph-cli>=0.2.11`. |
> | `env` | Path to `.env` file or a mapping from environment variable to its value. |
> | `store` | Configuration for adding semantic search and/or time-to-live (TTL) to the BaseStore. Contains the following fields: - `index` (optional): Configuration for semantic search indexing with fields `embed`, `dims`, and optional `fields`.
- `ttl` (optional): Configuration for item expiration. An object with optional fields: `refresh_on_read` (boolean, defaults to `true`), `default_ttl` (float, lifespan in **minutes**; applied to newly created items only; existing items are unchanged; defaults to no expiration), and `sweep_interval_minutes` (integer, how often to check for expired items, defaults to no sweeping).
|
> | `ui` | Optional. Named definitions of UI components emitted by the agent, each pointing to a JS/TS file. (added in `langgraph-cli==0.1.84`) |
> | `python_version` | `3.11`, `3.12`, or `3.13`. Defaults to `3.11`. |
> | `node_version` | Specify `node_version: 20` to use LangGraph.js. |
> | `pip_config_file` | Path to `pip` config file. |
> | `pip_installer` | *(Added in v0.3)* Optional. Python package installer selector for the `dependencies`-based install path. It can be set to `"auto"`, `"pip"`, or `"uv"`. From version 0.3 onward the default strategy is to run `uv pip`, which typically delivers faster builds while remaining a drop-in replacement. In the uncommon situation where `uv` cannot handle your dependency graph or the structure of your `pyproject.toml`, specify `"pip"` here to revert to the earlier behaviour. This field does not control whether the build uses a `uv.lock` file; use [`source`](#configuration-file) for lockfile installs. |
> | `source` | *(Added in `langgraph-cli>=0.4.20`)* Optional. Install Python dependencies from a [uv](https://docs.astral.sh/uv/) project or workspace lockfile instead of from `dependencies`. Object fields: - `kind` (required): Must be `"uv"`.
- `root` (optional): Path to the directory that contains `pyproject.toml` and `uv.lock`. Defaults to `"."` (next to `langgraph.json`). Use a relative path such as `"../.."` when `langgraph.json` lives inside a workspace member.
- `package` (optional): Workspace member package name to deploy when `root` is a uv workspace and the target is ambiguous.
Requires `python_version`. Mutually exclusive with `dependencies`: omit `dependencies` when `source` is set. The build runs `uv export --frozen` from the lockfile, then installs the exported requirements. Prefer this when the project already manages dependencies with uv so Cloud and local installs use the same pinned versions. |
> | `keep_pkg_tools` | *(Added in v0.3.4)* Optional. Control whether to retain Python packaging tools (`pip`, `setuptools`, `wheel`) in the final image. Accepted values: - `true` : Keep all three tools (skip uninstall).
- `false` / omitted : Uninstall all three tools (default behaviour).
- `list[str]` : Names of tools **to retain**. Each value must be one of "pip", "setuptools", "wheel".
. By default, all three tools are uninstalled. |
> | `dockerfile_lines` | Array of additional lines to add to Dockerfile following the import from parent image. |
> | `checkpointer` | Configuration for the checkpointer. Supports: - `backend` (optional): `"default"`, `"mongo"`, or `"custom"`. Defaults to `"default"` (PostgreSQL). See [Configure checkpointer backend](/langsmith/configure-checkpointer).
- `path` (optional): Path to a custom checkpointer factory (when `backend` is `"custom"`). See [Custom checkpointer](/langsmith/custom-checkpointer).
- `ttl` (optional): Object with `strategy`, `sweep_interval_minutes`, `default_ttl`, and `sweep_limit` (Agent Server v0.8+) controlling checkpoint expiry.
- `serde` (optional, Agent Server v0.5+): Object with `allowed_json_modules` and `pickle_fallback` to tune deserialization behavior.
|
> | `http` | HTTP server configuration with the following fields: - `app`: Path to custom Starlette/FastAPI app (e.g., `"./src/agent/webapp.py:app"`). See [custom routes guide](/langsmith/custom-routes).
- `cors`: CORS configuration with fields such as `allow_origins`, `allow_methods`, `allow_headers`, `allow_credentials`, `allow_origin_regex`, `expose_headers`, and `max_age`.
- `configurable_headers`: Define which request headers to expose as configurable values via `includes` / `excludes` patterns.
- `logging_headers`: Mirror of `configurable_headers` for excluding sensitive headers from logs.
- `middleware_order`: Choose how custom middleware and auth interact. `auth_first` runs authentication hooks before custom middleware, while `middleware_first` (default) runs your middleware first.
- `enable_custom_route_auth`: Apply auth checks to routes added through `app`.
- Route disable flags, which selectively turn off groups of built-in endpoints:
- `disable_meta`: Disables the `/` (root), `/info`, `/metrics`, `/docs`, and `/openapi.json` system routes. The `/ok` health check remains available.
- `disable_assistants`: Disables all `/assistants/*` routes.
- `disable_runs`: Disables all `/runs/*` routes.
- `disable_threads`: Disables all `/threads/*` routes.
- `disable_store`: Disables all `/store/*` routes.
- `disable_ui`: Disables all `/ui/*` routes.
- `disable_mcp`: Disables the `/mcp` endpoint. See [Disable MCP](/langsmith/server-mcp#disable-mcp).
- `disable_a2a`: Disables the `/a2a/*` endpoint. See [Disable A2A](/langsmith/server-a2a#disable-a2a).
- `disable_webhooks`: Disables webhook delivery on run completion (not a route toggle). See [Disable webhooks](/langsmith/use-webhooks#disable-webhooks).
- `mount_prefix`: Prefix for mounted routes (e.g., "/my-deployment/api").
|
> | `webhooks` | *(Added in v0.5.36)* Configuration for outbound webhook delivery. Contains: - `env_prefix`: Required prefix for environment variables referenced in header templates (defaults to `LG_WEBHOOK_`).
- `headers`: Static headers to include with webhook requests. Values may contain templates like `${{ env.VAR }}`.
- `url`: URL validation policy with `allowed_domains`, `allowed_ports`, `require_https`, `disable_loopback`, and `max_url_length`.
|
> | `api_version` | *(Added in v0.3.7)* Which semantic version of the Agent Server to use (e.g., `"0.3"`). Defaults to latest. Check the server [changelog](/langsmith/agent-server-changelog) for details on each release. |
> [tab] JS
>
> | Key | Description |
> | - | - |
> | `graphs` | **Required**. Mapping from graph ID to path where the compiled graph or a function that makes a graph is defined. Example: - `./src/graph.ts:variable`, where `variable` is an instance of [`CompiledStateGraph`](https://reference.langchain.com/python/langgraph/graph/state/CompiledStateGraph)
- `./src/graph.ts:makeGraph`, where `makeGraph` is a function that takes a config dictionary (`LangGraphRunnableConfig`) and returns an instance of [`StateGraph`](https://reference.langchain.com/python/langgraph/graph/state/StateGraph) or [`CompiledStateGraph`](https://reference.langchain.com/python/langgraph/graph/state/CompiledStateGraph). See [how to rebuild a graph at runtime](/langsmith/graph-rebuild) for more details.
|
> | `env` | Path to `.env` file or a mapping from environment variable to its value. |
> | `store` | Configuration for adding semantic search and/or time-to-live (TTL) to the BaseStore. Contains the following fields: - `index` (optional): Configuration for semantic search indexing with fields `embed`, `dims`, and optional `fields`.
- `ttl` (optional): Configuration for item expiration. An object with optional fields: `refresh_on_read` (boolean, defaults to `true`), `default_ttl` (float, lifespan in **minutes**; applied to newly created items only; existing items are unchanged; defaults to no expiration), and `sweep_interval_minutes` (integer, how often to check for expired items, defaults to no sweeping).
|
> | `node_version` | Specify `node_version: 20` to use LangGraph.js. |
> | `dockerfile_lines` | Array of additional lines to add to Dockerfile following the import from parent image. |
> | `checkpointer` | Configuration for the checkpointer. Supports: - `backend` (optional): `"default"`, `"mongo"`, or `"custom"`. Defaults to `"default"` (PostgreSQL). See [Configure checkpointer backend](/langsmith/configure-checkpointer).
- `path` (optional): Path to a custom checkpointer factory (when `backend` is `"custom"`). See [Custom checkpointer](/langsmith/custom-checkpointer).
- `ttl` (optional): Object with `strategy`, `sweep_interval_minutes`, `default_ttl`, and `sweep_limit` (Agent Server v0.8+) controlling checkpoint expiry.
- `serde` (optional, Agent Server v0.5+): Object with `allowed_json_modules` and `pickle_fallback` to tune deserialization behavior.
|
> | `http` | HTTP server configuration mirroring the Python options: - `cors` with `allow_origins`, `allow_methods`, `allow_headers`, `allow_credentials`, `allow_origin_regex`, `expose_headers`, `max_age`.
- `configurable_headers` and `logging_headers` pattern lists.
- `middleware_order` (`auth_first` or `middleware_first`).
- `enable_custom_route_auth` plus the same boolean route toggles as above.
|
> | `webhooks` | *(Added in v0.5.36)* Configuration for outbound webhook delivery. Contains: - `env_prefix`: Required prefix for environment variables referenced in header templates (defaults to `LG_WEBHOOK_`).
- `headers`: Static headers to include with webhook requests. Values may contain templates like `${{ env.VAR }}`.
- `url`: URL validation policy with `allowed_domains`, `allowed_ports`, `require_https`, `disable_loopback`, and `max_url_length`.
|
> | `api_version` | *(Added in v0.3.7)* Which semantic version of the LangGraph API server to use (e.g., `"0.3"`). Defaults to latest. Check the server [changelog](/langsmith/agent-server-changelog) for details on each release. |
### Examples
> [tab] Python
>
> #### Basic configuration
>
> ```json theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> {
> "$schema": "https://langgra.ph/schema.json",
> "dependencies": ["."],
> "graphs": {
> "chat": "chat.graph:graph"
> }
> }
> ```
>
> #### Install from a uv lockfile
>
> When the project already has a `uv.lock`, set `source.kind` to `"uv"` so image builds install the locked versions. Omit `dependencies` in this mode. The CLI exports requirements with `uv export --frozen` and installs them into the image.
>
> **Single-package project** (`pyproject.toml` and `uv.lock` next to `langgraph.json`):
>
> ```json theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> {
> "$schema": "https://langgra.ph/schema.json",
> "python_version": "3.12",
> "graphs": {
> "chat": "./src/agent/graph.py:graph"
> },
> "source": {
> "kind": "uv"
> }
> }
> ```
>
> **uv workspace** (`langgraph.json` inside a member; lockfile at the workspace root):
>
> ```json theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> {
> "$schema": "https://langgra.ph/schema.json",
> "python_version": "3.12",
> "graphs": {
> "chat": "./src/agent/graph.py:graph"
> },
> "source": {
> "kind": "uv",
> "root": "../..",
> "package": "agent"
> }
> }
> ```
>
> Without `source`, a `"dependencies": ["."]` build re-resolves packages from `pyproject.toml` at image build time and does not use `uv.lock`. Pin versions in `pyproject.toml` or use `source.kind: "uv"` when lockfile reproducibility matters.
>
> #### Using Wolfi base images
>
> You can specify the Linux distribution for your base image using the `image_distro` field. Valid options are `debian`, `wolfi`, `bookworm`, or `bullseye`. Wolfi is the recommended option as it provides smaller and more secure images. This is available in `langgraph-cli>=0.2.11`.
>
> ```json theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> {
> "$schema": "https://langgra.ph/schema.json",
> "dependencies": ["."],
> "graphs": {
> "chat": "chat.graph:graph"
> },
> "image_distro": "wolfi"
> }
> ```
>
> #### Adding semantic search to the store
>
> All Agent Servers come with a DB-backed BaseStore. Adding an "index" configuration to your `langgraph.json` will enable [semantic search](/langsmith/semantic-search) within the BaseStore of your Agent Server.
>
> The `index.fields` configuration determines which parts of your documents to embed:
>
> * If omitted or set to `["$"]`, the entire document will be embedded
> * To embed specific fields, use JSON path notation: `["metadata.title", "content.text"]`
> * Documents missing specified fields will still be stored but won't have embeddings for those fields
> * You can still override which fields to embed on a specific item at `put` time using the `index` parameter
>
> ```json theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> {
> "dependencies": ["."],
> "graphs": {
> "memory_agent": "./agent/graph.py:graph"
> },
> "store": {
> "index": {
> "embed": "openai:text-embedding-3-small",
> "dims": 1536,
> "fields": ["$"]
> }
> }
> }
> ```
>
> > [!NOTE]
> >
> > **Common model dimensions**
> >
> > * `openai:text-embedding-3-large`: 3072
> > * `openai:text-embedding-3-small`: 1536
> > * `openai:text-embedding-ada-002`: 1536
> > * `cohere:embed-english-v3.0`: 1024
> > * `cohere:embed-english-light-v3.0`: 384
> > * `cohere:embed-multilingual-v3.0`: 1024
> > * `cohere:embed-multilingual-light-v3.0`: 384
>
> #### Semantic search with a custom embedding function
>
> If you want to use semantic search with a custom embedding function, you can pass a path to a custom embedding function:
>
> ```json theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> {
> "dependencies": ["."],
> "graphs": {
> "memory_agent": "./agent/graph.py:graph"
> },
> "store": {
> "index": {
> "embed": "./embeddings.py:embed_texts",
> "dims": 768,
> "fields": ["text", "summary"]
> }
> }
> }
> ```
>
> The `embed` field in store configuration can reference a custom function that takes a list of strings and returns a list of embeddings. Example implementation:
>
> ```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> # embeddings.py
> def embed_texts(texts: list[str]) -> list[list[float]]:
> """Custom embedding function for semantic search."""
> # Implementation using your preferred embedding model
> return [[0.1, 0.2, ...] for _ in texts] # dims-dimensional vectors
> ```
>
> #### Adding custom authentication
>
> ```json theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> {
> "$schema": "https://langgra.ph/schema.json",
> "dependencies": ["."],
> "graphs": {
> "chat": "chat.graph:graph"
> },
> "auth": {
> "path": "./auth.py:auth",
> "openapi": {
> "securitySchemes": {
> "apiKeyAuth": {
> "type": "apiKey",
> "in": "header",
> "name": "X-API-Key"
> }
> },
> "security": [{ "apiKeyAuth": [] }]
> },
> "disable_studio_auth": false,
> "allow_langsmith_api_keys": false
> }
> }
> ```
>
> See the [authentication conceptual guide](/langsmith/auth) for details, and the [setting up custom authentication](/langsmith/set-up-custom-auth) guide for a practical walk through of the process.
>
> #### Configuring store item Time-to-Live
>
> You can configure default data expiration for items/memories in the BaseStore using the `store.ttl` key. This determines how long items are retained after they are last accessed (with reads potentially refreshing the timer based on `refresh_on_read`). Note that these defaults can be overwritten on a per-call basis by modifying the corresponding arguments in `get`, `search`, etc.
>
> The `ttl` configuration is an object containing optional fields:
>
> * `refresh_on_read`: If `true` (the default), accessing an item via `get` or `search` resets its expiration timer. Set to `false` to only refresh TTL on writes (`put`).
> * `default_ttl`: The default lifespan of an item in **minutes**. Applies only to newly created items; existing items are not modified. If not set, items do not expire by default.
> * `sweep_interval_minutes`: How frequently (in minutes) the system should run a background process to delete expired items. If not set, sweeping does not occur automatically.
>
> Here is an example enabling a 7-day TTL (10080 minutes), refreshing on reads, and sweeping every hour:
>
> ```json theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> {
> "$schema": "https://langgra.ph/schema.json",
> "dependencies": ["."],
> "graphs": {
> "memory_agent": "./agent/graph.py:graph"
> },
> "store": {
> "ttl": {
> "refresh_on_read": true,
> "sweep_interval_minutes": 60,
> "default_ttl": 10080
> }
> }
> }
> ```
>
> #### Configuring checkpoint Time-to-Live
>
> You can configure the time-to-live (TTL) for checkpoints using the `checkpointer` key. This determines how long checkpoint data is retained before being automatically handled according to the specified strategy (e.g., deletion). Two optional sub-objects are supported:
>
> * `ttl`: Includes `strategy`, `sweep_interval_minutes`, `default_ttl`, and `sweep_limit` (Agent Server v0.8+), which collectively set how checkpoints expire.
> * `serde` *(Agent Server v0.5+)* : Lets you control deserialization behavior for checkpoint payloads.
>
> Here's an example setting a default TTL of 30 days (43200 minutes):
>
> ```json theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> {
> "$schema": "https://langgra.ph/schema.json",
> "dependencies": ["."],
> "graphs": {
> "chat": "chat.graph:graph"
> },
> "checkpointer": {
> "ttl": {
> "strategy": "delete",
> "sweep_interval_minutes": 10,
> "default_ttl": 43200
> }
> }
> }
> ```
>
> In this example, checkpoints older than 30 days will be deleted, and the check runs every 10 minutes.
>
> #### Configuring checkpointer serde
>
> The `checkpointer.serde` object shapes deserialization:
>
> * `allowed_json_modules` defines an allow list for custom Python objects you want the server to be able to deserialize from payloads saved in "json" mode. This is a list of `[path, to, module, file, symbol]` sequences. If omitted, only LangChain-safe defaults are allowed. You can unsafely set to `true` to allow any module to be deserialized.
> * `pickle_fallback`: Whether to fall back to pickle deserialization when JSON decoding fails.
>
> ```json theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> {
> "checkpointer": {
> "serde": {
> "allowed_json_modules": [
> ["my_agent", "auth", "SessionState"]
> ]
> }
> }
> }
> ```
>
> #### Customizing HTTP middleware and headers
>
> The `http` block lets you fine-tune request handling:
>
> * `middleware_order`: Choose `"auth_first"` to run authentication before your middleware, or `"middleware_first"` (default) to invert that order.
> * `enable_custom_route_auth`: Extend authentication to routes you mount through `http.app`.
> * `configurable_headers` / `logging_headers`: Each accepts an object with optional `includes` and `excludes` arrays; wildcards are supported and exclusions run before inclusions.
> * `cors`: Customize your server's CORS (Cross-Origin Resource Sharing) configuration. Example `langgraph.json` file for configuring CORS:
>
> ```json theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> {
> ...
> "http": {
> "cors": {
> "allow_origins": ["https://example.com", "https://app.example.com"],
> "allow_methods": ["GET", "POST"],
> "allow_headers": ["Authorization", "Content-Type"],
> "allow_credentials": true,
> "allow_origin_regex": "^https://.*\\.example\\.com$",
> "expose_headers": ["x-pagination-total", "x-pagination-next", "x-request-id"],
> "max_age": 600
> }
> },
> ...
> }
> ```
>
> > [!NOTE]
> >
> > Customizing your server's CORS configuration will override the functionality of setting the [`CORS_ALLOW_ORIGINS` environment variable](/langsmith/env-var-cloud).
>
> #### Configuring webhooks
>
> You can configure custom headers and URL restrictions for outbound webhook requests:
>
> ```json theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> {
> "$schema": "https://langgra.ph/schema.json",
> "dependencies": ["."],
> "graphs": {
> "chat": "chat.graph:graph"
> },
> "webhooks": {
> "headers": {
> "Authorization": "Bearer ${{ env.LG_WEBHOOK_TOKEN }}"
> },
> "url": {
> "allowed_domains": ["*.mycompany.com"],
> "require_https": true
> }
> }
> }
> ```
>
> See [Use webhooks](/langsmith/use-webhooks#add-headers-to-webhook-requests) for details on header configuration, environment variable templating, and URL restrictions.
>
> #### Pinning API version
>
> *(Added in v0.3.7)*
>
> You can pin the API version of the Agent Server by using the `api_version` key. This is useful if you want to ensure that your server uses a specific version of the API.
> By default, builds for Agent Servers on Cloud use the latest stable version of the server. This can be pinned by setting the `api_version` key to a specific version.
>
> ```json theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> {
> "$schema": "https://langgra.ph/schema.json",
> "dependencies": ["."],
> "graphs": {
> "chat": "chat.graph:graph"
> },
> "api_version": "0.2"
> }
> ```
>
> #### Disabling built-in routes
>
> You can selectively disable groups of built-in HTTP routes using boolean flags in the `http` configuration block. This is useful for production Agent Servers where you want to minimize the server's exposed surface area.
>
> For example, to disable the system information and documentation routes:
>
> ```json theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> {
> "$schema": "https://langgra.ph/schema.json",
> "dependencies": ["."],
> "graphs": {
> "chat": "chat.graph:graph"
> },
> "http": {
> "disable_meta": true
> }
> }
> ```
>
> Setting `disable_meta` to `true` disables the following routes:
>
> * `/` — root health check
> * `/info` — server version and configuration info
> * `/metrics` — Prometheus and JSON metrics
> * `/docs` — API documentation UI
> * `/openapi.json` — OpenAPI specification
>
> The `/ok` health check endpoint remains available even when `disable_meta` is set, so orchestrators like Kubernetes can still perform liveness and readiness probes.
>
> Other route disable flags include `disable_assistants`, `disable_runs`, `disable_threads`, `disable_store`, and `disable_ui`. For MCP, A2A, and webhooks, see their respective guides: [Disable MCP](/langsmith/server-mcp#disable-mcp), [Disable A2A](/langsmith/server-a2a#disable-a2a), [Disable webhooks](/langsmith/use-webhooks#disable-webhooks).
> [tab] JS
>
> #### Basic configuration
>
> ```json theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> {
> "$schema": "https://langgra.ph/schema.json",
> "graphs": {
> "chat": "./src/graph.ts:graph"
> }
> }
> ```
>
> #### Pinning API version
>
> *(Added in v0.3.7)*
>
> You can pin the API version of the Agent Server by using the `api_version` key. This is useful if you want to ensure that your server uses a specific version of the API.
> By default, builds for Agent Servers on Cloud use the latest stable version of the server. This can be pinned by setting the `api_version` key to a specific version.
>
> ```json theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> {
> "$schema": "https://langgra.ph/schema.json",
> "dependencies": ["."],
> "graphs": {
> "chat": "./src/chat/graph.ts:graph"
> },
> "api_version": "0.2"
> }
> ```
>
> #### Disabling built-in routes
>
> You can selectively disable groups of built-in HTTP routes using boolean flags in the `http` configuration block. This is useful for production Agent Servers where you want to minimize the server's exposed surface area.
>
> For example, to disable the system information and documentation routes:
>
> ```json theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> {
> "$schema": "https://langgra.ph/schema.json",
> "graphs": {
> "chat": "./src/chat/graph.ts:graph"
> },
> "http": {
> "disable_meta": true
> }
> }
> ```
>
> Setting `disable_meta` to `true` disables the following routes:
>
> * `/` — root health check
> * `/info` — server version and configuration info
> * `/metrics` — Prometheus and JSON metrics
> * `/docs` — API documentation UI
> * `/openapi.json` — OpenAPI specification
>
> The `/ok` health check endpoint remains available even when `disable_meta` is set, so orchestrators like Kubernetes can still perform liveness and readiness probes.
>
> Other route disable flags include `disable_assistants`, `disable_runs`, `disable_threads`, `disable_store`, and `disable_ui`. For MCP, A2A, and webhooks, see their respective guides: [Disable MCP](/langsmith/server-mcp#disable-mcp), [Disable A2A](/langsmith/server-a2a#disable-a2a), [Disable webhooks](/langsmith/use-webhooks#disable-webhooks).
## Commands
**Usage**
> [tab] Python
>
> The base command for the LangGraph CLI is `langgraph`.
>
> ```
> langgraph [OPTIONS] COMMAND [ARGS]
> ```
> [tab] JS
>
> The base command for the LangGraph.js CLI is `langgraphjs`.
>
> ```
> npx @langchain/langgraph-cli [OPTIONS] COMMAND [ARGS]
> ```
>
> We recommend using `npx` to always use the latest version of the CLI.
### `dev`
> [tab] Python
>
> Run Agent Server in development mode with hot reloading and debugging capabilities. This lightweight server requires no Docker installation and is suitable for development and testing. State is persisted to a local directory.
>
> > [!NOTE]
> >
> > Currently, the CLI only supports Python 3.11 or later
>
> > [!TIP]
> >
> > If you need more information on when to use `langgraph dev` vs `langgraph up`, refer to the [Local development & testing guide](/langsmith/local-dev-testing) for a detailed comparison.
>
> **Installation**
>
> This command requires the "inmem" extra to be installed:
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> pip install -U "langgraph-cli[inmem]"
> ```
>
> **Usage**
>
> ```
> langgraph dev [OPTIONS]
> ```
>
> **Options**
>
> | Option | Default | Description |
> | - | - | - |
> | `-c, --config FILE` | `langgraph.json` | Path to configuration file declaring dependencies, graphs and environment variables |
> | `--host TEXT` | `127.0.0.1` | Host to bind the server to |
> | `--port INTEGER` | `2024` | Port to bind the server to |
> | `--no-reload` | | Disable auto-reload |
> | `--n-jobs-per-worker INTEGER` | `1` | Maximum number of concurrent jobs per worker |
> | `--debug-port INTEGER` | | Port for debugger to listen on |
> | `--wait-for-client` | `False` | Wait for a debugger client to connect to the debug port before starting the server |
> | `--no-browser` | | Skip automatically opening the browser when the server starts |
> | `--studio-url TEXT` | | URL of the Studio instance to connect to. Defaults to [https://smith.langchain.com](https://smith.langchain.com) |
> | `--allow-blocking` | `False` | Do not raise errors for synchronous I/O blocking operations in your code (added in `0.2.6`) |
> | `--tunnel` | `False` | Expose the local server via a public tunnel (Cloudflare) for remote frontend access. This avoids issues with browsers like Safari or networks blocking localhost connections |
> | `--help` | | Display command documentation |
> [tab] JS
>
> Run LangGraph API server in development mode with hot reloading capabilities. This lightweight server requires no Docker installation and is suitable for development and testing. State is persisted to a local directory.
>
> **Usage**
>
> ```
> npx @langchain/langgraph-cli dev [OPTIONS]
> ```
>
> **Options**
>
> | Option | Default | Description |
> | - | - | - |
> | `-c, --config FILE` | `langgraph.json` | Path to configuration file declaring dependencies, graphs and environment variables |
> | `--host TEXT` | `127.0.0.1` | Host to bind the server to |
> | `--port INTEGER` | `2024` | Port to bind the server to |
> | `--no-reload` | | Disable auto-reload |
> | `--n-jobs-per-worker INTEGER` | | Number of jobs per worker. Default is 10 |
> | `--debug-port INTEGER` | | Port for debugger to listen on |
> | `--wait-for-client` | `False` | Wait for a debugger client to connect to the debug port before starting the server |
> | `--no-browser` | | Skip automatically opening the browser when the server starts |
> | `--studio-url TEXT` | | URL of the Studio instance to connect to. Defaults to [https://smith.langchain.com](https://smith.langchain.com) |
> | `--allow-blocking` | `False` | Do not raise errors for synchronous I/O blocking operations in your code |
> | `--tunnel` | `False` | Expose the local server via a public tunnel (Cloudflare) for remote frontend access. This avoids issues with browsers or networks blocking localhost connections |
> | `--help` | | Display command documentation |
### `build`
> [tab] Python
>
> Build Agent Server Docker image.
>
> **Usage**
>
> ```
> langgraph build [OPTIONS]
> ```
>
> **Options**
>
> | Option | Default | Description |
> | - | - | - |
> | `--platform TEXT` | | Target platform(s) to build the Docker image for. Example: `langgraph build --platform linux/amd64,linux/arm64` |
> | `-t, --tag TEXT` | | **Required**. Tag for the Docker image. Example: `langgraph build -t my-image` |
> | `--pull / --no-pull` | `--pull` | Build with latest remote Docker image. Use `--no-pull` for running the Agent Server with locally built images. |
> | `-c, --config FILE` | `langgraph.json` | Path to configuration file declaring dependencies, graphs and environment variables. |
> | `--build-command TEXT`\* | | Build command to run. Runs from the directory where your `langgraph.json` file lives. Example: `langgraph build --build-command "yarn run turbo build"` |
> | `--install-command TEXT`\* | | Install command to run. Runs from the directory where you call `langgraph build` from. Example: `langgraph build --install-command "yarn install"` |
> | `--help` | | Display command documentation. |
>
> \*Only supported for JS Agent Servers, will have no impact on Python Agent Servers.
> [tab] JS
>
> Build Agent Server Docker image.
>
> **Usage**
>
> ```
> npx @langchain/langgraph-cli build [OPTIONS]
> ```
>
> **Options**
>
> | Option | Default | Description |
> | - | - | - |
> | `--platform TEXT` | | Target platform(s) to build the Docker image for. Example: `langgraph build --platform linux/amd64,linux/arm64` |
> | `-t, --tag TEXT` | | **Required**. Tag for the Docker image. Example: `langgraph build -t my-image` |
> | `--no-pull` | | Use locally built images. Defaults to `false` to build with latest remote Docker image. |
> | `-c, --config FILE` | `langgraph.json` | Path to configuration file declaring dependencies, graphs and environment variables. |
> | `--help` | | Display command documentation. |
### `deploy`
> [tab] Python
>
> > [!NOTE]
> >
> > This command is in [beta](/langsmith/release-stages) and under active development. Expect frequent updates and improvements. On LangSmith Cloud (SaaS) in AWS, local builds require `langgraph-cli` 0.4.35 or later.
>
> Build and deploy a LangGraph image directly to [LangSmith Agent Server](/langsmith/deployment). This command builds a Docker image locally, pushes it to a managed registry, and creates or updates an Agent Server—all in a single step. If Docker is not installed, it triggers a remote build.
>
> **Prerequisites**
>
> * A [**LangSmith API key**](/langsmith/create-account-api-key) with access to LangSmith Agent Server.
>
> * (Optional) **Docker** must be installed and the Docker daemon must be running for local builds. Not required for remote builds. [Install Docker Desktop](https://docs.docker.com/get-docker/).
>
> > [!NOTE]
> >
> > On LangSmith Cloud, the CLI pushes to a managed registry. Self-hosted LangSmith, and Cloud workspaces that deploy through a [listener](/langsmith/control-plane#listeners) in your own cluster, push to a registry you manage with `--push-to`. See [Deploy from a registry you manage](#deploy-from-a-registry-you-manage).
>
> **Usage**
>
> ```
> langgraph deploy [OPTIONS] [DOCKER_BUILD_ARGS]
> ```
>
> This command also accepts all [`langgraph build`](#build) flags (`--platform`, `-t`, `--pull`, `--no-pull`, `-c`). For details, refer to `langgraph build --help`.
>
> **Options**
>
> | Option | Default | Description |
> | - | - | - |
> | `--api-key TEXT` | | API key. Can also be set via `LANGGRAPH_HOST_API_KEY`, `LANGSMITH_API_KEY`, or `LANGCHAIN_API_KEY` environment variable or `.env` file. |
> | `--name TEXT` | Current directory name | Agent Server name. Can also be set via `LANGSMITH_DEPLOYMENT_NAME` environment variable or `.env` file. |
> | `--agent-server-id TEXT` | | ID of an existing Agent Server to update. If omitted, `--name` is used to find or create the Agent Server. |
> | `--agent-id TEXT` | | Agent to deploy to in an agent-based workspace, by identifier. Requires `--agent-environment`, and cannot be combined with `--name` or `--agent-server-id`. Can also be set via `LANGSMITH_AGENT_ID`. See [Deploy to an agent environment](/langsmith/deploy-to-agent-environment). Available in `langgraph-cli>=0.4.32`. |
> | `--agent-environment TEXT` | | Environment the Agent Server reports into: `development`, `staging`, or `production`. Requires `--agent-id`. Can also be set via `LANGSMITH_AGENT_ENVIRONMENT`. Available in `langgraph-cli>=0.4.32`. |
> | `--agent-server-type TEXT` | `serverless` | Agent Server type when creating a new Agent Server on Cloud. Pass `dedicated` for always-on capacity. Legacy `dev` and `prod` are also accepted. |
> | `--remote / --no-remote` | | Force remote or local build. By default, builds remotely if Docker is not available locally. |
> | `--push-to TEXT` | | Push the image to this repository in a registry you manage (for example `123456789.dkr.ecr.us-east-1.amazonaws.com/agents/my-agent`), then deploy from it. Required for self-hosted LangSmith and for workspaces that deploy through a listener, unless you use `--image-uri` instead. Uses your existing Docker credentials. Give the tag in the value or with `-t`. Cannot be combined with `--remote` or `--image-uri`. |
> | `--image TEXT` | | Use an existing local image (for example `my-agent:dev`) instead of building. The image must target `linux/amd64`. With `--push-to`, the image is retagged and pushed. |
> | `-t, --tag TEXT` | `latest` | Tag for the pushed image. |
> | `--image-uri TEXT` | | Deploy an image that's already in a registry you manage (for example `123456789.dkr.ecr.us-east-1.amazonaws.com/agents/my-agent@sha256:`), with no build, retag, or push. For self-hosted LangSmith and for workspaces that deploy through a listener. Must include a digest; a mutable tag is rejected, since Kubernetes can cache images by tag and would silently keep running the previous one. Cannot be combined with `--push-to`, `--image`, `-t`, or `--remote`. |
> | `--listener-id TEXT` | | Listener that will run the Agent Server, for workspaces that deploy through a listener in your own cluster. Used only when creating an Agent Server with `--push-to` or `--image-uri`. On LangSmith Cloud, defaults to the workspace's only listener. |
> | `--k8s-namespace TEXT` | | Kubernetes namespace the listener deploys into. Used only when creating an Agent Server with `--push-to` or `--image-uri`. Defaults to the listener's only namespace. |
> | `--image-pull-secret TEXT` | | Name of a Kubernetes secret (type `kubernetes.io/dockerconfigjson`) in the Agent Server's namespace to use for pulling the image from a private registry. Repeat to give more than one. Only used when creating an Agent Server with `--push-to` or `--image-uri`. |
> | `--no-wait` | `False` | Skip waiting for deployment status after pushing. |
> | `--verbose` | `False` | Show detailed output including Docker build and push logs. |
> | `--help` | | Display command documentation. |
>
> > [!NOTE]
> >
> > The Python CLI uses `--agent-server-id` and `--agent-server-type`. It also accepts `--deployment-id` and `--deployment-type` as hidden compatibility aliases. If your installed version does not recognize the Agent Server flags, use the legacy spellings or upgrade. Check `langgraph deploy --help` for the flags your version supports.
> >
> > `langgraph deploy` creates a Serverless Agent Server by default (`langgraph-cli>=0.4.37`; earlier versions default to the legacy `dev` type). This version requirement describes the default type, not the availability of the Agent Server flag names. To create a Dedicated Agent Server, pass `--agent-server-type dedicated`. If your CLI only accepts `dev` and `prod`, upgrade it to use the `serverless` and `dedicated` values.
>
> **Example**
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> # Deploy with API key from .env file
> langgraph deploy
>
> # Deploy with inline API key
> LANGSMITH_API_KEY=lsv2_... langgraph deploy
>
> # Create a Dedicated deployment
> langgraph deploy --agent-server-type dedicated
>
> # Update an existing deployment
> langgraph deploy --agent-server-id abc123
>
> # Deploy with inline deployment name
> LANGSMITH_DEPLOYMENT_NAME=my-agent langgraph deploy
>
> # Deploy to EU region
> LANGGRAPH_HOST_URL=https://eu.api.host.langchain.com langgraph deploy
> ```
>
> > [!NOTE]
> >
> > CLI updates depend on the Agent Server's source and the selected build mode. Local builds pushed to the managed registry require an `internal_docker` source. To update an Agent Server from a registry you manage, use `--push-to` or `--image-uri`. Do not assume every Agent Server created through the UI or GitHub integration supports every CLI build mode.
>
> #### Deploy from a registry you manage
>
> Self-hosted LangSmith, and LangSmith Cloud workspaces that deploy through a listener in your own cluster (the [legacy hybrid model](/langsmith/hybrid-legacy)), run images from a registry you manage. Pass `--push-to` with a repository in that registry. The CLI builds the image, pushes it with your existing Docker credentials, and creates or updates the Agent Server from the pushed image.
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> # Log in to your registry first, for example with AWS ECR
> aws ecr get-login-password | docker login --username AWS --password-stdin 123456789.dkr.ecr.us-east-1.amazonaws.com
>
> # Self-hosted: point the CLI at your LangSmith instance
> LANGSMITH_ENDPOINT=https://langsmith.example.com/api \
> langgraph deploy --push-to 123456789.dkr.ecr.us-east-1.amazonaws.com/agents/my-agent
>
> # LangSmith Cloud workspace with a listener: only the image location changes
> langgraph deploy --push-to 123456789.dkr.ecr.us-east-1.amazonaws.com/agents/my-agent --tag v1.2.0
>
> # Push an image you already built
> langgraph deploy --image my-agent:dev --push-to 123456789.dkr.ecr.us-east-1.amazonaws.com/agents/my-agent
> ```
>
> The control plane URL is derived from `LANGSMITH_ENDPOINT`, read from the project `.env` file or the environment: `https:///api-host` for a self-hosted instance, and the matching LangSmith Cloud control plane for cloud endpoints. To override it, set the `LANGGRAPH_HOST_URL` environment variable to the full control plane URL, including `/api-host` on a self-hosted instance (for example `https://langsmith.example.com/api-host`).
>
> #### Deploy an image you've already pushed
>
> If your CI/CD pipeline builds and pushes the image in a separate job from the one that deploys, `--push-to` does not work: it always builds (or retags a local `--image`) and pushes, and `--image` requires the image to be present in the local Docker daemon. Use `--image-uri` instead to deploy an image that's already in a registry, with no build, retag, or push at all:
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> langgraph deploy --image-uri 123456789.dkr.ecr.us-east-1.amazonaws.com/agents/my-agent@sha256:1a2b3c4d...
> ```
>
> `--image-uri` must include a digest (`@sha256:`), not a mutable tag. Kubernetes can cache images by tag, so redeploying the same tag could silently keep running the previous image. If your pipeline already captures the digest from its push step, pass it straight through; otherwise resolve it first, for example with `docker buildx imagetools inspect : --format '{{json .Manifest.Digest}}'` or your registry's own CLI.
>
> Agent Servers created with `--image-uri` use the same `external_docker` source as `--push-to`, so either option can update an Agent Server the other one created.
>
> #### Choose a listener and namespace
>
> When a workspace deploys through a listener, the control plane needs to know which listener runs a new Agent Server and which Kubernetes namespace it deploys into.
>
> On LangSmith Cloud, you do not have to pass either when there is only one possible answer. If your workspace has a single listener that serves a single namespace, the CLI uses it:
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> langgraph deploy --push-to 123456789.dkr.ecr.us-east-1.amazonaws.com/agents/my-agent
> ```
>
> When there is a choice, the CLI lists the listeners with their clusters and namespaces, and you pick one:
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> langgraph deploy --push-to 123456789.dkr.ecr.us-east-1.amazonaws.com/agents/my-agent \
> --listener-id 2b1f0e9c-2d4a-4f1e-9a3b-2c7d8e5f4a10 --k8s-namespace agents
> ```
>
> On a self-hosted instance, the CLI looks up listeners only when you pass `--listener-id` or `--k8s-namespace`. To find a listener's id and namespaces ahead of time, for example to pass `--listener-id` from a script without hardcoding it, use [`deploy listeners list`](#deploy-listeners-list) with `--json`:
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> listener_id=$(langgraph deploy listeners list --json | jq -r '.[0].id')
> langgraph deploy --push-to 123456789.dkr.ecr.us-east-1.amazonaws.com/agents/my-agent \
> --listener-id "$listener_id" --k8s-namespace agents
> ```
>
> The listener and the namespace are fixed when the Agent Server is created and cannot be changed afterward, so both options are refused on an existing Agent Server. Later revisions need only `--push-to`.
>
> Agent Servers created with `--push-to` use the `external_docker` source. An Agent Server created without `--push-to` cannot be switched to it; use a new `--name` instead.
>
> #### Authenticate to a private registry
>
> If the registry you push to with `--push-to` or deploy from with `--image-uri` requires authentication to pull the image, the cluster needs a Kubernetes secret of type `kubernetes.io/dockerconfigjson` in the Agent Server's namespace. Create it ahead of time (for example with `kubectl create secret docker-registry`), then pass its name with `--image-pull-secret`:
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> langgraph deploy --push-to 123456789.dkr.ecr.us-east-1.amazonaws.com/agents/my-agent \
> --image-pull-secret regcred
> ```
>
> Repeat `--image-pull-secret` to attach more than one secret. Like the listener and namespace, image pull secrets are fixed when the Agent Server is created; the CLI doesn't support changing them on an existing Agent Server, but you can update the Agent Server's `resource_spec` through the API or the LangSmith UI.
>
> #### `deploy list`
>
> List Agent Servers.
>
> **Usage**
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> langgraph deploy list [OPTIONS]
> ```
>
> **Options**
>
> | Option | Default | Description |
> | - | - | - |
> | `--name-contains TEXT` | | Only show Agent Servers whose names contain this value. |
> | `--api-key TEXT` | | API key. Can also be set via `LANGGRAPH_HOST_API_KEY`, `LANGSMITH_API_KEY`, or `LANGCHAIN_API_KEY` environment variable or `.env` file. |
> | `--help` | | Show this message and exit. |
>
> #### `deploy listeners`
>
> \[Beta] Inspect listeners available to this workspace.
>
> **Usage**
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> langgraph deploy listeners [OPTIONS] COMMAND [ARGS]...
> ```
>
> **Options**
>
> | Option | Default | Description |
> | - | - | - |
> | `--help` | | Show this message and exit. |
>
> **Commands**
>
> | Command | Description |
> | - | - |
> | `list` | \[Beta] List listeners available to this workspace. |
>
> #### `deploy listeners list`
>
> \[Beta] List listeners available to this workspace, with their cluster (`compute_id`) and Kubernetes namespaces.
>
> Pass a listener's id to `langgraph deploy --listener-id` to deploy through it. See [Choose a listener and namespace](#choose-a-listener-and-namespace).
>
> Pass `--json` to get the listeners as a JSON array instead of a table, for scripting (for example, to pipe a listener's id into `--listener-id`).
>
> **Usage**
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> langgraph deploy listeners list [OPTIONS]
> ```
>
> **Options**
>
> | Option | Default | Description |
> | - | - | - |
> | `--json` | | Emit the listeners as a JSON array instead of a table. |
> | `--api-key TEXT` | | API key. Can also be set via `LANGGRAPH_HOST_API_KEY`, `LANGSMITH_API_KEY`, or `LANGCHAIN_API_KEY` environment variable or `.env` file. |
> | `--help` | | Show this message and exit. |
>
> #### `deploy revisions`
>
> \[Beta] Manage Agent Server revisions.
>
> **Usage**
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> langgraph deploy revisions [OPTIONS] COMMAND [ARGS]...
> ```
>
> **Options**
>
> | Option | Default | Description |
> | - | - | - |
> | `--help` | | Show this message and exit. |
>
> **Commands**
>
> | Command | Description |
> | - | - |
> | `list` | \[Beta] List revisions for an Agent Server. |
>
> #### `deploy revisions list`
>
> \[Beta] List revisions for an Agent Server.
>
> Use [`deploy list`](#deploy-list) to list Agent Server IDs.
>
> **Usage**
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> langgraph deploy revisions list [OPTIONS] AGENT_SERVER_ID
> ```
>
> **Options**
>
> | Option | Default | Description |
> | - | - | - |
> | `--limit INTEGER` | `10` | Maximum number of revisions to return. |
> | `--api-key TEXT` | | API key. Can also be set via `LANGGRAPH_HOST_API_KEY`, `LANGSMITH_API_KEY`, or `LANGCHAIN_API_KEY` environment variable or `.env` file. |
> | `--help` | | Show this message and exit. |
>
> #### `deploy delete`
>
> Delete an Agent Server.
>
> Use [`deploy list`](#deploy-list) to find the Agent Server ID to delete.
>
> **Usage**
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> langgraph deploy delete [OPTIONS] AGENT_SERVER_ID
> ```
>
> **Options**
>
> | Option | Default | Description |
> | - | - | - |
> | `--force` | | Delete without prompting for confirmation. |
> | `--api-key TEXT` | | API key. Can also be set via `LANGGRAPH_HOST_API_KEY`, `LANGSMITH_API_KEY`, or `LANGCHAIN_API_KEY` environment variable or `.env` file. |
> | `--help` | | Show this message and exit. |
>
> #### `deploy logs`
>
> Fetch Agent Server logs. Use `deploy` for Agent Server runtime logs, or `build` for remote build logs.
>
> **Usage**
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> langgraph deploy logs [OPTIONS]
> ```
>
> **Options**
>
> | Option | Default | Description |
> | - | - | - |
> | `-f, --follow` | `False` | Continuously poll for new logs. |
> | `--end-time TEXT` | | ISO8601 end time. Example: `2026-03-08T00:00:00Z`. |
> | `--start-time TEXT` | | ISO8601 start time. Example: `2026-03-08T00:00:00Z`. |
> | `-q, --query TEXT` | | Search string filter. |
> | `--limit INTEGER` | `100` | Max log entries to fetch. |
> | `--level [DEBUG\|INFO\|WARNING\|ERROR\|CRITICAL]` | | Filter by log level. |
> | `--revision-id TEXT` | | Specific revision ID. For build logs, defaults to the latest revision. |
> | `--type [deploy\|build]` | `deploy` | Log stream to fetch. `deploy` shows Agent Server runtime logs. `build` shows remote build logs. |
> | `--agent-server-id TEXT` | | Agent Server ID. If omitted, `--name` is used to find the Agent Server. |
> | `--name TEXT` | Current directory name | Agent Server name. Can also be set via `LANGSMITH_DEPLOYMENT_NAME` environment variable or `.env` file. Used when `--agent-server-id` is not provided. |
> | `--api-key TEXT` | | API key. Can also be set via `LANGGRAPH_HOST_API_KEY`, `LANGSMITH_API_KEY`, or `LANGCHAIN_API_KEY` environment variable or `.env` file. |
> | `--help` | | Show this message and exit. |
### `up`
> [tab] Python
>
> Start Agent Server. For local testing, requires a LangSmith API key with access to LangSmith. Requires a license key for production use.
>
> > [!TIP]
> >
> > If you need more information on when to use `langgraph dev` vs `langgraph up`, refer to the [Local development & testing guide](/langsmith/local-dev-testing) for a detailed comparison.
>
> **Usage**
>
> ```
> langgraph up [OPTIONS]
> ```
>
> **Options**
>
> | Option | Default | Description |
> | - | - | - |
> | `--wait` | | Wait for services to start before returning. Implies --detach |
> | `--base-image TEXT` | `langchain/langgraph-api` | Base image to use for the Agent Server. Pin to specific versions using version tags. |
> | `--image TEXT` | | Docker image to use for the langgraph-api service. If specified, skips building and uses this image directly. |
> | `--postgres-uri TEXT` | Local database | Postgres URI to use for the database. |
> | `--watch` | | Restart on file changes |
> | `--debugger-base-url TEXT` | `http://127.0.0.1:[PORT]` | URL used by the debugger to access LangGraph API. |
> | `--debugger-port INTEGER` | | Pull the debugger image locally and serve the UI on specified port |
> | `--verbose` | | Show more output from the server logs. |
> | `-c, --config FILE` | `langgraph.json` | Path to configuration file declaring dependencies, graphs and environment variables. |
> | `-d, --docker-compose FILE` | | Path to docker-compose.yml file with additional services to launch. |
> | `-p, --port INTEGER` | `8123` | Port to expose. Example: `langgraph up --port 8000` |
> | `--pull / --no-pull` | `pull` | Pull latest images. Use `--no-pull` for running the server with locally-built images. Example: `langgraph up --no-pull` |
> | `--recreate / --no-recreate` | `no-recreate` | Recreate containers even if their configuration and image haven't changed |
> | `--help` | | Display command documentation. |
> [tab] JS
>
> Start LangGraph API server. For local testing, requires a LangSmith API key with access to LangSmith. Requires a license key for production use.
>
> **Usage**
>
> ```
> npx @langchain/langgraph-cli up [OPTIONS]
> ```
>
> **Options**
>
> | Option | Default | Description |
> | - | - | - |
> | `--wait` | | Wait for services to start before returning. Implies --detach |
> | `--base-image TEXT` | `langchain/langgraph-api` | Base image to use for the LangGraph API server. Pin to specific versions using version tags. |
> | `--image TEXT` | | Docker image to use for the langgraph-api service. If specified, skips building and uses this image directly. |
> | `--postgres-uri TEXT` | Local database | Postgres URI to use for the database. |
> | `--watch` | | Restart on file changes |
> | `-c, --config FILE` | `langgraph.json` | Path to configuration file declaring dependencies, graphs and environment variables. |
> | `-d, --docker-compose FILE` | | Path to docker-compose.yml file with additional services to launch. |
> | `-p, --port INTEGER` | `8123` | Port to expose. Example: `langgraph up --port 8000` |
> | `--no-pull` | | Use locally built images. Defaults to `false` to build with latest remote Docker image. |
> | `--recreate` | | Recreate containers even if their configuration and image haven't changed |
> | `--help` | | Display command documentation. |
### `dockerfile`
> [tab] Python
>
> Generate a Dockerfile for building an Agent Server Docker image.
>
> **Usage**
>
> ```
> langgraph dockerfile [OPTIONS] SAVE_PATH
> ```
>
> **Options**
>
> | Option | Default | Description |
> | - | - | - |
> | `-c, --config FILE` | `langgraph.json` | Path to the [configuration file](#configuration-file) declaring dependencies, graphs and environment variables. |
> | `--help` | | Show this message and exit. |
>
> Example:
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> langgraph dockerfile -c langgraph.json Dockerfile
> ```
>
> This generates a Dockerfile that looks similar to:
>
> ```dockerfile theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> FROM langchain/langgraph-api:3.11
>
> ADD ./pipconf.txt /pipconfig.txt
>
> RUN PIP_CONFIG_FILE=/pipconfig.txt PYTHONDONTWRITEBYTECODE=1 pip install --no-cache-dir -c /api/constraints.txt langchain_anthropic langchain_openai wikipedia scikit-learn
>
> ADD ./graphs /deps/__outer_graphs/src
> RUN set -ex && \
> for line in '[project]' \
> 'name = "graphs"' \
> 'version = "0.1"' \
> '[tool.setuptools.package-data]' \
> '"*" = ["**/*"]'; do \
> echo "$line" >> /deps/__outer_graphs/pyproject.toml; \
> done
>
> RUN PIP_CONFIG_FILE=/pipconfig.txt PYTHONDONTWRITEBYTECODE=1 pip install --no-cache-dir -c /api/constraints.txt -e /deps/*
>
> ENV LANGSERVE_GRAPHS='{"agent": "/deps/__outer_graphs/src/agent.py:graph", "storm": "/deps/__outer_graphs/src/storm.py:graph"}'
> ```
>
> > [!NOTE]
> >
> > The `langgraph dockerfile` command translates all the configuration in your `langgraph.json` file into Dockerfile commands. When using this command, you will have to re-run it whenever you update your `langgraph.json` file. Otherwise, your changes will not be reflected when you build or run the dockerfile.
> [tab] JS
>
> Generate a Dockerfile for building an Agent Server Docker image.
>
> **Usage**
>
> ```
> npx @langchain/langgraph-cli dockerfile [OPTIONS] SAVE_PATH
> ```
>
> **Options**
>
> | Option | Default | Description |
> | - | - | - |
> | `-c, --config FILE` | `langgraph.json` | Path to the [configuration file](#configuration-file) declaring dependencies, graphs and environment variables. |
> | `--help` | | Show this message and exit. |
>
> Example:
>
> ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> npx @langchain/langgraph-cli dockerfile -c langgraph.json Dockerfile
> ```
>
> This generates a Dockerfile that looks similar to:
>
> ```dockerfile theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
> FROM langchain/langgraphjs-api:20
>
> ADD . /deps/agent
>
> RUN cd /deps/agent && yarn install
>
> ENV LANGSERVE_GRAPHS='{"agent":"./src/react_agent/graph.ts:graph"}'
>
> WORKDIR /deps/agent
>
> RUN (test ! -f /api/langgraph_api/js/build.mts && echo "Prebuild script not found, skipping") || tsx /api/langgraph_api/js/build.mts
> ```
>
> > [!NOTE]
> >
> > The `npx @langchain/langgraph-cli dockerfile` command translates all the configuration in your `langgraph.json` file into Dockerfile commands. When using this command, you will have to re-run it whenever you update your `langgraph.json` file. Otherwise, your changes will not be reflected when you build or run the dockerfile.
***
[Connect these docs](/use-these-docs) to your agent of choice via MCP for real-time answers.
[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/cli.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
# Cloud (SaaS)
Source: https://docs.langchain.com/langsmith/cloud
Learn how LangChain hosts and operates LangSmith Cloud, including its regions, data storage locations, architecture, IP allowlists, private connectivity, and API rate limits.
The **Cloud** hosting option is a fully managed model where LangChain hosts and operates all LangSmith infrastructure and services:
* **Fully managed infrastructure**: LangChain handles all infrastructure, updates, scaling, and maintenance.
* [**LangSmith UI**](https://smith.langchain.com?utm_source=docs\&utm_medium=cta\&utm_campaign=langsmith-signup\&utm_content=langsmith-cloud): Full access to [observability](/langsmith/observability), [evaluation](/langsmith/evaluation), [agent deployment management](/langsmith/deployment), and [Studio](/langsmith/studio).
* **Deploy Agent Servers from GitHub**: Connect your repositories and deploy [Agent Servers](/langsmith/deployment) to the Cloud with a few clicks.
* **Automated CI/CD for Agent Servers**: The build and deployment process for your [Agent Servers](/langsmith/deployment) is handled automatically by the platform.
LangChain manages the LangSmith platform (UI, APIs, and datastores), your Agent Servers, and CI/CD for your apps. All of them run in LangChain's cloud on AWS, Azure, or GCP, depending on your [region](#regions).
If you're ready to deploy your app to LangSmith Cloud, follow the [Cloud deployment quickstart](/langsmith/deployment-quickstart) or the [full setup guide](/langsmith/deploy-to-cloud). This page explains the Cloud managed architecture for reference.
## Cloud architecture and scalability
> [!NOTE]
>
> This section is only relevant for cloud-managed LangSmith in the [regions listed below](#regions). For information on the Self-hosted LangSmith solution, refer to the [Self-hosted documentation](/langsmith/self-hosted).
LangSmith Cloud runs in five regions on Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure. The platform is designed to be highly scalable. Many customers run production workloads on LangSmith for LLM application observability, evaluation, and agent deployment.
### Regions
Each region has its own URLs. Your organization's data is stored in the region where you signed up, with the exceptions listed in [Regional storage](#regional-storage).
| Region | URL | API URL |
| - | - | - |
| GCP US (default) | [https://smith.langchain.com](https://smith.langchain.com?utm_source=docs\&utm_medium=cta\&utm_campaign=langsmith-signup\&utm_content=langsmith-cloud) | `https://api.smith.langchain.com` |
| GCP EU | [https://eu.smith.langchain.com](https://eu.smith.langchain.com) | `https://eu.api.smith.langchain.com` |
| GCP APAC | [https://apac.smith.langchain.com](https://apac.smith.langchain.com) | `https://apac.api.smith.langchain.com` |
| AWS US | [https://aws.smith.langchain.com](https://aws.smith.langchain.com) | `https://aws.api.smith.langchain.com` |
| Azure US | [https://azure.smith.langchain.com](https://azure.smith.langchain.com) | `https://azure.api.smith.langchain.com` |
### Regional storage
Cloud-managed LangSmith stores trace and application data in the cloud location of the region where sign-up occurred. Each region uses a regional trace datastore for trace ingestion and analytics. Two kinds of data are stored elsewhere:
* **Authentication data**: [Supabase](https://supabase.com) hosts authentication and authorization data on AWS, in the location listed in the Supabase column. This location can differ from the region's cloud location. For example, the Azure US region runs in Azure `centralus` (Iowa), while its authentication data is in AWS `us-east-1` (N. Virginia).
* **Billing data**: Payment and billing information is stored in the US, as described in [Region-independent storage](#region-independent-storage).
| Region | Cloud location | Supabase | Trace datastore | [LangSmith Agent Server](/langsmith/deployment) domain |
| - | - | - | - | - |
| GCP US | GCP us-central1 (Iowa) | AWS us-east-1 (N. Virginia) | [ClickHouse Cloud](https://clickhouse.com/cloud), us-central1 (Iowa) | `*.us.langgraph.app` |
| GCP EU | GCP europe-west4 (Netherlands) | AWS eu-central-1 (Germany) | ClickHouse Cloud, europe-west4 (Netherlands) | `*.eu.langgraph.app` |
| GCP APAC | GCP australia-southeast1 (Sydney) | AWS ap-southeast-2 (Sydney) | ClickHouse Cloud, australia-southeast1 (Sydney) | `*.apac.langgraph.app` |
| AWS US | AWS us-east-2 (Ohio) | AWS us-east-2 (Ohio) | ClickHouse Cloud, us-east-2 (Ohio) | `*.aws.us.langgraph.app` |
| Azure US | Azure centralus (Iowa) | AWS us-east-1 (N. Virginia) | SmithDB, centralus (Iowa) | `*.azure.us.langgraph.app` |
Agent Servers on LangSmith run in the same cloud location as the rest of the region.
> [!TIP]
>
> See the [Regions FAQ](/langsmith/regions-faq) for more information.
### Region-independent storage
Data listed here is stored exclusively in the US:
* Payment and billing information with Stripe and Metronome
### Architecture
Every region runs the same LangSmith components. The following sections list the cloud services that host them in each region.

### GCP services
The following applies to the **US, EU, and APAC** SaaS regions on GCP.
LangSmith is composed of the following services, all hosted on Google Kubernetes Engine (GKE):
* LangSmith Frontend: serves the LangSmith UI.
* LangSmith Backend: serves the LangSmith API.
* LangSmith Platform Backend: handles authentication and other high-volume tasks. (Internal service)
* LangSmith Playground: handles forwarding requests to various LLM providers for the Playground feature.
* LangSmith Queue: handles processing of asynchronous tasks. (Internal service)
* LangSmith ACE Backend: runs custom code evaluators in an isolated runtime. (Internal service)
* LangSmith Ingest Queue: processes incoming traces. (Internal service)
LangSmith uses the following GCP storage services:
* Google Cloud Storage (GCS) for runs inputs and outputs.
* Google Cloud SQL PostgreSQL for transactional workloads.
* Google Cloud Memorystore for Redis for queuing and caching.
* Clickhouse Cloud on GCP for trace ingestion and analytics. Our services connect to Clickhouse Cloud, which is hosted in the same GCP region, via a private endpoint.
Some additional GCP services we use include:
* Google Cloud Load Balancer for routing traffic to the LangSmith services.
* Google Cloud CDN for caching static assets.
* Google Cloud Armor for security and rate limits. For more information on rate limits we enforce, please refer to [Rate limits](/langsmith/usage-and-billing#rate-limits).
### AWS services
The following applies to the **AWS US** SaaS region in `us-east-2` (Ohio). The same logical LangSmith components run on **Amazon EKS** instead of GKE.
LangSmith is composed of the following services, all hosted on Amazon EKS:
* LangSmith Frontend: serves the LangSmith UI.
* LangSmith Backend: serves the LangSmith API.
* LangSmith Platform Backend: handles authentication and other high-volume tasks. (Internal service)
* LangSmith Playground: handles forwarding requests to various LLM providers for the Playground feature.
* LangSmith Queue: handles processing of asynchronous tasks. (Internal service)
* LangSmith ACE Backend: runs custom code evaluators in an isolated runtime. (Internal service)
* LangSmith Ingest Queue: processes incoming traces. (Internal service)
LangSmith uses the following AWS storage and data services:
* Amazon S3 for runs inputs and outputs.
* Amazon RDS for PostgreSQL for transactional workloads.
* Amazon ElastiCache for Redis for queuing and caching.
* ClickHouse Cloud over AWS PrivateLink in `us-east-2` for trace ingestion and analytics, consistent with the [regional storage](#regional-storage) table above.
Some additional AWS services we use include:
* Elastic Load Balancing (Network Load Balancers) and Istio ingress for routing traffic to the LangSmith services. Documented API rate limits are enforced at the Istio ingress gateway. For details, see [Rate limits](/langsmith/usage-and-billing#rate-limits).
* Amazon CloudFront for caching static assets (including the web UI hostname `aws.smith.langchain.com`).
* AWS WAF on CloudFront for managed rule groups at the edge (for example, AWS Managed Rules common protections and Bot Control).
### Azure services
The following applies to the **Azure US** SaaS region in `centralus` (Iowa). The same logical LangSmith components run on **Azure Kubernetes Service (AKS)** instead of GKE. Authentication data is the exception: Supabase hosts it separately, in AWS `us-east-1` (N. Virginia).
LangSmith is composed of the following services, all hosted on AKS:
* LangSmith Frontend: serves the LangSmith UI.
* LangSmith Backend: serves the LangSmith API.
* LangSmith Platform Backend: handles authentication and other high-volume tasks. (Internal service)
* LangSmith Playground: handles forwarding requests to various LLM providers for the Playground feature.
* LangSmith Queue: handles processing of asynchronous tasks. (Internal service)
* LangSmith ACE Backend: runs custom code evaluators in an isolated runtime. (Internal service)
* LangSmith Ingest Queue: processes incoming traces. (Internal service)
LangSmith uses the following Azure storage and data services:
* Azure Blob Storage for runs inputs and outputs.
* Azure Database for PostgreSQL flexible server for transactional workloads.
* Azure Managed Redis for queuing and caching.
* SmithDB for trace ingestion and analytics, storing its data in Azure Blob Storage in `centralus`. This region does not use ClickHouse Cloud.
LangSmith also uses an Istio ingress gateway on AKS to route traffic to the LangSmith services.
## Allowlisting IP addresses
### Egress from LangChain SaaS
Internet-bound traffic leaving LangSmith services is routed through a NAT gateway and originates from the following IP addresses. Vertex AI requests can use a different path, as described in [Allow Vertex AI access](#allow-vertex-ai-access).
> [!NOTE]
>
> Agents on [LangSmith Agent Server](/langsmith/deployment) egress from a [separate IP list](/langsmith/cloud-platform-features#allowlist-ip-addresses).
| GCP US | GCP EU | GCP APAC | AWS US | AZURE US |
| - | - | - | - | - |
| 34.59.65.97 | 34.13.192.67 | 34.151.89.217 | 18.188.147.158 | 9.234.98.209 |
| 34.67.51.221 | 34.147.105.64 | 34.116.97.4 | 18.219.86.202 | |
| 34.46.212.37 | 34.90.22.166 | 34.151.162.199 | 3.21.57.192 | |
| 34.132.150.88 | 34.147.36.213 | 34.116.66.129 | | |
| 35.188.222.201 | 34.32.137.113 | 35.189.8.125 | | |
| 34.58.194.127 | 34.91.238.184 | 35.201.9.237 | | |
| 34.59.97.173 | 35.204.101.241 | 35.189.57.29 | | |
| 104.198.162.55 | 35.204.48.32 | 34.40.198.11 | | |
It may be helpful to allowlist these IP addresses if connecting to your own AzureOpenAI service or other endpoints that may be required by the Playground or Online Evaluation.
#### Allow Vertex AI access
For Vertex AI connections from LangSmith SaaS on GCP, public egress IP allowlisting alone might not satisfy VPC Service Controls. Private Google Access keeps Google API traffic within Google's network instead of using the NAT gateway's public IP addresses. See Google's [source IP access guidance](https://docs.cloud.google.com/vpc-service-controls/docs/access-level-design#granting_access_based_on_source_ip).
Configure a VPC Service Controls ingress rule for the source project corresponding to your LangSmith SaaS region:
| LangSmith SaaS region | Source GCP project ID | Source project number for ingress rules |
| - | - | - |
| US (`smith.langchain.com`) | `langchain-prod` | `projects/83409505503` |
| EU (`eu.smith.langchain.com`) | `langchain-prod` | `projects/83409505503` |
| APAC (`apac.smith.langchain.com`) | `langchain-apac-prod` | `projects/774533884377` |
These source projects are specifically for Vertex AI connections from the US, EU, and APAC GCP SaaS regions. Use the numeric `projects/PROJECT_NUMBER` value in the ingress rule, not the project ID. Restrict the rule to the calling identity, your destination projects, and the required Vertex AI operations. The connection still requires the appropriate IAM permissions. See Google's [ingress rule configuration](https://docs.cloud.google.com/vpc-service-controls/docs/ingress-egress-rules).
Select the source project by your LangSmith SaaS region, not the Vertex AI model's region. Pod or node scaling does not change the source project number. Moving the source workload or VPC network to another project can change the required allowlist.
### Egress IP inventory
Fetch the [egress IP inventory (JSON)](/langsmith/egress-ip-addresses.json) to automate allowlist updates.
Filter `addresses` by:
* `service`: `langsmith` or `langsmith-deployment` (deployed agents).
* `cloud`: `gcp`, `aws`, or `azure`.
* `region`: `us`, `eu`, or `apac`.
Allowlist every matching `cidr`. Listed addresses may be used now or in the future. Poll periodically and compare `version` to detect changes. Review additions and removals before updating firewall rules.
### Ingress into LangChain SaaS
The LangChain endpoints map to the following static IP addresses. Traffic terminates on the **GCP load balancers** (US/EU/APAC), the **Azure** ingress in `centralus`, or, for **AWS US**, the **Network Load Balancer** in `us-east-2` (API and gateway hostnames):
| GCP US | GCP EU | GCP APAC | AWS US | Azure |
| - | - | - | - | - |
| 34.8.121.39 | 34.95.92.214 | 34.149.149.213 | 3.129.27.169 | 20.106.1.6 |
| 34.107.251.234 | 34.13.73.122 | | 13.58.107.119 | |
| | | | 16.59.151.49 | |
| | | | 16.59.98.147 | |
| | | | 3.134.146.243 | |
| | | | 3.150.87.246 | |
| 34.56.47.75 (new) | 34.32.254.168 (new) | 34.151.160.163 (new) | | |
Allowlist every address in the column for your region so your private network can reach LangSmith Cloud (`api.smith.langchain.com`, `smith.langchain.com`, `beacon.langchain.com`, `eu.api.smith.langchain.com`, `eu.smith.langchain.com`, `eu.beacon.langchain.com`, `apac.api.smith.langchain.com`, `apac.smith.langchain.com`, `apac.beacon.langchain.com`, `azure.smith.langchain.com`, `azure.api.smith.langchain.com`, `beacon.azure.langchain.com`, `aws.api.smith.langchain.com`, `aws.smith.langchain.com`).
GCP US, EU, and APAC are moving to the additional addresses in the last row (`34.56.47.75`, `34.32.254.168`, and `34.151.160.163`). Add those addresses now. The current GCP addresses keep serving these hostnames until February 10, 2027. After that date, the hostnames use only the additional addresses. Remove a current GCP address from your allowlist only after the hostname no longer resolves to it. The AWS US and Azure addresses are not changing.
This list is only for LangSmith Cloud. A BYOC or self-hosted deployment uses the load balancer in your own environment. If your private network reaches Cloud over the public internet, including through a BYOC control plane connection, allowlist the Cloud addresses for your region. AWS PrivateLink, GCP Private Service Connect, and Azure Private Link do not use these addresses.
## Private connectivity (Enterprise)
[**Enterprise only.**](/langsmith/pricing-plans) Private connectivity is available exclusively for Enterprise customers. Contact your account representative or [sales@langchain.dev](mailto:sales@langchain.dev) to enable this feature.
Enterprise customers can connect to LangSmith without exposing traffic to the public internet using **AWS PrivateLink**, **GCP Private Service Connect (PSC)**, or **Azure Private Link**.
### AWS PrivateLink
Customers on **AWS** can connect to LangSmith via [AWS PrivateLink](https://docs.aws.amazon.com/vpc/latest/privatelink/), providing private connectivity from any VPC. Cross-region connectivity is supported natively.
#### Endpoint service name
| Region | Service Name |
| - | - |
| US (`us-east-2`) | `com.amazonaws.vpce.us-east-2.vpce-svc-054f37092752bff6b` |
#### Setup
**1. Request access:** Contact your account representative or [sales@langchain.dev](mailto:sales@langchain.dev) with your AWS account ID. LangChain will add your account to the endpoint service's allowed principals list.
**2. Create an Interface VPC Endpoint** in your AWS account. Attach a security group that allows **TCP 443 inbound** from your VPC CIDR (or from the instances that need to reach LangSmith):
```bash AWS CLI theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
aws ec2 create-vpc-endpoint \
--vpc-id \
--service-name \
--vpc-endpoint-type Interface \
--subnet-ids \
--security-group-ids \
--region
```
```hcl Terraform theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
resource "aws_vpc_endpoint" "langsmith" {
vpc_id = ""
service_name = "