Introduction
The Paperclip CLI (paperclipai) is the primary tool for setting up, configuring, and running your Paperclip instance. It provides interactive wizards, diagnostic tools, and utilities for managing your AI agent control plane.
Installation
Install the Paperclip CLI globally via npm:Quick Start
Get started with a new Paperclip instance in three commands:CLI Version
Current version: 0.2.5 Check your installed version:Global Options
These options are available across all commands:--config <path>
Path to custom config file. Defaults to ~/.paperclip/instances/default/config.json.
--data-dir <path>
Paperclip data directory root. Isolates state from the default ~/.paperclip directory.
Core Commands
Setup & Configuration
onboard
Interactive first-run setup wizard
configure
Update configuration sections
Operations
run
Bootstrap and run Paperclip server
doctor
Run diagnostic checks and repairs
Additional Commands
env
Print environment variables for deployment:
allowed-hostname
Add a hostname to the allowed list for authenticated/private mode:
<host>- Hostname to allow (e.g.,dotta-macbook-pro)
heartbeat run
Run one agent heartbeat and stream live logs:
--agent-id <agentId>- Agent ID to invoke
--source <source>- Invocation source:timer,assignment,on_demand,automation(default:on_demand)--trigger <trigger>- Trigger detail:manual,ping,callback,system(default:manual)--timeout-ms <ms>- Max time to wait before giving up (default:0= no timeout)--json- Output raw JSON where applicable--debug- Show raw adapter stdout/stderr JSON chunks
auth bootstrap-ceo
Create a one-time bootstrap invite URL for the first instance admin:
--force- Create new invite even if admin already exists--expires-hours <hours>- Invite expiration window in hours (default: 72, max: 720)--base-url <url>- Public base URL used to print invite link
This command is only required for
authenticated deployment mode. It’s skipped in local_trusted mode.Client API Commands
The CLI includes client commands for interacting with a running Paperclip instance:- context - Manage CLI context profiles
- company - Company operations
- issue - Issue management
- agent - Agent operations
- approval - Approval workflows
- activity - Activity logs
- dashboard - Dashboard views
--context <path> or --profile <name> to specify connection details.
Configuration Files
The CLI manages several configuration files:| File | Purpose | Default Location |
|---|---|---|
config.json | Main configuration | ~/.paperclip/instances/default/config.json |
.env.local | JWT secret | ~/.paperclip/instances/default/.env.local |
master.key | Secrets encryption key | ~/.paperclip/instances/default/secrets/master.key |
context.json | CLI context profiles | ~/.paperclip/context.json |
Environment Variables
PAPERCLIP_HOME
Override the Paperclip home directory (default: ~/.paperclip):
PAPERCLIP_INSTANCE_ID
Set the instance ID for multi-instance setups (default: default):
PAPERCLIP_CONFIG
Explicit path to config file:
Instance Management
Paperclip supports multiple isolated instances using thePAPERCLIP_INSTANCE_ID environment variable or --instance flag.
Each instance has its own:
- Configuration
- Database (if using embedded-postgres)
- Logs
- Secrets
- Storage
~/.paperclip/instances/<instance-id>/.
Troubleshooting
Command not found
Ifpaperclipai is not found after installation:
-
Verify installation:
-
Check npm global bin path:
-
Ensure global bin directory is in your PATH:
Permission errors
If you encounter permission errors during installation:Config file location
Find your active config file:Next Steps
Set up your instance
Run the interactive setup wizard
Diagnose issues
Check your Paperclip installation