Installation and Startup
This page is automatically synced from
docs-en/getting-started.md. Language: English | 中文
Installation and Startup
Section titled “Installation and Startup”This guide summarizes installation, startup, Admin UI access, environment variables, and uninstallation.
Install the CLI
Section titled “Install the CLI”One-line Install
Section titled “One-line Install”curl -fsSL https://raw.githubusercontent.com/bifrost-proxy/bifrost/main/install-binary.sh | bashThe 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:
# Install into a custom directorycurl -fsSL https://raw.githubusercontent.com/bifrost-proxy/bifrost/main/install-binary.sh | bash -s -- --dir /usr/local/bin
# Install a specific versioncurl -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 startupcurl -fsSL https://raw.githubusercontent.com/bifrost-proxy/bifrost/main/install-binary.sh | bash -s -- --no-post-installHomebrew on macOS
Section titled “Homebrew on macOS”brew tap bifrost-proxy/bifrostbrew install bifrostnpm i -g @bifrost-proxy/bifrostBuild from Source
Section titled “Build from Source”Requirements: Rust 1.70+, Cargo, Node.js 22+, and pnpm.
git clone https://github.com/bifrost-proxy/bifrost.gitcd bifrost./install.sh
# Or build manuallycd web && pnpm install && pnpm build && cd ..cargo build --releaseManual Download
Section titled “Manual Download”Download prebuilt binaries from GitHub Releases.
Verify Installation
Section titled “Verify Installation”command -v bifrostbifrost --versionStart the Proxy
Section titled “Start the Proxy”# Start in the background. Default listener: 0.0.0.0:9900bifrost start -d
# Custom port and hostbifrost -p 9000 -H 127.0.0.1 start
# Enable HTTP and SOCKS5bifrost -p 9900 --socks5-port 1080 start
# Intercept TLS by domainbifrost start --intercept-include "*.api.local"
# Foreground mode for live logsbifrost startbifrost 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.
Admin UI
Section titled “Admin UI”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/*.
Environment Variables
Section titled “Environment Variables”| Variable | Description | Default |
|---|---|---|
BIFROST_DATA_DIR | Data directory | ~/.bifrost |
RUST_LOG | Logging level and filters | info |
WEB_PORT | Web UI development server port | 3000 |
Uninstall
Section titled “Uninstall”./uninstall.sh./uninstall.sh --purge