| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396 |
- {
- "$schema": "http://json-schema.org/draft-07/schema#",
- "definitions": {
- "agent": {
- "description": "Agent configuration",
- "properties": {
- "maxTokens": {
- "description": "Maximum tokens for the agent",
- "minimum": 1,
- "type": "integer"
- },
- "model": {
- "description": "Model ID for the agent",
- "enum": [
- "grok-3-fast-beta",
- "claude-3-opus",
- "gemini-2.5",
- "openrouter.claude-3-haiku",
- "grok-3-beta",
- "gpt-4.1",
- "azure.gpt-4o-mini",
- "openrouter.gpt-4o",
- "openrouter.o4-mini",
- "openrouter.o1-pro",
- "gpt-4.1-nano",
- "azure.gpt-4.5-preview",
- "openrouter.gpt-4o-mini",
- "claude-3.5-sonnet",
- "claude-3-haiku",
- "qwen-qwq",
- "openrouter.claude-3.7-sonnet",
- "gemini-2.5-flash",
- "azure.o4-mini",
- "openrouter.gpt-4.1-mini",
- "gpt-4o",
- "openrouter.gemini-2.5",
- "gpt-4.1-mini",
- "azure.gpt-4.1",
- "azure.o1-mini",
- "o1-pro",
- "claude-3.7-sonnet",
- "o3",
- "gpt-4.5-preview",
- "azure.o3-mini",
- "grok-3-mini-beta",
- "openrouter.o1-mini",
- "meta-llama/llama-4-scout-17b-16e-instruct",
- "azure.o1",
- "openrouter.gemini-2.5-flash",
- "openrouter.claude-3-opus",
- "o1-mini",
- "gemini-2.0-flash",
- "openrouter.gpt-4.1",
- "openrouter.claude-3.5-haiku",
- "deepseek-r1-distill-llama-70b",
- "claude-3.5-haiku",
- "o3-mini",
- "llama-3.3-70b-versatile",
- "azure.gpt-4.1-nano",
- "openrouter.gpt-4.5-preview",
- "gemini-2.0-flash-lite",
- "azure.gpt-4o",
- "openrouter.o3-mini",
- "openrouter.o1",
- "openrouter.gpt-4.1-nano",
- "grok-3-mini-fast-beta",
- "vertexai.gemini-2.5-flash",
- "o4-mini",
- "azure.o3",
- "azure.gpt-4.1-mini",
- "openrouter.o3",
- "gpt-4o-mini",
- "o1",
- "vertexai.gemini-2.5",
- "bedrock.claude-3.7-sonnet",
- "meta-llama/llama-4-maverick-17b-128e-instruct",
- "openrouter.claude-3.5-sonnet"
- ],
- "type": "string"
- },
- "reasoningEffort": {
- "description": "Reasoning effort for models that support it (OpenAI, Anthropic)",
- "enum": [
- "low",
- "medium",
- "high"
- ],
- "type": "string"
- }
- },
- "required": [
- "model"
- ],
- "type": "object"
- }
- },
- "description": "Configuration schema for the OpenCode application",
- "properties": {
- "agents": {
- "additionalProperties": {
- "description": "Agent configuration",
- "properties": {
- "maxTokens": {
- "description": "Maximum tokens for the agent",
- "minimum": 1,
- "type": "integer"
- },
- "model": {
- "description": "Model ID for the agent",
- "enum": [
- "grok-3-fast-beta",
- "claude-3-opus",
- "gemini-2.5",
- "openrouter.claude-3-haiku",
- "grok-3-beta",
- "gpt-4.1",
- "azure.gpt-4o-mini",
- "openrouter.gpt-4o",
- "openrouter.o4-mini",
- "openrouter.o1-pro",
- "gpt-4.1-nano",
- "azure.gpt-4.5-preview",
- "openrouter.gpt-4o-mini",
- "claude-3.5-sonnet",
- "claude-3-haiku",
- "qwen-qwq",
- "openrouter.claude-3.7-sonnet",
- "gemini-2.5-flash",
- "azure.o4-mini",
- "openrouter.gpt-4.1-mini",
- "gpt-4o",
- "openrouter.gemini-2.5",
- "gpt-4.1-mini",
- "azure.gpt-4.1",
- "azure.o1-mini",
- "o1-pro",
- "claude-3.7-sonnet",
- "o3",
- "gpt-4.5-preview",
- "azure.o3-mini",
- "grok-3-mini-beta",
- "openrouter.o1-mini",
- "meta-llama/llama-4-scout-17b-16e-instruct",
- "azure.o1",
- "openrouter.gemini-2.5-flash",
- "openrouter.claude-3-opus",
- "o1-mini",
- "gemini-2.0-flash",
- "openrouter.gpt-4.1",
- "openrouter.claude-3.5-haiku",
- "deepseek-r1-distill-llama-70b",
- "claude-3.5-haiku",
- "o3-mini",
- "llama-3.3-70b-versatile",
- "azure.gpt-4.1-nano",
- "openrouter.gpt-4.5-preview",
- "gemini-2.0-flash-lite",
- "azure.gpt-4o",
- "openrouter.o3-mini",
- "openrouter.o1",
- "openrouter.gpt-4.1-nano",
- "grok-3-mini-fast-beta",
- "vertexai.gemini-2.5-flash",
- "o4-mini",
- "azure.o3",
- "azure.gpt-4.1-mini",
- "openrouter.o3",
- "gpt-4o-mini",
- "o1",
- "vertexai.gemini-2.5",
- "bedrock.claude-3.7-sonnet",
- "meta-llama/llama-4-maverick-17b-128e-instruct",
- "openrouter.claude-3.5-sonnet"
- ],
- "type": "string"
- },
- "reasoningEffort": {
- "description": "Reasoning effort for models that support it (OpenAI, Anthropic)",
- "enum": [
- "low",
- "medium",
- "high"
- ],
- "type": "string"
- }
- },
- "required": [
- "model"
- ],
- "type": "object"
- },
- "description": "Agent configurations",
- "properties": {
- "coder": {
- "$ref": "#/definitions/agent"
- },
- "task": {
- "$ref": "#/definitions/agent"
- },
- "title": {
- "$ref": "#/definitions/agent"
- }
- },
- "type": "object"
- },
- "contextPaths": {
- "default": [
- ".github/copilot-instructions.md",
- ".cursorrules",
- ".cursor/rules/",
- "CLAUDE.md",
- "CLAUDE.local.md",
- "opencode.md",
- "opencode.local.md",
- "OpenCode.md",
- "OpenCode.local.md",
- "OPENCODE.md",
- "OPENCODE.local.md"
- ],
- "description": "Context paths for the application",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "data": {
- "description": "Storage configuration",
- "properties": {
- "directory": {
- "default": ".opencode",
- "description": "Directory where application data is stored",
- "type": "string"
- }
- },
- "required": [
- "directory"
- ],
- "type": "object"
- },
- "debug": {
- "default": false,
- "description": "Enable debug mode",
- "type": "boolean"
- },
- "debugLSP": {
- "default": false,
- "description": "Enable LSP debug mode",
- "type": "boolean"
- },
- "lsp": {
- "additionalProperties": {
- "description": "LSP configuration for a language",
- "properties": {
- "args": {
- "description": "Command arguments for the LSP server",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "command": {
- "description": "Command to execute for the LSP server",
- "type": "string"
- },
- "disabled": {
- "default": false,
- "description": "Whether the LSP is disabled",
- "type": "boolean"
- },
- "options": {
- "description": "Additional options for the LSP server",
- "type": "object"
- }
- },
- "required": [
- "command"
- ],
- "type": "object"
- },
- "description": "Language Server Protocol configurations",
- "type": "object"
- },
- "mcpServers": {
- "additionalProperties": {
- "description": "MCP server configuration",
- "properties": {
- "args": {
- "description": "Command arguments for the MCP server",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "command": {
- "description": "Command to execute for the MCP server",
- "type": "string"
- },
- "env": {
- "description": "Environment variables for the MCP server",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "headers": {
- "additionalProperties": {
- "type": "string"
- },
- "description": "HTTP headers for SSE type MCP servers",
- "type": "object"
- },
- "type": {
- "default": "stdio",
- "description": "Type of MCP server",
- "enum": [
- "stdio",
- "sse"
- ],
- "type": "string"
- },
- "url": {
- "description": "URL for SSE type MCP servers",
- "type": "string"
- }
- },
- "required": [
- "command"
- ],
- "type": "object"
- },
- "description": "Model Control Protocol server configurations",
- "type": "object"
- },
- "providers": {
- "additionalProperties": {
- "description": "Provider configuration",
- "properties": {
- "apiKey": {
- "description": "API key for the provider",
- "type": "string"
- },
- "disabled": {
- "default": false,
- "description": "Whether the provider is disabled",
- "type": "boolean"
- },
- "provider": {
- "description": "Provider type",
- "enum": [
- "anthropic",
- "openai",
- "gemini",
- "groq",
- "openrouter",
- "bedrock",
- "azure",
- "vertexai"
- ],
- "type": "string"
- }
- },
- "type": "object"
- },
- "description": "LLM provider configurations",
- "type": "object"
- },
- "tui": {
- "description": "Terminal User Interface configuration",
- "properties": {
- "theme": {
- "default": "opencode",
- "description": "TUI theme name",
- "enum": [
- "opencode",
- "catppuccin",
- "dracula",
- "flexoki",
- "gruvbox",
- "monokai",
- "onedark",
- "tokyonight",
- "tron"
- ],
- "type": "string"
- }
- },
- "type": "object"
- },
- "wd": {
- "description": "Working directory for the application",
- "type": "string"
- }
- },
- "title": "OpenCode Configuration",
- "type": "object"
- }
|