Bitcoin for AI Agents
The Bitcoin Agent SDK is a developer package for integrating LBTC and BTC.b directly into AI agents, letting them hold, stake, earn yield on, and borrow against Bitcoin autonomously, without ever touching user keys.
The Bitcoin Agent SDK: Bitcoin for AI agents
The Bitcoin Agent SDK is a developer package for integrating LBTC and BTC.b directly into AI agents. It enables agents to hold, stake, earn yield on, and borrow against Bitcoin autonomously on behalf of users without ever touching their keys. It works with the frameworks developers are already using: Vercel AI SDK, LangChain, Coinbase AgentKit, and Claude Desktop via MCP.
Built for the developers and teams behind agents that manage real capital (executing yield strategies, managing collateral positions, and making allocation decisions), the SDK gives you everything required in a single install.
What your agents can do with Bitcoin
There are two ways to use the Agent SDK.
AI copilots for your platform
Let your users manage Bitcoin positions through natural language. “Stake my BTC and deploy to the highest-yield vault” becomes a two-step execution inside your interface.
Type-safe, schema-validated, structured responses throughout.
Autonomous agents
Build agents that run without user input. Optimize BTC-denominated yield, rebalance across vaults, execute multi-step strategies programmatically.
The SDK handles the Bitcoin complexity: minting, deployment, tracking, redemption. Your agent handles the strategy.
In both modes, agents have access to the full capital loop:

Who this is for
Developers
Building AI agent applications on LangChain, Vercel AI SDK, AgentKit, or Claude Desktop via MCP.
DeFi Teams
Adding Bitcoin collateral and yield capabilities to existing agent products.
Protocol Founders
Deciding which assets their agent platform supports and the developers who build on top of that decision.
Solo Builders
Hackathon teams and individual builders who want production-grade Bitcoin infrastructure without operational overhead.
Get started
Quickstart
What the SDK does, which package to pick, install and first code.
Configure Partner ID
Environment variables required for native BTC deposits.
Flow Coverage Matrix
Which package supports which BTC / LBTC / BTC.b flow.
Common Agent Flows
Nine step-by-step walkthroughs for the most common agent tasks.
Capabilities
Full tool and action reference, with curated system prompt.
Fee Authorization
How EIP-712 fee signing works in each package.
Action Lifecycle
How prepared transactions flow from agent to chain.
Agent FAQ
Quick answers about packages, frameworks, key custody, and capabilities.
README
Links to npm packages, GitHub, and builder support.