Skip to content

[FEATURE]: Managed settings with admin-controlled priority for enterprise #6358

@Mishkun

Description

@Mishkun

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:

  1. 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
  2. Project settings (./opencode.json)
  3. User settings (~/.config/opencode/config.json)

That way the config will override the user provided settings

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions