[FEATURE]: env flag to disable global config loading (OPENCODE_DISABLE_GLOBAL_CONFIG) #7197

Closed
opened 2026-02-16 18:06:26 -05:00 by yindo · 1 comment
Owner

Originally created by @kynnyhsap on GitHub (Jan 22, 2026).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

This recent PR https://github.com/anomalyco/opencode/pull/8093 added env flag to disable loading project config, but it would also be very useful to do the opposite - disable GLOBAL config loading.

Use Case

Creating project agent configurations - global config messes with local configuration.

Usage

OPENCODE_DISABLE_GLOBAL_CONFIG=true opencode - will load project config but ignore global.

PR with implementation: https://github.com/anomalyco/opencode/pull/10013

Originally created by @kynnyhsap on GitHub (Jan 22, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request This recent PR https://github.com/anomalyco/opencode/pull/8093 added env flag to disable loading _project_ config, but it would also be very useful to do the opposite - disable GLOBAL config loading. ## Use Case Creating project agent configurations - global config messes with local configuration. ## Usage `OPENCODE_DISABLE_GLOBAL_CONFIG=true opencode` - will load project config but ignore global. PR with implementation: https://github.com/anomalyco/opencode/pull/10013
yindo added the discussion label 2026-02-16 18:06:26 -05:00
yindo closed this issue 2026-02-16 18:06:26 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 22, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #7136: Config Flag to mark part of the global config as non-overridable per project

Both issues address global vs project config precedence, though from different angles. #7136 proposes marking global config as non-overridable, while this issue proposes disabling global config entirely.

@github-actions[bot] commented on GitHub (Jan 22, 2026): This issue might be a duplicate of existing issues. Please check: - #7136: Config Flag to mark part of the global config as non-overridable per project Both issues address global vs project config precedence, though from different angles. #7136 proposes marking global config as non-overridable, while this issue proposes disabling global config entirely.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7197