1.4 KiB
1.4 KiB
OpenCode Portable Config
This folder is safe to commit to GitHub. It contains config and installers, but no API keys.
What is included
templates/opencode.jsontemplates/oh-my-opencode.jsontemplates/scripts/openviking-mcp.jsscripts/install-linux.shscripts/install-windows.ps1.env.exampleOBSIDIAN_KNOWLEDGE_WORKFLOW.mdMEMORY_FIRST_POLICY.md
How to use
- Push this folder to your GitHub repo.
- On a target machine, clone or download the repo.
- Run the platform installer from
scripts/. - Copy
.env.exampleto.envand fill keys locally. - Run
opencode auth login <provider>or/connectin OpenCode.
Optional enhancements toggles
Linux:
INSTALL_PROMPTFOO=1 INSTALL_OPENVIKING=1 INSTALL_IMPECCABLE=1 bash scripts/install-linux.sh
Windows PowerShell:
$env:INSTALL_PROMPTFOO="1"
$env:INSTALL_OPENVIKING="1"
$env:INSTALL_IMPECCABLE="1"
.\scripts\install-windows.ps1
OpenViking MCP bridge
The bundle includes a local OpenViking bridge script (scripts/openviking-mcp.js).
- Default OpenViking server URL:
http://127.0.0.1:1933 - Override with env var:
OPENVIKING_BASE_URL - Tools exposed to OpenCode:
openviking_searchopenviking_readopenviking_upsert
Important
- Do not commit
.env. - Do not commit
~/.local/share/opencode/auth.json. - Credentials should always be entered locally on each machine.