LeapRAG is an open-source platform that integrates advanced RAG technology with Google’s A2A protocol, enabling users to build context-aware, data-driven agents. These agents are automatically A2A-compliant and can be discovered and used by any compatible client without extra development.
LeapRAG is an early-stage Python project in the AI payments / x402 ecosystem, focused on a2a, a2a-protocol, agent-to-agent, agents. It currently has 3 GitHub stars and 0 forks, and sits alongside related tools like AI_Agent_School, aser, a2a-go, kbs_agent_a2a, kudosflow, nexus.
Dual-powered by RAG & A2A Protocol - Defining the Next Generation of Knowledge Agents
LeapRAG is an open-source platform that combines state-of-the-art Retrieval Augmented Generation (RAG) capabilities with Google's A2A (Agent-to-Agent) protocol. The platform enables users to create knowledge-rich, intelligent agents that deliver highly accurate, context-aware responses backed by your own data sources. These agents are automatically compliant with the A2A protocol, making them discoverable and usable by any A2A-compatible client without additional development effort.
This video demonstrates the complete workflow of LeapRAG, including:
Note: Sensitive information in the video has been redacted.
https://github.com/user-attachments/assets/69755681-e8a7-4283-ae70-834b209e2721
1. User-Friendly RAG Platform:
2. Advanced RAG Capabilities:
3. Comprehensive Knowledge Base Management:
4. Agent Card Generation:
5. A2A Protocol Support:
6. Multi-Model Support:
7. Backend-as-a-Service:
Before installing LeapRAG, make sure your machine meets the following minimum system requirements:
- CPU >= 2 Cores
- RAM >= 8 GB
- Disk >= 50 GB
The easiest way to start the LeapRAG server is through docker compose. Before running the following commands, make sure Docker and Docker Compose are installed on your machine:
# Clone the repository
git clone https://github.com/megrezAI/LeapRAG.git
cd LeapRAG/docker
cp .env.example.production .env
docker compose up -d
After running, you can access the LeapRAG dashboard in your browser at http://localhost:3100 and start using it after registration and login.
Configure Language Models:
Add a Knowledge Base:
Create and Publish an Agent:
Use Your Agent:
LeapRAG fully implements Google's A2A (Agent-to-Agent) protocol, which enables:
For more information about the A2A protocol, visit Google's A2A Protocol Repository.
We've forked Google's A2A repository and made some simple modifications, primarily replacing the Gemini model with DeepSeek. This modification addresses access limitations to Google services in certain regions, making it easier for more users to test Agent Cards using the client. Users can still use the original client from Google's official repository to discover Agent Cards created by LeapRAG - our modified version simply provides a more convenient testing option.
Clone the modified A2A repository:
git clone git@github.com:MegrezAI/A2A.git
Navigate to the demo UI directory:
cd A2A/demo/ui
Set your DeepSeek API key:
export DEEPSEEK_API_KEY=sk-xxx
Run the application:
uv run main.py
Access the web interface at http://localhost:12000 and start interacting with your agents
If you need to deploy LeapRAG to a public network environment so that other A2A clients can discover and call your agents, you'll need to configure the following:
cd LeapRAG/docker
cp .env.example.production .env
Modify the following configuration items in the .env file:
SERVICE_API_URL_BASE: Set to your complete domain address
http://your-domain.com/apihttps://your-domain.com/apiNGINX_SERVER_NAME: Set to your domain name (e.g., your-domain.com)
Standard HTTP Configuration:
EXPOSE_NGINX_PORT: Recommended to modify to 80 (standard HTTP port)Enable HTTPS Configuration:
NGINX_HTTPS_ENABLED=trueEXPOSE_NGINX_SSL_PORT: Recommended to modify to 443 (standard HTTPS port)NGINX_SSL_CERT_FILENAME: SSL certificate filename (default is leapai.crt, modify if using a different name)NGINX_SSL_CERT_KEY_FILENAME: SSL certificate key filename (default is leapai.key, modify if using a different name)NGINX_SSL_PROTOCOLS: SSL protocol settings (default value TLSv1.1 TLSv1.2 TLSv1.3 usually doesn't need modification)Place your SSL certificate and key files in the nginx/ssl directory, ensuring the filenames match the configuration above:
nginx/ssl/leapai.crt (or the name you specified)nginx/ssl/leapai.key (or the name you specified)Important: If your server firewall is enabled, make sure to open the corresponding ports (80/443)
Start all services:
docker compose up -d
After successful configuration, you should be able to access LeapRAG through:
http://your-domain.comhttps://your-domain.comAfter completing the Nginx configuration and confirming that the service is running normally, you need to configure the public network access address for your agent so that other A2A clients can discover and access it:
Agent Local URL:
When you create an agent, the system automatically generates a default agent service address based on the SERVICE_API_URL_BASE configuration, typically in the format http://{SERVICE_API_URL_BASE}/rag/{agent_id}
Customized Agent URL:
On the agent configuration page, if needed, you can enter a custom public network access address in the "Customized Agent URL" field. This address is typically the agent's public domain name that you configured through Nginx reverse proxy.
Verify Agent Public Network Accessibility:
After saving the configuration, you can directly access your configured public URL through a browser to confirm that you can retrieve the correct Agent Card information
Use an A2A client to try connecting to this address and verify that the agent can be properly discovered and called
By correctly configuring the custom agent URL, your agent will be discoverable and usable by any A2A protocol-compatible client in the public network environment.
We would like to acknowledge RagFlow and their outstanding work on retrieval-augmented generation for inspiring parts of the implementation in LeapRAG.
This project is licensed under the Apache 2.0 License.
An interactive educational platform for understanding AI agents
Aser is a lightweight, self-assembling AI Agent frame.
Golang SDK for A2A Protocol
kbs_agent_a2a 智能体协议适配中间件
Visual workflow editor for building node-based AI agent workflows with drag-and-drop interface, A2A integration, and real-time execution
The AI-to-AI Protocol Layer that catches unreliable agent outputs before they cost you money. Claim-level verification, escrow, and slashing. 224 tests, 12/12 adversarial patterns caught.
The agent-native LLM router for autonomous agents. 55+ models (8 free), <1ms local routing, USDC payments on Base & Solana via x402.
The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the loop, and turn completed work into reusable work experience and data to improve future agents.
Self-healing infrastructure for AI agent payments. 90.3% auto-recovery.
The AI agent with a wallet — spends USDC autonomously to get real work done. Apache-2.0, TypeScript.
Daydreams is a set of tools for building agents for commerce
Live data for AI agents — search, research, markets, crypto, X/Twitter. Pay-per-call via x402 micropayments.