Skip to content

Instantly share code, notes, and snippets.

@edxeth
Last active February 8, 2026 16:33
Show Gist options
  • Select an option

  • Save edxeth/2561e0cc273cc98c1e3b5c898d3ea237 to your computer and use it in GitHub Desktop.

Select an option

Save edxeth/2561e0cc273cc98c1e3b5c898d3ea237 to your computer and use it in GitHub Desktop.
Custom OpenCode config file with support to Antigravity and OpenAI's models
{
"$schema": "https://opencode.ai/config.json",
"plugin": [
"oh-my-opencode@latest",
"@franlol/opencode-md-table-formatter@latest",
"opencode-pty@latest"
],
"mcp": {
},
"permission": {
"bash": "allow",
"edit": "allow",
"write": "allow",
"read": "allow",
"grep": "allow",
"glob": "allow",
"list": "allow",
"lsp": "allow",
"skill": "allow",
"todowrite": "allow",
"todoread": "allow",
"webfetch": "allow",
"question": "allow"
},
"enabled_providers": ["antigravity", "google", "openai", "x2n"],
"provider": {
"anthropic": {
"npm": "@ai-sdk/anthropic",
"name": "antigravity",
"options": {
"baseURL": "http://localhost:8317/v1",
"apiKey": "dummy"
},
"models": {
"claude-opus-4-6-thinking": {
"id": "gemini-claude-opus-4-6-thinking",
"name": "Claude Opus 4.6",
"limit": {
"context": 200000,
"output": 128000
},
"reasoning": true,
"variants": {
"low": { "thinkingConfig": { "thinkingBudget": 8000 } },
"medium": {
"thinkingConfig": { "thinkingBudget": 16000 }
},
"high": {
"thinkingConfig": { "thinkingBudget": 32000 }
},
"max": {
"thinkingConfig": { "thinkingBudget": 64000 }
}
},
"cost": {
"input": 5,
"output": 25,
"cache_read": 0.5,
"cache_write": 6.25
},
"modalities": {
"input": ["text", "image", "pdf"],
"output": ["text"]
}
},
"claude-opus-4-5-thinking": {
"id": "gemini-claude-opus-4-5-thinking",
"name": "Claude Opus 4.5",
"limit": {
"context": 200000,
"output": 64000
},
"reasoning": true,
"variants": {
"low": { "thinkingConfig": { "thinkingBudget": 8192 } },
"high": {
"thinkingConfig": { "thinkingBudget": 16384 }
},
"max": { "thinkingConfig": { "thinkingBudget": 32768 } }
},
"cost": {
"input": 5,
"output": 25,
"cache_read": 0.5,
"cache_write": 6.25
},
"modalities": {
"input": ["text", "image", "pdf"],
"output": ["text"]
}
},
"claude-sonnet-4-5-thinking": {
"id": "gemini-claude-sonnet-4-5-thinking",
"name": "Claude Sonnet 4.5 (Thinking)",
"limit": {
"context": 200000,
"output": 64000
},
"reasoning": true,
"variants": {
"low": { "thinkingConfig": { "thinkingBudget": 8192 } },
"high": {
"thinkingConfig": { "thinkingBudget": 16384 }
},
"max": { "thinkingConfig": { "thinkingBudget": 32768 } }
},
"cost": {
"input": 3,
"output": 15,
"cache_read": 0.3,
"cache_write": 3.75
},
"modalities": {
"input": ["text", "image", "pdf"],
"output": ["text"]
}
},
"claude-sonnet-4-5": {
"id": "gemini-claude-sonnet-4-5",
"name": "Claude Sonnet 4.5",
"limit": {
"context": 200000,
"output": 64000
},
"cost": {
"input": 3,
"output": 15,
"cache_read": 0.3,
"cache_write": 3.75
},
"modalities": {
"input": ["text", "image", "pdf"],
"output": ["text"]
}
}
}
},
"google": {
"npm": "@ai-sdk/google",
"name": "Google",
"options": {
"baseURL": "http://localhost:8317/v1beta",
"apiKey": "dummy"
},
"models": {
"gemini-3-pro-preview": {
"id": "gemini-3-pro-preview",
"name": "Gemini 3 Pro (Preview)",
"limit": { "context": 1048576, "output": 65536 },
"reasoning": true,
"variants": {
"low": {
"thinkingConfig": {
"thinkingLevel": "low",
"includeThoughts": true
}
},
"high": {
"thinkingConfig": {
"thinkingLevel": "high",
"includeThoughts": true
}
}
},
"cost": {
"input": 2,
"output": 12,
"cache_read": 0.2
},
"modalities": {
"input": ["text", "image", "video", "audio", "pdf"],
"output": ["text"]
}
},
"gemini-3-flash-preview": {
"id": "gemini-3-flash-preview",
"name": "Gemini 3 Flash (Preview)",
"limit": { "context": 1048576, "output": 65536 },
"reasoning": true,
"variants": {
"minimal": {
"thinkingConfig": {
"thinkingLevel": "minimal",
"includeThoughts": true
}
},
"low": {
"thinkingConfig": {
"thinkingLevel": "low",
"includeThoughts": true
}
},
"medium": {
"thinkingConfig": {
"thinkingLevel": "medium",
"includeThoughts": true
}
},
"high": {
"thinkingConfig": {
"thinkingLevel": "high",
"includeThoughts": true
}
}
},
"cost": {
"input": 0.5,
"output": 3,
"cache_read": 0.05
},
"modalities": {
"input": ["text", "image", "video", "audio", "pdf"],
"output": ["text"]
}
},
"gemini-3-pro-image-preview": {
"id": "gemini-3-pro-image-preview",
"name": "Gemini 3 Pro Image (Preview)",
"limit": {
"context": 65536,
"output": 32768
},
"cost": {
"input": 2,
"output": 120
},
"modalities": {
"input": ["image", "text"],
"output": ["image", "text"]
}
},
"gemini-2.5-computer-use-preview-10-2025": {
"id": "gemini-2.5-computer-use-preview-10-2025",
"name": "Gemini 2.5 Computer Use",
"limit": {
"context": 1048576,
"output": 65536
},
"variants": {
"fast": {
"thinkingConfig": {
"thinkingBudget": 0,
"includeThoughts": false
}
},
"balanced": {
"thinkingConfig": {
"thinkingBudget": 2048,
"includeThoughts": true
}
},
"deep": {
"thinkingConfig": {
"thinkingBudget": 8192,
"includeThoughts": true
}
}
},
"cost": {
"input": 1.25,
"output": 10
},
"modalities": {
"input": ["image", "text"],
"output": ["text"]
}
}
}
},
"openai": {
"npm": "@ai-sdk/openai",
"name": "OpenAI",
"options": {
"baseURL": "http://localhost:8317/v1",
"apiKey": "dummy",
"reasoningEffort": "medium",
"reasoningSummary": "auto",
"textVerbosity": "medium",
"include": ["reasoning.encrypted_content"],
"store": false
},
"models": {
"gpt-5.2": {
"id": "gpt-5.2",
"name": "GPT-5.2",
"limit": { "context": 272000, "output": 128000 },
"variants": {
"none": {
"reasoningEffort": "none",
"reasoningSummary": "auto",
"textVerbosity": "medium"
},
"low": {
"reasoningEffort": "low",
"reasoningSummary": "auto",
"textVerbosity": "medium"
},
"medium": {
"reasoningEffort": "medium",
"reasoningSummary": "auto",
"textVerbosity": "medium"
},
"high": {
"reasoningEffort": "high",
"reasoningSummary": "detailed",
"textVerbosity": "medium"
},
"xhigh": {
"reasoningEffort": "xhigh",
"reasoningSummary": "detailed",
"textVerbosity": "medium"
}
},
"cost": {
"input": 1.75,
"output": 14,
"cache_read": 0.175
},
"modalities": {
"input": ["text", "image"],
"output": ["text"]
}
},
"gpt-5.3-codex": {
"id": "gpt-5.3-codex",
"name": "GPT-5.3-Codex",
"limit": { "context": 272000, "output": 128000 },
"variants": {
"low": {
"reasoningEffort": "low",
"reasoningSummary": "auto",
"textVerbosity": "medium"
},
"medium": {
"reasoningEffort": "medium",
"reasoningSummary": "auto",
"textVerbosity": "medium"
},
"high": {
"reasoningEffort": "high",
"reasoningSummary": "detailed",
"textVerbosity": "medium"
},
"xhigh": {
"reasoningEffort": "xhigh",
"reasoningSummary": "detailed",
"textVerbosity": "medium"
}
},
"cost": {
"input": 1.25,
"output": 10,
"cache_read": 0.125
},
"modalities": {
"input": ["text", "image"],
"output": ["text"]
}
}
}
},
"x2n": {
"npm": "@ai-sdk/anthropic",
"name": "Anthropic",
"options": {
"baseURL": "http://localhost:3004/roo/v1",
"apiKey": "dummy"
},
"models": {
"claude-opus-4-6": {
"id": "claude-opus-4-6",
"name": "Claude Opus 4.6",
"limit": {
"context": 200000,
"output": 128000
},
"variants": {
"low": {
"thinking": {
"type": "adaptive",
"output_config": { "effort": "low" }
}
},
"medium": {
"thinking": {
"type": "adaptive",
"output_config": { "effort": "medium" }
}
},
"high": {
"thinking": {
"type": "adaptive",
"output_config": { "effort": "high" }
}
}
},
"cost": {
"input": 5,
"output": 25,
"cache_read": 0.5,
"cache_write": 6.25
},
"modalities": {
"input": ["text", "image", "pdf"],
"output": ["text"]
}
}
}
}
},
"small_model": "google/gemini-3-flash-preview"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment