.opencode.config.json.
Location
- Project:
.opencode.config.jsonin project root - Global fallback:
~/.config/sincronizado/config.json
Schema
Options
vps.default
- Type: string
- Required: yes
- Example:
"oracle-ashburn"
vps.hosts
- Type: object
- Required: yes
host.hostname
- Type: string
- Required: yes
- Example:
"my-vps.tailnet.ts.net"
host.user
- Type: string
- Default:
"ubuntu"
host.port
- Type: integer
- Default: 2222
host.provider
- Type: string
- Example:
"oracle"
sync.ignore
- Type: array of strings
- Default:
["node_modules", ".venv", ".git", "dist", "build"]
session.prefix
- Type: string
- Default:
"sync-"
session.default_editor
- Type: string
- Default:
"code"
plugins.enabled
- Type: array of strings
- Default:
["opencode-direnv", "agentmap", "opencode-sync", "ai-sessions-mcp", "ccmanager"]
Example
Examples
Single VPS (Oracle)
Multiple VPS (prod + staging)
Custom sync ignore
Full configuration
Validation
Windows:- Required fields present
- Valid JSON syntax
- Host configurations complete
Troubleshooting
Config not loading
- Check file is valid JSON:
python -m json.tool < .opencode.config.json - Verify file is in project root
- Check file permissions (readable)
VPS not found
- Verify
vps.defaultmatches a key invps.hosts - Check
hostnameis correct - Ensure
userhas SSH access