Skip to Content
BuildBitcoin for AI Agents

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:

Earn yield on idle Bitcoin: an agent holding LBTC earns yield passively as the exchange rate appreciates
Borrow without selling: an agent supplies LBTC as collateral on Morpho, borrows stablecoins, and deploys into a yield strategy without touching the underlying Bitcoin. When the strategy unwinds, it repays. The Bitcoin position stays intact
Manage positions autonomously: an agent monitors position health in real time and automatically repays or tops up collateral if a liquidation threshold is approached
Run the full capital loop: hold LBTC, earn yield, borrow against it when opportunities arise, and manage the entire position end-to-end on behalf of users

Bitcoin in AI agents: four use cases


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

Last updated on