> For the complete documentation index, see [llms.txt](https://docs.cherryai.com.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherryai.com.cn/advanced-basic/developer-tools.md).

# 开发与诊断

这一组功能面向需要让其他本机程序调用模型，或排查请求问题的用户。日常聊天和内容工作不需要开启开发者模式。

## 两个入口

| 入口                | 用途                           | 使用前先确认     |
| ----------------- | ---------------------------- | ---------- |
| 【设置】→【API 网关】     | 向本机程序提供兼容 API，也是 Agent 的运行依赖 | 状态、端口与密钥安全 |
| 【设置】→【系统】→【开发者模式】 | 查看调用链，定位模型与工具错误              | 日志中可能含敏感内容 |

<figure><img src="/files/9xsTuOaY2lCESy8JVIsg" alt="API 网关的运行状态、地址、端口和密钥区域"><figcaption><p>API 网关页面集中显示运行状态、地址、端口和凭据。</p></figcaption></figure>

{% hint style="warning" %}
API 网关的密钥和调用链中的请求内容都可能涉及敏感信息。截图、Issue 和群聊中只分享已遮挡的必要片段。
{% endhint %}

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>API 网关</strong></td><td>理解 Agent 依赖与本机 API 调用</td><td><a href="/pages/Il6WwZovQciq3RhHBHrO">/pages/Il6WwZovQciq3RhHBHrO</a></td></tr><tr><td><strong>调用链与开发者模式</strong></td><td>复现并定位一次具体请求</td><td><a href="/pages/NnsrJfb3lrDziQS16Y32">/pages/NnsrJfb3lrDziQS16Y32</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cherryai.com.cn/advanced-basic/developer-tools.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
