> For the complete documentation index, see [llms.txt](https://ayakaleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ayakaleaf-pro.ayaka.space/on-premises/zh-cn/an-zhuang/using-the-toolkit/1.-download-the-toolkit.md).

# 1. 下载工具包

### 下载工具包 <a href="#downloading-the-versions-toolkit-short" id="downloading-the-versions-toolkit-short"></a>

该工具包兼容 Server CE 和 Overleaf Pro，并且是推荐的安装方式。使用工具包可让你轻松开始使用 Server CE，并在需要时无缝升级到 Overleaf Pro。

{% hint style="info" %}
[ayaka-notes/toolkit](https://github.com/ayaka-notes/toolkit) 已修改为直接使用来自 ghcr 的 overleaf-pro 镜像。另外还包含 ayaka-notes 提供的 texlive。不过你也可以下载官方的 overleaf-toolkit。
{% endhint %}

{% stepper %}
{% step %}

### 克隆 Overleaf Toolkit 仓库

要安装该工具包，你需要导航到目标安装路径，然后使用以下命令克隆 Overleaf Toolkit（@Ayaka-notes）GitHub 仓库：

{% code title="克隆仓库" overflow="wrap" %}

```bash
git clone https://github.com/ayaka-notes/toolkit.git ./overleaf-toolkit
# 官方工具包（不推荐）
# git clone https://github.com/overleaf/toolkit.git ./overleaf-toolkit
```

{% endcode %}

{% hint style="info" %}
为避免潜在的权限问题，我们建议将 Toolkit 安装在你的用户 `$HOME` 目录中。
{% endhint %}
{% endstep %}

{% step %}

### 切换到工具包目录

等待克隆过程完成，然后切换到新创建的 `overleaf-toolkit` 目录：

{% code title="切换目录" %}

```bash
cd ./overleaf-toolkit
```

{% endcode %}
{% endstep %}
{% endstepper %}


---

# 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://ayakaleaf-pro.ayaka.space/on-premises/zh-cn/an-zhuang/using-the-toolkit/1.-download-the-toolkit.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.
