Building with AI
Use AI coding agents to build Bkper integrations faster — from the built-in Bkper Agent to Claude Code, Pi, OpenCode, Codex, and Cursor.
AI coding agents are the fastest way to go from idea to working Bkper integration. They can scaffold projects, write SDK code, debug issues, and iterate with you in real time — as long as they have the right context about the platform.
Use whichever agent harness you’re most comfortable with. They all work well. But we have a recommended starting point.
Bkper Agent (recommended)
The Bkper CLI ships with a built-in coding agent. It’s powered by Pi Agent with a custom system prompt that gives it deep knowledge of Bkper — core concepts, the SDK, CLI commands, and the accounting model. It’s what the Bkper team uses every day, and the choice of Pi as the engine was deliberate.
Why Pi
We spent over a year working heavily with coding agents — Claude Code, Cursor, OpenCode, Codex — before settling on Pi as the foundation for Bkper Agent. The reasoning comes down to three things:
-
Hackability — Pi can be extended while it’s running. Custom extensions, hot-reload with
/reload, shape the agent to fit your project. Bkper Agent is itself an example: a Pi instance that reshaped itself for financial data, with the accounting model, SDK types, and CLI commands baked into its context. That kind of deep customization isn’t possible with closed agents. -
Context management —
/treegives you a branching view of your entire session. When a line of exploration turns into a dead end, you go back to a previous branch instead of paying for that detour in tokens and degraded intelligence. For Bkper projects — where you’re working across books, accounts, event handlers, and SDK types — keeping context focused directly affects output quality. -
Model freedom — 15+ providers (Anthropic, OpenAI, Google, and more). Pick the model that fits the task instead of being locked into one vendor.
Make sure the CLI is installed and authenticated, then start the agent:
bkper agentConnect a model provider
The agent needs access to a language model. On first launch, type /login and select a provider. We recommend GitHub Copilot — if you have a GitHub account with Copilot enabled, it gives you access to Claude, GPT, and Gemini models with no extra API keys.
Once logged in, you’re in an interactive session. The agent can read your project files, run CLI commands, write code, and iterate with you — all with Bkper context already loaded.
Start asking questions
Just talk to it. Good starting prompts:
What are the main account types in Bkper?How do I query transactions using the CLI?What files are in this project?Help me create a script that lists all accounts in my book
The agent reads your project’s AGENTS.md and nearby files automatically, so it already has project-specific context. Since Bkper Agent wraps Pi Agent, you can pass any Pi flag through — --model, --continue, @file references, and so on.
Other coding agents
Any coding agent can build effectively with Bkper when given the right context. Here are the ones we’ve used and recommend:
| Agent | Type | Models | What it is |
|---|---|---|---|
| Pi Agent | Terminal | 15+ providers — Anthropic, OpenAI, Google, and more | Minimal, extensible harness — the engine behind Bkper Agent |
| Claude Code | Terminal, Desktop, IDE | Claude models | Anthropic’s full-featured agent across all surfaces |
| OpenCode | Terminal, Desktop, IDE | 75+ providers — free models included, works with Copilot and ChatGPT subscriptions | Open-source agent with the largest provider ecosystem |
| Codex | Terminal, Desktop, IDE | OpenAI — works with your ChatGPT plan | OpenAI’s open-source coding agent |
| Cursor | Terminal, Desktop, IDE | Multiple providers built in | AI-native code editor with a terminal agent |
Each tool has its own way of loading project context. The next section explains how to provide Bkper knowledge to any of them.
Giving your agent context
The Bkper Agent has context built in. For other agents, you need to provide it. Bkper makes this straightforward.
Markdown access to all docs
Every page on bkper.com is available as clean Markdown — append .md to any URL:
https://bkper.com/docs/core-concepts.mdhttps://bkper.com/docs/api/bkper-js.mdhttps://bkper.com/docs/build.mdThis strips navigation chrome and reduces token usage. See AI Tooling for all access methods.
Published context URLs
Three URLs cover most Bkper development needs:
| URL | What it covers |
|---|---|
/platform/agents.md | Technical instincts, quality standards, domain sensibilities |
/docs/core-concepts.md | The from-to model, account types, transactions, groups, queries |
/docs/api/bkper-js.md | Full bkper-js SDK reference with TypeScript types |
Use whichever combination your project needs. A script that only reads data might need core concepts and the SDK. A full app that handles events would benefit from all three.
Project-level context files
For project-specific knowledge — which book you’re working with, what accounts matter, what tags to use — add it to your agent’s context file (AGENTS.md, CLAUDE.md, or equivalent):
## Project context
- Book ID: abc123-def456- Key accounts: Checking, Sales, Accounts Receivable- Common tags: #invoice, #payment, #reconciled
## Rules
- All automated transactions must be created as drafts- Use the #sync tag on all imported transactionsThis gives the agent project-specific knowledge that no published doc can provide.
Next steps
- Your First App — build and deploy a full Bkper app (a great task to pair with an AI agent)
- CLI Scripting & Piping — automate data workflows with CLI pipes
- Apps Overview — understand the Bkper Platform architecture