haima

Enable x402 protocol payments, on-chain settlement, and per-task billing for agents.

3|2|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/broomva/skills --skill haima
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: haima
Source: https://github.com/broomva/skills/tree/main/skills/finance/haima
Command: npx skills add https://github.com/broomva/skills --skill haima

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires aios-protocol, lago, k256, sha3, chacha20poly1305, axum, reqwest, autonomic-core, vigil, and includes references (resource) components.

What problem does it solve?

Haima solves the lack of native financial agency in AI agents by enabling them to perform on-chain payments, charge for services, and manage sovereign wallets via the x402 protocol.

Core Features & Use Cases

  • x402 Protocol Support: Automatically handles HTTP 402 Payment Required responses to pay for external API resources or data feeds.
  • Per-Task Billing: Allows agents to charge clients for completed work, facilitating revenue collection and balance management.
  • Wallet Management: Provides secure, encrypted secp256k1 wallet management with support for on-chain settlement on Base.

Quick Start

Run the haima daemon alongside your agent runtime to enable automated financial transactions and wallet management.

Frequently Asked Questions about haima

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate on-chain x402 payments for AI agents?

Automating on-chain x402 payments for AI agents requires a financial engine that handles HTTP 402 Payment Required responses and executes USDC settlements. Haima enables this by intercepting payment requests and authorizing autonomous wallet transactions on Base.

What is the x402 protocol and when is it needed for agentic finance?

The x402 protocol is a mechanism for handling HTTP 402 Payment Required responses to pay for external API resources. It is needed for agentic finance when autonomous agents must independently purchase data feeds or compute power from paywalled endpoints.

Can I use USDC for per-task billing and revenue collection?

Yes, USDC can be used for per-task billing and revenue collection. Haima allows agents to charge clients for completed work, facilitating automated revenue collection and balance management via on-chain settlement.

Does autonomous wallet management support encrypted secp256k1 keys?

Autonomous wallet management in Haima supports encrypted secp256k1 keys using chacha20poly1305 encryption. This provides secure sovereign wallet control for agents operating within the Life Agent OS ecosystem.

What's the best way to track economic state for autonomous agents?

Tracking economic state for autonomous agents is best handled through event-sourced persistence and dedicated economic state tracking. Haima integrates with Lago for event sourcing and Autonomic for economic policy enforcement and state monitoring.

Why does on-chain settlement fail when the agent runtime is misconfigured?

On-chain settlement fails when the agent runtime lacks proper wallet initialization or economic policy enforcement. Haima must run as a daemon alongside the agent runtime to maintain the required Autonomic and Lago integrations for transaction persistence.