> For the complete documentation index, see [llms.txt](https://docs.boxjs.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.boxjs.app/dev/url-scheme.md).

# URL Scheme

## 公开接口

由于 URL Scheme 不能直接在部分 App (Telegram 等) 以超链接的形式显示

我们提供几个的自动重定向 (302) 接口，欢迎使用：

```properties
# 前缀:
https://api.boxjs.app/loon/…
https://api.boxjs.app/quanx/…
https://api.boxjs.app/surge/…
https://api.boxjs.app/shadowrocket/…
https://api.boxjs.app/stash/…
https://api.boxjs.app/clash/…

# 实例:
loon://update?sub=all
# 转换为: 
https://api.boxjs.app/loon/update?sub=all

# 其他同理...
# 注意 url-encode

```

#### **Surge:**&#x20;

<https://manual.nssurge.com/others/url-scheme.html>

#### **Quantumult X:**&#x20;

<https://github.com/crossutility/Quantumult-X/blob/master/url-scheme.md>

#### **Loon:**

```properties
# 安装插件
loon://import?plugin=https://raw.githubusercontent.com/chavyleung/scripts/master/box/rewrite/boxjs.rewrite.loon.plugin

# 更新资源
loon://update?sub=all

```

#### Shadowrocket

```properties
# 安装 & 更新插件
shadowrocket://install?module=https://raw.githubusercontent.com/chavyleung/scripts/master/box/rewrite/boxjs.rewrite.surge.sgmodule

```

#### Stash

<https://stash.wiki/faq/url-schema>


---

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

```
GET https://docs.boxjs.app/dev/url-scheme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
