Installation, configuration, and deployment guide for WOPR - the self-sovereign AI session management system.
Installation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Run the configuration wizard anytime to update settings:
wopr configure
Configuration Options
The wizard covers:
Authentication: OAuth login or API key
Default Provider: Which AI model to use by default
Session Defaults: Default context and behavior
Plugin Settings: Auto-enable plugins
Daemon Settings: Auto-start, logging level
Authentication Options
Option 1: OAuth Login (Claude Max/Pro)
For users with Claude Max or Pro subscriptions:
wopr auth login
This opens a browser for OAuth authentication with Anthropic. After successful login, credentials are stored securely in ~/.wopr/config/credentials.json.
Option 2: API Key
For direct API access:
# Interactive (masked input)
wopr auth api-key
# Direct (not recommended for security)
wopr auth api-key sk-ant-api03-xxxxx
Check Authentication Status
wopr auth # Show current auth status
Switch Authentication Methods
wopr auth logout# Clear current credentials
wopr auth login # Re-authenticate with OAuth# or
wopr auth api-key # Switch to API key
# Full backup
tar -czf wopr-backup-$(date +%Y%m%d).tar.gz ~/.wopr
# Sessions only
tar -czf wopr-sessions-$(date +%Y%m%d).tar.gz ~/.wopr/sessions
# Restore from backup
tar -xzf wopr-backup-20250130.tar.gz -C ~/
Environment Variables
Configure WOPR behavior via environment variables:
# Core settingsexport WOPR_HOME=~/.wopr # Data directory (default: ~/.wopr)# Authenticationexport ANTHROPIC_API_KEY=sk-ant-xxxxx # Anthropic API keyexport OPENAI_API_KEY=sk-xxxxx # OpenAI API key# Daemon settingsexport WOPR_DAEMON_PORT=7437 # Daemon port (default: 7437)export WOPR_DAEMON_HOST=127.0.0.1 # Daemon host (default: 127.0.0.1)
Persist Environment Variables
Add to your shell profile (~/.bashrc, ~/.zshrc, etc.):
# Find npm global bin
npm config get prefix
# Add to PATH (add to ~/.bashrc or ~/.zshrc)export PATH="$(npm config get prefix)/bin:$PATH"# Reload shellsource ~/.bashrc
"EACCES permission denied"
Fix npm permissions:
# Option 1: Use nvm (recommended)
nvm install 20
nvm use 20
# Option 2: Fix npm prefixmkdir ~/.npm-global
npm config set prefix '~/.npm-global'export PATH=~/.npm-global/bin:$PATH
npm install -g @tsavo/wopr
"Error: No API key configured"
Configure authentication:
wopr auth login # For OAuth# or
wopr auth api-key # For API key
"Daemon failed to start"
Check for port conflicts:
# Check if port is in use
lsof -i :7437
# Use different portexport WOPR_DAEMON_PORT=7438
wopr daemon start