Skip to content

Comments

Support passing environment variables in to agent containers#25

Merged
bnavetta merged 1 commit intomainfrom
ben/env-var-support
Feb 22, 2026
Merged

Support passing environment variables in to agent containers#25
bnavetta merged 1 commit intomainfrom
ben/env-var-support

Conversation

@bnavetta
Copy link
Collaborator

This adds a mechanism for passing environment variables in to self-hosted agents. The intent is that this is used for:

  • Host-specific configuration (e.g. pointing tools at a specific mounted volume)
  • Injecting secrets which are not managed by Warp

The configuration syntax follows the Docker CLI:

  • --env KEY=value to set an environment variable directly
  • --env KEY to inherit a value from the host environment
  • -e as a shorthand

Testing

I ran a self-hosted worker locally with the --env flag and asked an agent to print all environment variables.

@bnavetta bnavetta requested a review from acarl005 February 22, 2026 13:43
@bnavetta bnavetta merged commit 8b8155b into main Feb 22, 2026
3 checks passed
@bnavetta bnavetta deleted the ben/env-var-support branch February 22, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants