Env Vars How to set on W10. #5912

Closed
opened 2026-02-16 17:58:15 -05:00 by yindo · 0 comments
Owner

Originally created by @mynameistito on GitHub (Jan 14, 2026).

Originally assigned to: @jayair on GitHub.

Question

Hey I was having a go and changing up my opencode.jsonc file and tried setting up env var's for my API Keys for some MCP Servers.

I tried adding them to a .env that I place in my ~/.config/opencode Bearer {env:var} that didn't work tried with $PROFILE export var=key that didn't seem to work either.

Any assistance would be great.

On Windows 10, mostly use Warp Terminal preferred if I don't have to use WSL.

Originally created by @mynameistito on GitHub (Jan 14, 2026). Originally assigned to: @jayair on GitHub. ### Question Hey I was having a go and changing up my `opencode.jsonc` file and tried setting up env var's for my API Keys for some MCP Servers. I tried adding them to a `.env` that I place in my `~/.config/opencode` `Bearer {env:var}` that didn't work tried with `$PROFILE` `export var=key` that didn't seem to work either. Any assistance would be great. On Windows 10, mostly use Warp Terminal preferred if I don't have to use WSL.
yindo added the windowsdocs labels 2026-02-16 17:58:15 -05:00
yindo closed this issue 2026-02-16 17:58:15 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5912