# Protocol Banks — Agent Money Control Plane

> Policy-enforced payment and trading layer for AI agents using Protocol Banks SDK and MCP.

Protocol Banks — Agent Money Control Plane is a free AI agent skill on Agensi by Everest An, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Everest An](https://www.agensi.io/creators/everest-an)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-11-18
- Security: scan passed (2026-11-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/protocol-banks-agent-money-control-plane
- Tags: ai-agents, api, trading, web3, automation

## About this skill

Managing financial transactions within an autonomous agent often leads to security risks or policy violations. Manual oversight of agent spending is slow, while unrestricted access is dangerous. This skill provides a structured execution and policy layer for Protocol Banks, allowing agents to handle money within strict server-enforced limits.

### What it does
- **Balance & State Monitoring** queries account balances, open orders, and current policy limits before any transaction.
- **Capped Trading** executes perpetual trades on Hyperliquid with hard-coded size caps and allowlist enforcement.
- **Stablecoin Payments** prepares and executes EIP-3009 authorized payments in USDC, USDT, DAI, or ETH.
- **Invoice Management** generates payable links and tracks settlement status via polling.
- **Micropayment Handling** implements x402 machine-to-machine payments for metered API or compute access.
- **Policy Enforcement** automatically halts operations when encountering 403 or 409 errors to prevent unauthorized spending.

### How it works
1. **Initialize the SDK** using `@everestan/protocolbanks-sdk` or configure the MCP proxy for environment-based tool access.
2. **Synchronize State** by calling the `state` tool to verify available liquidity and remaining spend caps.
3. **Request Quotes** for swaps or gas fees to present costs to the user before final execution.
4. **Execute Transactions** by placing orders or signing payment authorizations, ensuring no private keys are ever handled locally.

### Frameworks & tools
Built for TypeScript and Node.js environments using `@everestan/protocolbanks-sdk` and `@everestan/protocolbanks-mcp`. It integrates with Hyperliquid for trading and supports EIP-3009 for gasless stablecoin transfers.

### Why this beats prompting it yourself
Writing raw prompts for financial execution often results in agents retrying failed payments or ignoring spend limits. This skill enforces a "Read-Before-Act" loop and treats policy refusals as terminal, preventing catastrophic loops or account drains that generic prompting cannot guarantee.

### Use cases
- Deploy a trading agent that manages Hyperliquid positions within a fixed USD risk cap.
- Automate SaaS billing where the agent pays for compute units via x402 headers.
- Build a procurement agent that generates invoices and monitors for customer settlement.
- Create a treasury assistant that quotes cross-chain swaps and waits for user approval.

### Known limitations
Requires a hosted Protocol Banks account for policy enforcement. The SDK does not support direct private key imports as it relies on agent-scoped session tokens.

## Requires

- @everestan/protocolbanks-mcp
- Node.js

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Protocol Banks — Agent Money Control Plane skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill prevent an AI agent from draining its linked wallet?

This skill acts as a policy-enforced financial layer, solving the risk of autonomous agents overspending or executing unauthorized trades by requiring a 'Read-Before-Act' loop and server-side limit enforcement.

### What is required to get started with the payment and trading layer?

Setup involves initializing the `@everestan/protocolbanks-sdk` or configuring the MCP proxy, then synchronizing the agent's state to verify available liquidity and spend caps before execution.

### Does the agent need access to my private keys to execute transactions?

No, this skill is designed for maximum security and does not support direct private key imports; it instead relies on agent-scoped session tokens and a hosted Protocol Banks account for policy enforcement.

### What specific types of financial transactions can the agent perform?

The skill supports perpetual trading on Hyperliquid, stablecoin payments via EIP-3009 (USDC, USDT, DAI, ETH), and machine-to-machine micropayments using x402 headers.

### What exactly is included in this skill package?

Buyers receive the full integration logic for the Protocol Banks SDK and MCP tools, including pre-configured handlers for balance monitoring, capped trading, and automated invoice management.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
