open-copy
v1.0.0
Published
Backup and restore OpenCode configuration files with AES-256 encryption
Downloads
6
Maintainers
Readme
open-copy
Backup and restore OpenCode configuration files with AES-256-GCM encryption.
Installation
# Using bunx (recommended)
bunx open-copy wrap
# Or install globally
bun add -g open-copy
# or
npm install -g open-copyUsage
Backup (wrap)
# Create encrypted backup (default: opencode-backup.enc)
bunx open-copy wrap
# Custom output file
bunx open-copy wrap my-backup.encRestore (unwrap)
# Restore from backup
bunx open-copy unwrap backup.enc
# Auto-confirm restore (skip prompt)
bunx open-copy unwrap backup.enc -yNon-interactive mode
# Use environment variable for password
OPENCOPY_PASSWORD=secret bunx open-copy wrap
OPENCOPY_PASSWORD=secret bunx open-copy unwrap backup.encWhat gets backed up
| Path | Description |
|------|-------------|
| ~/.config/opencode/opencode.json | Main config (MCP servers, agents) |
| ~/.config/opencode/AGENTS.md | Global agent instructions |
| ~/.config/opencode/agent/ | Custom agent markdown files |
| ~/.config/opencode/mcp/ | MCP configuration directory |
Security
- AES-256-GCM encryption with authenticated encryption
- PBKDF2 key derivation (100,000 iterations, SHA-256)
- Random salt and IV for each backup
- Password never stored or transmitted
License
MIT
