Last active
November 14, 2025 22:37
-
-
Save pythoninthegrass/d25e8293b9e0e3b70cc1e91a273d0c1b to your computer and use it in GitHub Desktop.
opencode config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CONTEXT7_API_KEY= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| opencode.jsonc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "https://opencode.ai/config.json", | |
| "theme": "tokyonight", | |
| "autoupdate": true, | |
| "provider": { | |
| "ollama": { | |
| "npm": "@ai-sdk/openai-compatible", | |
| "name": "Ollama (local)", | |
| "options": { | |
| "baseURL": "http://localhost:11434/v1" | |
| }, | |
| "models": { | |
| "gpt-oss:20b": { | |
| "name": "gpt-oss 20B" | |
| }, | |
| "gpt-oss:120b": { | |
| "name": "gpt-oss 120B" | |
| }, | |
| "qwen3-coder:30b": { | |
| "name": "Qwen 3 Coder 30B" | |
| } | |
| } | |
| } | |
| }, | |
| "mcp": { | |
| "context7": { | |
| "type": "local", | |
| "command": [ | |
| "npx", | |
| "-y", | |
| "@upstash/context7-mcp", | |
| "--api-key", | |
| "$CONTEXT7_API_KEY" | |
| ], | |
| "enabled": true | |
| }, | |
| "serena": { | |
| "type": "local", | |
| "command": [ | |
| "uvx", | |
| "--from", | |
| "git+https://github.com/oraios/serena", | |
| "serena", | |
| "start-mcp-server" | |
| ], | |
| "enabled": true | |
| }, | |
| "screencap": { | |
| "type": "local", | |
| "command": [ | |
| "uv", | |
| "--directory", | |
| "$HOME/git/screencap", | |
| "run", | |
| "server.py" | |
| ], | |
| "environment": { | |
| "UV_PROJECT_ENVIRONMENT": "$HOME/git/screencap/.venv" | |
| }, | |
| "enabled": true | |
| }, | |
| "sequentialthinking": { | |
| "type": "local", | |
| "command": [ | |
| "npx", | |
| "@modelcontextprotocol/server-sequential-thinking" | |
| ], | |
| "enabled": true | |
| } | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Clone gist and symlink to config dir
Add this snippet to
~/.bash_aliases