AgentConnect is a scalable framework for human-agent and agent-agent interactions, providing a robust foundation for building AI-powered applications. The framework enables real-time, autonomous agent interactions while maintaining security and extensibility.
- 🤖 Autonomous Agents: Independent communication with async processing loops
- ⚡ Real-time Communication: WebSocket-based updates for seamless interactions
- 🔌 Multi-Provider Support: OpenAI, Anthropic, Groq, and Google AI integration
- 🔒 Security: DID-based identity and cryptographic message verification
- 🎯 Capability System: Dynamic discovery and interaction
- 🔧 Extensible Design: Modular architecture with automatic session management
- 🎨 Modern UI: React-based frontend with dark mode and real-time updates
- Python 3.11 or higher
- Poetry (Python package manager)
- Redis server
- Node.js 18+ and npm
- Clone the repository:
git clone https://github.com/AKKI0511/AgentConnect.git
cd AgentConnect
-
Install Poetry: Visit Poetry's official installation guide and follow the instructions for your operating system.
-
Install backend dependencies:
# Install all dependencies (recommended)
poetry install --with demo,dev --no-root
# For production only (without dev tools)
poetry install --without dev --no-root
- Install frontend dependencies:
cd demos/ui/frontend
npm install
- Set up environment:
# Copy environment file
copy example.env .env # Windows
cp example.env .env # Linux/Mac
# Edit .env and configure at least one provider API key
# The default provider is 'groq', but you can change it:
DEFAULT_PROVIDER=groq
GROQ_API_KEY=your_groq_api_key
# Optional: Configure other providers
OPENAI_API_KEY=your_openai_api_key
ANTHROPIC_API_KEY=your_anthropic_api_key
GOOGLE_API_KEY=your_google_api_key
# Optional: Configure other settings (see example.env for all options)
API_PORT=8000
DEBUG=True
Note: Only the API key matching your
DEFAULT_PROVIDER
is required. Other settings have sensible defaults.
- Start the backend API server:
# From project root
poetry run python demos/run_demo.py --backend-only
- Start the frontend development server:
# From demos/ui/frontend
npm run dev
Access the application:
- Frontend UI:
http://localhost:5173
- API Documentation:
http://localhost:8000/docs
- Alternative API Documentation:
http://localhost:8000/redoc
- Interactive Chat Demo
poetry run python example_usage.py
- Real-time chat with AI agents
- Multiple provider/model selection
- Message history tracking
- Multi-Agent Analysis Demo
poetry run python example_multi_agent.py
- Autonomous agent interaction
- Real-time conversation visualization
- Structured data analysis
# Install dependencies
poetry install
# Run linting
poetry run pylint src/ tests/ demos/
# Format code
poetry run black .
# Run tests
poetry run pytest
# Run demo
poetry run python demos/run_demo.py
make install # Install dependencies
make lint # Run linting
make format # Format code
make test # Run tests
make all # Run all checks
AgentConnect/
├── src/ # Core source code
│ ├── agents/ # Agent implementations
│ ├── communication/ # Communication protocols
│ ├── core/ # Core framework components
| ├── prompts/ # Prompt templates
| ├── providers/ # AI provider integrations
| └── utils/ # Utilities
├── demos/ # Demo applications
│ ├── api/ # FastAPI backend implementation
│ ├── ui/ # Frontend React implementation
│ │ └── frontend/ # React TypeScript frontend
│ └── utils/ # Demo utilities
├── tests/ # Test suite
├── example_usage.py # Human-Agent demo
└── example_multi_agent.py # Agent-Agent demo
-
Communication Hub
- Central message routing
- Agent registration and discovery
- Protocol enforcement
- Message history tracking
-
Agent System
- Identity management (DID-based)
- Capability declaration
- Message signing/verification
- Autonomous processing
-
Provider Integration
- OpenAI (GPT, o1)
- Anthropic (Claude)
- Groq (Mixtral, LLaMA)
- Google (Gemini)
- MVP with basic agent-to-agent and human-to-agent interactions
- Secure data exchange between agents
- Decentralized payment integration
- Additional AI providers and communication protocols
- Advanced memory systems (Redis, PostgreSQL)
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add 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.
- Thanks to all contributors
- Built with FastAPI, LangChain, and React
- Inspired by the need for secure autonomous multi-agent communication
- Create an Issue
- Email: akkijoshi0511@gmail.com