From 9a95dccd95907474746c51bb717e85e667d2ed93 Mon Sep 17 00:00:00 2001 From: Mason Daugherty Date: Wed, 24 Jun 2026 00:22:35 -0400 Subject: [PATCH] dcode: EU tracing --- src/oss/deepagents/code/configuration.mdx | 4 +++- src/oss/deepagents/code/overview.mdx | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/oss/deepagents/code/configuration.mdx b/src/oss/deepagents/code/configuration.mdx index 294be018a2..d5732766e2 100644 --- a/src/oss/deepagents/code/configuration.mdx +++ b/src/oss/deepagents/code/configuration.mdx @@ -215,7 +215,7 @@ At startup, Deep Agents Code reads the nearest project `.env`, found by searchin All Deep Agents Code-specific environment variables use a `DEEPAGENTS_CODE_` prefix (e.g., `DEEPAGENTS_CODE_AUTO_UPDATE`, `DEEPAGENTS_CODE_DEBUG`). See the [environment variable reference](#environment-variable-reference) for the full list. -The prefix also works as an override mechanism for any environment variable Deep Agents Code reads, including third-party credentials. Deep Agents Code checks `DEEPAGENTS_CODE_{NAME}` first, then falls back to `{NAME}`: +The prefix also works as an override mechanism for most environment variables Deep Agents Code reads, including third-party credentials. Deep Agents Code checks `DEEPAGENTS_CODE_{NAME}` first, then falls back to `{NAME}`: ```bash title="~/.deepagents/.env" # Give Deep Agents Code its own value, without affecting other tools @@ -225,6 +225,8 @@ DEEPAGENTS_CODE_OPENAI_API_KEY=sk-cli-only DEEPAGENTS_CODE_ANTHROPIC_API_KEY= ``` +LangSmith endpoint selection is an exception: Deep Agents Code and the LangSmith SDK read the canonical `LANGSMITH_ENDPOINT` / `LANGCHAIN_ENDPOINT` variables. For regional workspaces, put the canonical endpoint in `.env`; for example, EU users can set `LANGSMITH_ENDPOINT=https://eu.api.smith.langchain.com`. + --- ## Config file diff --git a/src/oss/deepagents/code/overview.mdx b/src/oss/deepagents/code/overview.mdx index 1f0e07de7b..7089bbbde1 100644 --- a/src/oss/deepagents/code/overview.mdx +++ b/src/oss/deepagents/code/overview.mdx @@ -421,6 +421,12 @@ LANGSMITH_API_KEY=lsv2_... LANGSMITH_PROJECT=optional-project-name # Specify a project name or default to "deepagents-code" ``` +If your LangSmith workspace is outside the default US region, add the matching API endpoint to the same file. For example, EU users can set: + +```bash title="~/.deepagents/.env" +LANGSMITH_ENDPOINT=https://eu.api.smith.langchain.com +``` + To override for a specific project, add the same keys to a `.env` in the project directory. See [environment variables](/oss/deepagents/code/configuration#environment-variables) for the full loading order. You can also set these as shell environment variables if you prefer. Shell exports always take precedence over `.env` values, so this is a good option for temporary overrides or testing: