
A Decentralized Framework for Autonomous Agent Collaboration
Build and connect independent AI agents that discover, interact, and collaborate securely.
Installation โข Documentation โข Examples โข Contributing
AgentConnect provides a framework for building decentralized networks of truly autonomous AI agents, enabling the next generation of collaborative AI.
Move beyond traditional, centrally controlled systems and embrace an ecosystem where independent agents can:
- Discover peers on-demand: Locate partners via capability broadcasts instead of hard-wired endpoints.
- Interact Securely (A2A): Leverage built-in cryptographic verification for trustworthy Agent-to-Agent communication.
- Execute Complex Workflows: Request services, exchange value, and achieve goals collectively.
- Autonomous Operation: Each agent hosts its own logicโno central brain required.
- Scale Limitlessly: Support thousands of agents interacting seamlessly.
AgentConnect delivers unique advantages over classic multi-agent approaches:
- Decentralized Architecture: No central router, no single point of failure.
- First-class agent autonomy: Agents negotiate, cooperate, and evolve independently.
- Interconnect Agent Systems: Operates above internal frameworks, linking entire agent swarms.
- Living ecosystem: The network fluidly adapts as agents join, leave, or evolve their skills.
- Secure A2A Communication: Crypto-grade identity & message signing baked in.
- Horizontal scalability: Engineered for planet-scale agent populations.
- Plug-and-play extensibility: Easily integrate custom agents, capabilities, and protocols.
- Integrated Agent Economy: Seamless A2A payments powered by Coinbase CDP & AgentKit.
|
|
|
|
|
|
|
|
|
# Clone the repository
git clone https://github.com/AKKI0511/AgentConnect.git
cd AgentConnect
# Install dependencies
poetry install --with demo,dev
# Set up environment
copy example.env .env # Windows
cp example.env .env # Linux/Mac
Set required environment variables in your .env
file:
# Required for AI providers (at least one)
OPENAI_API_KEY=your_openai_api_key
# Optional for payment capabilities
CDP_API_KEY_NAME=your_cdp_api_key_name
CDP_API_KEY_PRIVATE_KEY=your_cdp_api_key_private_key
For detailed installation instructions and configuration options, see the QuickStart Guide and Installation Guide.
For detailed instructions on using AgentConnect, including the command-line interface, running examples, and building your own agents, see the full documentation.
- Running Examples
- Using the CLI (To be created)
- Building Custom Agents (To be created)
AgentConnect includes several example applications to demonstrate different features:
- Basic Chat: Simple human-agent interaction
- Multi-Agent System: Collaborative agent workflows
- Research Assistant: Task delegation and information retrieval
- Data Analysis: Specialized data processing
- Telegram Assistant: Telegram AI agent with multi-agent collaboration
- Agent Economy: Autonomous workflow with automatic cryptocurrency payments between agents
For code examples and detailed descriptions, see the Examples Directory.
A full-featured demo application is included to showcase the framework's capabilities:
Note: The UI demo is currently being refactored for a new version with improved features and better integration with the modular multi-agent system. In the meantime, we recommend using the CLI examples.
# Start the backend server
agentconnect --demo --backend-only
# Start the frontend (in a separate terminal)
cd demos/ui/frontend
npm install
npm run dev
For more information about the demo application, see the Demo Documentation.
AgentConnect is built on three core pillars that enable decentralized agent collaboration:
- Decentralized Agent Registry: A registry that allows agents to publish their capabilities and discover other agents. This is not a central controller, but rather a directory service. Agents can query the registry to find other agents that meet their needs.
- Communication Hub: A message routing system that facilitates secure communication between agents. The hub ensures reliable message delivery, but does not dictate agent behavior or control the network.
- Independent Agent Systems: Each agent is a self-contained unit, built using the tools and frameworks of the developer's choice (LangGraph, custom logic, etc.). Agents interact with the network through standardized protocols, but their internal workings are independent.
This architecture allows for a truly decentralized and scalable network of autonomous agents.
AgentConnect integrates with LangSmith for comprehensive monitoring:
-
Set up LangSmith
- Create an account at LangSmith
- Add your API key to
.env
:LANGSMITH_TRACING=true LANGSMITH_API_KEY=your_langsmith_api_key LANGSMITH_PROJECT=AgentConnect
-
Monitor agent workflows
- View detailed traces of agent interactions
- Debug complex reasoning chains
- Analyze token usage and performance
- Track payment tool calls from AgentKit integration
For developers who want to contribute to AgentConnect, please refer to our Development Guidelines for information about:
- Coding standards
- Documentation requirements
- Testing procedures
- Git workflow
- Continuous integration
- Online Documentation - Full documentation hosted on GitHub Pages
- QuickStart Guide - Get started quickly with basic concepts
- Examples - Sample code and use cases
- API Reference - Detailed API documentation
- Development Guidelines - Guidelines for contributors
AgentConnect/
โโโ agentconnect/ # Core framework
โ โโโ __init__.py # Package initialization with public API
โ โโโ cli.py # Command-line interface
โ โโโ agents/ # Agent implementations
โ โโโ communication/ # Communication protocols
โ โโโ core/ # Core components
โ โโโ prompts/ # Prompt templates
โ โโโ providers/ # AI provider integrations
โ โโโ utils/ # Utilities
โโโ demos/ # Demo applications
โ โโโ api/ # FastAPI backend
โ โโโ ui/ # React frontend
โโโ examples/ # Example applications
โโโ docs/ # Documentation
โโโ tests/ # Test suite
- โ MVP with basic agent-to-agent interactions
- โ Autonomous communication between agents
- โ Capability-based agent discovery
- โ Coinbase AgentKit Payment Integration
- โฌ Agent Identity & Reputation System
- โฌ Asynchronous Agent Collaboration System
- โฌ Marketplace-Style Agent Discovery
- โฌ MCP Integration
- โฌ Structured Parameters SDK
- โฌ Secure data exchange protocols
- โฌ Additional AI provider integrations
- โฌ Advanced memory systems (Redis, PostgreSQL)
- โฌ Federated learning capabilities
- โฌ Cross-chain communication support
We welcome contributions to AgentConnect! Please read our Contributing Guidelines for details on our code of conduct and the process for submitting pull requests.
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
See the Changelog for a detailed history of changes to the project.
- Inspired by the need for independent autonomous multi-agent collaboration with dynamic agent discovery
- Thanks to all contributors who have helped shape this project
- Create an Issue
- Email: [email protected]