opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat(config): support config.d/ directory for split configuration

Open ferdinandyb opened this issue 1 day ago • 2 comments

Allow users to organize configuration into multiple files within a config.d/ directory. Files are loaded alphabetically and merged after the main config file, making it easier to manage modular config setups (e.g., separate files for permissions, plugins, theming).

Supports both ~/.config/opencode/config.d/ (global) and .opencode/config.d/ (project-specific) locations.

How did you verify your code works?

added testcases

Closes #9062

ferdinandyb avatar Jan 17 '26 09:01 ferdinandyb