Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/oss/deepagents/code/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 6 additions & 0 deletions src/oss/deepagents/code/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading