> 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/docs/en-us/advanced-basic/developer-tools.md).

# Development and Diagnostics

This set of features is for users who need to let other local programs call the model, or troubleshoot request issues. You do not need to enable Developer Mode for everyday chatting or content work.

## Two entry points

| Entry                                       | Purpose                                                                                  | Confirm before use                 |
| ------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------- |
| \[Settings] → \[API Gateway]                | Provides a compatible API for local programs, and is also a runtime dependency for Agent | Status, port, and key security     |
| \[Settings] → \[System] → \[Developer Mode] | View the call chain to locate model and tool errors                                      | Logs may contain sensitive content |

<figure><img src="/files/c47a2f59416c283c9809d550b0c2bb19a895da7f" alt="API 网关的运行状态、地址、端口和密钥区域"><figcaption><p>The API Gateway page centrally displays runtime status, address, port, and credentials.</p></figcaption></figure>

{% hint style="warning" %}
The API Gateway key and the request content in the call chain may both involve sensitive information. In screenshots, issues, and group chats, only share the necessary redacted portions.
{% 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 gateway</strong></td><td>Understand Agent dependencies and local API calls</td><td><a href="/pages/7cd60d07b2db3d955720f3a8d6733c485f4b5625">/pages/7cd60d07b2db3d955720f3a8d6733c485f4b5625</a></td></tr><tr><td><strong>Call chain and Developer Mode</strong></td><td>Reproduce and locate a specific request</td><td><a href="/pages/55d9337ba4a8770aba2727c4bff8dc43ea98839f">/pages/55d9337ba4a8770aba2727c4bff8dc43ea98839f</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/docs/en-us/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.
