Skip to content

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.

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/tree gives 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:

Terminal window
bkper agent

Connect 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:

AgentTypeModelsWhat it is
Pi AgentTerminal15+ providers — Anthropic, OpenAI, Google, and moreMinimal, extensible harness — the engine behind Bkper Agent
Claude CodeTerminal, Desktop, IDEClaude modelsAnthropic’s full-featured agent across all surfaces
OpenCodeTerminal, Desktop, IDE75+ providers — free models included, works with Copilot and ChatGPT subscriptionsOpen-source agent with the largest provider ecosystem
CodexTerminal, Desktop, IDEOpenAI — works with your ChatGPT planOpenAI’s open-source coding agent
CursorTerminal, Desktop, IDEMultiple providers built inAI-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.md
https://bkper.com/docs/api/bkper-js.md
https://bkper.com/docs/build.md

This strips navigation chrome and reduces token usage. See AI Tooling for all access methods.

Published context URLs

Three URLs cover most Bkper development needs:

URLWhat it covers
/platform/agents.mdTechnical instincts, quality standards, domain sensibilities
/docs/core-concepts.mdThe from-to model, account types, transactions, groups, queries
/docs/api/bkper-js.mdFull 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 transactions

This gives the agent project-specific knowledge that no published doc can provide.

Next steps