Skip to content

AKKI0511/AgentConnect

Repository files navigation

AgentConnect Logo

A Decentralized Framework for Autonomous Agent Collaboration

Build and connect independent AI agents that discover, interact, and collaborate securely.

CI Docs Documentation Python Version Poetry License

Installation โ€ข Documentation โ€ข Examples โ€ข Contributing

๐Ÿ“– Overview

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.

Why AgentConnect?

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.

โœจ Key Features

๐Ÿค– Dynamic Agent Discovery

  • Capability-Based lookup
  • Decentralized Registry
  • Zero static links

โšก A2A Communication

  • Direct Agent-to-Agent Messaging
  • Cryptographic signatures
  • No routing bottlenecks

โš™๏ธ True Agent Autonomy

  • Independent Operation & Logic
  • Self-Managed Lifecycles
  • Unrestricted Collaboration

๐Ÿ”’ Trust Layer

  • Verifiable identities
  • Tamper-proof messages
  • Standard Security Protocols

๐Ÿ’ฐ Built-in Agent Economy

  • Autonomous A2A Payments
  • Coinbase CDP Integration
  • Instant service settlement

๐Ÿ”Œ Multi-LLM Support

  • OpenAI, Anthropic, Groq, Google
  • Flexible AI Core Choice
  • Vendor-Agnostic Intelligence

๐Ÿ“Š Deep Observability

  • LangSmith tracing
  • Monitor tools & payments
  • Custom Callbacks

๐ŸŒ Dynamic Capability Advertising

  • Agent Skill Broadcasting
  • Market-Driven Discovery
  • On-the-Fly Collaboration

๐Ÿ”— Native Blockchain Integration

  • Coinbase AgentKit Ready
  • On-Chain Value Exchange
  • Configurable networks

๐Ÿš€ Quick Start

# 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.

๐ŸŽฎ Usage

For detailed instructions on using AgentConnect, including the command-line interface, running examples, and building your own agents, see the full documentation.

๐Ÿ’ป Examples

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.

๐Ÿš€ Demo Application

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.

๐Ÿ—๏ธ Architecture

AgentConnect is built on three core pillars that enable decentralized agent collaboration:

  1. 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.
  2. 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.
  3. 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 Architecture Flow

๐Ÿ“Š Monitoring with LangSmith

AgentConnect integrates with LangSmith for comprehensive monitoring:

  1. 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
      
  2. 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

๐Ÿ› ๏ธ Development

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

๐Ÿ“š Documentation

๐Ÿ“‹ Project Structure

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

๐Ÿ—บ๏ธ Roadmap

  • โœ… 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

๐Ÿค Contributing

We welcome contributions to AgentConnect! Please read our Contributing Guidelines for details on our code of conduct and the process for submitting pull requests.

๐Ÿ“„ License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

๐Ÿ“ Changelog

See the Changelog for a detailed history of changes to the project.

๐Ÿ™ Acknowledgments

  • Inspired by the need for independent autonomous multi-agent collaboration with dynamic agent discovery
  • Thanks to all contributors who have helped shape this project

๐Ÿ“ž Support


Built with โค๏ธ by the AgentConnect team