Skip to content

fix(code): clarify auth environment setup - #5767

Merged
Mason Daugherty (mdrxy) merged 6 commits into
mainfrom
mdrxy/code/shorten-key-guidance
Aug 24, 2026
Merged

fix(code): clarify auth environment setup#5767
Mason Daugherty (mdrxy) merged 6 commits into
mainfrom
mdrxy/code/shorten-key-guidance

Conversation

@mdrxy

@mdrxy Mason Daugherty (mdrxy) commented Aug 24, 2026

Copy link
Copy Markdown
Member

Environment-variable guidance in the auth dialog is now shorter and identifies both supported .env locations plus the exact scope of Ctrl+R.


The previous copy was verbose and made the reload shortcut sound global rather than dialog-specific.

Before

Alternatively, environment variables can be used in place of the key stored above. Set DEEPAGENTS_CODE_TAVILY_API_KEY for a dcode-only key; it has the highest priority. Set TAVILY_API_KEY to share a key with other provider SDK tools; it is used only when no scoped or stored key exists. After setting one in a .env file, press Ctrl+R to reload without restarting. A variable exported in a separate shell after launch is invisible to this process; it needs a full relaunch. Configuration docs.

After

Environment variables: DEEPAGENTS_CODE_TAVILY_API_KEY (dcode only, highest priority) or TAVILY_API_KEY (shared, lowest priority). Put either in the project .env or ~/.deepagents/.env; press Ctrl+R in this dialog to reload. New shell exports require restarting the app. Configuration docs.

Example scenario: A user has the Tavily auth dialog open and adds DEEPAGENTS_CODE_TAVILY_API_KEY to the project .env. They can press Ctrl+R in that dialog to load it immediately. If they instead export the variable from another shell, they must restart dcode because the running process cannot inherit later shell changes.

Focused auth-widget tests cover precedence, dotenv locations, reload scope, and restart guidance.

Made by Open SWE

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
@github-actions github-actions Bot added dcode Related to `deepagents-code` fix A bug fix (PATCH) internal User is a member of the `langchain-ai` GitHub organization size: XS < 50 LOC labels Aug 24, 2026
Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
@mdrxy
Mason Daugherty (mdrxy) marked this pull request as ready for review August 24, 2026 14:09

@open-swe open-swe Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open SWE Review found 1 potential issue.

Open in WebView Open SWE trace

Comment thread libs/code/deepagents_code/tui/widgets/auth.py Outdated
Co-authored-by: open-swe[bot] <215916821+open-swe[bot]@users.noreply.github.com>
Signed-off-by: Mason Daugherty <github@mdrxy.com>
Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
@mdrxy
Mason Daugherty (mdrxy) merged commit a095af9 into main Aug 24, 2026
57 checks passed
@mdrxy
Mason Daugherty (mdrxy) deleted the mdrxy/code/shorten-key-guidance branch August 24, 2026 16:44
Mason Daugherty (mdrxy) pushed a commit that referenced this pull request Aug 24, 2026
> [!CAUTION]
> Merging this PR will automatically publish to **PyPI** and create a
**GitHub release**.

For the full release process, see
[`.github/RELEASING.md`](https://github.com/langchain-ai/deepagents/blob/main/.github/RELEASING.md).

---

_Release notes preview: keep this section in sync with the package
`CHANGELOG.md`. Publish reads the merged CHANGELOG via `release.yml`,
not this PR description — keep them aligned anyway so the PR stays an
accurate historical record for reviewers and anyone returning later._

---


##
[0.1.61](deepagents-code==0.1.60...deepagents-code==0.1.61)
(2026-08-24)

### Features

- Added `google_anthropic_vertex` provider support for Claude on Vertex
AI ([#5760](#5760)).
- Enforced configured model allowlists
([#5649](#5649)).
- Injected goal and rubric context directly, replacing `get_goal` and
`get_rubric`
([#5041](#5041)).
- Made `/offload` server-owned
([#5261](#5261)).
- Added prompt clipboard support
([#5733](#5733)).
- Show Auto approval review progress
([#5729](#5729)).

### Bug Fixes

- Kept long thread resumes responsive
([#5772](#5772)).
- Render first streamed text immediately
([#5761](#5761)).
- Show the incognito shell command widget
([#5768](#5768)).
- Only highlight actionable tool rows
([#5769](#5769)).
- Warn and ignore `--auto-approve` and `--yolo` in headless mode
([#5750](#5750)).
- Sweep expired history archives at startup
([#5751](#5751)).
- Clarified auth environment setup
([#5767](#5767)).

_End release notes preview._

---

> [!NOTE]
> A **community contributors** list and a **Special thanks** section
(crediting the users who filed the issues this release's PRs closed) are
appended to the GitHub release notes automatically at publish time (see
[Release
Pipeline](https://github.com/langchain-ai/deepagents/blob/main/.github/RELEASING.md#release-pipeline),
step 3).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: langchain-oss-automated-triage[bot] <248757908+langchain-oss-automated-triage[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dcode Related to `deepagents-code` fix A bug fix (PATCH) internal User is a member of the `langchain-ai` GitHub organization size: XS < 50 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant