
Added Nov 15, 2026
blacktea
An open-source tool that sets limits and approvals on payments made by AI agents, with an audit log.
- Ecosystem
- Agent Skills
- Skill category
- Automation
- Creator / organization
- Nicolas Martin(GitHub nmrtn)
What it is
blacktea is an open-source project from nmrtn on GitHub that adds spending controls for AI agents that pay online. It uses policy rules to manage how an agent pays with USDC over the x402 protocol. You can set limits, require approval, and keep every payment in an audit log. The project comes as a TypeScript library, a command-line tool, and an MCP server (MCP, a way for AI tools to call outside capabilities). It currently supports the x402 protocol and a simulated wallet. The README demo: a personal agent (Hermes, over Telegram) is asked to buy a paid report. blacktea holds the payment, the agent asks for approval in the chat, and it settles only after you say yes.
Highlights:
- Payments pass through policy rules with limits and approvals
- Every payment goes into an audit log that records the reason the agent gave
- Connects through a TypeScript library, a CLI, or an MCP server
- Set BLACKTEA_RAIL=mock to try it without a real wallet
How to use:
First, install it with npm: `npm install @nmrtn/blacktea`. Then write a policy file that sets your limits and approval rules. Finally, connect it to your agent. For MCP, use `npx -y @nmrtn/blacktea-mcp` in the config; it works with Claude Desktop, Cursor, OpenClaw, and Hermes.
Who it's for:
Developers who want their AI agents to pay with limits, approvals, and a record.
Before you start:
- Needs a Node.js environment and npm
- Real payments need an EVM private key (EVM_PRIVATE_KEY) to sign; it goes online to request and sign x402 payments; the demo uses the Base Sepolia test network
- The demo uses the Anthropic API
- Approvals can connect to channels such as Slack; the policy file and audit log are stored locally
- The project is early, v0.1.x, and the author says the API will change before 1.0
- Cost: not stated on the page
- License: MIT
- This project involves cryptocurrency payments. We describe its features only. This is not investment advice. If you use these features, weigh the safety risks yourself. AI Inspiration World is not responsible for any consequences.
Based on the project's public documentation. Not tested by AI Inspiration World.