Getting Started with Bifrost
Getting Started with Bifrost
Section titled “Getting Started with Bifrost”This guide will help you get Bifrost up and running quickly.
Prerequisites
Section titled “Prerequisites”- Go 1.24+ (for building from source)
- Docker (optional, for containerized deployment)
Installation
Section titled “Installation”From Binary
Section titled “From Binary”Download the latest release from the releases page.
# Linux (amd64)curl -LO https://github.com/rennerdo30/bifrost-proxy/releases/latest/download/bifrost_linux_amd64.tar.gztar -xzf bifrost_linux_amd64.tar.gz
# macOS (arm64)curl -LO https://github.com/rennerdo30/bifrost-proxy/releases/latest/download/bifrost_darwin_arm64.tar.gztar -xzf bifrost_darwin_arm64.tar.gzFrom Source
Section titled “From Source”git clone https://github.com/rennerdo30/bifrost-proxy.gitcd bifrostmake buildWith Docker
Section titled “With Docker”docker pull ghcr.io/bifrost-proxy/bifrost/server:latestdocker pull ghcr.io/bifrost-proxy/bifrost/client:latestQuick Start
Section titled “Quick Start”Server Setup
Section titled “Server Setup”- Create a configuration file
server-config.yaml:
server: http: listen: ":7080" socks5: listen: ":7180"
backends: - name: direct type: direct enabled: true
routes: - domains: ["*"] backend: direct
metrics: enabled: true listen: ":7090"- Start the server:
./bifrost-server -c server-config.yaml- Verify it’s running:
curl http://localhost:7090/metricsClient Setup
Section titled “Client Setup”Option 1: Generate Config from CLI
Section titled “Option 1: Generate Config from CLI”# Generate a config file with your server address./bifrost-client config init -s your-server:7080
# Or with custom options./bifrost-client config init \ -s your-server:7080 \ -p socks5 \ --http-listen 127.0.0.1:8888 \ -o my-config.yamlOption 2: Generate Config from Web Dashboard
Section titled “Option 2: Generate Config from Web Dashboard”- Open your server’s web dashboard (e.g.,
http://your-server:7081) - Click “Config Generator” tab
- Fill in the form and download the configuration
Option 3: Create Config Manually
Section titled “Option 3: Create Config Manually”Create a configuration file client-config.yaml:
proxy: http: listen: "127.0.0.1:7380"
server: address: "your-server:7080"
routes: - domains: ["*"] action: serverStart the Client
Section titled “Start the Client”./bifrost-client -c client-config.yamlConfigure Your Applications
Section titled “Configure Your Applications”See the Setup Guide tab in the web dashboard for detailed instructions, or use these common methods:
Browser:
- Configure your browser to use
127.0.0.1:7380as HTTP proxy
Environment Variables:
export HTTP_PROXY=http://127.0.0.1:7380export HTTPS_PROXY=http://127.0.0.1:7380Command Line:
curl -x http://127.0.0.1:7380 https://example.comTesting the Setup
Section titled “Testing the Setup”Test with curl:
# HTTP proxycurl -x http://127.0.0.1:7380 http://httpbin.org/ip
# SOCKS5 proxycurl --socks5 127.0.0.1:7381 http://httpbin.org/ipNext Steps
Section titled “Next Steps”- Configuration Guide - Full configuration reference
- Backend Guide - Configure WireGuard, OpenVPN, and proxy backends
- Authentication Guide - Set up authentication
- API Reference - REST API documentation