Agent Protocol
A modular SDK and bridge connecting LLMs to Blockchain, providing standardized tool definitions and React integrations for AI agents.
Welcome to the Agent Protocol documentation. This guide will help you build AI-powered blockchain applications using our modular SDKs.
Introduction
Agent Protocol is a bridge that connects LLMs (like Gemini, GPT-4) to Blockchain (Solana, Ethereum). It solves the "execution gap" by providing:
- Standardized Tool Definitions (core): JSON schemas that LLMs understand.
- React Integration (ai): Hooks and Components to drop a chat interface into any dApp.
- Client-Side Execution: Securely execute transactions using the user's connected wallet (Phantom, MetaMask), so private keys never leave the browser.
Architecture Overview
The protocol consists of three main parts:
- Frontend (React/Next.js): Uses @agent-protocol/ai to display chat, manages state, connects to user's wallet, and executes tools signed by the user.
- Backend (Node/Hono/Express): Forwards messages to LLM, injects tool definitions, and returns responses.
- Blockchain: The layer for value transfer.
Packages
- @agent-protocol/core: JSON Schema definitions for tools. Chain-agnostic.
- @agent-protocol/ai: AI Agent implementation and React integrations (hooks, ChatWidget).
Related Projects
Uptime Monitoring Platform
2024Decentralized uptime monitoring system with Solana-based validator payments and WebSocket key coordination.
Prophecy
2024A decentralized, real-time prediction market on Solana allowing users to trade team shares dynamically during live sports streams.
Vesting
2024A comprehensive Solana program for managing organizational token vesting schedules with cliff periods, automated claims, and real-time analytics.