.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 free 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 free 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
This section relies on how [data retention](/langsmith/usage-and-billing#data-retention) and [usage limits](/langsmith/usage-and-billing#usage-limits) work. Read those sections first if you are not familiar with them.
> [!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).
### Set a workspace spend limit
LangSmith measures usage per [workspace](/langsmith/administration-overview#workspaces).
1. 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 the [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 and extended. For the retention period of each tier on your hosting option, see [Retention periods](/langsmith/usage-and-billing#retention-periods).
Set the workspace's default trace tier by selecting an option below the **Default data retention** label. New projects in the workspace use this tier. To also set it on every existing project in the workspace, select the checkbox. In both cases, the change applies only to traces ingested after you save it. Traces already ingested keep their tier.
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 many automations or other features that may upgrade a trace to extended, you may want to increase your extended trace limits. For the full list of features that can upgrade a trace, see [Data retention auto-upgrades](/langsmith/usage-and-billing#data-retention-auto-upgrades).
> [!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
Besides spend limits, the following settings control how long traces are kept and what they cost.
#### Customize extended retention period (Enterprise only)
[Enterprise](/langsmith/pricing-plans) customers can customize the extended data retention period at the workspace level to meet compliance requirements. For the durations available on your hosting option, see [Retention periods](/langsmith/usage-and-billing#retention-periods). To change the period, see [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 or extended. To customize the extended duration, 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 at the end of the base retention period. 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](/langsmith/usage-and-billing#retention-periods).
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 the extended retention period 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.
> [!TIP]
>
> 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/agent-server)**: 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.
BYOC on AWS runs the LangSmith data plane in your AWS account, while LangChain runs the control plane in its own cloud in `us-east-2`. Your trace data stays in your account. This page describes the components of each plane, how they communicate, and what LangChain provisions in your account. For other clouds, see [BYOC architecture on GCP](/langsmith/byoc-architecture-gcp) and [BYOC architecture on Azure](/langsmith/byoc-architecture-azure).
To set up a data plane, follow [BYOC onboarding on AWS](/langsmith/byoc-onboarding-aws).
## Control plane and data plane model
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 and the [supporting components](#supporting-in-cluster-components) it depends on.
* **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.
## Supporting in-cluster components
Besides the LangSmith Helm chart, LangChain installs and upgrades the following open source components in the EKS cluster. Each runs as its own Helm release:
* **Istio**: The `istio/base`, `istiod`, and `istio/gateway` releases. The Istio ingress gateway receives all data plane traffic and routes it to the LangSmith services.
* **AWS Load Balancer Controller**: Creates the network load balancer in front of the Istio ingress gateway. Its name ends in `-sm-istio`.
* **External Secrets Operator**: Syncs the data plane secrets from AWS Secrets Manager into Kubernetes secrets through a ClusterSecretStore.
* **Karpenter**: Provisions and removes the application worker nodes as pod demand changes.
* **cert-manager**: Issues and renews in-cluster TLS certificates. Other components depend on its custom resources and webhooks.
* **KEDA**: Autoscales the LangSmith services.
Each component that calls AWS APIs uses its own IAM role. With [BYOIAM](/langsmith/byoc-byoiam-aws), you create these roles yourself. For the upgrade cadence of these components, see [Operations](/langsmith/byoc-operations-aws).
## 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-operations-azure#maintenance-window).
### 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 [Data plane settings](/langsmith/byoc-operations-azure#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 a [BYOC](/langsmith/byoc) [data plane](/langsmith/byoc-architecture-aws#control-plane-and-data-plane-model) at rest. You can instead encrypt it with your own symmetric [AWS KMS keys](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms_keys), using one key for every service or a separate key per service:
| 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. |
## Requirements and limitations
* Every service is optional. A service without a key keeps AWS-managed encryption.
* Keys must be symmetric encryption keys in the data plane region. They can be in the data plane account or in another AWS account.
* You set keys when you create the data plane. 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.
> [!WARNING]
>
> If you disable or delete a key, every service that uses it stops working. Data encrypted with a deleted key cannot be recovered.
## Prepare the keys
Before you create the data plane, prepare 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. To use one key for every service, set the same 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.
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.
## Set the keys when you create the data plane
In the UI, open **Encryption keys** under **Configuration** when you create the data plane. Choose **One key for all services** or **A key per service**, then enter the key ARNs.
Through the API, include `customer_managed_keys` in the body of the [create data plane request](/langsmith/smith-api/data_planes/create-a-new-data-plane), alongside the other required fields. It takes two fields:
* **`key_arn`**: A key ARN for every service.
* **`service_key_arns`**: An object whose keys are service names and whose values are key ARNs.
```json One key for all services theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
{
"customer_managed_keys": {
"key_arn": "arn:aws:kms:us-east-1:123456789012:key/mrk-aaaa1111bbbb2222cccc3333dddd4444"
}
}
```
```json A key per service theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
{
"customer_managed_keys": {
"service_key_arns": {
"s3": "arn:aws:kms:us-east-1:123456789012:key/mrk-aaaa1111bbbb2222cccc3333dddd4444",
"ebs": "arn:aws:kms:us-east-1:123456789012:key/mrk-bbbb2222cccc3333dddd4444eeee5555",
"eks": "arn:aws:kms:us-east-1:123456789012:key/mrk-cccc3333dddd4444eeee5555ffff6666",
"rds": "arn:aws:kms:us-east-1:123456789012:key/mrk-dddd4444eeee5555ffff666677778888",
"elasticache": "arn:aws:kms:us-east-1:123456789012:key/mrk-eeee5555ffff66667777888899990000"
}
}
}
```
```json A default key with an override theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
{
"customer_managed_keys": {
"key_arn": "arn:aws:kms:us-east-1:123456789012:key/mrk-aaaa1111bbbb2222cccc3333dddd4444",
"service_key_arns": {
"rds": "arn:aws:kms:us-east-1:123456789012:key/mrk-dddd4444eeee5555ffff666677778888"
}
}
}
```
Set `key_arn`, `service_key_arns`, or both. A key in `service_key_arns` overrides `key_arn` for its service. Without `key_arn`, a service that `service_key_arns` does not list keeps AWS-managed encryption.
## How LangSmith validates the keys
Before it creates the data plane, LangSmith checks each key:
* The key exists and is enabled.
* The key is a symmetric encryption key.
* The provisioning role can use the key.
For keys in the data plane account, LangSmith also checks two key policies:
* The `ebs` key policy allows the Auto Scaling service-linked role.
* When LangSmith manages the VPC, the `s3` key policy allows VPC flow log delivery.
LangSmith does not check the policy of a key in another account.
## See also
* [BYOC onboarding](/langsmith/byoc-onboarding-aws)
* [BYOC architecture](/langsmith/byoc-architecture-aws)
* [Bring your own IAM roles](/langsmith/byoc-byoiam-aws)
* [Bring your own VPC](/langsmith/byoc-byovpc-aws)
* [Create a new data plane API reference](/langsmith/smith-api/data_planes/create-a-new-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-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 long does BYOC keep traces?
>
> BYOC is not subject to the extended retention maximum that applies to LangSmith Cloud. By default, base traces last 14 days and extended traces last 400 days. You can change both defaults in the data plane settings. Enterprise customers can also shorten the extended period per workspace. See [Data retention](/langsmith/usage-and-billing#retention-periods) and [Customize extended retention policy](/langsmith/data-purging-compliance#customize-extended-retention-policy).
> [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?
>
> On AWS, LangChain owns and performs EKS upgrades proactively, ahead of AWS end-of-support dates, in the data plane's [maintenance window](/langsmith/byoc-operations-aws#maintenance-window). 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 on AWS](/langsmith/byoc-operations-aws#kubernetes-cluster-upgrades).
>
> On Azure, AKS applies Kubernetes patch versions and node image updates automatically in the maintenance window. See [Kubernetes cluster upgrades on Azure](/langsmith/byoc-operations-azure#kubernetes-cluster-upgrades).
>
> On GCP, the GKE cluster runs on the `REGULAR` release channel, and nodes upgrade automatically. See [GKE and compute](/langsmith/byoc-architecture-gcp#gke-and-compute).
> [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. Therefore, neither a rolling update nor a node drain takes a service below the capacity it needs.
>
> Maintenance that could cause downtime, such as a database restart, happens in the data plane's weekly maintenance window:
>
> * **AWS**: Set the window in the LangSmith UI or the API. See [Maintenance window](/langsmith/byoc-operations-aws#maintenance-window).
> * **Azure**: Set the window through the API. See [Maintenance window on Azure](/langsmith/byoc-operations-azure#maintenance-window).
> * **GCP**: Set the window through the API. See [Change data plane settings](/langsmith/byoc-onboarding-gcp#change-data-plane-settings).
> [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 [Deploy agents](/langsmith/deploy-overview).
### 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.
After the data plane is active, you can change its maintenance window, TTL retention, and ingress allowlist. See [Data plane settings](/langsmith/byoc-operations-aws#data-plane-settings).
**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.
To reach the data plane from applications in a different AWS account, see [Cross-account access](/langsmith/byoc-operations-aws#cross-account-access).
**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. Each data plane runs in its own resource group. A Terraform module gives LangSmith access to that resource group only, and LangChain then creates and operates the data plane in it. For the design, see [BYOC architecture on Azure](/langsmith/byoc-architecture-azure). For AWS, see [BYOC onboarding](/langsmith/byoc-onboarding-aws).
## 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**: A dedicated subscription is recommended, not required.
* **Azure permissions**: `Owner`, or `Contributor` and `User Access Administrator`, at subscription scope, to apply Terraform. A Microsoft Entra role that can create service principals, for example `Cloud Application Administrator`, once per tenant. Two people can share these, as the Terraform step below shows. If your `User Access Administrator` grant blocks privileged roles, set `byo_iam = true` and create the identities yourself.
* **Terraform**: Terraform 1.11.0 or later.
* **An organization admin in LangSmith**: To create, change, and delete a data plane.
* **vCPU quota**: At least 6 free vCPUs in the region, in both the **Total Regional vCPUs** quota and the Dsv6 family quota, for three `Standard_D2s_v6` system nodes. Application nodes use D, E, and F series v5 or later, so plan quota for those too. See [Node pools](/langsmith/byoc-architecture-azure#compute).
* **A region**: Any Azure region. To enable a new region, contact the LangChain team.
## Create a data plane
**1. Copy the external ID**
In LangSmith, go to **Settings > Data Planes** and click the copy button next to the **Data Planes** header. 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/tree/main/modules/byoc/azure/langsmith-byoc-access) in your subscription. You must use this module. It creates:
* **The LangSmith service principal**, once per tenant: the identity of the LangSmith application (client ID `5b0a74cb-9f37-4797-b557-c15d7be80d3b`) in your Entra tenant. The LangSmith control plane runs outside your tenant and signs in as it. It has no Microsoft Graph permissions. The managed identities in the resource group are for the workloads inside the data plane.
* **A resource group** `langsmith-byoc-` for each entry in `data_planes`. Do not put other workloads in it.
* **A Key Vault** in each resource group, with Azure RBAC and no public network access. LangSmith writes the data plane's bootstrap secret to it.
* **Two role assignments** on each resource group: a `langsmith-byoc--` custom role and `User Access Administrator`. Both 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.ContainerRegistry",
"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
# Set to false if an Entra admin already ran `az ad sp create`.
# create_service_principal = false
data_planes = {
prod = {
location = "eastus"
}
}
}
output "langsmith_byoc_access" {
value = module.langsmith_byoc_access
}
```
1. Save the configuration as `main.tf` in an empty folder. Replace the subscription ID and the region. The `data_planes` key (`prod`) names the resource group: up to 63 lowercase letters, digits, and hyphens, starting with a letter, ending with a letter or digit, and with no consecutive hyphens.
2. If the person who applies Terraform cannot create service principals, an Entra admin runs `az ad sp create --id 5b0a74cb-9f37-4797-b557-c15d7be80d3b` first. Then you must set `create_service_principal = false`. Terraform then only reads the service principal.
3. Run:
```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
az login
terraform init
terraform apply -var 'external_id='
terraform output -json langsmith_byoc_access
```
4. Note `azure_entra_tenant_id`, and the `region` and `resource_group_id` under `data_planes`.
For what each role allows, see [Access and permissions](/langsmith/byoc-architecture-azure#access-and-permissions). For all 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**.
LangSmith first checks the external ID, its permissions, the Key Vault, the region, and the vCPU quota. If a check fails, the form shows the error. See [Troubleshoot data plane creation](#troubleshoot-data-plane-creation).
**4. Wait for provisioning**
The data plane moves from `requested` to `provisioning` to `active` in **Settings > Data Planes**. If it is not active within 3 hours, it moves to `provisioning_failed`. Then 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`): Reach the data plane only from its VNet. Connect your network to that VNet, for example with peering or a VPN gateway, and resolve DNS through its private DNS zone. Peering or a VPN alone does not give 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.
## 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 reduces the custom role and deletes the `User Access Administrator` assignment. Azure applies the change in up to 5 minutes. LangChain can still upgrade, scale, and repair the data plane. It cannot delete the data plane, its databases, storage, or network, and cannot create role assignments. Set `reduced_access` back to `false` before you delete or re-create the data plane, and before an upgrade that adds a role assignment.
## 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 data, delete the Blob storage accounts first. Then remove the key from `data_planes` and run `terraform apply` to delete the resource group, the Key Vault, and the role assignments.
## Remove LangSmith access
To stop LangSmith from changing a data plane, remove the role assignments of the LangSmith service principal on its resource group and AKS cluster. Removing the Terraform module removes access to every data plane in the tenant. The 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.
## 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 operates a LangSmith BYOC data plane, which operations you manage in your own AWS account, and how break-glass access works.
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.
Operations fall into three groups:
* **[LangChain-managed operations](#langchain-managed-operations)**: Scaling, upgrades, and maintenance that LangChain performs for you.
* **[Customer-managed operations](#customer-managed-operations)**: Data plane settings, observability, cross-account access, and auditing that you configure yourself.
* **[Break-glass access](#break-glass-access)**: Temporary access that you grant to a LangChain engineer when troubleshooting requires it.
## LangChain-managed operations
LangChain performs the following operations on every data plane, with no action required from you. To change some defaults, such as high availability or instance sizes, contact the LangChain team.
### 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, in the data plane's [maintenance window](#maintenance-window).
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.
## Customer-managed operations
You configure the following operations yourself, through the LangSmith UI and API or in your own AWS account.
### Data plane settings
To edit a data plane's settings:
1. Navigate to **Settings > Data Planes**.
2. Find your data plane and select **Settings**.
3. Open the tab for the setting you want to change, then save.
You can also use the [Update data plane settings](/langsmith/smith-api/data_planes/update-data-plane-settings) endpoint.
#### Maintenance window
The maintenance window is when LangChain runs operations on your data plane, such as EKS version upgrades and RDS database upgrades. Any maintenance that could cause downtime, such as a restart of RDS or ElastiCache, happens in this window.
* The window lasts 2 hours, once a week. All times are in UTC.
* Choose the day and the start time on the **Maintenance** tab.
* The default is Sunday, 07:00–09:00 UTC (`sun:07:00-sun:09:00`).
#### TTL retention
A data plane's TTL settings set the default retention periods for its traces. These values are defaults, not limits. A workspace that chooses one of the [extended durations](/langsmith/usage-and-billing#retention-periods) keeps that duration, even when it is longer than the data plane's long-lived TTL. The blob bucket has an S3 lifecycle rule for each retention period, so trace payloads are deleted on the same schedule as their traces.
Configure TTL retention on the **TTL retention** tab:
* **Enable TTL retention**: On by default.
* **Short-lived TTL (days)**: The default retention period for base traces. The default is 14 days.
* **Long-lived TTL (days)**: The default retention period for extended traces. The default is 400 days. It must be greater than or equal to the short-lived TTL.
Each value must be a whole number greater than 0. Through the API, send `ttl.short_days` and `ttl.long_days`.
#### Ingress allowlist
On the **Ingress** tab, you can restrict which source IP ranges the load balancer accepts. Add up to 50 IPv4 CIDR ranges. The load balancer then accepts traffic on port 443 only from those ranges.
* **Empty list**: The load balancer allows all sources.
* **Private load balancer**: The data plane VPC CIDR is always allowed.
> [!WARNING]
>
> * An API update replaces the whole list. Include every range you want to keep, or the load balancer stops accepting traffic from the ranges you leave out.
> * Do not edit the Network Load Balancer security group directly in AWS. LangSmith reconciles the data plane on a regular cadence and reverts any manual changes to managed resources.
### 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).
### Cross-account access
A private BYOC data plane exposes its load balancer inside your data plane VPC. Applications in a different AWS account cannot reach it without an explicit cross-account network path.
Any private network path between the consumer network and the data plane VPC works. LangChain does not require a specific method. Common options include:
* AWS PrivateLink
* VPC peering
* Transit gateway
* VPN
> [!NOTE]
>
> LangChain provisions [two PrivateLink connections](/langsmith/byoc-architecture-aws#connectivity) that carry traffic between the LangChain control plane and your data plane. There is no LangChain-managed endpoint service or network path for application traffic from your own networks. You create and manage that path yourself.
The steps below apply whether LangChain creates the VPC or you supply your own. To manage the VPC itself (its subnets, routing, gateways, and endpoints), use [Bring your own VPC on AWS](/langsmith/byoc-byovpc-aws) instead.
#### Allow consumer source ranges
If you [restrict the load balancer's source IP ranges](#ingress-allowlist), add the CIDR range of each consumer network to that list. A private load balancer always allows the data plane VPC CIDR, but not consumer ranges. Without them, the load balancer drops consumer traffic.
#### Connect with AWS PrivateLink
To create the endpoint service in the data plane account:
1. Identify the Network Load Balancer (NLB) for the data plane ingress. Find it in the AWS EC2 console under **Load Balancers** in your data plane account and region. Its name ends in `-sm-istio`.
2. Create a **VPC endpoint service** backed by that NLB. Set acceptance mode to **auto** or **manual** depending on your security policy.
3. Add each consumer AWS account as a **principal** allowed to create an interface endpoint for the service.
4. Note the endpoint service name (for example, `com.amazonaws.vpce.us-east-1.vpce-svc-xxxxxxxxxxxxxxxxx`).
> [!WARNING]
>
> Do not modify the NLB itself. LangSmith reconciles the data plane on a regular cadence and reverts manual changes to managed resources. If the ingress mode or subnets change, LangChain coordinates any NLB updates with you.
To connect each consumer account:
1. Create a **VPC interface endpoint** for the endpoint service name from the previous step, in the VPC where your application runs.
2. Find the data plane hostname in the API URL shown under **Settings > Data Planes**.
3. Create a **private Route 53 hosted zone** for that hostname, associated with the consumer VPC.
4. Add an alias or CNAME record in that hosted zone pointing the hostname to the interface endpoint's DNS name.
Your applications use the standard data plane API URL without any change. DNS resolves it to the interface endpoint in the consumer VPC.
#### Connect with VPC peering, a transit gateway, or a VPN
To peer a consumer VPC with the data plane VPC:
1. In the data plane account, create a peering connection request from the data plane VPC to the consumer VPC.
2. In the consumer account, accept the request.
3. Add routes in both VPCs so traffic to each other's CIDR range traverses the peering connection.
4. Update any network ACLs or security groups that need to allow the peered ranges.
To use a transit gateway, attach both VPCs to a shared transit gateway and configure route tables so each VPC can reach the other.
To use a VPN, attach the VPN to the data plane VPC, or to a transit gateway attached to it, and add routes so the consumer network can reach the data plane VPC CIDR range.
These options route traffic, but they do not carry DNS. The data plane hostname resolves only inside the data plane VPC. To configure DNS in each consumer VPC:
1. Create a private Route 53 hosted zone for the data plane hostname.
2. Associate the hosted zone with the consumer VPC.
3. Add an alias or CNAME record that points the hostname to the data plane load balancer's DNS name.
For a consumer network outside AWS, forward DNS queries for the data plane hostname to a Route 53 Resolver inbound endpoint in the data plane VPC.
### 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.
## Break-glass access
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. Then validate and sanitize the output before sharing it with LangChain.
* **Break-glass access**: You grant a specific LangChain engineer temporary access to perform the operation. You can revoke that access at any time.
### Grant access
Break-glass access uses the `LangSmithBYOCBreakGlass` IAM role that the [`langsmith-byoc-role` Terraform module](https://github.com/langchain-ai/terraform/tree/main/modules/byoc/aws/langsmith-byoc-role) creates in your account. The role's trust policy defaults to `Effect: Deny`.
The role carries only `eks:DescribeCluster` permission at the IAM layer. Kubernetes-level access is controlled separately through EKS access entries that you create for the break-glass role in each target cluster and region. Three access levels are available:
| Level | EKS access policy or group | Use |
| - | - | - |
| Read-only | `AmazonEKSAdminViewPolicy` | Inspect cluster state without making changes |
| Cluster management | `langsmith-cluster-management` Kubernetes group | Manage LangSmith workloads during an incident |
| Full cluster admin | `AmazonEKSClusterAdminPolicy` | Last resort for critical incidents or data access |
When a LangChain engineer requires access, they send you:
* Their AWS IAM Identity Center user ID.
* Their LangChain email address.
* The requested access level.
* The target cluster name and AWS region.
To grant access:
1. Set the following inputs in your `langsmith-byoc-role` module and apply:
```hcl theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
allow_break_glass_access = true
break_glass_identitystore_user_ids = [
"",
]
break_glass_source_identities = [
"",
]
```
The Identity Store user ID ensures that only the specified engineer's credentials can assume the role. The source identity email improves readability in CloudTrail audit records.
2. Share the module's `break_glass_role_arn` output with the LangChain engineer.
3. Set the values for the target cluster:
```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
export ROLE_ARN="arn:aws:iam:::role/LangSmithBYOCBreakGlass"
export CLUSTER="-smith-eks"
export REGION=""
```
4. Create the EKS access entry for the requested access level. Create only one access entry per principal per cluster.
```bash Read-only theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
aws eks create-access-entry \
--region "$REGION" \
--cluster-name "$CLUSTER" \
--principal-arn "$ROLE_ARN" \
--type STANDARD
aws eks associate-access-policy \
--region "$REGION" \
--cluster-name "$CLUSTER" \
--principal-arn "$ROLE_ARN" \
--policy-arn arn:aws:eks::aws:cluster-access-policy/AmazonEKSAdminViewPolicy \
--access-scope type=cluster
```
```bash Cluster management theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
aws eks create-access-entry \
--region "$REGION" \
--cluster-name "$CLUSTER" \
--principal-arn "$ROLE_ARN" \
--type STANDARD \
--kubernetes-groups langsmith-cluster-management
```
```bash Full cluster admin theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
aws eks create-access-entry \
--region "$REGION" \
--cluster-name "$CLUSTER" \
--principal-arn "$ROLE_ARN" \
--type STANDARD
aws eks associate-access-policy \
--region "$REGION" \
--cluster-name "$CLUSTER" \
--principal-arn "$ROLE_ARN" \
--policy-arn arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy \
--access-scope type=cluster
```
Grant the lowest level that fits the problem. Activity appears in CloudTrail and in the EKS audit log in CloudWatch in your account.
### Revoke access
Revoke access as soon as the engineer no longer needs it. Follow the steps in order: disabling trust first prevents the engineer from starting a new session after you revoke the active ones.
To revoke access:
1. Set `allow_break_glass_access = false`, remove the Identity Store user IDs and source identities, and apply:
```hcl theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
allow_break_glass_access = false
break_glass_identitystore_user_ids = []
break_glass_source_identities = []
```
This blocks new `sts:AssumeRole` calls into the `LangSmithBYOCBreakGlass` role.
2. Delete the EKS access entry in each cluster where you created it:
```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
aws eks delete-access-entry \
--region "$REGION" \
--cluster-name "$CLUSTER" \
--principal-arn "$ROLE_ARN"
```
3. In the IAM console, go to **Roles** > **LangSmithBYOCBreakGlass** > **Revoke sessions**, then select **Revoke active sessions**. Existing sessions stay valid until they expire, so revoking them closes access immediately.
## See also
* [BYOC architecture](/langsmith/byoc-architecture-aws)
* [BYOC onboarding on AWS](/langsmith/byoc-onboarding-aws)
* [Bring your own VPC on AWS](/langsmith/byoc-byovpc-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).
Operations fall into three groups:
* **[LangChain-managed operations](#langchain-managed-operations)**: Scaling, upgrades, and maintenance that LangChain performs for you.
* **[Customer-managed operations](#customer-managed-operations)**: Data plane settings, observability, and auditing that you configure yourself.
* **[Troubleshooting](#troubleshooting)**: How LangChain gets access to your data when troubleshooting requires it.
## LangChain-managed operations
### 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.
## Customer-managed operations
### Data plane settings
You can change the following settings of an Azure data plane while it is `provisioning` or `active`, with the [Update data plane settings](/langsmith/smith-api/data_planes/update-data-plane-settings) API:
| 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. |
#### Maintenance window
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.
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"}'
```
### 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.
### 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.
## 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.
## 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.
> [!TIP]
>
> 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 the exact access LangChain holds on each cloud, see [Cross-account IAM permissions on AWS](/langsmith/byoc-architecture-aws#cross-account-iam-permissions), [Access and permissions on GCP](/langsmith/byoc-architecture-gcp#access-and-permissions), and [Access and permissions on Azure](/langsmith/byoc-architecture-azure#access-and-permissions).
## 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 [Break-glass access](/langsmith/byoc-operations-aws#break-glass-access). 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 9-16, 2026**
## Highlights
* **Searchable Settings modal with My account**: Settings now opens in a modal over the page you are working on, so you keep your place in LangSmith. A sidebar search box finds settings by name and highlights matches, and **My account** gathers your profile, appearance, and connected apps in one place. Related pages are grouped, such as **Permissions**, **Login & provisioning**, and **Models**, and editors open in nested dialogs that keep your drafts and return focus when you close them. [Learn more](/langsmith/admin).
* **LangSmith Chat on the Free plan**: Free plan workspaces can now use LangSmith Chat with the included usage grant, and Auto appears in Chat without a card on file. A usage bar shows how much of the grant you have used, and past the grant it shows overage spend against your cap. Past the grant, Chat charges for overage only after a billing admin clicks **Charge me for overages** with a card on file, and each banner tells you the next step, including after a reload. [Learn more](/langsmith/chat).
* **Large traces load in pages**: Traces with thousands of runs now open quickly because the trace tree loads in pages instead of all at once. You can still filter a large trace, with matches shown in a flat list and a **Load more matches** control for each trace. Links to a child run open that run with its full inputs and outputs, and Studio shows the complete trace contents. [Learn more](/langsmith/view-traces).
* **Teams are now User Groups**: Teams are now called User Groups across LangSmith, including settings pages, permissions, access policies, the LLM Gateway, and coding agent views. The new `/api/v1/platform/orgs/current/user-groups` routes and `user-groups` permissions such as `workspaces:user-groups:read` are available, and the existing `/teams` API routes keep working for now. Your current groups, members, role grants, and policies carry over without any changes. [Learn more](/langsmith/teams).
* **Serve snapshots as sandbox functions**: You can deploy a snapshot as a sandbox function that serves HTTP at a stable URL. Instances start from the snapshot, are reused across requests, scale between `min_instances` and `max_instances`, pause when idle, and stop after `idle_timeout_seconds`. You can roll back by deploying an earlier snapshot, set a function's access to public or token, and stream a function's stdout and stderr with `GET /v2/sandboxes/functions/{name}/logs`, which supports `follow=true`.
## Tracing
* The v2 sessions API now creates projects and experiments at `POST /api/v2/sessions` and updates them at `PATCH /api/v2/sessions/{session_id}`. Creates require a `type` of `PROJECT`, `AGENT`, or `EXPERIMENT`, and both endpoints return the refreshed session.
* Long trace and thread run trees now include a minimap on the right edge with turn boundaries and error marks, so you can jump to any part of a loaded tree by clicking or dragging. The minimap covers only the runs that are loaded and expanded.
* Filter bars now apply your filter when you press Enter, select an autocomplete suggestion, or click out of the filter editor, so runs no longer reload while you are still typing.
* Run `langsmith setup` to install the LangSmith skills and the LangSmith MCP server into Claude Code, Cursor, and Codex on your machine, with no API key written to any agent config.
* You can now run `langsmith investigate` to get one report on a project's failures against a baseline, grouped by step and error with evidence traces, and `langsmith verify --since ` to check that those failures stopped after a fix.
* You can now store a CLI profile's API key in the OS keychain with `langsmith profiles create --keychain`, so the key no longer sits in plaintext in `config.json`. The Go SDK reads keychain profiles; the Python, JavaScript, and Java SDKs do not yet.
* The JavaScript SDK now compresses queued runs with zstd when your server and Node.js runtime support it, reducing upload size. Node.js 22.15 or later, or 23.8 or later, is required for zstd; otherwise the SDK falls back to gzip.
* Online Insights is now available to every workspace once the deployment is ready, and your online configurations are kept up to date without any action on your part.
* Coding agent overview now shows time to merge, cache rate, and cost on your topline. Grouped charts draw one bar per group over the selected range, so cost bars add up to the ungrouped total.
* The v1 session endpoints for listing, retrieving, creating, and updating projects now have a removal date of July 1, 2027. Your requests to these endpoints return `Deprecation` and `Sunset` headers that point to the v2 replacement, and the SDK deprecation warnings use the same date.
## Sandboxes
* The **Logs** tab on each Box now shows retained command history, including status, transport, duration, and exit code, and it stays readable while the Box is stopped. You can filter commands by status, transport, and time range, and search both command text and captured output. The same tab also shows inbound and outbound network activity, including blocked requests, connection failures, and upstream errors.
* Sandbox access delegation now requires an explicit permission list. The `INHERIT` mode is removed, so `--delegate-access` is gone from the CLI and `--delegate-permission` is the only way to delegate. Create requests with `mode` set to anything other than `EXPLICIT`, or with an empty `permissions` list, now return a 422.
* You can now attach a literal attribution rule or a callback that supplies metadata headers to every HTTP(S) request your sandbox sends through the proxy, so downstream services can identify the sandbox's traffic. Attribution headers are sent to the destination and can be echoed back to sandbox code, so never place secrets or personal data in them. Attribution is not an egress-enforcement guarantee: direct-IP and nonstandard-port traffic, non-HTTP traffic, and existing tunnels are not covered, and existing tunnels must reconnect.
* Header rules can now restrict a credential to an exact scheme and port with the new `match_scheme` and `match_port` fields. Set `match_scheme` to `https` and `match_port` to the service port, and your sandbox sends the header only to that origin, never to plain HTTP or another port on the same host.
* Header injection and rewrite rules with **match_paths** now apply only to canonical request paths. Requests with dot segments, empty segments, backslashes, or encoded slashes no longer receive the rule's credential.
* Sandboxes can now report that they are busy from inside the guest, so a long-running process keeps its sandbox from being stopped as idle, and the response returns the idle TTL so the process knows how often to report.
* The Go SDK's sandbox command start now accepts a `CommandID` parameter. Starting with an ID the sandbox already has reattaches to that command instead of running it again, so retried starts run the command once.
* New AWS data planes start with sandboxes turned off, so the sandbox host pool stays suspended until you enable it. To enable sandboxes, turn on **Sandboxes** in the create data plane modal, or set `is_sandboxes_enabled` to `true` when you create the data plane through the API.
* Private AWS data planes can keep sandbox service URLs out of public DNS. Set `ingress.privateSandboxDns` to `true` and the sandbox wildcard record is published in a private Route53 zone attached to your data plane VPC and additional VPC associations. With `customerManagedDns`, the record goes in your own DNS instead. New data planes have this on by default, and existing data planes can turn it on.
## Administration
* Deprecated API usage reports now show which SDK versions and direct API-key calls reach each deprecated endpoint, so you can see who still needs to migrate.
* You can now search the LangSmith API by keyword, read any operation's parameters, and call read-only operations from the hosted MCP server. Write and destructive operations are listed but cannot be called yet.
* The LangSmith MCP server adds tools to search threads and traces, parse natural-language AI searches, and get thread and trace statistics and messages. Semantic search through `ai_search` is available on `query_runs`, `query_traces`, and `query_threads`.
* You can now create datasets, add examples to them with `create_examples`, and update up to 100 examples per call with `update_examples` in the hosted MCP server. The `run_experiment` tool is removed; run experiments with the SDK's `evaluate()` function instead.
* You can now use the hosted LangSmith MCP server to list, read, create, update, and delete Agents. Deletion is permanent and cannot be undone.
* The MCP server at `/mcp` now accepts a signed-in LangSmith web app login as well as API keys and OAuth tokens. Tool calls run as that user, and a `workspace_id` the user does not belong to is refused.
* Service accounts can now create, read, and revoke tracing keys for the workspaces they manage. Tracing keys created by a service account show no human creator, and the key's secret is never returned when you read its metadata.
* You can now manage tracing keys with the `langsmith_tracing_key` Terraform resource, which creates a fixed-scope, ingestion-only key for the workspaces you list. Changing the description, workspaces, or expiry replaces the key, and the one-time secret is stored in Terraform state.
* Org admins can now set a default monthly trace limit for their organization, and new workspaces start with it. Use **Apply to existing workspaces** to update workspaces that have no limit of their own.
* New Plus subscribers can now choose the November 2026 Plus plan, which includes free Engine usage up to 1,000 LSUs a month through December 31. Existing Plus plans cannot switch to it.
* Workspace admins can now list, create or update, and delete workspace secrets from the Python, JavaScript, Go, and Java SDKs. The list returns secret keys only, and `include_configs` adds each secret's allowed hosts. Leaving out `value` on an upsert keeps the current value, and deleting a missing key succeeds.
* Organization admins can now set multiple security contacts in **Settings** > **Security Contacts**, with up to 10 email addresses per organization, and self-hosted deployments report these contacts to LangChain so security notices reach every address.
* Workspaces that connected a Slack app before the regional Slack apps launched can now move to the new app: **Org settings** > **Integrations** shows an **Update available** badge and a **Reinstall** button for each one, and after reinstalling, LangSmith asks private channels to `/invite` the new bot.
* Agent access token mints now appear in your organization's audit logs as `mint_agent_access_token` entries, so you can see which agents received tokens and when. Filter `GET /api/v1/audit-logs` by that operation to find them.
* Root-run metadata conditions in access policies are now generally available. Organizations with ABAC enabled can write policies that filter traces by root-run metadata, on SaaS, self-hosted, and BYOC deployments.
* Access Policies now has its own page in Settings, separate from Roles, and the tab toolbar stays in place while rows scroll. Resource tags are grouped by key in a searchable table with compact resource badges, and the tag modal lists resource types with a searchable checkbox panel.
* The Terraform provider now manages Managed Tools servers, profiles, profile credentials, and kits, and OAuth connections accept `grant_type = "client_credentials"`, so LangSmith acquires tokens from the client ID and secret with no browser step. Changing an OAuth connection's provider settings now updates it in place, so existing user authorizations stay in place.
* Auth proxy destination allowlists now reject malformed entries, such as entries with a scheme, port, or path, instead of allowing all hosts. Invalid entries return a 400 error when you save them in **Settings**, and wildcard patterns now show a warning that matching hosts may receive the IdP token.
* Create and rename workspace calls now return the full workspace, including your role and permissions in it, so the response matches what a GET on the workspace returns. Request validation errors on workspace routes now return problem details with a 422 status.
* You can now read a single model price by ID with `GET /api/v1/model-price-map/{id}`, including LangSmith default entries and organization entries your workspace uses.
* The blank Custom Apps starter now includes tested building blocks in `src/blocks`: paged queries with loading, empty, and error states, run and thread viewers, and a rubric feedback form that types each answer from its queue item's pinned feedback config.
## Prompts and playground
* LangSmith Chat in Slack now reads the thread you mention it in, so follow-up questions build on what was posted. When a question does not name an agent or project, it asks which one before it reads any data, and it sends you a private Confirm message before it creates a dataset.
* Chat is now in the top-right header, and the floating LangSmith Chat bubble is gone. Select Chat to open the panel and focus the composer.
* LangSmith Chat, including `@LangSmith` in Slack and the UI, now runs Claude Sonnet 5.5 with thinking on and effort set to `xhigh`. Your chats get deeper reasoning without any configuration change.
* Prompt Hub repos and commits are now available in the Python and TypeScript SDKs, so you can create, retrieve, and list them without the CLI. Use `client.repos` and `client.commits` to manage Prompt Hub repos, directories, and commits.
* The commit `manifest_sha` field is now documented as a base64-encoded string, matching what the API returns. Creating a commit now requires a `manifest` field, which the API already rejected when missing.
## Feedback
* You can now create and list feedback from the CLI with `langsmith feedback create` and `langsmith feedback list`, so agents can score runs, projects, and threads and read existing feedback. Multi-value filters such as `--run` and `--key` take a YAML list, for example `--run '[id1, id2]'`.
* You can now pass `include_rubric_keys=true` to the annotation queue list endpoint to get each queue's rubric feedback keys, in rubric order, without assertion items. Queues without eligible rubric items return an empty array.
* Feedback can now be created and listed at `/feedback` and `/api/v1/feedback`, with or without a trailing slash, and creates through these routes appear in audit logs as `create_feedback`.
## Evaluators
* The V1 endpoint for listing run rules, `GET /api/v1/runs/rules`, is deprecated and stops working on April 1, 2027. Use `GET /api/v2/runs/rules`, which returns cursor-paginated results and is faster on workspaces with many rules.
* Creating or editing an online evaluator now saves with one click. The **Save evaluator?** cost reminder no longer appears, including when you only rename an evaluator.
## Deployment
* You can now search agents by name or ID in the agent picker, global search, and the agents table. Search ignores case, hyphens, and spaces, so `open swe`, `open-swe`, and `openswe` return the same agents.
* You can filter the agents list by owner, choosing one or more members from the **Owner** filter. Each filter chip shows the selected owners, and the member picker searches by name or email.
* `langgraph dev` now runs on the Go core with SQLite by default, and it persists your data to `.langgraph_api/core.sqlite`. Set `FF_INMEM_CORE=false` to keep the Python runtime.
* Run joins and thread streams now read stored events by default, so a run can be rejoined from its last event ID or checkpoint whether or not it was created with `stream_resumable`. Every stream event is stored, and servers deliver live events to each other, so readers on any server see events from all of them.
* Thread streams in lifecycle mode now also send the interrupts event, so a client watching a thread learns which interrupts another client answered. A thread stream resumed with `Last-Event-ID` replays it for runs created with `stream_resumable`.
* Thread search and count now accept `created_after`, `created_before`, `state_updated_after`, and `state_updated_before` filters, so you can find threads by when they were created or when their state last changed. Pass ISO 8601 timestamps, where timestamps without a timezone are treated as UTC.
* Requests to the A2A endpoint with the header `A2A-Version: 1.0` now receive v1.0 response shapes: JSON-RPC results and streaming events omit `kind`, use `statusUpdate` and `artifactUpdate` wrappers, emit UTC timestamps ending in `Z`, and encode file parts with `url` or `raw`, `mediaType`, and `filename`. Server-generated tool results now appear under `toolResults` in this mode. Requests without the header, or with `0.3`, keep the existing response format, and unsupported versions return error `-32009`.
* JS graph factories now receive a second `runtime` argument on the Python Agent Server, matching the JS Agent Server. The argument includes `accessContext` and `executionRuntime`, so factories that read it no longer break when deployed. Factories that take one argument are unaffected.
* Long-running MCP tool calls now stay connected through proxies with idle timeouts. The `/mcp` endpoint sends keepalive pings to clients that send `Accept: text/event-stream`. If a client disconnects during a call, the call's run is cancelled and its thread is deleted.
* Per-deployment Redis now caps memory at 75% of its container limit and rejects new writes when full instead of evicting keys. Reads, PING, DEL, and EXPIRE keep working, and the Redis pod no longer gets OOM-killed and restarts empty. Each per-deployment Redis restarts once, empty, when the operator first reconciles it.
* Per-priority queue metrics now count only runs that can start, one per thread with nothing running, so runs waiting behind a running run no longer inflate the counts or wait times. The series are renamed to `lg_api_num_startable_runs` and `lg_api_startable_runs_wait_time_{max,med}`, and the `queue.by_priority` keys in `/metrics?format=json` change to match.
* Your server now waits for pending migrations to finish before it starts serving requests, so it no longer runs against an old schema. Index migrations built with `CREATE INDEX CONCURRENTLY` no longer fail after one second on busy deployments. Set `STARTUP_TIMEOUT_SECONDS` (default 270) to bound startup; a startup probe shorter than 270 seconds needs a smaller value.
* Deployment metrics now return compact statistics with `summary=true`, including the latest, min, max, and average value for each series. Omitted `start_time` now defaults to one hour before the end time, and the hosted MCP server exposes a read-only `get_deployment_metrics` tool.
* Log reads on your revision and deployment log endpoints are now capped at five Cloud Logging pages per request, so a single request with a sparse filter no longer scans many empty pages. Requests that hit the cap return a next offset, so you can follow it to read further.
* Deployment secret values are now masked as `***` in project and deployment reads for callers who cannot update the deployment. Writes that send `***` back as a secret value now return a 400 that names the affected variables, so a masked read can no longer overwrite stored secrets.
* Deployment settings now include a Workload Identity section that sets up keyless access from agent deployments to AWS, Azure, or Google Cloud. It shows the trust configuration and environment variables for your cloud, prefilled with this deployment's agent subject.
* Terraform `langsmith_deployment` can now target an agent and environment through the new `agent` argument. Existing name-based deployments keep working, and adding a matching agent target preserves them.
* You can now deploy BYOC deployments into an allowed Kubernetes namespace by setting `source_config.k8s_namespace` when you create a deployment. Your data-plane administrator allows namespaces per workspace, and the namespace cannot be changed after creation.
* BYOC data planes that support scale to zero now offer Serverless deployments for both images and GitHub repositories. You can set the scale-down period to 1 hour, 1 day, or 1 week when you create a Serverless deployment, and change it later under **Settings** > **Scaling**.
* BYOC data planes can now run dedicated deployments: create one through the v2 API with `deployment_type` set to `prod`, and it starts on the `DEDICATED_S` tier. You can change a dedicated deployment's tier with `PATCH` or the `/resource-tiers` endpoint.
* BYOC data planes now accept `langgraph deploy` builds on AWS, Azure, and GCP. Local builds (`internal_docker`) are available on AWS and Azure, and GCP data planes take remote builds (`internal_source`) only, so use `langgraph deploy --remote` there.
* Deployment logs and metrics for BYOC data planes are now read from your own cloud account: revision logs, log search, build logs, and the deployment CPU and memory charts work on AWS, Azure, and GCP data planes that set up deployment observability.
* Azure and GCP BYOC deployments now accept only TLS 1.2 or later for incoming HTTPS connections, so clients that support only TLS 1.0 or 1.1 cannot connect. Azure PostgreSQL servers now require TLS 1.2 or later and secure connections, and Azure reverts manual changes to `require_secure_transport` and `ssl_min_protocol_version` back to these values.
* Azure BYOC clusters now encrypt node disks at the host, including temporary and ephemeral OS disks. Your subscription must first register the `Microsoft.Compute/EncryptionAtHost` feature.
* You can now encrypt new AWS data planes with your own KMS keys: set a single key for all services or a separate key per service (S3, EBS, EKS secrets, RDS, and ElastiCache) when you create the data plane. Services you do not list keep AWS-managed encryption. The key must be in the data plane region, and the **Encryption keys** section of the create form now accepts these keys.
* Playground and the LLM gateway can now assume your customer Bedrock IAM roles on BYOC AWS data planes. Tag each role with `LangSmithBedrock=true` and set an external ID to use it.
* You can now restrict inbound access to the AWS data plane load balancer. Set the allowed source CIDRs with `ingress.allowed_source_cidrs` in the API or under **Settings** > **Ingress** in the data plane settings. Internal load balancers always keep access from the data plane VPC CIDR.
* Azure data planes can now use identities that you create yourself. Set `byoiam.is_enabled` to `true` when you create an Azure data plane, and LangSmith uses the `langsmith--identity` identities and role assignments in your subscription instead of creating its own.
* GCP data planes now delete the PersistentVolume disks left by the LangSmith database StatefulSets and SmithDB caches when you delete the data plane, so no `pd-balanced` disks remain in your project.
* GCP data planes now keep their Cloud Storage bucket and Postgres backups when torn down.
* GCP data planes now run SmithDB's metastore on its own Cloud SQL instance, as AWS does. Your data plane's provisioner no longer needs Cloud SQL database permissions.
* Postgres for BYOC data planes on GCP now runs on Postgres 18, and scale-to-zero cells stay on Postgres 17. On an existing GCP data plane, the upgrade from 17 to 18 happens in place and takes the Postgres instance offline while it runs, so plan for downtime.
* GCP BYOC data planes now keep Google API traffic on Google's network when a peered VPC imports a default route or has none, so Workload Identity, image pulls, and logging no longer fail with `x509: certificate signed by unknown authority` behind a customer's hub firewall.
* You can now create GCP data planes in northamerica-northeast1 (Montréal) when you set up a BYOC deployment.
* New AWS data planes now request less CPU and memory by default, so idle services scale down to their minimum replicas and fit on fewer nodes.
* New AWS BYOC data planes now repack underutilized stateful nodes, so lowering ClickHouse and ZooKeeper resource requests shrinks the nodes they run on. Existing data planes keep their current setting until they are updated, and single-replica ClickHouse and ZooKeeper restart when their nodes are consolidated.
* AWS BYOC data planes can now opt in to SQL queries for workspaces with SmithDB reads enabled by setting `smithdbSqlEnabled` in the data plane configuration. The opt-in requires backend and SmithDB images that support SQL, and existing query authorization still applies.
* AWS data planes can now scale the SmithDB query, ingestion, and compaction worker components. Set `replicas`, `resources`, and `autoscaling` for each component under `smithdb` in your data plane configuration, and omitted values keep their defaults.
* Stats query can now scale on both memory pressure and CPU through KEDA. Set `statsQuery.autoscaling.autoscalingType` to `keda` and tune the target with `statsQuery.autoscaling.keda.targetMemoryRatio`, which defaults to `0.65`.
* BYOC data planes now count each container OOM kill once per workload in `byoc_k8s_oom_kills_total`, so repeated kills keep increasing the count instead of staying at 1. The `byoc_k8s_oom_kills` gauge is replaced, so dashboards and monitors that read the old name must switch to `byoc_k8s_oom_kills_total`.
## Datasets and experiments
* Dataset examples now load automatically as you scroll, 50 at a time, so you no longer need to click Load more or page through results. The total example count now appears beside the + Example button, and column headers stay visible while you scroll.
## Gateway
* Organization admins and billing readers can now query LLM Gateway usage across all workspaces in their organization. Results are grouped by user, API key, model, model provider, or workspace and ranked by total cost.
* Claude Code and other Claude-built clients can now fall back to Chat Completions models, because fixed thinking budgets are mapped to reasoning_effort and deferred tools are declared up front, with each change reported as a lossy warning.
* You can now send `POST /gemini/v1beta/decisions` requests through the Gemini passthrough, and the gateway returns the upstream response and status code unchanged, authenticated with your workspace `GOOGLE_API_KEY`. These requests are not traced or counted toward token usage, and prompt policies and guard redaction do not apply to them.
* You can now run requests from the Gateway home page without an API key. Run uses your signed-in session, and copying the code shows how to set `LANGSMITH_API_KEY` to run it elsewhere.
* Azure OpenAI configs now appear in the Gateway's fallback-chain picker and config lists, so you can pick them as a fallback target. The Gateway editor shows Azure's deployment name and endpoint fields, plus an optional **Model** field for custom-named deployments.
* `GET /v1/models` now lists only LangChain models for orgs without LLM Gateway enabled, instead of listing provider models that return errors.
* When trace content capture is off, failed runs no longer show provider error text in their error field. Those runs still appear as errors, without the provider's message.
* Tool Gateway is now available in BYOC workspaces whose data plane runs LangSmith v18 or later, and the **Tools** page appears in the sidebar for those workspaces. Workspaces on older data planes keep the **Tools** page hidden.
* Workspace tool policies can now name `FleetAgent`, `Role`, and `Team` as `principals`, so you can forbid or require approval for tool calls by a shared or enterprise Fleet agent, by everyone with a role, or by members of a team. Fleet agent policies are available through the policies API only and do not apply to personal Fleet agents.
* URL elicitations for MCP requests now name the connection they need. Each one includes `slug`, `kind`, `display_name`, and `auth_id` in `_meta` under `com.langchain.langsmith/credential`, so your client can group prompts for the same connection and poll `auth_id` to see when the user finishes connecting.
* You can now store a workspace API key when you register a secret MCP server. Send a `credential` with `owner_type` set to `workspace` on `POST /v1/managed-tools/servers`, and every caller of the server uses that key. Requires `workspaces:credentials:manage`.
* Managed tools now reject JSON-RPC batch requests on MCP routes with a 400 `jsonrpc_batch_unsupported` error, so send one JSON-RPC message per request. Batches previously bypassed tool deny and approval policies and now return an error before reaching the upstream server.
* Client-credentials OAuth connections now work for MCP servers. Connect an OAuth app that uses the client-credentials grant to a profile, agent identity, or workspace credential, and the connection is stored without opening a browser window. Tools that need the app's token run as the app's own identity, and a user cannot connect a client-credentials server as themselves.
* Agent Auth now includes Arcade as a LangSmith-managed OAuth app, so you can connect Arcade accounts to your agents through the `langsmith-arcade` provider without creating your own OAuth app.
## Engine
* Taskset runs now wait for room in your workspace's sandbox quota instead of failing when the quota is full. Trial sandboxes wait up to 10 minutes for a free slot, and runs wait up to 30 minutes for their runner sandbox.
* You can now limit a simulation to traces from one graph of your deployment by choosing a **Graph** when you create it, so the agent only learns from that graph's traces.
* After a simulation publishes its first set of tasks, the tasks now start a run automatically, capped at your simulation's trial spend limit, and the run appears in the taskset's runs list without a manual start. Later publishes in the same thread do not start another run.
## Fixes and improvements
> [accordion] Show all fixes
>
> * Run details pages now load when the runs list fails to return the selected run, instead of showing a loading skeleton indefinitely.
> * Trace attachments that were upgraded after ingest now download after their short-lived copies expire, instead of returning a 404 error.
> * Creating feedback with an epoch-number `start_time`, as the JavaScript SDK sends it, now works, where it previously failed with a `400 Invalid feedback request` error.
> * The SSO settings page now keeps your saved **Default workspace role** when it opens after another page has already loaded your organization's roles. Before this fix, the role showed as "Select role…" and saving other SSO changes failed with "Default role is required" until an admin reselected it. This applies to the OIDC SSO form and the invite flows that use role selection.
> * Grouped code rules on ACE evaluators now fail with a clear error in the rule log instead of retrying every window until the rule reports max attempts reached. The error explains that this code evaluator cannot evaluate threads or trajectories, and that you can turn on advanced features for the evaluator and save it to fix the rule.
> * Clicking Add alert in the Get started checklist now opens the create-alert pane with your agent's project selected, even when you are already on the Monitoring page, and the pane reopens each time you click it again after closing it.
> * Fixed an issue where **Chat** stayed hidden on later pages after you opened the experiment **Columns** pane and then navigated away with browser Back. **Chat** now returns when you leave the pane.
> * Chat is hidden on organization settings pages and on workspace routes you cannot access, so it no longer opens with a model selector that never loads.
> * Usage limits, retention settings, and plan cards now show the trace rate your plan is billed, so the rate on these screens matches your invoice. Previously these screens showed a hardcoded rate that could differ from billing.
> * The Slack channel picker now shows a reconnect message with a 422 response, instead of a server error, when a Slack workspace has disconnected the LangSmith app.
> * Insights runs no longer lose their threads before they finish. Insights threads now stay for 2 hours, so a run still waiting on input is not deleted.
> * Insights requests to Anthropic models now work instead of failing with a 400 error. The default Claude models no longer send a `temperature` value, which the Anthropic API rejected.
> * Archived annotation queue items now list the reviewers who completed them in **completed_by**, so you can see every reviewer who finished an item.
> * Forking a run from a checkpoint while the thread waits on an interrupt now starts a new run from that checkpoint, instead of answering the interrupt or being refused when several interrupts are pending.
> * Fixed an issue where gRPC checkpoint writes failed with `TypeError: Type is not JSON serializable` when runtime context held a nested Pydantic model. Checkpoint writes with nested Pydantic context now succeed.
> * Thread updates no longer fail with a 500 error when another request briefly holds a lock on the same thread. Your PATCH to a thread now retries automatically for a short time before it returns an error.
> * Store reads of items larger than 4 MiB, including `asearch` pages, no longer fail with `RESOURCE_EXHAUSTED: Received message larger than max`.
> * Checkpoint writes that stall on a database connection now fail after `CHECKPOINT_BATCH_TIMEOUT` (default 2m) instead of blocking every later write on the replica. Retried checkpoint writes also succeed when a previous attempt already committed.
> * Saved Azure OpenAI model configs now work from `custom/` again. Requests previously failed with a "DNS resolution failed" SSRF error before reaching your resource, and they now complete.
> * Azure deployments no longer fail with a 400 error for `reasoning_effort` when a request comes from Claude Code. Requests to a saved Azure configuration now drop `reasoning_effort`, `reasoning`, and verbosity for deployments that do not serve an o-series or `gpt-5` model. Set the configuration's `model` to the OpenAI model the deployment serves to keep these controls.
**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/