能力标签
brick-SR1开源AI工具
🛠
AI工具

brick-SR1开源AI工具

基于 Jupyter Notebook · 开源免费,本地部署,数据完全自主可控
英文名:brick-SR1
⭐ 62 Stars 🍴 3 Forks 💻 Jupyter Notebook 📄 Apache-2.0 🏷 AI 7.5分
7.5AI 综合评分
installableclaude-codecodexllmopen-modelsroutingjupyter notebook
✦ AI Skill Hub 推荐

经 AI Skill Hub 精选评估,brick-SR1开源AI工具 获评「推荐使用」。这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。

📚 深度解析

brick-SR1开源AI工具 是一款基于 Jupyter 的开源工具,在 GitHub 上收获 0k+ Star,是installable、claude-code、codex、llm领域中的优质开源项目。开源工具的最大优势在于代码完全透明,你可以审计每一行代码的安全性,也可以根据自身需求进行二次开发和定制。

**为什么要使用开源工具而非商业 SaaS?**
对于个人开发者和有隐私需求的用户,本地部署的开源工具意味着数据不离本机,不受第三方服务商的数据政策约束。同时,开源工具通常没有使用次数限制和月度费用,一次安装即可长期使用,对于高频使用场景的总拥有成本(TCO)远低于订阅制商业工具。

**安装与环境准备**
brick-SR1开源AI工具 依赖 Jupyter 运行环境。建议通过 pyenv(Python)或 nvm(Node.js)管理 Jupyter 版本,避免全局环境污染。对于新手用户,推荐先创建虚拟环境(python -m venv venv && source venv/bin/activate),再安装依赖,这样即使出现问题也可以随时删除虚拟环境重新开始,不影响系统稳定性。

**社区与维护**
GitHub Issue 和 Discussion 是获取帮助的最快渠道。在提问前建议先检查 Closed Issues(已关闭的问题),大多数常见问题都已有解答。遇到 Bug 时,提供 pip list 的输出、完整错误堆栈和最小可复现示例,能显著提高开发者响应速度。AI Skill Hub 将持续追踪 brick-SR1开源AI工具 的版本更新,及时通知重要功能变化。

📋 工具概览

brick是一款基于复杂性和能力提取的智能AI模型路由器,开源且易于使用,突出其在AI模型管理方面的价值。

brick-SR1开源AI工具 是一款基于 Jupyter Notebook 开发的开源工具,专注于 installable、claude-code、codex 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

GitHub Stars
⭐ 62
开发语言
Jupyter Notebook
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
Apache-2.0
AI 综合评分
7.5 分
工具类型
AI工具
Forks
3

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

brick是一款基于复杂性和能力提取的智能AI模型路由器,开源且易于使用,突出其在AI模型管理方面的价值。

brick-SR1开源AI工具 是一款基于 Jupyter Notebook 开发的开源工具,专注于 installable、claude-code、codex 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

📌 核心特色
  • 开源免费,支持本地部署,数据完全自主可控
  • 活跃的 GitHub 开源社区,持续迭代更新
  • 提供详细文档和使用示例,新手友好
  • 支持自定义配置,灵活适配不同使用环境
  • 可作为基础组件集成进现有技术栈或进行二次开发
🎯 主要使用场景
  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 克隆仓库
git clone https://github.com/regolo-ai/brick-SR1
cd brick-SR1

# 查看安装说明
cat README.md

# 按 README 完成环境依赖安装后即可使用
📋 安装步骤说明
  1. 访问 GitHub 仓库页面
  2. 按照 README 文档完成依赖安装
  3. 根据系统环境完成初始化配置
  4. 参考官方示例或文档开始使用
  5. 遇到问题可在 GitHub Issues 中查找解答
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 查看帮助
brick-sr1 --help

# 基本运行
brick-sr1 [options] <input>

# 详细使用说明请查阅文档
# https://github.com/regolo-ai/brick-SR1
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# brick-sr1 配置说明
# 查看配置选项
brick-sr1 --config-example > config.yml

# 常见配置项
# output_dir: ./output
# log_level: info
# workers: 4

# 环境变量(覆盖配置文件)
export BRICK_SR1_CONFIG="/path/to/config.yml"
📑 README 深度解析 真实文档 完整度 84/100 含工作流图 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

简介

<img width="1640" height="393" alt="Brick (6)" src="https://github.com/user-attachments/assets/4b9dc94a-4767-4d0c-80e7-73f77517d8ce" />

🗂️ What's in the repo

A monorepo to run, use, and reproduce every result in the Brick paper.

ComponentPathPurpose
**Router** (Go + Rust)[apps/router/](apps/router/)OpenAI-format gateway: capability + complexity classifiers, dispatch to the best backend
**CLI** (brick)[apps/cli/](apps/cli/)TypeScript/oclif companion to self-host in one command
**Training**[packages/training/](packages/training/)ModernBERT capability sweep + complexity LoRA recipes
**Evaluation**[packages/evals/](packages/evals/)Dataset A pipeline + 3-judge majority-vote panel
**Baselines**[packages/evals/baselines/](packages/evals/baselines/)Zero-shot RouteLLM, FrugalGPT, Cascade comparisons
**Paper**[docs/paper/](docs/paper/)LaTeX source, figures, compiled PDF

<details> <summary>Full directory tree</summary>

brick-SR1/
├── apps/
│   ├── router/                 # Go + Rust gateway (was vLLM Spatial Router fork)
│   │   ├── src/spatial-router/ #   Go (HTTP proxy, routing pipeline)
│   │   ├── candle-binding/     #   Rust (ML embeddings via candle)
│   │   ├── ml-binding/         #   Rust (Linfa classical ML)
│   │   ├── nlp-binding/        #   Rust (BM25 + n-gram)
│   │   └── Dockerfile
│   └── cli/                    # @regoloai/brick CLI (TypeScript + oclif + ink)
├── packages/
│   ├── training/               # Dataset B pipeline + ModernBERT/complexity training
│   ├── evals/                  # Dataset A graders + 00..140 pipeline + baselines/
│   └── datasets/               # HF download recipes (no data in git)
├── docs/
│   ├── paper/                  # paper.tex + figures + compiled PDF
│   └── quickstart/             # quick.md, serve.md, eval.md
├── deploy/                     # docker-compose, addons, Windows installer
├── config.yaml                 # router runtime config
├── package.json / pyproject.toml  # npm + uv workspace roots
└── Makefile                    # build / test / lint / docker-build / release

</details>

---

Setup

brick profile edit claude  # configure providers, models, routing, and thinking
brick start claude         # start the router and wire Claude Code

Then:

1. Open a new Claude Code session (your current session is unaffected). 2. In the /model picker, select brick-claude (it sits alongside the built-in opus/sonnet/haiku aliases, which it does not replace).

To revert:

brick stop claude   # stop the router and restore future Claude Code launches
brick clear claude  # remove the router runtime while preserving the profile

Brick runs one profile at a time. Stop or clear the active profile before starting another one.

Codex setup

brick profile edit codex  # configure the official Codex profile
brick start codex         # start the router and connect Codex

This materializes a dedicated Codex profile (the OpenAI-pool skill router) and adds a managed provider pointing at the local router. Start a new Codex session and it now routes through Brick.

To revert:

brick stop codex     # detaches future Codex launches from Brick, keeps the current thread's Responses bridge
brick clear codex    # remove the runtime and terminate that bridge

Codex exposes the same routing modes as Claude Code. Configure the model pool, model routing, autonomous reasoning_effort, and cache-aware routing in the profile editor; restart an already-running router to apply changes:

brick profile edit codex
brick restart codex
brick status codex           # live dashboard in an interactive terminal
brick status codex --static  # one static snapshot

brick status codex reports wiring, router reachability, and per-model routing and thinking-mode counts. It does not run inference or probe upstream authentication.

The native Codex Responses integration keeps tools in the original session and isolates provider credentials. Official Codex tool cycles have passed against both the subscription upstream and Regolo's Chat Completions endpoint.

---

⚡ Quickstart

The fastest working path today is the CLI, which self-hosts the router and wires it into Claude Code for you. Requires Node 20 or 22+ and Docker.

git clone https://github.com/regolo-ai/brick-SR1.git
cd brick-SR1/apps/cli && npm install && npm run build && npm link

brick profile edit claude  # configure the official Claude profile
brick start claude         # start the router and connect Claude Code

Then open a new Claude Code session and pick brick-claude in the /model picker. Every request now routes to haiku / sonnet / opus by capability and complexity. See Brick + Claude Code for modes, the effort picker, and the live brick status claude dashboard.

<details> <summary><b>Prefer a raw OpenAI-compatible gateway (no CLI)?</b></summary>

The image is published on Docker Hub (public, no login required). Run the gateway directly:

docker run --rm -p 18000:18000 \
  -e REGOLO_API_KEY=$REGOLO_API_KEY \
  docker.io/regolo/brick:latest      # or pin a version: docker.io/regolo/brick:2.2.0

Then call it like any OpenAI endpoint, just set "model": "brick":

curl http://localhost:18000/v1/chat/completions \
  -H "Authorization: Bearer $REGOLO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"brick","messages":[{"role":"user","content":"Prove that sqrt(2) is irrational"}]}'

The x-selected-model response header tells you which backend Brick picked. That math prompt routes to a reasoning model; "Hello" routes to the cheapest one.

Until then, brick start <profile> (from the CLI above) runs the same router locally, syncing skill vectors, starting the container, and connecting the harness for official profiles.

</details>

---

Configuration: the profile editor

brick profile edit claude opens the unified editor for the Claude profile.

brick profile edit claude
brick restart claude  # apply changes when the router is already running

The interactive menu has five top-level entries; each one shows its current value inline. When the router is running, apply edits with `brick restart claude`; no Claude Code session restart is required:

- Providers — backend endpoints in the pool (Regolo, Anthropic, local servers, ...) and their credentials. Secrets are stored in the profile .env, never in the YAML. - Models — the Claude models Brick may route to, plus the allowed thinking modes per model. Pick which of haiku / sonnet / opus (and the Anthropic point releases you have access to) are in play. The skill-vector router only ever picks from this pool; a difficulty fallback map covers the case where the skill router is off. - Thinking modes — the per-model allowed reasoning efforts (off / low / medium / high / xhigh / max). - Cache-aware routing — how Brick handles the prompt-cache invalidation that follows a mid-conversation model switch (see below). - Advanced — server port, complexity service, legacy classifier, multimodal preprocessing, and plugins.

Use the editor to configure context-awareness (the last K turns, default `K = 8`), the local or hosted complexity classifier, Claude Code subagent routing, cache-aware routing, providers, models, and allowed thinking modes. Restart the profile after changes made while it is running.

Cache-aware routing

Switching models mid-conversation invalidates the prompt cache: each provider's KV cache is per-model and opaque, so the new model has to reprocess the whole context at full input price. This setting picks how Brick handles that:

- off — per-request routing, no cross-turn memory. The default. - sticky — keep a conversation on its current model unless switching is actually worth it: downswitching to a cheaper model is always free, upswitching only happens when the estimated quality gain clears the cost of re-priming the cache. See docs/proof/sticky-savings.md for measured savings on real traffic. - smartsqueeze — the opposite tack: instead of avoiding switches, make them cheap. Same cache-aware hysteresis as sticky, but when a switch is taken it compacts the forwarded context (clearing older tool_result blocks, keeping recent turns raw) so the new model reprocesses a small prefix instead of the full one. Deterministic and model-agnostic (works across providers, not just Anthropic), never touches the system prompt or first user turn, and only fires on a switch (a warm cache is never disturbed). Ships shadow-first (compact_shadow_only: true measures the saving without changing what is served) so you can quantify the win before turning it on.

4. Understand the generated `config.yaml`

The exact YAML can contain more fields, but these are the blocks that matter for a standalone setup:

model:
  name: brick
  description: Virtual multimodal routing model
server_port: 8000

default_model: qwen3.5-122b

providers:
  regolo:
    type: openai_compatible
    base_url: https://api.regolo.ai/v1

provider_profiles:
  regolo:
    type: openai_compatible
    base_url: https://api.regolo.ai/v1
provider_endpoints:
  - name: regolo
    provider_profile: regolo
    weight: 1

model_config:
  qwen3.5-122b:
    preferred_endpoints: [regolo]
    param_size: 122b
    reasoning_family: qwen3

complexity_service:
  enabled: true
  protocol: openai
  base_url: https://api.regolo.ai
  model_name: brick-complexity-pro
  bearer_token: ${REGOLO_API_KEY}
  timeout_seconds: 8
  auto_spawn: false

skill_router:
  enabled: true
  dynamic_effort: true
  capabilities: [coding, creative_synthesis, instruction_following, math_reasoning, planning_agentic, world_knowledge]
  capability_model:
    model_id: models/modernbert-capability-classifier
    repo_id: regolo/modernbert-capability-classifier
    use_cpu: true
  complexity_model:
    model_id: brick-complexity-pro
    base_model_id: brick-complexity-pro
    base_url: https://api.regolo.ai
    timeout_seconds: 8
    auto_spawn: false
  math:
    routing_preference: 0
  models:
    - model: qwen3.5-122b
      skill_vector: [0.62, 0.48, 0.70, 0.58, 0.66, 0.78]
      skill_source: benchmark
      skill_confidence: [medium, low, medium, low, medium, high]
      cost_weight: 0.6
      use_reasoning: true
  active_models: [qwen3.5-122b]
  keyword_rules: []

brick:
  enabled: true
  stt_model: faster-whisper-large-v3
  stt_endpoint: https://api.regolo.ai/v1/audio/transcriptions
  ocr_model: deepseek-ocr-2
  ocr_endpoint: https://api.regolo.ai/v1/chat/completions
  vision_model: qwen3.5-122b
  vision_endpoint: https://api.regolo.ai/v1/chat/completions
  ocr_min_text_length: 10

Providers and model endpoints

providers describes a backend in the simplest form. provider_profiles gives it a reusable named profile, while provider_endpoints attaches that profile to the router with a weight. A model's model_config.<id>.preferred_endpoints determines where Brick may send it.

For a custom OpenAI-compatible server:

providers:
  local:
    type: openai_compatible
    base_url: http://host.docker.internal:11434/v1
provider_profiles:
  local:
    type: openai_compatible
    base_url: http://host.docker.internal:11434/v1
provider_endpoints:
  - name: local
    provider_profile: local
    weight: 1
model_config:
  llama3.1:
    preferred_endpoints: [local]
    param_size: 8b

The API key belongs in .env (for example OPENAI_API_KEY=...), not in config.yaml. brick add provider <id> and `brick add model <id> --provider <id>` are convenient for adding these entries after initialization.

skill_router: the routing pool

This is the local Brick router. capabilities fixes the six dimensions used for both prompts and models. Each models entry must keep the same vector order. skill_vector is the measured capability vector; cost_weight is relative cost and controls the cost penalty; use_reasoning and reasoning_effort describe how to request reasoning from that backend. skill_source and skill_confidence record provenance, so a hand-edited or measured vector remains auditable.

active_models is the eligible subset. Removing a model from it does not delete its model_config or skill-card. default_model is the fallback model and should belong to this pool.

math.routing_preference is the continuous cost/quality knob from -1 to 1: negative values favor economy, positive values favor quality, and 0 is balanced. The wizard exposes the same idea as eco, lite, mid, pro, and max.

dynamic_effort: true lets Brick derive reasoning effort from the request's complexity. Set it to false when the client should control effort itself. The separate brick.use_model_routing flag can disable model selection and pin traffic to brick.fixed_model.

Keyword rules

Keyword rules are evaluated before the normal skill-distance decision:

skill_router:
  keyword_rules:
    - name: force_coder
      mode: override
      model: qwen3.5-122b
      importance: 10
      operator: OR
      keywords: [debug, refactor, compile]
      case_sensitive: false
    - name: coding_bias
      mode: bias
      capability: coding
      importance: 8
      operator: OR
      keywords: [python, rust, sql]
      case_sensitive: false

override forces a model when the keywords match (subject to that model being available). bias nudges the capability score without pinning a model. importance resolves competing rules; higher values win.

Classifier modes and Docker topology

With api, complexity_service points to Regolo's hosted brick-complexity-pro, .env contains REGOLO_API_KEY, and Compose runs only the router. With local, the YAML points to the classifier service and Compose adds the Qwen3.5-0.8B sidecar plus BRICK_CLASSIFIER_TOKEN. Local mode avoids hosted classifier calls but needs more memory and is slower on CPU.

The capability classifier (capability_model) is separate: it maps the prompt into the six capability dimensions. The complexity classifier (complexity_service / complexity_model) labels the request easy, medium, or hard. If either service is unavailable, Brick keeps the gateway alive and falls back conservatively rather than turning the endpoint into a second client API.

Multimodal preprocessing

The brick block is the fallback path for images and audio. If a selected model advertises native support, Brick forwards the raw modality. Otherwise it uses the configured STT, OCR, or vision endpoint to turn the input into text before routing. ocr_min_text_length controls when OCR output is considered sufficient.

One Query, One Endpoint, Every LLM on Earth

Brick is a Mixture-of-Models (MoM) routing gateway. It reads each prompt's capability and complexity, then routes it to the best backend in a pool of open- and closed-weight LLMs, matching the strongest single model's quality at a fraction of its cost. No cascades. No wasted calls. Drop-in model: "brick".

CI Release License Last commit Stars Issues

Go Rust Python OpenAI compatible Models on HF

When to use Brick · Quickstart · Why Brick · Claude Code · Codex · FAQ · Benchmarks · How it works · Paper

</div>

---

3. Call Brick like an OpenAI endpoint

Use the virtual model name brick; the selected backend is returned in the x-selected-model response header.

curl http://127.0.0.1:8000/v1/chat/completions \
  -H "Authorization: Bearer $REGOLO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"brick","messages":[{"role":"user","content":"Prove that sqrt(2) is irrational"}]}'

For scripts and quick checks:

brick generate "Summarize the trade-offs between REST and GraphQL"
brick route "Prove that sqrt(2) is irrational"       # route and make a small completion
brick route "..." --no-generate --json              # routing/latency data as JSON
brick chat                                             # interactive terminal chat

generate prints only the assistant answer. chat is an interactive TUI. route is useful when tuning the pool: it reports the selected model, applied thinking mode, HTTP status, and latency; --repeat N shows min/median/max.

🧱 Brick 3.0 workflow

Brick 3.0 stores independent profiles under ~/.brick/profiles. Profile names are explicit for every lifecycle operation.

brick profile create work
brick profile edit work
brick profile show work
brick profile list

brick start work
brick restart work
brick stop work
brick clear work
brick update

clear removes containers and runtime state while preserving profile configuration, .env, managed harness assets, and volumes. For Codex, `brick stop codex` restores future launches to vanilla Codex while preserving the current thread's local Responses bridge; brick clear codex also terminates that bridge. update --cli, update --router, update --profile <name>, and -y are available for targeted or unattended updates.

skill_vectors.csv is the only authoritative skill-vector source. Brick refreshes it during profile lifecycle commands and caches a private copy at ~/.brick/cache/skill_vectors.csv for network outages. The six canonical capabilities are coding, creative_synthesis, instruction_following, math_reasoning, planning_agentic, and world_knowledge.

The official claude and codex profiles are materialized automatically. They begin dormant, without bundled vectors; select models with `brick profile edit claude or brick profile edit codex` before starting them. Starting an official profile connects its corresponding harness after the router becomes healthy.

---

Works with workflows and subagents

Brick routing is per request. In Claude Code workflows and subagents, each agent's call is routed independently as long as that agent uses brick-claude, so a cheap subagent task can land on haiku while a hard one escalates to opus in the same run.

---

❓ FAQ

<details> <summary><b>How is Brick different from a cascade router like FrugalGPT?</b></summary>

A cascade calls models in sequence (cheap first, escalate on low confidence) and pays for every miss in tokens and latency. Brick makes a single forward decision per query from a capability vector and a complexity score, so there is no wasted call. See Why Brick. </details>

<details> <summary><b>Which backend did Brick pick for my request?</b></summary>

Read the x-selected-model response header. Every /v1/chat/completions and /v1/messages response carries it. </details>

<details> <summary><b>How do I trade cost against quality?</b></summary>

Slide the r knob in r ∈ [-1, 1]. At r = -1 Brick favors the cheapest capable model (max-saving), at r = 1 it favors the strongest (max-quality). For Claude Code the same idea is exposed as 5 named modes, see the 5 modes. </details>

<details> <summary><b>Do I need GPUs to run the gateway?</b></summary>

No. The router and both classifiers run on CPU. GPUs only matter if you self-host the backend LLMs; with a hosted pool (Regolo, Anthropic, etc.) a CPU box is enough. </details>

<details> <summary><b>Can I use my own model pool?</b></summary>

Yes. The pool, per-model skill vectors, costs, and the model_map live in config.yaml (skill_router.models). Add or swap any OpenAI-compatible backend. See apps/router/README.md. </details>

<details>

<summary><b>What is the upstream for the OpenAI-compatible endpoint failing with 401/insufficient_quota?</b></summary>

That error comes from the backend provider, not Brick. Check the credential you forward (REGOLO_API_KEY or your own key); Brick passes Authorization through unchanged. </details>

---

🇨🇳 中文文档镜像 AI 翻译 2026-07-09
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

brick-SR1 是一个 Monorepo 项目,旨在完整实现并复现 Brick 论文中的所有实验结果。通过该项目,开发者可以运行、使用并验证 Brick 提出的模型路由机制,确保研究成果的可落地性与可重复性。

⚡ 功能介绍

本项目包含多个核心组件:Router 部分采用 Go 和 Rust 开发,作为一个兼容 OpenAI 格式的网关,能够对请求的 Capability(能力)和 Complexity(复杂度)进行分类,并将其���发至最合适的后端模型;CLI 工具基于 TypeScript/oclif 构建,支持通过单条命令实现自托管;此外还包含用于模型训练的相关模块。

🛠 安装步骤(Docker/pip/源码)

安装过程非常便捷。首先需要确保环境已安装 Node.js (>= 18) 和 Docker。通过克隆仓库并进入 apps/cli 目录进行安装、构建与链接后,运行 `brick claude on` 命令,系统会自动配置 ~/.claude/settings.json 中的 ANTHROPIC_BASE_URL 并启动 Router。若需恢复原状,只需执行 `brick claude off` 即可。

🚀 使用教程

目前最快速的使用路径是通过 CLI 工具。在完成安装并执行 `brick claude on` 后,请开启一个新的 Claude Code 会话(当前会话不受影响)。在 `/model` 选择器中,你会看到一个名为 `brick-claude` 的新选项,它与原有的 opus/sonnet/haiku 别名并列存在,通过它即可直接调用 Brick 路由能力。

⚙️ 配置说明(含 MCP / env)

Brick 的所有决策逻辑均由 `config.yaml` 文件驱动。核心配置位于 `skill_router` 模块,开发者可以在此处声明模型池(Pool),并为每个模型定义其 Skill Vector(能力向量)以及对应的 Cost Weight(成本权重)。配置涵盖了 coding、math_reasoning 等 6 个维度的能力评估。

🔌 API 说明

Brick 是一个 Mixture-of-Models (MoM) 路由网关。它通过解析每个 Prompt 的 Capability 和 Complexity,从包含开源与闭源 LLM 的模型池中精准路由至最匹配的后端。这种设计旨在匹配最强单体模型的质量,同时仅消耗极小的成本,避免了传统的级联调用(Cascade)带来的 Token 浪费和延迟问题。

🔄 工作流/模块

Brick 的路由决策是基于单次请求(Per-request)进行的。在 Claude Code 的工作流(Workflows)或子代理(Subagents)场景中,只要 Agent 使用的是 `brick-claude` 接口,每个 Agent 的调用都会被独立路由。这意味着在同一次运行中,简单的子任务可以路由到 haiku,而复杂的任务则会自动升级到 opus。

❓ FAQ 摘要

针对常见问题,Brick 与 FrugalGPT 等级联路由器的主要区别在于:级联路由通过顺序调用模型(先廉价后升级)来工作,若判断失误会产生额外的 Token 成本和延迟;而 Brick 基于能力向量进行单次前向决策(Single Forward Decision),确保每次请求都能在一次调用中精准命中目标模型。

🎯 aiskill88 AI 点评 A 级 2026-07-07

brick是一款基于复杂性和能力提取的智能AI模型路由器,开源且易于使用,突出其在AI模型管理方面的价值,但其稳定性和扩展性需要进一步优化。

📚 实用指南(长尾问题)
适合谁
  • 需要 brick-SR1 解决具体问题的开发者与运营人员
最佳实践
  • 先在测试环境跑通最小用例,再接入生产数据
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
部署方案
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
brick-SR1 中文教程brick-SR1 安装报错怎么办brick-SR1 与同类工具对比brick-SR1 最佳实践brick-SR1 适合谁用

⚡ 核心功能

👥 适合谁
  • 需要 brick-SR1 解决具体问题的开发者与运营人员
⭐ 最佳实践
  • 先在测试环境跑通最小用例,再接入生产数据
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)

👥 适合人群

AI 技术爱好者研究人员和学生开发者和工程师技术创业者

🎯 使用场景

  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发

⚖️ 优点与不足

✅ 优点
  • +Apache-2.0 协议,可免费商用
  • +完全开源免费,无授权费用
  • +本地部署,数据完全自主可控
  • +开发者社区支持,遇问题可查可问
⚠️ 不足
  • −安装和初始配置可能需要一定技术基础
  • −功能完整性通常不如成熟商业产品
  • −技术支持主要依赖开源社区,响应速度不稳定
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。

🔗 相关工具推荐

📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

通过Jupyter Notebook安装brick
💡 AI Skill Hub 点评

AI Skill Hub 点评:brick-SR1开源AI工具 的核心功能完整,质量良好。对于AI 技术爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。

📚 深入学习 brick-SR1开源AI工具
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 brick-SR1
原始描述 开源AI工具:brick is a smart AI Models router, based on complexity & capabilities extraction。⭐62 · Jupyter Notebook
Topics installableclaude-codecodexllmopen-modelsroutingjupyter notebook
GitHub https://github.com/regolo-ai/brick-SR1
License Apache-2.0
语言 Jupyter Notebook
🔗 原始来源
🐙 GitHub 仓库  https://github.com/regolo-ai/brick-SR1 🌐 官方网站  https://regolo.ai

收录时间:2026-07-07 · 更新时间:2026-07-07 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。

📺 订阅 AI Skill Hub Daily Telegram 频道
每天 8 条精选 AI Skill、MCP、Agent 与自动化工具推送
加入频道 →