{"id":45915604,"url":"https://github.com/bifrost-proxy/bifrost","last_synced_at":"2026-05-21T03:08:14.137Z","repository":{"id":341117619,"uuid":"1168971737","full_name":"bifrost-proxy/bifrost","owner":"bifrost-proxy","description":"Bifrost 是一个用 Rust 编写的高性能代理服务器，它提供强大的请求拦截、修改和规则配置能力，支持 TLS 解密、脚本扩展等高级功能，支持强大的模糊搜索，支持导入导出分享，支持一键重放请求。提供类似 postman 的请求管理和验证能力，无缝和代理能力集成。","archived":false,"fork":false,"pushed_at":"2026-04-22T16:31:06.000Z","size":14524,"stargazers_count":57,"open_issues_count":2,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-22T18:30:44.369Z","etag":null,"topics":["agent","ai-tools","bifrost-proxy","postman","proxy","proxy-server","rust","whistle"],"latest_commit_sha":null,"homepage":"https://bifrost-proxy.github.io/bifrost/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bifrost-proxy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-02-28T02:23:06.000Z","updated_at":"2026-04-22T15:04:40.000Z","dependencies_parsed_at":"2026-03-07T11:12:51.740Z","dependency_job_id":"a2878db2-e2d9-49be-ae3f-ff96f136aef4","html_url":"https://github.com/bifrost-proxy/bifrost","commit_stats":null,"previous_names":["bifrost-proxy/bifrost"],"tags_count":58,"template":false,"template_full_name":null,"purl":"pkg:github/bifrost-proxy/bifrost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bifrost-proxy%2Fbifrost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bifrost-proxy%2Fbifrost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bifrost-proxy%2Fbifrost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bifrost-proxy%2Fbifrost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bifrost-proxy","download_url":"https://codeload.github.com/bifrost-proxy/bifrost/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bifrost-proxy%2Fbifrost/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32291347,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T08:29:33.829Z","status":"ssl_error","status_checked_at":"2026-04-26T08:29:18.366Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","ai-tools","bifrost-proxy","postman","proxy","proxy-server","rust","whistle"],"created_at":"2026-02-28T07:40:47.331Z","updated_at":"2026-05-21T03:08:14.132Z","avatar_url":"https://github.com/bifrost-proxy.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bifrost\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003e高性能 HTTP/HTTPS/SOCKS5 代理服务器\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/bifrost-proxy/bifrost/actions\"\u003e\u003cimg src=\"https://github.com/bifrost-proxy/bifrost/workflows/CI/badge.svg\" alt=\"CI Status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/bifrost-proxy/bifrost/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/bifrost-proxy/bifrost\" alt=\"Release\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/bifrost-proxy/bifrost/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/downloads/bifrost-proxy/bifrost/total\" alt=\"Downloads\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/bifrost-proxy/bifrost/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003e [帮助文档](https://github.com/bifrost-proxy/bifrost/tree/main/docs)\n\nBifrost 是一个用 Rust 编写的高性能，AI 友好的代理服务器，灵感来源于 [Whistle](https://github.com/avwo/whistle)。它提供请求拦截、规则修改、TLS 拦截、脚本扩展、流量查看、请求重放以及 Web UI 管理能力。\n\n## 快速开始\n\n安装 CLI：\n\n方法一：使用脚本安装\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/bifrost-proxy/bifrost/main/install-binary.sh | bash\n```\n\n安装指定版本\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/bifrost-proxy/bifrost/main/install-binary.sh | bash -s -- --version v0.0.48-beta\n```\n\n方法二：使用 npm 安装\n\n```bash\nnpm i -g @bifrost-proxy/bifrost\n```\n\n更多安装方法：[`docs/getting-started.md`](docs/getting-started.md)\n\n启动代理：\n\n```bash\nbifrost start -d\n```\n\n启动后访问管理端：\n\n```text\nhttp://127.0.0.1:9900/_bifrost/\n```\n\n## 和AI集成\n```bash\nbifrost install-skill -y\n```\n\n## 特性说明\n\n![network.png](assets/network.png) \u003cimg width=\"1500\" height=\"783\" alt=\"image\" src=\"https://github.com/user-attachments/assets/44062a96-47f3-481b-a2b6-e1bda9b3fda9\" /\u003e\n![scripts.png](assets/scripts.png)\n![rules.png](assets/rules.png)\n![replay.png](assets/replay.png)\n![metrics.png](assets/metrics.png)\n\n- 高性能代理内核：基于 Tokio + Hyper，支持高并发与连接复用\n- 多协议支持：HTTP/1.1、HTTP/2、HTTP/3、HTTPS、SOCKS5、WebSocket、SSE、gRPC\n- TLS 拦截能力：支持 CA 证书生成、按域名动态签发证书、按规则选择拦截/透传，并可对单条上游 HTTPS 规则显式允许不安全证书\n- 规则引擎：支持路由、请求/响应改写、注入、延迟、限速、Mock、脚本处理\n- 管理界面：内置 Web UI，支持规则编辑、流量查看、脚本管理、请求重放\n- 资源风险告警：Performance 页与 `/_bifrost/api/system/memory` 会显示 body/ws 文件 writer 占用及接近句柄上限的告警状态\n- 脚本沙箱：基于 QuickJS，支持 `reqScript`、`resScript`、`decode`\n\n## 开发初始化\n\n克隆仓库后，先执行一次 Git hook 初始化：\n\n```bash\nbash scripts/setup-git-hooks.sh\n# 或\nmake setup\n```\n\n这会为当前仓库写入本地 `core.hooksPath=.githooks`，即使机器上配置了全局 `hooksPath`，后续 `git commit` 也会优先执行仓库内的 `.githooks/pre-commit`。默认 pre-commit 会检查工作区格式、桌面端 Tauri 格式，以及 `cargo clippy --workspace --all-targets --all-features -- -D warnings`。\n\n## 用不习惯 CLI？想要使用桌面端 APP？\n\n请直接到[releases](https://github.com/bifrost-proxy/bifrost/releases)中下载对应平台的桌面端程序\n\n## 基本用法摘要\n\n常见命令：\n\n```bash\n# 查看状态\nbifrost status\n\n# 停止服务\nbifrost stop\n\n# 管理端远程访问与鉴权（Web UI）\nbifrost admin remote status\nbifrost admin remote enable\nbifrost admin passwd\nbifrost admin revoke-all\n\n# 查看流量\nbifrost traffic list\nbifrost traffic search \"keyword\" --method POST --host api.openai.com --path /v1/responses\nbifrost search \"keyword\" --req-header\nbifrost search \"keyword\" --res-body\n\n# 添加规则\nbifrost rule add local-dev --content \"example.com host://127.0.0.1:3000\"\n```\n\n搜索命令补充说明：\n\n- `bifrost search` 与 `bifrost traffic search` 等价\n- 基础过滤支持 `--method`、`--host`、`--path`、`--status`、`--protocol`\n- 搜索范围支持 `--url`、`--req-header`、`--res-header`、`--req-body`、`--res-body`\n- 兼容别名：`--headers` 会同时搜索请求头和响应头，`--body` 会同时搜索请求体和响应体\n\n规则示例：\n\n```txt\nexample.com host://127.0.0.1:3000\napi.example.com reqHeaders://x-debug=1\nchatgpt.com http3://\ninternal-api.example.test https://10.37.102.138:8080 upstreamUnsafeSsl://true\n```\n\n## 文档索引\n\n- 文档总览：[`docs/README.md`](docs/README.md)\n- 项目概览：[`docs/overview.md`](docs/overview.md)\n- 安装与启动：[`docs/getting-started.md`](docs/getting-started.md)\n- CLI 详细命令：[`docs/cli.md`](docs/cli.md)\n- 桌面版安装与构建：[`docs/desktop.md`](docs/desktop.md)\n- 规则语法：[`docs/rule.md`](docs/rule.md)\n- 操作符说明：[`docs/operation.md`](docs/operation.md)\n- 匹配模式：[`docs/pattern.md`](docs/pattern.md)\n- 规则协议手册：[`docs/rules/README.md`](docs/rules/README.md)\n- Scripts 模块与脚本开发：[`docs/scripts.md`](docs/scripts.md)\n- Values 使用说明：[`docs/values.md`](docs/values.md)\n- 请求重放说明：[`docs/replay.md`](docs/replay.md)\n- 项目结构与模块说明：[`docs/architecture.md`](docs/architecture.md)\n- Agent Skill 安装说明：[`docs/agent-skill.md`](docs/agent-skill.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbifrost-proxy%2Fbifrost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbifrost-proxy%2Fbifrost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbifrost-proxy%2Fbifrost/lists"}