Skip to content

Paperclip

Paperclip is a platform for orchestrating AI agents. The Open Accountant adapter (@openaccountant/adapter-paperclip) makes Wilson available as a selectable agent type — with pre-built CFO and Bookkeeper agents that run on daily or weekly heartbeats.

The adapter acts as a bridge between Paperclip and Wilson CLI:

  1. Paperclip routes a task to the Wilson agent type
  2. The adapter builds a natural-language prompt from the task context
  3. Wilson CLI executes in headless mode (--run)
  4. Output streams back to Paperclip’s transcript viewer
  5. The UI parser structures Wilson’s stdout into readable transcript entries
Terminal window
curl -X POST http://localhost:3100/api/adapters \
-H "Content-Type: application/json" \
-d '{"packageName": "@openaccountant/adapter-paperclip"}'

Or install from a local development path:

Terminal window
curl -X POST http://localhost:3100/api/adapters \
-H "Content-Type: application/json" \
-d '{"localPath": "/path/to/adapter-paperclip"}'

The skills repository includes pre-built Paperclip agent templates:

Terminal window
npx paperclipai company import --from ./open-accountant
Terminal window
npx skills add openaccountant/skills
RequirementCheck
Bun runtimebun --version
Wilson CLI on PATHwilson --version
SQLite databaseAuto-created on first Wilson run at ~/.openaccountant/data.db

The adapter validates all prerequisites before running and surfaces clear error messages if anything is missing.

FieldTypeDefaultPurpose
wilsonPathstring"wilson"Path to Wilson CLI binary
dbPathstring~/.openaccountant/data.dbSQLite database location
timeoutnumber120000Max execution time in milliseconds

Strategic financial analysis and reporting. Skills:

  • profit-loss — Income statement generation
  • cash-flow-forecast — 3-6 month projections
  • runway-calculator — Months of runway at current burn rate
  • quarterly-taxes — Estimated tax payment calculation
  • contractor-tracking — 1099 payment tracking
  • revenue-concentration — Client concentration risk analysis

Day-to-day transaction management. Skills:

  • import-transactions — Automated transaction import
  • smart-categorize — AI-powered batch categorization
  • month-end-close — Monthly bookkeeping checklist
  • expense-optimizer — Recurring expense reduction
  • monthly-digest — Financial summary with highlights

The adapter has three main modules:

ModuleFilePurpose
Metadatasrc/index.tsRegisters Wilson as an agent type in Paperclip
Executorsrc/server/execute.tsSpawns Wilson CLI and captures output
UI Parsersrc/ui-parser.tsParses stdout into Paperclip transcript entries

The UI parser recognizes Wilson’s output patterns — report headers (=== ... ===), tool calls ([tool]), and results ([result]) — and converts them into structured transcript format for Paperclip’s viewer.