Feature Request: hide MCP API keys from settings #840

Closed
opened 2026-02-16 17:28:31 -05:00 by yindo · 1 comment
Owner

Originally created by @dan-myles on GitHub (Jul 21, 2025).

Hey! I have a dotfiles repo and really want to commit my opencode.json, however there are API keys in there :o

Is there a way we could get a different file for keys, or some sort of ${{env.API_KEY}} syntax to be able to hide our secrets?

Thanks <3

Originally created by @dan-myles on GitHub (Jul 21, 2025). Hey! I have a dotfiles repo and really want to commit my opencode.json, however there are API keys in there :o Is there a way we could get a different file for keys, or some sort of `${{env.API_KEY}}` syntax to be able to hide our secrets? Thanks <3
yindo closed this issue 2026-02-16 17:28:31 -05:00
Author
Owner

@adamdotdevin commented on GitHub (Jul 21, 2025):

this is supported, see https://opencode.ai/docs/config/#variables

@adamdotdevin commented on GitHub (Jul 21, 2025): this is supported, see https://opencode.ai/docs/config/#variables
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#840