Getting Started
Welcome to Agent Bridge, a powerful platform for building, managing, and observing AI agents that can connect to your local and remote tools via the Model Context Protocol (MCP).
Prerequisites
Before you begin, ensure you have the following installed:
- Python 3.12+: The server backend is built with FastAPI.
- Node.js 20+: The client frontend uses Vue 3 and Vite.
- Docker (Optional): Recommended for the easiest setup experience.
Quick Start (Docker)
If you have Docker installed, you can get the entire stack running in one command.
Clone the repository:
bashgit clone https://github.com/ramblinghermit0403/agent_bridge.git cd agent_bridgeConfigure Environment Variables: Before starting, create a
.envfile in theserver/directory:bashcp server/.env.example server/.envEdit
server/.envand add yourGOOGLE_API_KEYorOPENAI_API_KEY.Start the services:
bashdocker-compose up --build- Client (Frontend):
http://localhost:80 - Server (Backend API):
http://localhost:8001 - Database (PostgreSQL):
localhost:5432
- Client (Frontend):
Access the application: Open your browser to http://localhost.
Manual Installation (Development)
For developers who want to modify the code, running the services manually is recommended.
1. Backend Setup (Server)
The server handles the agent logic, database, and tool execution.
Navigate to the server directory:
powershellcd serverCreate a virtual environment: We recommend using
uvorvenv.powershelluv venv # or python -m venv .venvActivate the environment:
powershell.venv\Scripts\activate.ps1Install dependencies:
powershelluv pip install -r requirements.txt # or pip install -r requirements.txtConfigure Environment Variables: Create a
.envfile from the example:powershellcp .env.example .envEdit
.envand configure the required keys:GOOGLE_API_KEY- For Gemini models.OPENAI_API_KEY- For OpenAI models (optional).DATABASE_URL- PostgreSQL connection string (optional, defaults to SQLite for local dev).PINECONE_API_KEY- For vector search (optional).
Run the Server:
powershelluv run uvicorn app.main:app --reload --port 8001The API will be available at
http://localhost:8001.
2. Frontend Setup (Client)
The client provides the web interface for chatting and managing agents.
Navigate to the client directory:
powershellcd clientInstall dependencies:
powershellnpm installRun the Development Server:
powershellnpm run devThe application will be available at
http://localhost:5173.
First Run & Authentication
Create your first user: When you first open the app, you will be prompted to log in. Since there are no users yet, you may need to use the registration endpoint or seed script (if available).
- Default Dev User:
admin@example.com/password(checkserver/scriptsif applicable).
- Default Dev User:
Connect a Provider: Go to Settings -> AI Providers and ensure you have at least one LLM provider configured (Gemini or OpenAI).
Start Chatting: Navigate to the Chat page and select an agent to start a new conversation!