AgentFi

CInpm versionnpm downloadsLicense: Apache 2.0

The economic layer for non-human intelligence.

AgentFi provides crypto transaction infrastructure for AI agents on Ethereum and EVM-compatible networks. It allows agents to execute DeFi transactions (swaps, yield farming, transfers) without handling private keys or managing gas, all within a secure on-chain policy framework.

Start here:

  • VISION.md โ€” why this project exists, where it's going, and the principles behind every technical decision.
  • STATE.md โ€” what the project is today: purpose, full stack, capabilities, phase progress.
  • HANDOFF.md โ€” live pending tasks, credentials inventory, new-machine setup.

๐Ÿ“š Documentation

All project documentation is organized in our Documentation Hub.

Quick Links

  • Vision (required reading): Why this project exists and where it's going.
  • Dev Quickstart: Zero-credential local stack โ€” docker compose up and you're running in 3 minutes.
  • Operator Setup: Get a real instance of AgentFi running.
  • Graphify Code Graph: Queryable codebase map for agent-assisted development.
  • Agent Quickstart: Connect your agent in < 5 minutes.
  • System Architecture: Understand the 4-layer stack.

๐Ÿš€ Key Features

  • Turnkey MPC Wallets โ€” keys split across shards and never exposed.
  • Safe Smart Wallets โ€” per-agent on-chain policy enforcement (limits, whitelists, kill switch).
  • Model Context Protocol โ€” 28 tools in @agent_fi/mcp-server: DeFi execution, A2A collaboration, trust, and P&L.
  • DeFi coverage โ€” Uniswap V3 + Curve StableSwap (swaps); Aave V3, Compound V3, and any ERC-4626 vault (yield).
  • Agent-to-Agent economy โ€” job queue, atomic payments, DB-level escrow (v2), reputation scoring from real metrics with time-decay.
  • Agent P&L dashboard โ€” per-agent breakeven detection, including real gas costs (v2).
  • Persistent identity โ€” optional ENS subdomains (alice-abc123.agentfi.eth) wired into agent registration.
  • OpenAPI 3.0.3 spec at docs/api/openapi.yaml โ€” machine-readable contract for SDK generation.
  • Cross-chain โ€” Ethereum, Base, Arbitrum, Polygon (Base Mainnet has maintainer-deployed contracts).
  • Protocol fee engine โ€” basis-point fee collected on-chain atomically via AgentExecutor.

๐Ÿ› ๏ธ Getting Started

For Operators

  1. Follow the Operator Setup Checklist to fill third-party accounts and local .env.
  2. Deploy the Smart Contracts to your target chain (or reuse the maintainer-deployed Base addresses in STATE.md).
  3. Deploy the backend via Self-Hosted Production Guide โ€” provider-agnostic, with Railway as the reference and Fly.io / Render / Docker documented as alternatives.

For Developers

  1. Start with the Dev Quickstart โ€” docker compose up โ†’ stack running in 3 minutes, zero external accounts.
  2. Run the A2A Collaboration Example โ€” two-agent end-to-end flow in one file.
  3. Run the Claude Desktop MCP Demo โ€” two MCP identities, discovery, A2A job, trust, and P&L.
  4. Review the Architecture Overview.
  5. Use the MCP Server to integrate your agents.

๐Ÿ›ก๏ธ Security

AgentFi is built for security-first autonomy.

  • Simulations: Every transaction is simulated via Tenderly before submission.
  • Guardrails: On-chain policies prevent agents from exceeding predefined limits.
  • Kill Switch: Operators can pause any agent's transaction ability instantly.

Found a vulnerability? See SECURITY.md for our disclosure policy.

๐Ÿค Community

  • Code of Conduct: Our community standards.
  • Contributing: How to contribute to AgentFi.
  • Changelog: Release history and notable changes.

๐Ÿ“„ License

AgentFi is open-source and licensed under the Apache 2.0 License.

MCP Server ยท Populars

MCP Server ยท New

    archetyx

    Telegram MCP Server

    Remote control AI coding assistants (Claude Code/Codex) via Telegram

    Community archetyx
    dtkmn

    MCP ZAP Server

    Give AI agents a safe, self-hosted OWASP ZAP operator for guided web security scans, findings, reports, and production guardrails.

    Community dtkmn
    dlt-hub

    dltHub AI Workbench

    MCP Server

    Community dlt-hub
    rasinmuhammed

    Misata

    High-performance open-source synthetic data engine. Uses LLMs for schema design and vectorized NumPy for deterministic, scalable generation.

    Community rasinmuhammed
    Silung

    Scholar Search MCP

    An MCP server for academic paper search that integrates with AI assistants (e.g., Claude Code, Cursor), enabling them to search and retrieve academic paper metadata.

    Community Silung