Personal opencode configuration, synced across machines via Git.
Clone anywhere, then deploy files to the locations opencode reads them from.
Copy these into your opencode config directory:
AGENTS.mdopencode.jsonc
cp AGENTS.md opencode.jsonc ~/.config/opencode/Copy the .agents/ folder into your home directory so skills load globally:
cp -r .agents ~/opencode.jsonc reads credentials via {file:...}:
Paths are relative to the config file, so create the folder next to opencode.jsonc:
mkdir -p ~/.config/opencode/.secrets
# One value per file, no trailing newline:
echo -n "https://your-endpoint" > ~/.config/opencode/.secrets/base_url
echo -n "your-api-key" > ~/.config/opencode/.secrets/api_key.secrets/ is gitignored — recreate it on every machine. Do not commit real keys.
Installed skills are tracked by .skill-lock.json (sources + hashes). To add or update a skill, use opencode's skill install command; commit the updated .skill-lock.json and any new SKILL.md files so other machines pull the same versions.