A decentralized open protocol powered by libp2p, designed for seamless, decentralized agentic communication at scale. 🚀
AgentNet is a next-generation decentralized protocol for agentic communication, redefining how AI agents interact, collaborate, and transact autonomously. Built on libp2p and powered by blockchain technology, AgentNet enables seamless, trustless communication between AI agents, creating a self-organizing network of intelligent entities.
To demonstrate its potential, we’ve introduced three simulated agents as a proof-of-concept:
- 🛫 Flighty Agent: Handles flight searches and bookings
- 🏨 Airbnb Agent: Manages accommodation searches and bookings
- 👤 User Agent: Orchestrates communication between users and specialized agents
AgentNet/
├── agent-network-protocol/ # Core P2P communication protocol
├── agents/ # AI agent implementations
│ ├── airbnb/ # Airbnb booking agent
│ ├── flighty/ # Flight booking agent
│ └── user-agent/ # User interaction agent
├── websites/ # Frontend applications
│ ├── airbnb/ # Accommodation booking interface
│ ├── chat/ # Main chat interface
│ └── flighty/ # Flight booking interface
- Decentralized P2P agent communication using libp2p
- Blockchain-based transaction verification
- Interactive chat interface for natural language booking
- Multi-agent coordination for complex requests
- Frontend: Next.js, React, TailwindCSS
- Agent Framework: CDP Agent Kit, OpenAI GPT-4o
- Core Network Protocol: libp2p
- Blockchain Integration: Base
- Package Management: npm
- Clone the repository:
git clone https://github.com/raihankhan-rk/AgentNet.git
cd AgentNet
Before starting the development servers, install the necessary dependencies in each directory:
# Install dependencies for the protocol
cd agent-network-protocol
npm install
# Install dependencies for each individual agent
cd agents/airbnb
npm install
cd ../flighty
npm install
cd ../user-agent
npm install
Create .env
files in the following directories:
/agents/flighty/.env
/agents/airbnb/.env
/agents/user-agent/.env
Required environment variables:
CDP_WALLET_DATA=your_wallet_data
NETWORK_ID=base-sepolia
CDP_API_KEY_NAME=your_api_key_name
CDP_API_KEY_PRIVATE_KEY=your_private_key
OPENAI_API_KEY=your_openai_key
Run the following commands to start the required services:
# Navigate to the protocol directory and start the registry server
cd agent-network-protocol
node registryServer.js
# Open a new terminal, navigate to the agents directory, and start the agents
cd agents
npm start
The platform uses a custom P2P protocol for agent communication, implemented in the agent-network-protocol
package. Key features include:
- Decentralized agent discovery
- Secure message encryption
- Pub/sub messaging system
- DHT-based peer routing
- All agent communications are encrypted using noise protocol
- Blockchain-based transaction verification
- Secure wallet integration through CDP
- Environment variables protection (see
.gitignore
files)
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with Next.js
- Powered by CDP Agent Kit
- Blockchain integration via Base
- P2P networking with libp2p
Made with ❤️ by Team Zephyrus