A command-line tool for crew and cast paid through Wrapbook. It covers the worker side of Wrapbook:
- weekly timecards
- kit/box fees and other allowances
- pay and paystubs
- tax documents
- onboarding paperwork
- sick leave
- contractor invoices
Every command can return JSON, so AI agents can use it too.
Unofficial. Wrapbook has no public worker API. This tool drives your own logged-in Wrapbook session in a Chrome window you control, and fills Wrapbook's own web forms. Wrapbook still calculates all hours, overtime, meal penalties and pay. It isn't affiliated with or endorsed by Wrapbook, and it can break whenever Wrapbook changes its web app. Use it at your own risk.
- Wrapbook's worker app is server-rendered Rails/Hotwire behind Cloudflare, and Auth0 asks for MFA on every new login, so a plain HTTP client can't hold a session.
- Instead,
wrapbook-cli browser startopens a dedicated Chrome profile with a local DevTools port (127.0.0.1:9741). You log in there once. - The CLI attaches to that Chrome over CDP with Playwright:
- Reads are same-origin requests made from inside the logged-in page. Your password and MFA never pass through the CLI.
- Writes open Wrapbook's real form in a tab and fill it the way a person would. A dry run, the default, reads back exactly what would be submitted and closes the tab without saving.
More detail is in docs/ARCHITECTURE.md.
git clone https://github.com/nhcnvk/wrapbook-cli && cd wrapbook-cli
python3 -m venv .venv && .venv/bin/pip install -e .
export PATH=$PWD/.venv/bin:$PATHYou need Google Chrome or Chromium installed. Playwright doesn't need to download a browser, since it attaches to your Chrome. If the Playwright driver fails with libatomic.so.1 missing, install libatomic or pip install "playwright<1.65".
wrapbook-cli browser start # opens the Wrapbook Chrome window (use --display :N on a headless box with xrdp/VNC)
# log in at app.wrapbook.com in that window, including MFA
wrapbook-cli auth status # → Logged in to Wrapbook.Keep that Chrome running. Wrapbook's session cookie lives only in the browser's memory. If Chrome restarts, log in again.
Put --json before any command to get machine-readable output.
Projects and timecards
wrapbook-cli project list [--past] # current projects with rate and kit rate
wrapbook-cli project use <project_id> # pin a project for later commands
wrapbook-cli project show # timecards: week ending, gross, status
wrapbook-cli project contacts # production point of contact
wrapbook-cli week list | week new <start> # open a timecard for a week
wrapbook-cli timecard use <timecard_id> # pin a draft
wrapbook-cli timecard show # Wrapbook's computed days, OT, penalties, allowances
wrapbook-cli timecard set-day 2026-11-19 --start 8am --end 7pm --meal 1pm-2pm
wrapbook-cli timecard copy-day 2026-11-19 2026-11-20
wrapbook-cli timecard staged
wrapbook-cli timecard save # dry run: fills the real form, prints the exact data, saves nothing
wrapbook-cli timecard save --apply # saves the draft
wrapbook-cli timecard submit [--confirm] # submit for approval
wrapbook-cli notes list | notes add "text" # notes to payroll on a timecardKit/box fees and allowances
wrapbook-cli kit add --date 2026-11-20 --daily 500 --units 1 --items-file kit.txt --file quote.pdf
wrapbook-cli kit list
wrapbook-cli allowance types # what this production enabled
wrapbook-cli allowance form --kind mileage # the fields Wrapbook asks for
wrapbook-cli allowance add --kind mileage --date 2026-11-18 --miles 42.5 --file log.pdf
wrapbook-cli allowance add --kind expense --date 2026-11-18 --amount 22 --notes Parking --file receipt.pdf
wrapbook-cli allowance add --kind per-diem --date 2026-11-18 --days 2 --amount 30
wrapbook-cli allowance list | allowance show <kind> <id>Allowance kinds:
per-diem,per-diem-taxable,mileage,wardrobe,wardrobe-cleaningcar,cell-phone,computer,living,mealexpense(Wrapbook's "Other")kit
How amounts work:
- Mileage takes
--milesonly. Wrapbook applies the production's rate, and the dry run shows Wrapbook's total. - Mileage needs a mileage log and expenses need a receipt (
--file).
Pay and earnings
wrapbook-cli status submissions # every current project's timecards
wrapbook-cli status payments
wrapbook-cli status paystub <payment_id> -o paystub.pdf
wrapbook-cli earnings stub <payment_id> # earnings lines, taxes, deductions, net
wrapbook-cli earnings summary --year 2026 # by production entity/project; flags ≥ $2,000 kit rentals (W-9/1099-MISC)
wrapbook-cli earnings export --year 2026 -o earnings-2026.csv # one row per paystub line, for accounting
wrapbook-cli earnings stubs --year 2026 -o paystubs/ # all paystub PDFs
wrapbook-cli export week <timecard_id> --format csvWrapbook shows no year-to-date figures on paystubs. Year totals are sums of the paystubs, checked against the payments list.
Tax documents, onboarding, paperwork (read-only)
wrapbook-cli tax list # W-4 / state / W-9 + year-end W-2, 1099, EITC notices
wrapbook-cli tax download --year 2025 -o tax/
wrapbook-cli tax download --kind withholding -o tax/
wrapbook-cli onboarding status # per project: onboarding state, I-9, unsigned documents; account to-dos
wrapbook-cli docs list <project_id> | docs download <project_id> -o docs/
wrapbook-cli account show | account notifications | account support-files # SSN/bank last 4 onlyCompleting onboarding (e-signing, the I-9, W-4 flows) stays in Wrapbook on purpose, because those are legal attestations. onboarding status prints the link for anything still pending.
Sick leave, contractor invoices, PCards, agents
wrapbook-cli sick-leave show
wrapbook-cli sick-leave request --date 2026-08-27 --hours 2 --project <id> # dry run
wrapbook-cli invoice list | invoice show <id> | invoice download <id> -o invoice.pdf
wrapbook-cli invoice new <week_start> --project <id> # dry run
wrapbook-cli pcard status
wrapbook-cli agent request agent@example.com --project <id> # dry run; --apply notifies productionOn a contractor deal ("Invoice based payment"), the weekly submission is your invoice. Add its expenses and kit fees with the allowance commands. Wrapbook gives workers no invoice PDF, so invoice download saves the paystub PDFs instead.
Crew Call import
wrapbook-cli import crewcall "Job Report.csv" [--stage] # call/meal/wrap → timecard days
wrapbook-cli import crewcall-mileage "Job Report.csv" --check --file log.pdfRun wrapbook-cli with no arguments to start an interactive REPL.
set-day,copy-day,clear-dayandimport --stageonly change local state, stored in~/.config/wrapbook-cli/session.json.- Every command that writes to Wrapbook is a dry run unless you pass
--apply, andtimecard submitneeds--confirm. The global--dry-runflag overrides both. - Writes are blocked until you've verified them. The write path has been exercised only up to the final click, so every
--applyand--confirmis refused until you check one real save. Do it once:- Stage the days, then run
timecard saveand read the dry run. - Run
WRAPBOOK_ALLOW_UNVERIFIED=1 wrapbook-cli timecard save --apply, then check it in Wrapbook. - Run
wrapbook-cli config set writes_verified true.
- Stage the days, then run
- Submitting has its own switch.
timecard submit --confirmandagent request --applysend something to the production, so they also needconfig set submit_verified true. Turn it on after you've watched one submit dry run (timecard submitwithout--confirm) on a filled draft. - Profile, bank, tax-withholding and notification settings are read-only. SSN and bank numbers are masked to the last 4 digits.
A Claude Code / Agent Skills skill ships in skills/wrapbook-cli/SKILL.md:
mkdir -p ~/.claude/skills/wrapbook-cli && cp skills/wrapbook-cli/SKILL.md ~/.claude/skills/wrapbook-cli/Errors come back as {"error": "...", "message": "..."} with a non-zero exit. Exit code 2 means a usage or safety-gate problem.
pip install -e ".[test]"
pytest tests/test_core.py # offline unit tests
pytest # + live tests against your logged-in account (dry runs only, never saves)Live tests find their targets on your own account: a draft timecard, paid timecards, a kit fee and so on. Override any of them with WRAPBOOK_TEST_* variables (see tests/live_targets.py). Every dry-run test re-reads the draft afterwards and asserts nothing changed. See docs/TESTING.md.
- Overnight wraps. The CLI warns about them, and Wrapbook's handling is unverified.
- Editing or deleting allowances.
- Editing a submitted timecard. Your coordinator has to reject it first.
- The production/admin side of Wrapbook.