Environment Configuration
The fastest method to configure OpenCode is exporting credentials in your terminal environment:Project Configuration File
Create or update your OpenCode settings file (opencode.json at your project root or ~/.config/opencode/config.json for global settings):