← ClaudeAtlas

opencode-configlisted

Use this skill when configuring OpenCode's opencode.json or tui.json files, setting up config precedence, managing provider credentials, using variable substitution, deploying managed settings via MDM, or troubleshooting configuration issues. Covers all config options, schema validation, remote/global/project config layers, environment variables, file references, and enterprise managed preferences.
Timmy6942025/opencode-builder-skill · ★ 1 · Data & Documents · score 72
Install: claude install-skill Timmy6942025/opencode-builder-skill
# OpenCode Configuration > **📚 Official Docs:** For the latest information, always refer to the official documentation: > [https://opencode.ai/docs/config/](https://opencode.ai/docs/config/) OpenCode uses JSON-based configuration files to control runtime behavior, TUI appearance, server settings, tool permissions, agent definitions, and provider connections. This skill covers every aspect of configuration: file format, locations, precedence, merging, all available fields, TUI config, variable substitution, enterprise managed settings, environment variables, and troubleshooting. --- ## Table of Contents - [Format](#format) - [Config Locations & Precedence](#config-locations--precedence) - [Config Merging Behavior](#config-merging-behavior) - [All Config Fields](#all-config-fields) - [TUI Config (tui.json)](#tui-config-tuijson) - [Variable Substitution](#variable-substitution) - [Managed Settings (Enterprise)](#managed-settings-enterprise) - [Provider-Specific Options](#provider-specific-options) - [Environment Variables](#environment-variables) - [Debugging & Verification](#debugging--verification) - [Troubleshooting](#troubleshooting) --- ## Format OpenCode supports both **JSON** and **JSONC** (JSON with Comments) formats for all configuration files. ### Schema Every config file should include a `$schema` field for editor validation and autocomplete: - **Server/runtime config**: `"$schema": "https://opencode.ai/config.json"` - **TUI config**: `"$schema": "https://