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

# config

# `agdi config`

配置辅助命令：通过路径获取/设置/取消设置值。不带子命令运行将打开
配置向导（与 `agdi configure` 相同）。

## 示例

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
agdi config get browser.executablePath
agdi config set browser.executablePath "/usr/bin/google-chrome"
agdi config set agents.defaults.heartbeat.every "2h"
agdi config set agents.list[0].tools.exec.node "node-id-or-name"
agdi config unset plugins.entries.brave.config.webSearch.apiKey
```

## 路径

路径使用点号或括号表示法：

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
agdi config get agents.defaults.workspace
agdi config get agents.list[0].id
```

使用智能体列表索引来定位特定智能体：

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
agdi config get agents.list
agdi config set agents.list[1].tools.exec.node "node-id-or-name"
```

## 值

值会尽可能解析为 JSON5；否则将被视为字符串。
使用 `--json` 强制要求 JSON5 解析。

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
agdi config set agents.defaults.heartbeat.every "0m"
agdi config set gateway.port 19001 --json
agdi config set channels.whatsapp.groups '["*"]' --json
```

编辑后请重启 Gateway 网关。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.