Introduction
AgentFish provides smart wallet infrastructure for AI agents, enabling autonomous payments via the x402 protocol.
What is AgentFish?
AgentFish is a financial infrastructure platform that gives AI agents the ability to:
- Pay for APIs automatically - When an API returns HTTP 402 Payment Required, AgentFish handles payment seamlessly
- Manage spending limits - Set per-transaction and daily limits to control agent spending
- Track all activity - Complete visibility into every payment your agents make
- Stay non-custodial - Your keys are securely managed, never exposed
Products
Agentic Wallets
Programmable wallets for AI agents. Perfect for:
- AI assistants that need to pay for services
- Trading bots with spending controls
- Autonomous agents accessing paid APIs
Treasury (Coming Soon)
Institutional-grade stablecoin management with multi-sig controls for teams and enterprises.
Quick Links
- Installation - Get started in 5 minutes
- SDK Reference - Server-side SDK for Node.js/TypeScript
- React SDK - Client-side components for React apps
How x402 Works
The x402 protocol enables HTTP-native payments:
- Your agent makes a request to a paid API
- The API returns
402 Payment Requiredwith payment details - AgentFish SDK automatically pays and retries the request
- Your agent receives the response - payment is invisible!
import { AgentFish } from '@agentfish/sdk';
const agent = new AgentFish({
apiKey: 'agentfish_live_...',
walletId: 'your-wallet-id',
});
// Payment happens automatically if needed!
const response = await agent.fetch('https://api.example.com/ai-endpoint');