> ## Documentation Index
> Fetch the complete documentation index at: https://forgekit-docs-mintlify-4374fee9.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Config 命令

> 提供方、成本、仪表盘、品牌、atlas 和技术栈：config、cost、dash、brand、atlas、stack —— 外加 v0.19+ 的 report 和 tools 命令。

Config 分组涵盖提供方、可观测性、代码图和技术栈探测。

## `forge config`

提供方配置 —— 显示 / 切换 / 添加提供方，设置默认模型。

```bash theme={null}
forge config               # show current config
forge config switch <provider>
forge config add <provider>
```

## `forge cost`

通过实测的阶段系数得到真实的每日开销。

```bash theme={null}
forge cost                 # real per-day spend
forge cost --stages        # measured per-stage cost factors
```

<Note>
  只报告**实测的阶段** —— 一个没有事件记录的阶段会显示"no data"，绝不会给出
  一个默认值。
</Note>

## `forge dash`

跑在账本、指标和爆炸半径之上的本地仪表盘。

```bash theme={null}
forge dash                 # localhost-only, read-only (default port 4242)
```

## `forge brand`

打印当前的品牌 token 映射。

```bash theme={null}
forge brand
```

品牌以一份 token 存储在（`brand.json`）里；换品牌就是一次编辑。

## `forge atlas`

构建 / 查询代码图。

```bash theme={null}
forge atlas build [path]   # walk the tree → .forge/atlas.json
forge atlas query "what calls Z"
forge atlas has <symbol>   # hallucinated-symbol check
```

atlas 是纯 JSON —— 任何工具都能读，不需要 MCP。

## `forge stack`

从本仓库的清单文件里探测它真实的技术栈。

```bash theme={null}
forge stack
```

会读取 `package.json`、`pyproject.toml`、`go.mod`、`Cargo.toml`、`Gemfile`、
`composer.json`、`pom.xml` / `build.gradle` 以及 `*.csproj`，报告语言、
框架、包管理器和仓库**真正**的测试命令 —— 这些会喂给
基底的验证清单。

## `forge report` <sub>v0.19+</sub>

生成本仓库 Forge 状态的静态 HTML 报告 —— 把账本、指标和爆炸
半径渲染成一个可以分享或归档的、自包含的文件。

```bash theme={null}
forge report
```

## `forge tools` <sub>v0.19+</sub>

选择本仓库的主 AI 编码工具，并接通对应的 `.gitignore` 条目，让
生成的配置和 `.forge/` 产物在你的这套配置里被正确忽略。

```bash theme={null}
forge tools
```
