API keys and testing tokens from BitGo services have been revoked. The application is not functional at this time. If you are interested in testing the demo, feel free to email tanjiav@gmail.com

AiCountant

The AI Accountant for Institutional Crypto Operations

You describe a transaction in plain English, a function-calling orchestrator routes it through deterministic scripts, and you confirm a plain-English prediction before anything executes.

v0.1 · March 2026 · BitGo Hackathon
▶ Watch the Demo

The Problem

Institutional crypto adoption is stalled by complexity and mistrust

Institutional treasury managers, compliance officers, and finance teams understand what they want to do with digital assets. They do not understand — and should not need to understand — Wei conversions, wallet IDs, validator selection, or multi-step API sequencing. The current interface options are:

Both options create the same failure mode: the gap between what a user intends and what they actually configure is filled by manual steps, each of which is a potential error point on an irreversible system.

The trust gap

Crypto's core barrier to mainstream institutional adoption is not regulatory or financial — it is operational trust. Institutions that would readily delegate a wire transfer to an accountant will not delegate a blockchain transaction to a UI they don't understand. The missing piece is a human-readable, traceable, accountable interface that behaves like a professional intermediary: receives intent, does the work, reports back in plain English, and waits for explicit approval.

The Solution: The AI Accountant Model

AiCountant wraps BitGo's institutional custody infrastructure in a conversational interface governed by a strict orchestration architecture. The analogy is precise: calling your accountant to execute a transaction. The accountant never does arithmetic by hand. They use established tools, verify the numbers with scripts, and call you back with a plain-English summary of exactly what will happen. You say yes. It's done.

Key principle: The LLM never touches data. It only decides which tools to call and in what order. Every number, every address, every calculation is produced by deterministic scripts. The LLM reads the outputs and narrates them.

Architecture: Five-Layer Pipeline

Every operation flows through five discrete layers. Only one layer involves an LLM, and it produces routing instructions only — never raw financial values.

graph LR
  A["1. Intent Parsing"] --> B["2. Thin Orchestration
LLM"] B --> C["3. Deterministic Execution
Tools"] C --> D["4. Verification"] D --> E["5. Confirmation Narration"] style A fill:#2A2A2A,stroke:#6366F1,color:#F5F5F5 style B fill:#6366F1,stroke:#5558E3,color:#FFFFFF style C fill:#2A2A2A,stroke:#10B981,color:#F5F5F5 style D fill:#2A2A2A,stroke:#F59E0B,color:#F5F5F5 style E fill:#2A2A2A,stroke:#6366F1,color:#F5F5F5
Layer 1

Intent Parsing

The user's natural language instruction is parsed into a structured operation type with named, typed slots. No numbers are extracted by the LLM at this stage. Ambiguous instructions surface clarifying questions before planning begins.

Layer 2 — LLM

Thin Orchestration Layer

The LLM receives the structured intent and emits an ordered list of tool calls with parameter references. This is the function-calling orchestrator: it produces a Directed Acyclic Graph (DAG) of tool invocations where later steps reference outputs of earlier ones. The LLM produces routing instructions only — never raw financial values.

Layer 3

Deterministic Execution

Each tool is a pure function with typed inputs and outputs. Tools call BitGo's API or perform local computation using immutable data points. No LLM is involved at this layer.

Layer 4

Verification

Verification is not a step the LLM performs — it is a deterministic tool the LLM calls. verify() runs typed assertions: amounts sum correctly, destination address is whitelisted, balance is sufficient, validator contract is live. If any assertion fails, the LLM reads the structured error and narrates it. It does not diagnose it.

Layer 5

Confirmation Narration

Once verification passes, the LLM reads the tool outputs and writes a plain-English prediction of what will happen. No new values are generated. The LLM is narrating a script it did not write. This output is the confirmation card shown to the user.

Formal guarantee: If all tools are deterministic and the LLM only emits tool call sequences, the LLM cannot introduce numerical error into the execution path.

Tool Architecture

The flagship case — "Transfer 10% to cold storage and stake the rest" — exercises the full tool DAG. Below is the execution graph for this operation:

graph LR
  A["get_balance"] --> B["resolve_wallet"]
  B --> C["percentage"]
  C --> D["get_best_validator"]
  D --> E["estimate_gas"]
  E --> F["verify"]
  F --> G{"User Confirms?"}
  G -->|Yes| H["build_transfer_tx"]
  G -->|Yes| I["build_stake_tx"]
  G -->|No| J["Cancel"]

  style A fill:#2A2A2A,stroke:#58A6FF,color:#F5F5F5
  style B fill:#2A2A2A,stroke:#58A6FF,color:#F5F5F5
  style C fill:#2A2A2A,stroke:#58A6FF,color:#F5F5F5
  style D fill:#2A2A2A,stroke:#58A6FF,color:#F5F5F5
  style E fill:#2A2A2A,stroke:#58A6FF,color:#F5F5F5
  style F fill:#2A2A2A,stroke:#F59E0B,color:#F5F5F5
  style G fill:#6366F1,stroke:#5558E3,color:#FFFFFF
  style H fill:#2A2A2A,stroke:#10B981,color:#F5F5F5
  style I fill:#2A2A2A,stroke:#10B981,color:#F5F5F5
  style J fill:#2A2A2A,stroke:#EF4444,color:#F5F5F5
      

Tools fall into two categories: Data tools (compute values, resolve names, validate plans — no side effects) and Execution tools (construct and send BitGo API calls — only run after user confirmation).

Tool Specifications

Tool Category Inputs Outputs
get_balance Data wallet_id { wallet_id, label, address, eth, wei, spendable_wei }
resolve_wallet Data name { wallet_id, address, label, network }
convert Data value, from, to { result, unit }
percentage Data amount_wei, percent { result_wei, result_eth, remainder_wei, remainder_eth }
subtract Data a_wei, b_wei { result_wei, result_eth }
estimate_gas Data operations[], network { total_gas_wei, total_gas_eth, breakdown[] }
get_best_validator Data network, preferred? { name, apy, min_stake_eth, min_stake_wei }
verify Data operation_type, balance_wei, actions[], gas_estimate_wei { pass } | { pass, reason, detail }
build_transfer_tx Execution wallet_id, to, amount_wei { tx_hash, status }
build_stake_tx Execution wallet_id, amount_wei { request_id, status }

The LLM never sees raw API payloads. It calls execution tools with clean parameters (wallet_id, amount_wei, etc.) and the tool implementation internally maps them to BitGo's REST API. Server-side secrets (API token, wallet passphrase) are injected by the tool implementation from environment config. The LLM only provides business-logic parameters.

Human-in-the-Loop Gate

Nothing executes until the user confirms. The gate is mandatory and cannot be bypassed. This is not a usability constraint — it is the core architectural safety property that distinguishes AiCountant from autonomous agent systems.

The Confirmation Card Shows:

  • Plain-English summary of each action
  • Exact amounts (from scripts, not LLM)
  • Destination wallet identifiers
  • Gas estimate
  • Full tool trace (collapsible) for auditability

The closest analogy in software development tooling is Claude Code: an LLM that shows you what it plans to do, waits for approval, then executes — but never writes directly to production without your sign-off. AiCountant is that pattern applied to institutional custody operations.

Audit Trail

Every session produces a cryptographically linked record. This chain links intent to on-chain action in a single auditable document. Every node is traceable. No step requires trusting the LLM's arithmetic.

What This Is Not

Competitive Position

Autonomous Agents
(Coinbase AgentKit)
Current BitGo
UI / API
AiCountant
Natural language in Yes No Yes
Human approval gate No — bypassed by design Yes but painful Yes, frictionless
Audit trail of intent No No Yes — core feature
LLM touches numbers Yes N/A Never
Target user DeFi developers Institutional operators Institutional operators
Regulatory suitability Low Medium High

Key Technical Terms

Term Definition
Function-calling orchestrator An LLM that communicates exclusively via structured tool calls, never free-form text that touches data. The LLM's output is a routing plan, not a result.
Deterministic tool A pure function: same inputs always produce same outputs. No LLM involved. Used for all computation and all BitGo API calls.
Tool-use DAG A Directed Acyclic Graph of tool calls where later steps reference outputs of earlier ones. The LLM emits this graph; scripts execute it.
Thin orchestration layer The minimal LLM surface: intent in, tool call sequence out. No side effects. No data mutation. Just routing.
Immutable data values All financial figures (balances, amounts, addresses, APYs) are fetched from live APIs or computed by scripts. Never generated or modified by the LLM.
Human-in-the-loop gate The mandatory confirmation step before any irreversible on-chain operation. Not bypassable by design.
Confirmation as prediction The card shown before execution is a narrated preview of what deterministic scripts will do — not the LLM's guess. Numbers come from scripts.
Referential transparency The property of deterministic tools: outputs depend only on inputs, making the full execution trace reproducible and auditable.
Intent-to-execution pipeline The full path from natural language instruction to on-chain transaction, with a human gate before the irreversible step.
Verifiable action An action whose full reasoning trace — from intent to tool calls to verification to approval — is logged and inspectable by a human or auditor.