49 KiB
CLI Reference
Paperclip CLI now supports both:
- installation and lifecycle management (
install,uninstall,update,upgrade,service) - instance setup/diagnostics (
onboard,doctor,configure,env,allowed-hostname,env-lab) - control-plane client operations (issues, approvals, agents, activity, dashboard)
Security: safe invocation for content-bearing arguments
Use pnpm exec paperclipai for any command whose argument can hold untrusted or
semi-trusted content. Untrusted content includes issue text, comment bodies,
Markdown, pasted snippets, and model output. pnpm exec runs the installed
binary directly. It passes the argument as an inert argv value. It does not
run a shell over the value.
Do not use pnpm paperclipai for a content-bearing argument. The safe form and
the unsafe form differ only by the exec keyword, so read the command with
care. pnpm paperclipai is a package.json script. pnpm runs the argument
through /bin/sh first. The shell interprets these metacharacters before the
CLI starts:
- command substitution: a backtick pair or
$( ) - variable expansion:
$NAMEor${NAME}(this can leak a secret value into the persisted argument) - other shell syntax:
; | & < >
A crafted value can run an arbitrary command as the invoking user. A crafted
value can also expand an environment variable into the stored argument. No
CLI-side check stops this, because the shell runs before cli/src starts.
Safe forms:
pnpm exec paperclipai <command> <args>— the documented defaultnpx paperclipai <command> <args>— also injection-safe; use it when no local install is present.npxfetches the package from the npm registry when the binary is not installed locally, so a mistyped name can start a network fetch.pnpm execnever does this; it runs only the locally installed binary.node <cli>/dist/index.js <command> <args>— trusted direct-binary call
Unsafe forms for a content-bearing argument:
pnpm paperclipai <command> <args>pnpm run <script> -- <args>- any
package.jsonscript that wraps the CLI
pnpm paperclipai stays acceptable only for local lifecycle and setup commands
that take fixed, trusted arguments (for example run, onboard, doctor,
configure --section <name>, connect, env-lab up, worktree ensure-seeded).
A command is content-bearing, and needs pnpm exec, when it takes a non-fixed
value: a hostname (allowed-hostname), an import URL or folder (company import), an identifier or secret (--company-id, --agent-id,
--claim-secret), a payload (--payload-json), or free text (--body,
--title, --comment). A runtime value counts as non-fixed even when it looks
safe: the private-hostname guard builds allowed-hostname <value> from the
request Host header, so it must use pnpm exec. The pnpm --filter @paperclipai/* build and test commands are not CLI invocation. They do not
change.
Base Usage
Use repo script in development:
pnpm paperclipai --help
Recommended installation and interactive onboarding:
curl -fsSLO https://paperclip.ing/install.sh
curl -fsSLO https://paperclip.ing/install.sh.sha256
if command -v sha256sum >/dev/null 2>&1; then
sha256sum -c install.sh.sha256
else
shasum -a 256 -c install.sh.sha256
fi
bash install.sh
The checksum detects transfer or publishing mistakes but is served from the same origin as the installer. Use a release-tag or commit-pinned GitHub copy when you need an independently hosted source. Piped installs require supported Node.js, npm, and npx to already be installed; download the script first before allowing it to bootstrap Node.js with privileged package-manager commands.
First-time local bootstrap from a source checkout:
pnpm paperclipai run
Choose local instance:
pnpm paperclipai run --instance dev
Install, Update, And Uninstall
Managed installs keep CLI payloads under ~/.paperclip/cli, expose a stable
~/.local/bin/paperclipai shim, switch versions atomically, and retain two
previous payloads for rollback.
paperclipai install
paperclipai install --canary
paperclipai install --version <version>
paperclipai install --ref <branch|tag|sha> [--repo owner/repo]
paperclipai update
paperclipai update --latest|--canary|--version <version>
paperclipai update --rollback
paperclipai upgrade
paperclipai uninstall
upgrade aliases update. uninstall removes managed code and the shim but
preserves instance data under ~/.paperclip/instances/. See
doc/INSTALLING.md for installation methods, security notes, PATH setup, and
the complete update and rollback behavior.
Onboarding And Service Management
Interactive onboarding offers to install a background service on supported
platforms. --yes never installs it implicitly; automation must opt in.
paperclipai onboard
paperclipai onboard --yes
paperclipai onboard --yes --install-service
paperclipai onboard --yes --no-install-service
Service lifecycle commands remain under the service namespace:
paperclipai service install [--no-start-now] [--no-start-on-login]
paperclipai service uninstall
paperclipai service start
paperclipai service stop
paperclipai service restart [--wait]
paperclipai service status [--json]
paperclipai service logs [-f]
Every service verb supports --instance <id> and --json. Linux and WSL2 use
a systemd user unit when available; macOS uses a LaunchAgent. Unsupported
environments receive foreground paperclipai run guidance.
paperclipai doctor includes managed-install and service-health diagnostics in
addition to configuration, storage, database, logging, and port checks.
Deployment Modes
Mode taxonomy and design intent are documented in doc/DEPLOYMENT-MODES.md.
Current CLI behavior:
paperclipai onboardandpaperclipai configure --section serverset deployment mode in config- server onboarding/configure ask for reachability intent and write
server.bind paperclipai run --bind <loopback|lan|tailnet>passes a quickstart bind preset into first-run onboarding when config is missing- runtime can override mode with
PAPERCLIP_DEPLOYMENT_MODE paperclipai runandpaperclipai doctorstill do not expose a direct low-level--modeflag
Canonical behavior is documented in doc/DEPLOYMENT-MODES.md.
Allow an authenticated/private hostname (for example custom Tailscale DNS):
pnpm exec paperclipai allowed-hostname dotta-macbook-pro
Bring up the default local SSH fixture for environment testing:
pnpm paperclipai env-lab up
pnpm paperclipai env-lab doctor
pnpm paperclipai env-lab status --json
pnpm paperclipai env-lab down
All client commands support:
--data-dir <path>--api-base <url>--api-key <token>--context <path>--profile <name>--json
Company-scoped commands also support --company-id <id>.
API base resolution order:
--api-base <url>PAPERCLIP_API_URL- selected context profile
apiBase - local Paperclip config server port
http://localhost:3100
Connection failures include the attempted URL and a GET /api/health check hint.
Connect Wizard
pnpm paperclipai connect
connect confirms the resolved API base, verifies GET /api/health, authenticates board access when needed, and saves a persona-aware profile:
persona=boardfor board operator profilespersona=agentwithagentIdandagentNamefor agent profiles
Profiles store token env-var names, not plaintext tokens. The wizard prints shell exports for the newly created token.
Use --data-dir on any CLI command to isolate all default local state (config/context/db/logs/storage/secrets) away from ~/.paperclip:
pnpm paperclipai run --data-dir ./tmp/paperclip-dev
pnpm paperclipai issue list --data-dir ./tmp/paperclip-dev
Context Profiles
Store local defaults in ~/.paperclip/context.json:
pnpm exec paperclipai context set --api-base http://localhost:3100 --company-id <company-id>
pnpm exec paperclipai context set --persona agent --agent-id <agent-id> --api-key-env-var-name PAPERCLIP_API_KEY
pnpm paperclipai context show
pnpm paperclipai context list
pnpm paperclipai context use default
To avoid storing secrets in context, set apiKeyEnvVarName and keep the key in env:
pnpm exec paperclipai context set --api-key-env-var-name PAPERCLIP_API_KEY
export PAPERCLIP_API_KEY=...
Company Commands
pnpm exec paperclipai company list
pnpm exec paperclipai company get <company-id>
pnpm exec paperclipai company current [--company-id <company-id>]
pnpm exec paperclipai company stats
pnpm exec paperclipai company create --payload-json '{...}'
pnpm exec paperclipai company update <company-id> --payload-json '{...}'
pnpm exec paperclipai company branding:update <company-id> --payload-json '{...}'
pnpm exec paperclipai company archive <company-id>
pnpm exec paperclipai company export <company-id> --out ./company --include company,agents,projects,issues,skills
pnpm exec paperclipai company export:preview <company-id> --payload-json '{...}'
pnpm exec paperclipai company export:api <company-id> --payload-json '{...}'
pnpm exec paperclipai company import ./company --target new --new-company-name "Imported Company"
pnpm exec paperclipai company import:preview <company-id> --payload-json '{...}'
pnpm exec paperclipai company import:apply <company-id> --payload-json '{...}'
pnpm exec paperclipai company delete <company-id-or-prefix> --yes --confirm <same-id-or-prefix>
Examples:
pnpm exec paperclipai company delete PAP --yes --confirm PAP
pnpm exec paperclipai company delete 5cbe79ee-acb3-4597-896e-7662742593cd --yes --confirm 5cbe79ee-acb3-4597-896e-7662742593cd
Notes:
- With agent authentication,
company listandcompany currentare agent-safe company selectors.company listfirst tries the board-wide list; if that is forbidden, it uses--company-id,PAPERCLIP_COMPANY_ID, context, or/api/agents/meand then reads only that scoped company. company createrequires board/instance-admin authentication because it is an instance-wide setup command.- Deletion is server-gated by
PAPERCLIP_ENABLE_COMPANY_DELETION. - With agent authentication, company deletion is company-scoped. Use the current company ID/prefix (for example via
--company-idorPAPERCLIP_COMPANY_ID), not another company.
Issue Commands
pnpm exec paperclipai issue list --company-id <company-id> [--status todo,in_progress] [--assignee-agent-id <agent-id>] [--match text]
pnpm exec paperclipai issue get <issue-id-or-identifier>
pnpm exec paperclipai issue create --company-id <company-id> --title "..." [--description "..."] [--status todo] [--priority high]
pnpm exec paperclipai issue update <issue-id> [--status in_progress] [--comment "..."]
pnpm exec paperclipai issue delete <issue-id> --yes
pnpm exec paperclipai issue comment <issue-id> --body "..." [--reopen]
pnpm exec paperclipai issue comments <issue-id> [--limit 50]
pnpm exec paperclipai issue comment:get <issue-id> <comment-id>
pnpm exec paperclipai issue comment:delete <issue-id> <comment-id>
pnpm exec paperclipai issue runs <issue-id-or-identifier>
pnpm exec paperclipai issue live-runs <issue-id-or-identifier>
pnpm exec paperclipai issue active-run <issue-id-or-identifier>
pnpm exec paperclipai issue heartbeat-context <issue-id>
pnpm exec paperclipai issue checkout <issue-id> --agent-id <agent-id> [--expected-statuses todo,backlog,blocked]
pnpm exec paperclipai issue release <issue-id>
pnpm exec paperclipai issue force-release <issue-id>
Issue subresources are exposed as Paperclip API wrappers. Commands that map to broad server schemas accept JSON payloads and validate them with shared schemas before sending.
pnpm exec paperclipai issue child:create <issue-id> --payload-json '{"title":"Child task"}'
pnpm exec paperclipai issue approvals <issue-id>
pnpm exec paperclipai issue approval:link <issue-id> <approval-id>
pnpm exec paperclipai issue approval:unlink <issue-id> <approval-id>
pnpm exec paperclipai issue read <issue-id>
pnpm exec paperclipai issue unread <issue-id>
pnpm exec paperclipai issue archive <issue-id>
pnpm exec paperclipai issue unarchive <issue-id>
pnpm exec paperclipai issue recovery-actions <issue-id>
pnpm exec paperclipai issue recovery:resolve <issue-id> --outcome restored --source-issue-status todo
pnpm exec paperclipai issue documents <issue-id> [--include-system]
pnpm exec paperclipai issue document:get <issue-id> <key>
pnpm exec paperclipai issue document:put <issue-id> <key> --body-file ./plan.md [--title Plan]
pnpm exec paperclipai issue document:lock <issue-id> <key>
pnpm exec paperclipai issue document:unlock <issue-id> <key>
pnpm exec paperclipai issue document:revisions <issue-id> <key>
pnpm exec paperclipai issue document:restore <issue-id> <key> <revision-id>
pnpm exec paperclipai issue document:delete <issue-id> <key>
pnpm exec paperclipai issue work-products <issue-id>
pnpm exec paperclipai issue work-product:create <issue-id> --payload-json '{"type":"pull_request","provider":"github","title":"PR"}'
pnpm exec paperclipai issue work-product:update <work-product-id> --payload-json '{"status":"archived"}'
pnpm exec paperclipai issue work-product:delete <work-product-id>
pnpm exec paperclipai issue interactions <issue-id>
pnpm exec paperclipai issue interaction:create <issue-id> --payload-json '{"kind":"request_confirmation","payload":{"version":1,"prompt":"Continue?"}}'
pnpm exec paperclipai issue interaction:accept <issue-id> <interaction-id> [--selected-client-keys key1,key2]
pnpm exec paperclipai issue interaction:reject <issue-id> <interaction-id> [--reason "..."]
pnpm exec paperclipai issue interaction:respond <issue-id> <interaction-id> --answers-json '[{"questionId":"q1","optionIds":["yes"]}]'
pnpm exec paperclipai issue interaction:cancel <issue-id> <interaction-id> [--reason "..."]
pnpm exec paperclipai issue tree-state <issue-id>
pnpm exec paperclipai issue tree-preview <issue-id> --payload-json '{"mode":"pause"}'
pnpm exec paperclipai issue tree-holds <issue-id> [--status active] [--include-members]
pnpm exec paperclipai issue tree-hold:create <issue-id> --payload-json '{"mode":"pause","reason":"review"}'
pnpm exec paperclipai issue tree-hold:get <issue-id> <hold-id>
pnpm exec paperclipai issue tree-hold:release <issue-id> <hold-id> [--payload-json '{"reason":"done"}']
pnpm exec paperclipai issue attachments <issue-id>
pnpm exec paperclipai issue attachment:upload <issue-id> --company-id <company-id> --file ./artifact.txt
pnpm exec paperclipai issue attachment:download <attachment-id> [--out ./artifact.txt]
pnpm exec paperclipai issue attachment:delete <attachment-id>
pnpm exec paperclipai issue label:list --company-id <company-id>
pnpm exec paperclipai issue label:create --company-id <company-id> --name bug --color '#ff0000'
pnpm exec paperclipai issue label:delete <label-id>
pnpm exec paperclipai issue feedback:votes <issue-id>
pnpm exec paperclipai issue feedback:vote <issue-id> --payload-json '{"targetType":"issue_comment","targetId":"...","vote":"up"}'
Project Commands
pnpm exec paperclipai project list --company-id <company-id>
pnpm exec paperclipai project get <project-id-or-shortname> [--company-id <company-id>]
pnpm exec paperclipai project create --company-id <company-id> --name "Launch Site" [--goal-ids <id1,id2>] [--lead-agent-id <id>]
pnpm exec paperclipai project update <project-id-or-shortname> [--status in_progress] [--company-id <company-id>]
pnpm exec paperclipai project delete <project-id-or-shortname> --yes [--company-id <company-id>]
Advanced project fields accept JSON:
pnpm exec paperclipai project create --company-id <company-id> --name "Ops" --env-json '{"OPENAI_API_KEY":{"kind":"secret","secretName":"openai-api-key"}}'
pnpm exec paperclipai project update <project-id> --execution-workspace-policy-json '{"enabled":true,"defaultMode":"shared_workspace"}'
Goal Commands
pnpm exec paperclipai goal list --company-id <company-id>
pnpm exec paperclipai goal get <goal-id>
pnpm exec paperclipai goal create --company-id <company-id> --title "Grow revenue" [--level company] [--status active]
pnpm exec paperclipai goal update <goal-id> [--title "..."] [--status achieved]
pnpm exec paperclipai goal delete <goal-id> --yes
Agent Commands
pnpm exec paperclipai agent list --company-id <company-id>
pnpm exec paperclipai agent get <agent-id>
pnpm exec paperclipai agent create --company-id <company-id> --payload-json '{"name":"Builder","adapterType":"codex_local"}'
pnpm exec paperclipai agent hire --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai agent update <agent-id> --payload-json '{"title":"Senior Builder"}'
pnpm exec paperclipai agent delete <agent-id> --yes
pnpm exec paperclipai agent me
pnpm exec paperclipai agent inbox
pnpm exec paperclipai agent inbox-mine --user-id <board-user-id>
pnpm exec paperclipai agent wake <agent-id-or-shortname> [--company-id <company-id>] [--reason "..."] [--payload '{"issueId":"..."}']
pnpm exec paperclipai agent pause <agent-id>
pnpm exec paperclipai agent resume <agent-id>
pnpm exec paperclipai agent approve <agent-id>
pnpm exec paperclipai agent terminate <agent-id>
pnpm exec paperclipai agent heartbeat:invoke <agent-id>
pnpm exec paperclipai agent claude-login <agent-id>
pnpm exec paperclipai agent local-cli <agent-id-or-shortname> --company-id <company-id>
Agent configuration and runtime endpoints:
pnpm exec paperclipai agent permissions:update <agent-id> --payload-json '{"canCreateAgents":true,"canCreateSkills":true,"canAssignTasks":true}'
pnpm exec paperclipai agent configuration <agent-id>
pnpm exec paperclipai agent config-revisions <agent-id>
pnpm exec paperclipai agent config-revision:get <agent-id> <revision-id>
pnpm exec paperclipai agent config-revision:rollback <agent-id> <revision-id>
pnpm exec paperclipai agent runtime-state <agent-id>
pnpm exec paperclipai agent runtime-state:reset-session <agent-id> [--task-key <key>]
pnpm exec paperclipai agent task-sessions <agent-id>
pnpm exec paperclipai agent skills <agent-id>
pnpm exec paperclipai agent skills:sync <agent-id> --desired-skills paperclip,github --mode add
pnpm exec paperclipai agent instructions-path:update <agent-id> --payload-json '{"path":"/path/to/AGENTS.md"}'
pnpm exec paperclipai agent instructions-bundle <agent-id>
pnpm exec paperclipai agent instructions-bundle:update <agent-id> --payload-json '{"mode":"managed"}'
pnpm exec paperclipai agent instructions-file:get <agent-id> --path AGENTS.md
pnpm exec paperclipai agent instructions-file:put <agent-id> --path AGENTS.md --content-file ./AGENTS.md
pnpm exec paperclipai agent instructions-file:delete <agent-id> --path AGENTS.md
Agent config, instructions, skills, project env, environment, secret, and workspace edits affect the next run. Active runs finish with the config they started with. When a saved session, reused workspace, or sandbox lease no longer matches the effective next-run config, Paperclip may start fresh execution and records non-sensitive freshness categories in run result JSON and workspace operation logs.
agent local-cli is the quickest way to run local Claude/Codex manually as a Paperclip agent:
- creates a new long-lived agent API key
- installs missing Paperclip skills into
~/.codex/skillsand~/.claude/skills - prints
export ...lines forPAPERCLIP_API_URL,PAPERCLIP_COMPANY_ID,PAPERCLIP_AGENT_ID, andPAPERCLIP_API_KEY
Example for shortname-based local setup:
pnpm exec paperclipai agent local-cli codexcoder --company-id <company-id>
pnpm exec paperclipai agent local-cli claudecoder --company-id <company-id>
Token Commands
Agent API keys are scoped to one company and one agent. Plaintext tokens are printed once at creation.
pnpm exec paperclipai token agent create --company-id <company-id> --agent <agent-id-or-name> --name external-worker
pnpm exec paperclipai token agent list --company-id <company-id> --agent <agent-id-or-name>
pnpm exec paperclipai token agent revoke --company-id <company-id> --agent <agent-id-or-name> <key-id>
Named board API keys use the board authorization model, support revocation and expiration metadata, and are audited server-side.
pnpm exec paperclipai token board create --company-id <company-id> --name external-admin
pnpm exec paperclipai token board create --name short-lived --ttl-days 7
pnpm exec paperclipai token board list
pnpm exec paperclipai token board revoke <key-id>
Run Commands
paperclipai run without a subcommand still bootstraps and starts a local Paperclip instance. The subcommands below inspect and control API heartbeat runs.
pnpm exec paperclipai run list --company-id <company-id> [--agent-id <agent-id>] [--limit 50]
pnpm exec paperclipai run live --company-id <company-id> [--limit 50] [--min-count 0]
pnpm exec paperclipai run get <run-id>
pnpm exec paperclipai run events <run-id> [--after-seq 0] [--limit 200]
pnpm exec paperclipai run log <run-id> [--offset 0] [--limit-bytes 16384] [--text]
pnpm exec paperclipai run cancel <run-id>
pnpm exec paperclipai run issues <run-id>
pnpm exec paperclipai run workspace-operations <run-id>
pnpm exec paperclipai run workspace-log <operation-id> [--offset 0] [--limit-bytes 16384] [--text]
pnpm exec paperclipai run watchdog-decision <run-id> --decision continue [--reason "..."]
Routine Commands
paperclipai routines disable-all remains the local maintenance command. The singular routine group maps to the REST API.
pnpm exec paperclipai routine list --company-id <company-id> [--project-id <project-id>]
pnpm exec paperclipai routine create --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai routine get <routine-id>
pnpm exec paperclipai routine update <routine-id> --payload-json '{...}'
pnpm exec paperclipai routine revisions <routine-id>
pnpm exec paperclipai routine revision:restore <routine-id> <revision-id>
pnpm exec paperclipai routine runs <routine-id> [--limit 50]
pnpm exec paperclipai routine run <routine-id> [--payload-json '{...}']
pnpm exec paperclipai routine trigger:create <routine-id> --payload-json '{...}'
pnpm exec paperclipai routine trigger:update <trigger-id> --payload-json '{...}'
pnpm exec paperclipai routine trigger:delete <trigger-id>
pnpm exec paperclipai routine trigger:rotate-secret <trigger-id>
pnpm exec paperclipai routine trigger:fire <public-id> [--payload-json '{...}']
Prompt Handoff
Prompt handoff creates Paperclip work. It does not create a chat session.
pnpm exec paperclipai agent-prompt <agent-name-or-id> <agent-api-key> "Prompt here"
pnpm exec paperclipai agent prompt --agent <agent-name-or-id> --api-key-env PAPERCLIP_API_KEY "Prompt here"
pnpm exec paperclipai agent prompt --profile my-agent "Prompt here"
pnpm exec paperclipai board prompt --company-id <company-id> --agent <agent-name-or-id> "Prompt here"
By default the command creates a todo issue assigned to the target agent and wakes the agent. Use --issue <issue-id> to add a comment to existing work, and --no-wake to skip the wakeup.
Skills Commands
paperclipai skills covers three distinct operations:
- Company install — adds or updates a row in
company_skillsfor the whole company. This is whatskills install,skills import,skills create, andskills scan-projectsdo. - Agent attach — merges an agent's desired company skill set with an
explicit
add,remove, orreplacemode (skills agent sync/clear). This is a desired-state operation on the agent's adapter config; it does not change the company library. - Adapter runtime sync — the adapter reconciles the desired skill set
with files on disk and reports an
AgentSkillSnapshot(skills agent list).skills agent synctriggers this automatically after updating desired state.
Required Paperclip runtime skills (heartbeat, etc.) remain server-enforced and are added on top of whatever the desired set names.
Company skill mutations (skills install, skills import, skills create, and
skills scan-projects) are open to same-company actors by default. Missing
skills:create grants and canCreateSkills settings do not deny these commands;
only an explicit company skill policy restriction does. Core safety and company
boundary checks still apply, and agents:create remains required when a command
also creates agents.
Catalog (app-shipped skills)
The Paperclip app ships a curated catalog under @paperclipai/skills-catalog.
Browse and inspect commands never mutate company state; install adds a catalog
skill to the company library.
pnpm exec paperclipai skills browse [--kind bundled|optional] [--category <slug>] [--query <text>]
pnpm exec paperclipai skills search "<text>" [--kind bundled|optional] [--category <slug>]
pnpm exec paperclipai skills inspect <catalog-id-or-key-or-slug>
pnpm exec paperclipai skills install <catalog-id-or-key-or-slug> [--as <slug>] [--force] --company-id <company-id>
Catalog semantics:
- Bundled skills live in
packages/skills-catalog/catalog/bundled/<category>/<slug>and are recommended defaults for most companies. They use canonical keypaperclipai/bundled/<category>/<slug>. - Optional skills live in
packages/skills-catalog/catalog/optional/<category>/<slug>and are role-specific or domain-specific (browser, AWS ops, etc.). Same key shape withoptionalin place ofbundled. skills installmaterializes the catalog files into a company-managed skill directory and records provenance (catalogId,catalogKey,packageVersion,originHash, …) so future updates and audit decisions stay consistent.--as <slug>overrides the company skill slug.--forcemay replace a same-key catalog-managed skill but never bypasses hard validation or hard-stop audit findings.
Examples:
pnpm exec paperclipai skills browse --kind bundled --company-id <company-id>
pnpm exec paperclipai skills search "pull request" --kind bundled
pnpm exec paperclipai skills inspect github-pr-workflow
pnpm exec paperclipai skills install github-pr-workflow --company-id <company-id>
pnpm exec paperclipai skills install paperclipai:optional:browser:agent-browser --company-id <company-id>
External GitHub, skills.sh, local-path, and URL sources still go through
skills import; catalog commands are for the app-shipped catalog only.
Company library
pnpm exec paperclipai skills list --company-id <company-id>
pnpm exec paperclipai skills show <skill-id-or-key-or-slug> --company-id <company-id>
pnpm exec paperclipai skills file <skill-id-or-key-or-slug> [--path SKILL.md] --company-id <company-id>
pnpm exec paperclipai skills import <source> --company-id <company-id>
pnpm exec paperclipai skills create --name "Review PRs" [--slug review-prs] [--description "..."] [--body-file SKILL.md] --company-id <company-id>
pnpm exec paperclipai skills scan-projects [--project-id <id>...] [--workspace-id <id>...] --company-id <company-id>
pnpm exec paperclipai skills check [skill-id-or-key-or-slug] --company-id <company-id>
pnpm exec paperclipai skills update <skill-id-or-key-or-slug> [--force] --company-id <company-id>
pnpm exec paperclipai skills update --all [--force] --company-id <company-id>
pnpm exec paperclipai skills audit [skill-id-or-key-or-slug] --company-id <company-id>
pnpm exec paperclipai skills reset <skill-id-or-key-or-slug> [--yes] [--force] --company-id <company-id>
pnpm exec paperclipai skills remove <skill-id-or-key-or-slug> --yes --company-id <company-id>
skills import <source> accepts a skills.sh URL, the equivalent
<owner>/<repo>/<skill> shorthand, a GitHub URL, a local path, or an
npx skills add … command. See references/company-skills.md in the agent
skill bundle for the source-type table.
skills check, skills update, skills audit, and skills reset are the
maintenance loop for catalog-installed skills:
checkreports whether each skill's installed bytes match its pinned origin (hasUpdate,installedHash,originHash,updateHoldReason,auditVerdict).updateinstalls the pinned update through the existing install-update API.--allchecks every company skill and updates only those withhasUpdate=true.--forcediscards local-modification or soft-audit holds; hard-stop audit findings still block the update.auditre-scans installed bytes and reports findings without executing anything.resetreinstalls a catalog-managed skill from its pinned origin, discarding local edits. Prompts in a TTY; requires--yesfor non-interactive use.
Agent attach
pnpm exec paperclipai skills agent list <agent-id-or-shortname> --company-id <company-id>
pnpm exec paperclipai skills agent sync <agent-id-or-shortname> --skill <skill-id-or-key-or-slug> [--skill <skill-id-or-key-or-slug>...] --mode <add|remove|replace> --company-id <company-id>
pnpm exec paperclipai skills agent clear <agent-id-or-shortname> --yes --company-id <company-id>
skills agent sync requires a merge mode and returns the resulting adapter
AgentSkillSnapshot. add preserves all unnamed assignments, remove deletes
only named assignments, and replace destructively overwrites the complete
non-required desired skill set.
skills agent clear sends an empty desired list. Required Paperclip skills are
still enforced by the server in both cases.
Notes
- Skill references accept company skill
id, canonicalkey, or uniqueslug; catalog references accept catalogid,key, or uniqueslug. skills fileprints raw file content in human mode so it can be piped.skills create --body-file -reads the skill markdown body from stdin.skills remove,skills reset, andskills agent clearprompt in a TTY and require--yesin non-interactive use.--jsonprints the raw API result for each command.
Teams Commands
paperclipai teams works with the app-shipped team catalog in
@paperclipai/teams-catalog. Browse, search, inspect, and file reads do not
change company state. preview runs the company import planner, and install
imports the catalog team into an existing company.
pnpm exec paperclipai teams browse [--kind bundled|optional] [--category <slug>] [--query <text>]
pnpm exec paperclipai teams search "<text>" [--kind bundled|optional] [--category <slug>]
pnpm exec paperclipai teams inspect <catalog-id-or-key-or-slug> [--file TEAM.md]
pnpm exec paperclipai teams preview <catalog-id-or-key-or-slug> --company-id <company-id>
pnpm exec paperclipai teams install <catalog-id-or-key-or-slug> --company-id <company-id>
Preview/install options:
- Under agent authentication, use
paperclipai company list --json,paperclipai company current --json, orPAPERCLIP_COMPANY_IDto select the target company.company listfalls back to the scoped current company when board-wide listing is forbidden.teams installcreates agents and therefore requires board authentication, anagents:creategrant, or an agent with explicitcanCreateAgentspermission. --request-approval-on-forbiddenturns a 403 install denial into a linked board approval request instead of a raw failed command; use--approval-issue-id <id>to attach it to a specific issue. During Paperclip task runs withPAPERCLIP_TASK_IDset, this fallback is automatic so agent-run walkthroughs leave a pending approval path instead of a raw 403.--target-manager-agent-id <id>or--target-manager-slug <slug>reparents catalog root agents under an existing manager.--agent <slug>and--selected-file <path>narrow the import.--collision-strategy rename|skip|replacecontrols name/key collisions.--allow-external-sources,--allow-unpinned-optional-sources, and--allow-local-path-sourcesexplicitly opt into higher-trust source policy. Local-path sources are development-only and stay blocked unless that flag is passed.
Secrets Commands
pnpm exec paperclipai secrets list --company-id <company-id>
pnpm exec paperclipai secrets declarations --company-id <company-id> [--include agents,projects] [--kind secret]
pnpm exec paperclipai secrets create --company-id <company-id> --name anthropic-api-key --value-env ANTHROPIC_API_KEY
pnpm exec paperclipai secrets link --company-id <company-id> --name prod-stripe-key --provider aws_secrets_manager --external-ref <provider-ref>
pnpm exec paperclipai secrets doctor --company-id <company-id>
pnpm exec paperclipai secrets provider-configs --company-id <company-id>
pnpm exec paperclipai secrets provider-config:create --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai secrets provider-config:discovery-preview --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai secrets provider-config:get <config-id>
pnpm exec paperclipai secrets provider-config:update <config-id> --payload-json '{...}'
pnpm exec paperclipai secrets provider-config:default <config-id>
pnpm exec paperclipai secrets provider-config:health <config-id>
pnpm exec paperclipai secrets provider-config:delete <config-id>
pnpm exec paperclipai secrets remote-import:preview --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai secrets remote-import --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai secrets migrate-inline-env --company-id <company-id> [--apply]
Secret listing and declarations never print secret values. create accepts
--value-env so shell history does not capture the value. link records
provider-owned references without copying the secret value into Paperclip.
For AWS-backed secrets, secrets doctor reports missing non-secret provider
env and the expected AWS SDK runtime credential source; do not store AWS
bootstrap credentials in Paperclip secrets.
Per-company provider vaults (multiple vault instances per provider, default
vault selection, coming-soon GCP/Vault) can be configured from the board UI under
Company Settings → Secrets → Provider vaults or through the provider-config CLI
commands above. See the
secrets deploy guide and
API reference for the contract.
Approval Commands
pnpm exec paperclipai approval list --company-id <company-id> [--status pending]
pnpm exec paperclipai approval get <approval-id>
pnpm exec paperclipai approval create --company-id <company-id> --type hire_agent --payload '{"name":"..."}' [--issue-ids <id1,id2>]
pnpm exec paperclipai approval approve <approval-id> [--decision-note "..."]
pnpm exec paperclipai approval reject <approval-id> [--decision-note "..."]
pnpm exec paperclipai approval request-revision <approval-id> [--decision-note "..."]
pnpm exec paperclipai approval resubmit <approval-id> [--payload '{"...":"..."}']
pnpm exec paperclipai approval comment <approval-id> --body "..."
Activity Commands
pnpm exec paperclipai activity list --company-id <company-id> [--agent-id <agent-id>] [--entity-type issue] [--entity-id <id>]
pnpm exec paperclipai activity create --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai activity issue <issue-id>
Dashboard Commands
pnpm exec paperclipai dashboard get --company-id <company-id>
Org And Agent Config Commands
pnpm exec paperclipai whoami
pnpm exec paperclipai openapi
pnpm exec paperclipai org get --company-id <company-id>
pnpm exec paperclipai org svg --company-id <company-id> [--out org.svg]
pnpm exec paperclipai org png --company-id <company-id> [--out org.png]
pnpm exec paperclipai agent-config list --company-id <company-id>
Access, Profile, And Instance Commands
pnpm exec paperclipai profile session
pnpm exec paperclipai profile get
pnpm exec paperclipai profile update --payload-json '{...}'
pnpm exec paperclipai profile company-user <user-slug> --company-id <company-id>
pnpm exec paperclipai invite list --company-id <company-id>
pnpm exec paperclipai invite create --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai invite revoke <invite-id>
pnpm exec paperclipai invite show <token>
pnpm exec paperclipai invite accept <token> [--payload-json '{...}']
pnpm exec paperclipai invite onboarding:text <token>
pnpm exec paperclipai join list --company-id <company-id> [--status pending_approval]
pnpm exec paperclipai join approve <request-id> --company-id <company-id>
pnpm exec paperclipai join reject <request-id> --company-id <company-id>
pnpm exec paperclipai join claim-key <request-id> --claim-secret <secret>
pnpm exec paperclipai member list --company-id <company-id>
pnpm exec paperclipai member update <member-id> --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai member role-and-grants <member-id> --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai member permissions <member-id> --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai member archive <member-id> --company-id <company-id> [--payload-json '{...}']
pnpm exec paperclipai admin user list [--query <text>]
pnpm exec paperclipai admin user promote <user-id>
pnpm exec paperclipai admin user demote <user-id>
pnpm exec paperclipai admin user company-access <user-id>
pnpm exec paperclipai admin user company-access:update <user-id> --payload-json '{...}'
CLI auth challenge endpoints are also exposed for tooling that needs the raw challenge lifecycle:
pnpm exec paperclipai auth challenge create --payload-json '{...}'
PAPERCLIP_CHALLENGE_SECRET=<challenge-secret> pnpm exec paperclipai auth challenge get <challenge-id> --token-env PAPERCLIP_CHALLENGE_SECRET
PAPERCLIP_CHALLENGE_SECRET=<challenge-secret> pnpm exec paperclipai auth challenge approve <challenge-id> --token-env PAPERCLIP_CHALLENGE_SECRET
PAPERCLIP_CHALLENGE_SECRET=<challenge-secret> pnpm exec paperclipai auth challenge cancel <challenge-id> --token-env PAPERCLIP_CHALLENGE_SECRET
pnpm exec paperclipai auth revoke-current
--token <challenge-secret> is still supported for compatibility, but --token-env avoids putting challenge secrets in shell history or process arguments.
Instance Settings Commands
pnpm exec paperclipai instance scheduler-heartbeats
pnpm exec paperclipai instance settings:general
pnpm exec paperclipai instance settings:general:update --payload-json '{...}'
pnpm exec paperclipai instance settings:experimental
pnpm exec paperclipai instance settings:experimental:update --payload-json '{...}'
pnpm exec paperclipai instance database-backup
Experimental features are opt-in and are provided without compatibility guarantees. They may break, change, or be removed at any time. Use them at your own risk.
pnpm exec paperclipai sidebar preferences
pnpm exec paperclipai sidebar preferences:update --payload-json '{...}'
pnpm exec paperclipai sidebar project-preferences --company-id <company-id>
pnpm exec paperclipai sidebar project-preferences:update --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai sidebar badges --company-id <company-id>
pnpm exec paperclipai inbox dismissals --company-id <company-id>
pnpm exec paperclipai inbox dismiss --company-id <company-id> --payload-json '{"itemKey":"run:<run-id>"}'
pnpm exec paperclipai board-claim show <token>
pnpm exec paperclipai board-claim claim <token> [--payload-json '{...}']
pnpm exec paperclipai openclaw invite-prompt --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai available-skill list
pnpm exec paperclipai available-skill index
pnpm exec paperclipai available-skill get <skill-name>
pnpm exec paperclipai llm agent-configuration
pnpm exec paperclipai llm agent-configuration:adapter <adapter-type>
pnpm exec paperclipai llm agent-icons
Hermes gateway uses the generic invite/join commands above rather than
openclaw invite-prompt. Create an agent invite, read
invite onboarding:text, submit a join request with
adapterType: "hermes_gateway" and agentDefaultsPayload.apiBaseUrl /
agentDefaultsPayload.apiKey, then approve and claim the key with the join
commands. See HERMES_GATEWAY_ONBOARDING.md.
Adapter, Asset, And Skill Commands
pnpm exec paperclipai adapter list
pnpm exec paperclipai adapter install --payload-json '{"packageName":"@scope/adapter","version":"1.2.3"}'
pnpm exec paperclipai adapter get <adapter-type>
pnpm exec paperclipai adapter update <adapter-type> --payload-json '{"disabled":true}'
pnpm exec paperclipai adapter override <adapter-type> --payload-json '{"paused":true}'
pnpm exec paperclipai adapter reload <adapter-type>
pnpm exec paperclipai adapter reinstall <adapter-type>
pnpm exec paperclipai adapter delete <adapter-type>
pnpm exec paperclipai adapter config-schema <adapter-type>
pnpm exec paperclipai adapter ui-parser <adapter-type>
pnpm exec paperclipai adapter models <adapter-type> --company-id <company-id> [--refresh] [--environment-id <id>]
pnpm exec paperclipai adapter model-profiles <adapter-type> --company-id <company-id>
pnpm exec paperclipai adapter detect-model <adapter-type> --company-id <company-id>
pnpm exec paperclipai adapter test-environment <adapter-type> --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai asset image:upload --company-id <company-id> --file ./image.png [--namespace docs] [--alt "..."]
pnpm exec paperclipai asset logo:upload --company-id <company-id> --file ./logo.svg
pnpm exec paperclipai asset content <asset-id> --out ./asset.bin
pnpm exec paperclipai skill list --company-id <company-id>
pnpm exec paperclipai skill get <skill-id> --company-id <company-id>
pnpm exec paperclipai skill file <skill-id> --company-id <company-id> [--path SKILL.md]
pnpm exec paperclipai skill create --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai skill file:update <skill-id> --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai skill import --company-id <company-id> --payload-json '{"source":"github:owner/repo/path"}'
pnpm exec paperclipai skill scan-projects --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai skill update-status <skill-id> --company-id <company-id>
pnpm exec paperclipai skill install-update <skill-id> --company-id <company-id>
pnpm exec paperclipai skill delete <skill-id> --company-id <company-id>
Cost, Finance, And Budget Commands
pnpm exec paperclipai cost summary --company-id <company-id>
pnpm exec paperclipai cost by-agent --company-id <company-id>
pnpm exec paperclipai cost by-agent-model --company-id <company-id>
pnpm exec paperclipai cost by-provider --company-id <company-id>
pnpm exec paperclipai cost by-biller --company-id <company-id>
pnpm exec paperclipai cost by-project --company-id <company-id>
pnpm exec paperclipai cost window-spend --company-id <company-id>
pnpm exec paperclipai cost quota-windows --company-id <company-id>
pnpm exec paperclipai cost issue <issue-id>
pnpm exec paperclipai cost event:create --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai finance event:create --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai finance events --company-id <company-id>
pnpm exec paperclipai finance summary --company-id <company-id>
pnpm exec paperclipai finance by-biller --company-id <company-id>
pnpm exec paperclipai finance by-kind --company-id <company-id>
pnpm exec paperclipai budget overview --company-id <company-id>
pnpm exec paperclipai budget policy:upsert --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai budget company:update --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai budget agent:update <agent-id> --payload-json '{...}'
pnpm exec paperclipai budget incident:resolve <incident-id> --company-id <company-id> [--payload-json '{...}']
Workspace And Environment Commands
pnpm exec paperclipai workspace list --company-id <company-id>
pnpm exec paperclipai workspace get <execution-workspace-id>
pnpm exec paperclipai workspace close-readiness <execution-workspace-id>
pnpm exec paperclipai workspace operations <execution-workspace-id>
pnpm exec paperclipai workspace update <execution-workspace-id> --payload-json '{...}'
pnpm exec paperclipai workspace runtime-service <execution-workspace-id> start --payload-json '{...}'
pnpm exec paperclipai workspace runtime-command <execution-workspace-id> run --payload-json '{...}'
pnpm exec paperclipai environment list --company-id <company-id>
pnpm exec paperclipai environment capabilities --company-id <company-id>
pnpm exec paperclipai environment create --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai environment get <environment-id>
pnpm exec paperclipai environment leases <environment-id>
pnpm exec paperclipai environment lease <lease-id>
pnpm exec paperclipai environment update <environment-id> --payload-json '{...}'
pnpm exec paperclipai environment delete <environment-id>
pnpm exec paperclipai environment probe <environment-id>
pnpm exec paperclipai environment probe-config --company-id <company-id> --payload-json '{...}'
pnpm exec paperclipai project-workspace list <project-id>
pnpm exec paperclipai project-workspace create <project-id> --payload-json '{...}'
pnpm exec paperclipai project-workspace update <project-id> <workspace-id> --payload-json '{...}'
pnpm exec paperclipai project-workspace delete <project-id> <workspace-id>
pnpm exec paperclipai project-workspace runtime-service <project-id> <workspace-id> restart --payload-json '{...}'
pnpm exec paperclipai project-workspace runtime-command <project-id> <workspace-id> run --payload-json '{...}'
Plugin Commands
Existing plugin lifecycle commands remain available: plugin init, list, install, uninstall, enable, disable, inspect, and examples.
pnpm exec paperclipai plugin ui-contributions
pnpm exec paperclipai plugin tools
pnpm exec paperclipai plugin tool:execute --payload-json '{...}'
pnpm exec paperclipai plugin health <plugin-id>
pnpm exec paperclipai plugin logs <plugin-id>
pnpm exec paperclipai plugin upgrade <plugin-id>
pnpm exec paperclipai plugin config <plugin-id> --company-id <company-id>
pnpm exec paperclipai plugin config:set <plugin-id> --company-id <company-id> --payload-json '{"configJson":{...}}'
pnpm exec paperclipai plugin config:test <plugin-id> --company-id <company-id> --payload-json '{"configJson":{...}}'
pnpm exec paperclipai plugin jobs <plugin-id>
pnpm exec paperclipai plugin job:runs <plugin-id> <job-id>
pnpm exec paperclipai plugin job:trigger <plugin-id> <job-id> [--payload-json '{...}']
pnpm exec paperclipai plugin webhook <plugin-id> <endpoint-key> [--payload-json '{...}']
pnpm exec paperclipai plugin dashboard <plugin-id>
pnpm exec paperclipai plugin bridge:data <plugin-id> --payload-json '{...}'
pnpm exec paperclipai plugin bridge:action <plugin-id> --payload-json '{...}'
pnpm exec paperclipai plugin bridge:stream <plugin-id> <channel> [--duration-ms 10000]
pnpm exec paperclipai plugin data <plugin-id> <key> --payload-json '{...}'
pnpm exec paperclipai plugin action <plugin-id> <key> --payload-json '{...}'
pnpm exec paperclipai plugin local-folders <plugin-id> --company-id <company-id>
pnpm exec paperclipai plugin local-folder:status <plugin-id> <folder-key> --company-id <company-id>
pnpm exec paperclipai plugin local-folder:validate <plugin-id> <folder-key> --company-id <company-id> [--payload-json '{...}']
pnpm exec paperclipai plugin local-folder:set <plugin-id> <folder-key> --company-id <company-id> --payload-json '{...}'
Feedback traces can be fetched directly by ID when automating export workflows:
pnpm exec paperclipai feedback trace <trace-id>
pnpm exec paperclipai feedback bundle <trace-id>
Heartbeat Command
heartbeat run now also supports context/api-key options and uses the shared client stack:
pnpm exec paperclipai heartbeat run --agent-id <agent-id> [--api-base http://localhost:3100] [--api-key <token>]
Local Storage Defaults
Local Paperclip data lives under the selected instance root. PAPERCLIP_HOME chooses the home directory and PAPERCLIP_INSTANCE_ID chooses the instance.
~/.paperclip/ # PAPERCLIP_HOME
└── instances/
└── default/ # instance root (PAPERCLIP_INSTANCE_ID)
├── config.json # runtime config
├── .env # instance env file
├── db/ # embedded PostgreSQL data
├── data/
│ ├── storage/ # local_disk uploads
│ └── backups/ # automatic DB backups
├── logs/
├── secrets/
│ └── master.key # local_encrypted master key
├── workspaces/ # default agent workspaces
├── projects/ # project execution workspaces
├── companies/ # per-company adapter homes (e.g. codex-home)
└── codex-home/ # per-instance codex home (when not company-scoped)
Default paths for the canonical install:
- config:
~/.paperclip/instances/default/config.json - embedded db:
~/.paperclip/instances/default/db - logs:
~/.paperclip/instances/default/logs - storage:
~/.paperclip/instances/default/data/storage - secrets key:
~/.paperclip/instances/default/secrets/master.key
Override base home or instance with env vars:
PAPERCLIP_HOME=/custom/home PAPERCLIP_INSTANCE_ID=dev pnpm paperclipai run
Storage Configuration
Configure storage provider and settings:
pnpm paperclipai configure --section storage
Supported providers:
local_disk(default; local single-user installs)s3(S3-compatible object storage)