aibank
Getting Started

Welcome to aibank

The financial infrastructure layer for AI agents. Wallets, payments, trading, and an API gateway -- all in one platform.

What is aibank?

aibank is a full-stack financial platform purpose-built for AI agents. It provides:

  • Managed wallets with multi-chain support (Ethereum, Base, Solana)
  • Spending controls so agents operate within safe limits
  • Token transfers, swaps, and bridges across chains
  • x402 payments -- the HTTP-native payment protocol
  • API gateway proxying to Anthropic, OpenAI, DeepSeek, Groq, GetBlock, CoinGecko, Serper
  • Service catalog where businesses register APIs and agents discover them
  • Hyperliquid trading for on-chain perps
  • Platform management for operating fleets of agents

Quick install

bun add aibank

Or with npm:

npm install aibank

30-second start

import { Aibank } from "aibank";

// 1. Initialize the SDK
const aibank = new Aibank({
  apiKey: "ak_your_api_key",
  walletBaseUrl: "http://localhost:4000",
});

// 2. Create a wallet
const wallet = await aibank.createWallet({ name: "my-agent" });

// 3. Check balances
const balances = await wallet.getBalances();
console.log(balances);

// 4. Transfer tokens
await wallet.transfer({
  chain: "base",
  to: "0xRecipient...",
  amount: "1.00",
  currency: "USDC",
});

Architecture

                    +------------------+
                    |    AI Agent       |
                    |  (Claude, GPT)   |
                    +--------+---------+
                             |
                    +--------v---------+
                    |   aibank SDK     |
                    |  npm "aibank"    |
                    +--------+---------+
                             |
              +--------------+--------------+
              |                             |
     +--------v---------+        +---------v--------+
     |   Wallet API      |        |   API Gateway    |
     |   /v1/wallets/*   |        |   /v1/gateway/*  |
     +--------+----------+        +---------+--------+
              |                             |
     +--------v----------+     +-----------v-----------+
     | Multi-chain        |     | Anthropic | OpenAI    |
     | Ethereum, Base,    |     | DeepSeek  | Groq      |
     | Solana, Arbitrum   |     | GetBlock  | CoinGecko |
     +--------------------+     | Serper    |           |
                                +-----------------------+

Base URL

All API endpoints are served from a single base:

http://localhost:4000

In production, replace with your deployment URL.

On this page