{
"$schema": "https://opencode.ai/config.json",
"provider": {
"api-gateway": {
"models": {
"openai": {
"name": "openai",
"limit": {
"context": 128000,
"output": 8000
},
"compaction": {
"threshold": 0.35
}
}
},
"name": "api-gateway",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://your-gateway/v1",
"headers": {
"Authorization": "Bearer your-key"
}
}
}
},
"mcp": {
"codegraph": {
"type": "local",
"command": ["codegraph", "serve", "--mcp"],
"enabled": true
},
"PluggedinMCP": {
"type": "local",
"command": ["npx", "-y", "@pluggedin/pluggedin-mcp-proxy"],
"environment": {
"PLUGGEDIN_API_KEY": "your-key"
},
"enabled": true
}
},
"agent": {
"plan": {
"temperature": 0.2,
"top_p": 0.9
},
"build": {
"temperature": 0.2,
"top_p": 0.9,
"permission": {
"*": "allow"
}
}
},
"compaction": {
"auto": true,
"prune": true,
"reserved": 7000
},
"watcher": {
"ignore": [
"node_modules/**",
"dist/**",
".next/**",
".git/**",
".DS_Store",
"Thumbs.db",
"**/*.log",
".vscode/**",
".idea/**",
".env*",
"coverage/**",
".wrangler/**",
"__pycache__/**",
"*.pyc",
".pytest_cache/**",
".venv/**",
"venv/**",
".mypy_cache/**",
"target/**",
"build/**",
"obj/**",
"bin/**",
"*.tsbuildinfo",
".vercel/**",
".netlify/**",
"temp/**",
".codegraph/**"
]
},
"plugin": [
"@dietrichgebert/ponytail"
],
"instructions": [
"https://raw.githubusercontent.com/ss-vip/opencode-agent/refs/heads/main/agent-plus.md"
]
}