Rakshit.sol
Back to Projects

Agent Protocol

A modular SDK and bridge connecting LLMs to Blockchain, providing standardized tool definitions and React integrations for AI agents.

TypeScriptSolanaReactNode.jsAI
Play Demo Video

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:

  1. 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.
  2. Backend (Node/Hono/Express): Forwards messages to LLM, injects tool definitions, and returns responses.
  3. 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).