Answer: You set environment variables in the Kiro Web sandbox to be available to the agent during task execution, and if the same key exists in both environment variables and secrets, the environment variable value takes precedence. Status: Confirmed Entry: tool/kiro/settings/sandbox-environment-variables Revision: 2 Digest: sha256:edd6e7fbce8a583b (changes whenever the content changes) Timeline: Created: 2026-11-13T03:46:17Z Last changed: 2026-11-20T13:33:50Z (Secrets exposure: — → exposed as environment variables in the isolated sandbox during task execution) Last verified: 2026-11-20T13:33:50Z Next check: 2026-11-21T13:33:50Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Environment variables purpose | available to the agent during task execution | [1] | 2026-11-20 Duplicate key precedence | the environment variable value takes precedence | [1] | 2026-11-20 Secrets exposure | exposed as environment variables in the isolated sandbox during task execution | [1] | 2026-11-20 Page updated | August 4, 2026 | [1] | 2026-11-20 Sources: [1] Amazon Web Services. "Environment variables - Sandbox - Web - Docs - Kiro". https://kiro.dev/docs/web/sandbox/environment-variables/ Role: primary. Accessed: 2026-11-20T13:33:50Z Quote: "Set environment variables that will be available to the agent during task execution." (Supports: Environment variables purpose) Quote: "If the same key exists in both environment variables and secrets, the environment variable value takes precedence." (Supports: Duplicate key precedence) Quote: "Secrets are encrypted at rest and exposed as environment variables in the isolated sandbox during task execution." (Supports: Secrets exposure) Quote: "Page updated: August 4, 2026" (Supports: Page updated) Published: 2026-11-20T07:39:25Z Snapshot SHA-256: 4dfb4e95a7dfa8c4c2153c277eab4b95c135ef1941b8dbea65290a122f116cde (captured 2026-11-20T13:33:50Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T13:33:50Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:33:50Z Last attempt: 2026-11-20T13:33:50Z Notes and limitations: Extracted automatically from a single official source (section "Environment Variables"). Related: https://latestn.com/tool/kiro/settings/sandbox-internet-access-options How do I configure internet access for a Kiro web sandbox? https://latestn.com/tool/kiro/settings/save-default-harness How do I save a default agent harness in Kiro CLI? https://latestn.com/tool/kiro/settings/screen-reader-support How do I enable screen reader support in Kiro CLI chat? https://latestn.com/tool/kiro/settings/resolve-config-conflicts How does Kiro resolve conflicts between configuration scopes? https://latestn.com/tool/kiro/settings/return-to-v2-harness How do I return Kiro CLI to the V2 agent harness? https://latestn.com/tool/kiro/settings/sandbox-configuration-keys What configuration keys does the Kiro sandbox support and how do global and project settings combine? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T13:33:50Z | changed | Secrets exposure: — → exposed as environment variables in the isolated sandbox during task execution | [1] 2026-11-20T13:33:50Z | changed | Use case: configuration values that aren't sensitive → — | [1] 2026-11-13T03:46:17Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/kiro/settings/sandbox-environment-variables/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/kiro/settings/sandbox-environment-variables POST: https://latestn.com/dispute/tool/kiro/settings/sandbox-environment-variables with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/kiro/settings/sandbox-environment-variables?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set environment variables in a Kiro web sandbox? Revision 2, last verified 2026-11-20T13:33:50Z. https://latestn.com/tool/kiro/settings/sandbox-environment-variables (accessed 2026-11-21T09:57:16Z). @misc{LatestN_tool_kiro_settings_sandbox_environment_variables_r2, title = {How do I set environment variables in a Kiro web sandbox?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/kiro/settings/sandbox-environment-variables}}, note = {Revision 2; digest sha256:edd6e7fbce8a583b; last verified 2026-11-20T13:33:50Z; accessed 2026-11-21T09:57:16Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/kiro/settings/sandbox-environment-variables