An AI agent that uses NEAR chain signatures to interact with Bitcoin L1 | Powered by Bitte.ai
The Bitcoin Bitte Agent was initially developed during the One Trillion Agents Hackathon to enable Bitcoin testnet transactions using NEAR accounts. It allowed users to retrieve their NEAR account, corresponding BTC Testnet address, and balance, and seamlessly create and send Bitcoin transactions.
"Bitcoin Agent", an agent that uses NEAR chain signatures to interact with Bitcoin L1. Now, you can send transactions on the Bitcoin mainnet using just your NEAR account. The agent’s tools are highly composable and can be integrated with other agents to create MPC transactions and broadcast them on the Bitcoin mainnet.
➡️ The agent runs in the Bitte runtime, powered by NEAR chain signatures. When you sign and send transactions on the Bitcoin mainnet, there are no bridges and no wrapped tokens involved—the transaction is settled directly on Bitcoin L1.
➡️ You can access the Bitcoin Agent dashboard here to get your Bitcoin address associated with your NEAR account. The dashboard also displays your agent status, wallet balances, and past transactions.
-
Leverages NEAR MPC signatures for Bitcoin actions.
-
This agent is built using bitte-ai/agent-sdk to standardize agent behavior and communication. Implemented tools are as follows:
-
get-user
: Get NEAR wallet context -
get-btc-balance
: Fetch user’s BTC balance -
create-btc-mpc-transaction
: Generate a transaction using MPC signing -
send-btc-txn
: Broadcast a signed transaction
-
-
Each tool is registered in the AI plugin manifest at :
/api/ai-plugin
- Clone the repository
https://github.com/0xAlphaDevs/Near-Bitcoin-Agent.git
. - Install the required dependencies using
pnpm install
. - Copy
.env.example
to.env
and fill in the required variables. - Run using
pnpm dev
.
This project is licensed under the MIT License.
We welcome community contributions! Please check the CONTRIBUTING.md for more information on how to get involved.