The official Bkper CLI is published on npm as bkper. Use it in two complementary ways:
- Ask Bkper CLI Agent — run
bkper for guided, interactive help in your terminal
- Run CLI commands — run
bkper <command> for scripts, exports, automations, and app workflows
With one tool, you can work with Bkper from your terminal, Bkper CLI Agent, or external AI tools — managing financial data, building apps, and automating workflows.

Install & Authenticate
Prerequisites
- Node.js >= 22.19.0
- Windows, macOS, Linux, or WSL
Install (choose one)
npm install -g bkper
bun add -g bkper
pnpm add -g bkper
yarn global add bkper
Or run it without a global installation:
npx bkper
The package and executable are both named bkper. See the CLI Docs for the dedicated command-line guide.
On Windows, Bkper CLI Agent runs natively in PowerShell. WSL is also supported and uses Bash.
Authenticate with Bkper
bkper auth login
bkper auth login connects the CLI to your Bkper account. Keep it running while you complete browser authorization; wait for it to finish successfully. The same local authentication can be used by direct CLI commands, Bkper CLI Agent, external coding agents, scripts, and local app development.
Get started
Ask Bkper CLI Agent
bkper
Run bkper to open Bkper CLI Agent in your terminal.

bkper auth login and /login inside the agent both connect to your Bkper account and enable the included Bkper AI models. Both flows show which account email is authenticated.
To use another model provider, type /connect and choose a subscription or API-key provider. You can also target one directly, such as /connect openai or /connect anthropic. Use /disconnect for external providers; /logout signs out of Bkper.
For external frontier models, an existing ChatGPT Plus/Pro subscription with Codex works very well. Claude subscriptions are also supported if Claude is your preferred frontier model. For open-weights models, OpenCode Go is a great option.
Safe starting prompts:
Help me setup a chart of accounts for my business
Find possible duplicate transactions from last month
Review unchecked transactions from this month and suggest what needs attention
Show me a balance sheet for my book for last year
Show me profit and loss for my book for last month
Prepare an exploratory tax worksheet for 2025
Run CLI commands
Use direct commands for scripts, exports, automation, and repeatable workflows.
# List your books
bkper book list
# Query transactions
bkper transaction list -b <bookId> -q 'on:2026-06'
# Query balances
bkper balance list -b <bookId> -q 'on:2026-06-30'
# Show separate debit and credit columns
bkper balance list -b <bookId> -q 'on:2026-06-30' --trial
Commands output JSON, ready for scripts and AI agents. Reshape it with jq, for example to export a CSV:
bkper transaction list -b <bookId> -q 'on:2026-06' | \
jq -r '.items[] | [.date, .amount, .creditAccount.name, .debitAccount.name, .description] | @csv'
Capture a receipt as a draft, then review and complete it in Bkper or with the agent:
bkper transaction create -b <bookId> --file ./receipt.pdf
For AI-derived transactions, set draft: true to bypass Book auto-posting. They stay out of balances until explicitly posted:
printf '%s\n' '[{"date":"2026-08-18","amount":"25.50","creditAccount":{"name":"Bank Account"},"debitAccount":{"name":"Meals"},"description":"Extracted receipt","draft":true}]' |
bkper transaction create -b <bookId>
Run bkper --help or bkper <command> --help for built-in documentation on any command.
→ See Data Management and App Management below for full references.
Use Bkper from your existing agent
For assistant-led setup, follow Use Bkper with ChatGPT or Claude.
To configure an existing agent manually, authenticate the CLI first:
bkper auth login
For Codex, add this repository as a plugin marketplace, then install the bkper-cli plugin from Codex's plugin directory:
codex plugin marketplace add bkper/bkper-cli