-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Labels
discussionUsed for feature requests, proposals, ideas, etc. Open discussionUsed for feature requests, proposals, ideas, etc. Open discussion
Description
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
Problem
Organizations deploying OpenCode to teams need a way to enforce certain settings that users cannot override. Currently, there's no mechanism for administrators to set high-priority configurations that take precedence over user/project settings.
E.g. claude code solves this with /Library/Application Support/ClaudeCode/managed-settings.json - a system-level config file that can be deployed by admins and takes precendence over user rules
Usecases for managed settings
- configuring company-wide approved providers and models
- disabling share functionality to comply with cybersec rules
- disabling autoupdate
Proposed Solution
Add support for a managed settings file, taking precedence over user settings. Meaning that configs will be applied in this priority:
- Managed settings (admin-controlled, read-only for users)
- macOS: /Library/Application Support/opencode/managed-settings.json
- Linux: /etc/opencode/managed-settings.json
- Windows: %ProgramData%\opencode\managed-settings.json
- Project settings (./opencode.json)
- User settings (~/.config/opencode/config.json)
That way the config will override the user provided settings
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
discussionUsed for feature requests, proposals, ideas, etc. Open discussionUsed for feature requests, proposals, ideas, etc. Open discussion