Skip to content

docs: document sandbox environment variables - #25790

Open
dvdksn wants to merge 6 commits into
docker:mainfrom
dvdksn:codex/document-sbx-env
Open

docs: document sandbox environment variables#25790
dvdksn wants to merge 6 commits into
docker:mainfrom
dvdksn:codex/document-sbx-env

Conversation

@dvdksn

@dvdksn dvdksn commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Document the sbx run and sbx create environment-variable flags introduced in v0.39.0, including precedence and lifecycle behavior. Consolidate environment guidance in the Usage page, retain the persistent-shell option for existing sandboxes, distinguish ordinary variables from proxy-managed secrets, and update affected examples.

@netlify /ai/sandboxes/usage/

Generated by Codex

@docker-agent docker-agent 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.

Assessment: 🟡 NEEDS ATTENTION

Documents the new -e/--env-file flags for sbx run and sbx create (v0.39.0+). Content is accurate and well-structured. Three issues found: one confirmed grammar error and two clarity issues introduced by the PR.

Comment thread content/guides/claude-code-sandbox-model-runner.md Outdated
Comment thread content/guides/claude-code-sandbox-model-runner.md Outdated
Comment thread content/manuals/ai/sandboxes/workflows.md Outdated
@netlify

netlify Bot commented Aug 12, 2026

Copy link
Copy Markdown

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 6f1065d
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6a7d862c98d31c0008a8ab1d
😎 Deploy Preview https://deploy-preview-25790--docsdocker.netlify.app/ai/sandboxes/usage/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dvdksn
dvdksn marked this pull request as ready for review August 12, 2026 13:56
@dvdksn
dvdksn requested a review from a team August 12, 2026 13:56

@docker-agent docker-agent 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.

Assessment: 🟢 APPROVE

The PR consolidates environment-variable documentation into usage.md, updates the Claude Code + Model Runner guide to use the new -e flag on sbx create, and removes the duplicate FAQ entry. The changes are clean, well-scoped, and consistent with the style guide.

No high or medium severity issues were found.

@docker-agent docker-agent 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.

Assessment: 🟢 APPROVE

The PR consolidates sandbox environment-variable documentation cleanly: the new Set environment variables section in usage.md explains precedence and lifecycle clearly, the Claude Code guide is simplified by moving ANTHROPIC_BASE_URL into sbx create, and kit-examples.md is updated to point to the new section. No broken links, missing redirects, vendored-file edits, or AI-isms detected. Two minor findings noted inline.

Comment thread content/guides/claude-code-sandbox-model-runner.md
Comment thread content/manuals/ai/sandboxes/usage.md
dvdksn added 6 commits August 13, 2026 08:51
Sandbox users had to modify an internal persistent shell file to set custom environment variables. Document the v0.39.0 environment flags, their precedence and lifecycle behavior, and update affected examples to use them.
The FAQ duplicated environment-variable instructions that now belong in the command-oriented usage page. Move the persistent-shell guidance there and distinguish ordinary variables from proxy-managed service and custom secrets.
The Model Runner guide contained a grammatical error and an unclear reason for creating before running. Clarify that verification flow and distinguish the 1Password env-file option from the sbx flag while preserving proxy-managed credential behavior.
The environment-variable caveat distracted from the 1Password workflow and repeated material from the usage page. Remove the aside and identify the multi-credential example as an op run environment-file workflow.
The 1Password environment-file example is correct and outside the scope of the sbx environment flag documentation. Restore the section to its original wording.
The rebased FAQ update documented that persisted variables only reach newly started sessions and agents. Keep the FAQ discoverable and add the same operational caveat to the canonical usage procedure.
@dvdksn
dvdksn force-pushed the codex/document-sbx-env branch from 99beb37 to 6f1065d Compare August 13, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants