Configuration Methods
Interactive CLI
Use the CLI for guided configuration:Config File
Configuration is stored in:Environment Variables
Environment variables override config file settings. Useful for containerized deployments.Deployment Configuration
Deployment Mode
Two modes:local_trusted and authenticated
Environment:
Exposure Policy
Forauthenticated mode: private or public
Environment:
Server Host and Port
Environment:UI Serving
Control whether the API server serves the UI: Environment:Database Configuration
Database Mode
Two modes:embedded-postgres (default) or postgres
Config file:
Embedded PostgreSQL Settings
Config file:Secrets Configuration
Secrets Provider
Available providers:local_encrypted
Environment:
Strict Mode
Prevent inline secrets in environment variables: Environment:*_API_KEY, *_TOKEN, *_SECRET) must use secret references.
Master Key Configuration
Via environment (raw key):Storage Configuration
Storage Provider
Available providers:local_disk, s3
Environment:
Local Disk Storage
Environment:S3 Storage
Environment:Authentication Configuration
Base URL Mode
Two modes:auto or explicit
Environment:
auto: Private network deployments (Tailscale, VPN)explicit: Internet-facing deployments
Allowed Hostnames
For multi-domain access: Environment:Instance Configuration
Instance Home
Base directory for all instance data:Instance ID
Run multiple isolated instances:$PAPERCLIP_HOME/instances/$PAPERCLIP_INSTANCE_ID/.
Instance Config Path
Direct path to config file:Runtime Features
Heartbeat Scheduler
Controls scheduled agent heartbeats: Environment:- Enabled:
true - Interval: 30 seconds (minimum 10 seconds)
server/src/config.ts:186.
Company Deletion
Enable/disable company deletion: Environment:local_trusted: enabledauthenticated: disabled
server/src/config.ts:146.
Configuration Priority
Settings are resolved in this order (highest priority first):- Environment variables
- Config file (
~/.paperclip/instances/default/config.json) - Default values
Full Configuration Reference
Seeserver/src/config.ts:31 for the complete Config interface:
Validation
Validate configuration:Examples
Local Development
Private Network (Tailscale)
Production (Internet-Facing)
Next Steps
Database Setup
Configure PostgreSQL and run migrations
Security
Secure your deployment with best practices