Installation Guide
This guide will walk you through the process of installing and setting up Conduit on your system.
Prerequisites
Before you begin, ensure you have the following prerequisites installed:
- Docker (version 20.10.0 or higher)
- Docker Compose (version 2.0.0 or higher)
- For local development:
Option 1: Using Docker (Recommended)
The easiest way to get started with Conduit is using Docker and Docker Compose.
Step 1: Clone the Repository
git clone https://github.com/knnlabs/conduit.git
cd conduit
Step 2: Configure Environment Variables
Create a .env
file in the root directory with your configuration:
# Example .env file
CONDUIT_MASTER_KEY=your_secure_master_key
CONDUIT_HOST=0.0.0.0
CONDUIT_PORT=5000
CONDUIT_DATABASE_PATH=/data/conduit.db
CONDUIT_REDIS_ENABLED=true
CONDUIT_REDIS_CONNECTION=redis:6379
See the Environment Variables guide for a complete list of available options.
Step 3: Start Conduit Using Docker Compose
docker compose up -d
This command will start:
- Conduit HTTP API on port 5000
- Conduit Web UI on port 5001
- Redis cache server on port 6379
- SQLite database (persisted in a Docker volume)
Step 4: Verify Installation
Open your browser and navigate to http://localhost:5001
to access the Conduit Web UI.
Option 2: Manual Installation
For development purposes or custom deployments, you can install Conduit manually.
Step 1: Clone the Repository
git clone https://github.com/knnlabs/conduit.git
cd conduit
Step 2: Build the Solution
dotnet build
Step 3: Run the HTTP API
dotnet run --project ConduitLLM.Http
Step 4: Run the Web UI (in a separate terminal)
dotnet run --project ConduitLLM.WebUI
Initial Configuration
Once Conduit is running, you'll need to perform some initial configuration:
- Log in to the Web UI using the master key you configured
- Add provider credentials for the LLM services you plan to use
- Create model mappings to define which models are available
- Set up virtual keys for applications that will connect to Conduit
For detailed configuration steps, see the Configuration Guide.
Next Steps
- Quick Start Guide: Learn how to make your first request
- Configuration Guide: Detailed information about configuring Conduit
- Environment Variables: Reference for all available environment variables
- Virtual Keys: Learn how to create and manage virtual keys
Troubleshooting
If you encounter any issues during installation:
- Check the Common Issues page
- Review Docker logs:
docker compose logs -f
- For API issues:
docker compose logs -f conduit-api
- For UI issues:
docker compose logs -f conduit-ui
- Open an issue on the GitHub repository