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