bifrost-proxy/bifrost
About
Bifrost 是一个用 Rust 编写的高性能、AI 友好的代理服务器,它提供强大的请求拦截、修改和规则配置能力,支持 TLS 解密、脚本扩展等高级功能,支持强大的模糊搜索,支持导入导出分享,支持一键重放请求,支持Coding Agent 自主管理。提供类似 postman 的请求管理和验证能力,无缝和代理能力集成。
Systems & InfrastructureMeasured star growth
- in 24h
- Collecting history
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
OriginalBifrost
High-performance HTTP/HTTPS/SOCKS5 proxy server
Language: English | 中文
Bifrost is a high-performance, AI-friendly proxy server written in Rust and inspired by Whistle. It provides request interception, rule-based modification, TLS MITM, script extensions, traffic inspection, request replay, and Web UI management.
Quick Start
Install the CLI and, on macOS and Windows, the desktop app with the same script:
macOS / Linux / Git Bash:
curl -fsSL https://raw.githubusercontent.com/bifrost-proxy/bifrost/main/install-binary.sh | bash
Windows PowerShell:
irm https://raw.githubusercontent.com/bifrost-proxy/bifrost/main/install-binary.ps1 | iex
The installer always installs the CLI and automatically installs the matching desktop app on macOS and Windows; platforms without a desktop release, such as Linux, remain CLI-only. Use --no-desktop in Bash/Git Bash or set BIFROST_INSTALL_AUTO_DESKTOP=0 in Bash/PowerShell for a CLI-only install. The installer can also install and trust the CA certificate, install Bifrost AI skills, and start Bifrost as a background service. Bash and PowerShell installers probe GitHub and built-in mirrors, then use the fastest available release source. Use BIFROST_GITHUB_MIRROR when your network needs a preferred mirror. On Windows, the PowerShell installer adds the install directory to both the current session and the Windows User Path; the Git Bash installer also updates the Windows User Path, so newly opened PowerShell/CMD windows can run bifrost directly.
Install a specific version:
macOS / Linux / Git Bash:
curl -fsSL https://raw.githubusercontent.com/bifrost-proxy/bifrost/main/install-binary.sh | bash -s -- --version v0.0.96
Windows PowerShell:
$installer = irm https://raw.githubusercontent.com/bifrost-proxy/bifrost/main/install-binary.ps1
& ([scriptblock]::Create($installer)) -Version v0.0.96
Install with npm:
npm i -g @bifrost-proxy/bifrost
More installation options: docs-en/getting-started.md
Check the proxy:
bifrost status
Open the Admin UI after startup:
http://127.0.0.1:9900/_bifrost/
AI Integration
bifrost install-skill -y
ASR Daily Agent can fan out daily reports into independent questions using explicitly configured Codex, Traex, Claude Code or custom CLI Runners. ChatGPT Web Runner has been removed; see the migration guide.
See design/asr-daily-agent-pipeline.md for the complete agent graph, research manifest, and failure boundaries.
Features

- High-performance proxy core based on Tokio and Hyper.
- Multi-protocol support: HTTP/1.1, HTTP/2, HTTP/3, HTTPS, SOCKS5, WebSocket, SSE, and gRPC.
- TLS interception with CA generation, dynamic certificates, rule-level intercept or passthrough, and explicit unsafe upstream certificate allowance per rule.
- Rules engine for routing, request/response rewriting, injection, delay, throttling, mock responses, and scripts.
- Built-in Web UI for rule editing, traffic inspection, script management, and request replay.
- Breakpoint support for pausing matched HTTP requests or responses, editing headers/body, then resuming.
- Resource risk warnings for body/ws file writers and file-handle pressure in the Performance page and
/_bifrost/api/system/memory. - QuickJS-based script sandbox with
reqScript,resScript, anddecodesupport.
Development Setup
Initialize repository hooks after cloning:
bash scripts/setup-git-hooks.sh
# or
make setup
This sets core.hooksPath=.githooks for the repository. The default pre-commit hook checks workspace formatting, desktop Tauri formatting, and cargo clippy --workspace --all-targets --all-features -- -D warnings.
Prefer the Desktop App?
Use the desktop app when you want traffic capture, rule editing, replay, and updates without memorizing CLI commands:
- Open GitHub Releases.
- Choose the latest release and expand
Assets. - On macOS, download the
.dmgthat matches your chip:aarch64-apple-darwinfor Apple Silicon orx86_64-apple-darwinfor Intel. - On Windows, download the
.msi:x86_64-pc-windows-msvcfor most PCs oraarch64-pc-windows-msvcfor ARM devices. - On macOS, open the
.dmgand dragBifrost.apptoApplications. On Windows, double-click the.msiand follow the installer. - Launch Bifrost and wait for the bundled proxy backend to start. The first launch checks and installs the Bifrost CA asynchronously.
To make the CLI available from a desktop-first install, open Settings in the desktop app and click Install CLI & Skills in Desktop Proxy Core. See docs-en/desktop.md for the full guide.
Common Commands
# Status and lifecycle
bifrost status
bifrost stop
bifrost restart
# Admin remote access and authentication
bifrost admin remote status
bifrost admin remote enable
bifrost admin passwd
bifrost admin revoke-all
# Traffic inspection
bifrost traffic list
bifrost traffic search "keyword" --method POST --host api.openai.com --path /v1/responses
bifrost search "keyword" --req-header
bifrost search "keyword" --res-body
# Add a rule
bifrost rule add local-dev --content "example.com host://127.0.0.1:3000"
Traffic list/search defaults to newest request time first (timestamp DESC, sequence DESC); list --direction forward explicitly uses ascending order. --path is a literal substring filter, not a glob. Search --limit defaults to 50, explicit --max-results overrides it, and --max-scan independently limits scans. For filter-only automation, use bifrost search --req-json '$.user.id=42' --format json to avoid the terminal TUI. JSONPath roots/arrays, case-insensitive header equality, time windows, and output formats are detailed in the CLI reference.
Documentation Index
- Documentation overview:
docs-en/README.md - Project overview:
docs-en/overview.md - Installation and startup:
docs-en/getting-started.md - CLI command reference:
docs-en/cli.md - Desktop installation and build:
docs-en/desktop.md - Rule syntax:
docs-en/rule.md - Operation reference:
docs-en/operation.md - Matching patterns:
docs-en/pattern.md - Rules protocol reference:
docs-en/rules/README.md - Scripts module and script development:
docs-en/scripts.md - Values guide:
docs-en/values.md - Request replay guide:
docs-en/replay.md - Breakpoint user guide:
docs-en/breakpoint.md - Project structure and modules:
docs-en/architecture.md - Agent Skill installation guide:
docs-en/agent-skill.md
Explore related projects
Loading…