WAB AI Agent: Designing a Bitcoin Wallet Interface for AI Models
WAB AI AGENT is a proposed self-hosted interface between AI models and an existing Bitcoin wallet engine. The goal is not to give a language model unrestricted access to a wallet. It is to give models a small, explicit toolset while keeping credentials, policy enforcement, and transaction execution outside the model. This article describes an architecture under design, not a released implementation.
Four tools, not an unrestricted RPC client
The initial tool surface has four operations: RECEIVE, BALANCE, SEND, and WATCH. RECEIVE obtains a receiving address; BALANCE retrieves wallet state; SEND requests an on-chain transfer; and WATCH follows relevant transaction observations. The agent translates structured tool calls into the engine's established HTTP JSON contract. The published API documentation at https://thamer.org/api is a command reference, not the runtime endpoint for the agent.
The model should receive only the inputs and results needed to complete a task. It should never receive the wallet's BTC KEY, the AI provider key, raw environment files, or privileged administrative operations. A successful tool call is a verified execution result, not text generated by the model.
One wallet per container
Version 0.1 adopts one Bitcoin wallet identity per Docker container. The container is configured with a BTC ID, BTC KEY, and a runtime engine URL. This limits the blast radius of errors and makes the relationship between wallet, policy, and audit history easier to reason about. Container isolation still requires properly scoped network access, persistent storage, and protected secrets; Docker alone is not a security boundary for every threat.
HTTP JSON API plus CLI
The HTTP API is the primary machine interface. A thin CLI can call the same internal application services, so developers and agents observe consistent behavior. Both interfaces must apply the same permissions and financial policy. A local CLI must not bypass the authorization rules enforced by HTTP.
Provider independence
The planned evaluation sequence is OpenRouter, then OpenAI, with Claude considered later. The AI adapter translates provider-specific tool-calling formats into a common internal request. The policy engine and Bitcoin execution adapter remain independent of model choice. Model output is untrusted input: tool names, amounts, addresses, and network parameters must be validated before execution.
The important boundary
The AI model proposes an action. WAB AI AGENT checks authorization, budget, request identity, and arguments. The Bitcoin engine executes the approved operation according to its existing wallet rules and immutable signed fee law. The agent does not create a new wallet, replace the Bitcoin engine, or redefine its transaction fees.
Next experiments
The first proof should use Testnet: a read-only balance query, a fresh receiving address, a WATCH observation, and a SEND request that is initially rejected until explicitly authorized. The implementation is deliberately deferred until the contracts and failure behavior are defined.
