Skip to content

Installation and Startup

This page is automatically synced from docs-en/getting-started.md. Language: English | 中文

This guide summarizes installation, startup, Admin UI access, environment variables, and uninstallation.

Terminal window
curl -fsSL https://raw.githubusercontent.com/bifrost-proxy/bifrost/main/install-binary.sh | bash

The script installs the bifrost binary and, by default, also performs first-run setup: it installs and trusts the Bifrost CA certificate, installs supported Bifrost AI skills, and starts Bifrost as a background service. Bash and PowerShell installers probe GitHub direct access and built-in mirrors, then use the fastest available release source. In restricted networks, set BIFROST_GITHUB_MIRROR or tune BIFROST_MIRROR_PROBE_TIMEOUT.

Common options:

Terminal window
# Install into a custom directory
curl -fsSL https://raw.githubusercontent.com/bifrost-proxy/bifrost/main/install-binary.sh | bash -s -- --dir /usr/local/bin
# Install a specific version
curl -fsSL https://raw.githubusercontent.com/bifrost-proxy/bifrost/main/install-binary.sh | bash -s -- --version v0.2.0
# Install only the binary; skip CA, skills, and service startup
curl -fsSL https://raw.githubusercontent.com/bifrost-proxy/bifrost/main/install-binary.sh | bash -s -- --no-post-install
Terminal window
brew tap bifrost-proxy/bifrost
brew install bifrost
Terminal window
npm i -g @bifrost-proxy/bifrost

Requirements: Rust 1.70+, Cargo, Node.js 22+, and pnpm.

Terminal window
git clone https://github.com/bifrost-proxy/bifrost.git
cd bifrost
./install.sh
# Or build manually
cd web && pnpm install && pnpm build && cd ..
cargo build --release

Download prebuilt binaries from GitHub Releases.

Terminal window
command -v bifrost
bifrost --version
Terminal window
# Start in the background. Default listener: 0.0.0.0:9900
bifrost start -d
# Custom port and host
bifrost -p 9000 -H 127.0.0.1 start
# Enable HTTP and SOCKS5
bifrost -p 9900 --socks5-port 1080 start
# Intercept TLS by domain
bifrost start --intercept-include "*.api.local"
# Foreground mode for live logs
bifrost start

bifrost start -d starts Bifrost as a background service and enables the system proxy by default, so browsers and desktop apps can enter Bifrost without extra configuration. TLS interception is opt-in; prefer domain allowlists, app allowlists, or rule-level tlsIntercept:// instead of global interception. --no-system-proxy is for CI, test sandboxes, or explicit diagnostics where you do not want Bifrost to change system networking; it is not the normal first-run path.

After startup, open:

http://127.0.0.1:9900/_bifrost/

Common API roots include /_bifrost/api/rules/*, /_bifrost/api/values/*, /_bifrost/api/traffic/*, /_bifrost/api/scripts/*, and /_bifrost/api/replay/*.

VariableDescriptionDefault
BIFROST_DATA_DIRData directory~/.bifrost
RUST_LOGLogging level and filtersinfo
WEB_PORTWeb UI development server port3000
Terminal window
./uninstall.sh
./uninstall.sh --purge