Skip to content

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

ScenarioRecommended pathNotes
Start capturing traffic, inspecting requests, and editing rules quicklyDesktop appDownload the .dmg or .msi from Releases. The bundled proxy backend and Web UI run together.
Use Bifrost from terminals, scripts, or CICLIUse the one-line installer, Homebrew, or npm.
Hack on Bifrost itselfBuild from sourceUse ./install.sh or manually build the Rust/Web/Tauri artifacts.

Install the CLI

One-line Install

bash
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:

bash
# 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

Homebrew on macOS

bash
brew tap bifrost-proxy/bifrost
brew install bifrost

npm

bash
npm i -g @bifrost-proxy/bifrost

Build from Source

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

bash
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

Manual 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.

Preparing current release links...

macOS Install

  1. Open the downloaded .dmg.
  2. Drag Bifrost.app to Applications.
  3. Launch Bifrost from Applications or Launchpad.
  4. 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

  1. Double-click the downloaded .msi.
  2. Follow the installer.
  3. Launch Bifrost from the Start menu.
  4. If Windows SmartScreen warns about an unknown publisher, continue only after confirming the file came from the official bifrost-proxy/bifrost GitHub 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

bash
command -v bifrost
bifrost --version

Start the Proxy

bash
# 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.

Admin UI

After startup, open:

text
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

VariableDescriptionDefault
BIFROST_DATA_DIRData directory~/.bifrost
RUST_LOGLogging level and filtersinfo
WEB_PORTWeb UI development server port3000

Uninstall

bash
./uninstall.sh
./uninstall.sh --purge