mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
2.3 KiB
2.3 KiB
First Run Setup
On your first visit to OpenCode Manager, you'll complete a guided setup process.
Interactive Setup
When no admin account exists, you'll be automatically redirected to the setup page.
Step 1: Create Admin Account
Fill in your account details:
- Name - Your display name
- Email - Used for login
- Password - Minimum 8 characters recommended
Click Create Account to continue.
Step 2: Configure Provider (Optional)
After account creation, configure an AI provider:
- Navigate to Settings > Providers
- Select a provider
- Enter API key or connect via OAuth
- Save configuration
You can skip this and configure providers later.
Pre-Configured Admin
For automated or headless deployments, skip interactive setup by setting environment variables:
# In docker-compose.yml or .env
ADMIN_EMAIL=admin@example.com
ADMIN_PASSWORD=your-secure-password
When these are set:
- Admin user is created automatically on first startup
- Setup wizard is skipped
- Users must log in with configured credentials
Adding Passkeys
After initial setup, you can add passkey authentication for passwordless login:
- Go to Settings > Account
- Click Add Passkey
- Follow your browser/device prompts
- Name your passkey (e.g., "MacBook Touch ID")
Passkeys provide:
- Passwordless login
- Phishing-resistant authentication
- Biometric support (Touch ID, Face ID, Windows Hello)
Password Reset
If you forget your password:
- Set environment variables:
ADMIN_EMAIL=your@email.com
ADMIN_PASSWORD=new-password
ADMIN_PASSWORD_RESET=true
-
Restart the application
-
Log in with new password
-
Important: Remove
ADMIN_PASSWORD_RESET=trueafter successful reset
Security Recommendations
Production Deployments
- Set a strong
AUTH_SECRETfor session encryption - Use HTTPS with valid SSL certificate
- Use strong, unique passwords
- Enable passkey authentication
- Regularly rotate API keys
Generate AUTH_SECRET
openssl rand -base64 32
Add to your environment:
AUTH_SECRET=your-generated-secret-here
Next Steps
- Configure OAuth Providers - Enable social login
- Environment Variables - All configuration options
- Features Overview - Explore capabilities