This page is automatically synced from
docs-en/getting-started.md. Language: English | 中文
Installation and Startup
This guide summarizes installation, startup, Admin UI access, environment variables, and uninstallation.
Choose an Installation Path
| Scenario | Recommended path | Notes |
|---|---|---|
| Start capturing traffic, inspecting requests, and editing rules quickly | Desktop app | Download the .dmg or .msi from Releases. The bundled proxy backend and Web UI run together. |
| Use Bifrost from terminals, scripts, or CI | CLI | Use the one-line installer, Homebrew, or npm. |
| Hack on Bifrost itself | Build from source | Use ./install.sh or manually build the Rust/Web/Tauri artifacts. |
Install the CLI
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 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-installHomebrew on macOS
brew tap bifrost-proxy/bifrost
brew install bifrostnpm
npm i -g @bifrost-proxy/bifrostBuild from Source
Requirements: Rust 1.70+, Cargo, Node.js 22+, and pnpm.
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 --releaseManual Download
Download prebuilt binaries from GitHub Releases.
Install the Desktop App
The desktop app is built with Tauri. The installer bundles the Web UI and the bifrost proxy backend, so it is the easiest path for users who want local traffic debugging, rule editing, replay, and updates without starting from CLI commands.
Download the Latest Package Directly
Click the installer that matches your device. The page uses the current release naming rules to generate a direct download link.
macOS Apple SiliconM1 / M2 / M3 / M4
macOS IntelIntel Mac
Windowsx64 installer
Windows ARM64ARM installerPreparing current release links...
macOS Install
- Open the downloaded
.dmg. - Drag
Bifrost.apptoApplications. - Launch Bifrost from
Applicationsor Launchpad. - If macOS warns that the app was downloaded from the internet, confirm that you want to open it. If Gatekeeper blocks an unsigned build, allow it from
System Settings -> Privacy & Security.
Windows Install
- Double-click the downloaded
.msi. - Follow the installer.
- Launch
Bifrostfrom the Start menu. - If Windows SmartScreen warns about an unknown publisher, continue only after confirming the file came from the official
bifrost-proxy/bifrostGitHub Releases page.
First Launch Checklist
The desktop app starts the bundled bifrost backend inside the app and opens the local management interface. On first launch it checks and installs the Bifrost CA asynchronously; for HTTPS inspection, confirm that the CA is trusted by the system. The default data directory remains ~/.bifrost.
To make Bifrost available from terminals and AI coding tools after a desktop-first install, open Settings in the desktop app and click Install CLI & Skills in Desktop Proxy Core.
For the full desktop installation, update, uninstall, and source build guide, see desktop.md.
Verify Installation
command -v bifrost
bifrost --versionStart the Proxy
# 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 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
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
| 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
./uninstall.sh
./uninstall.sh --purge