# 一键使用B站的翻译接口，本地代理，免费翻译

**URL:** <https://2hkj2s.loc.rr.kg/t/topic/114445>\
**Category:** Open Source\
**Created:** [2026 年10 月 18 日 12:45 UTC](https://2hkj2s.loc.rr.kg/t/topic/114445 "2026-10-18T12:45:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

作者： ![zzhzhou](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/zzhzhou/32/78412_2.png) [@zzhzhou](https://2hkj2s.loc.rr.kg/u/zzhzhou)\
发布日期： [2026 年10 月 18 日 12:45 UTC](https://2hkj2s.loc.rr.kg/t/topic/114445/1 "2026-10-18T12:45:05Z")

</div>

B 站开源了其翻译接口 Index-Translate，效果不错，但直接填到沉浸式翻译、陪读蛙这类插件里会出问题：它要求请求里带一个隐藏参数 enable\_thinking=false，不带的话模型会先吐一大段思维链，插件拿到的就不是译文了。而大部分插件不会发这个参数。

所以我写了个本地代理，夹在插件和 B 站中间，帮你把参数补上。  
零依赖，只用 Python 标准库（3.8+），不用 pip install 任何东西。MIT 开源，但是由于会挂在本地，可能会占用30MB左右内存。

## 怎么用

1. 下载仓库。Windows 双击 setup.bat，会自动启动、自检，并问你要不要静默开机自启（掉线会自动重启）。Linux / macOS 用 ./run.sh install 或 ./run.sh serve。（mac和linux端我没测试过，有问题欢迎各位佬提issue qaq）
2. 在插件里把翻译服务选成「自定义 / OpenAI 兼容」：
  - API 地址：[http://127.0.0.1:8080/v1](http://127.0.0.1:8080/v1)
  - 模型：Index-Translate-35B-A3B（也有 9B 和 2B）
  - API Key：随便填，比如 index

## 注意

- 译文会发到 B 站公网接口，代理本身不会上传任何额外数据。
- 我主要在 Windows 上用，macOS / Linux 还没实测，遇到问题欢迎提 issue。

项目地址：[bili-translate-proxy](https://github.com/zzhzhouzhou/bili-translate-proxy)

~~觉得有用的话给个 star 就很开心了~~

 ![jvW5nb4egYVpOqs89M11jmYtLlR0w1LT.webp](https://2hkj2s.loc.rr.kg/uploads/default/original/3X/e/8/e8e9cda22d1a93422d41cfe0c49efb5035061bd3.webp)  
（图片由AI生成，介绍了功能和内容，如果有各位佬之前实现过，也欢迎指导和交流）

---

<div class="post-metadata">

作者： ![for](https://2hkj2s.loc.rr.kg/letter_avatar_proxy/v4/letter/f/aeb1de/32.png) [@for](https://2hkj2s.loc.rr.kg/u/for)\
发布日期： [2026 年10 月 18 日 13:01 UTC](https://2hkj2s.loc.rr.kg/t/topic/114445/2 "2026-10-18T13:01:36Z")

</div>

好东西，感谢分享

---

<div class="post-metadata">

作者： ![Rison](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/rison/32/28946_2.png) [@Rison](https://2hkj2s.loc.rr.kg/u/Rison)\
发布日期： [2026 年10 月 18 日 15:40 UTC](https://2hkj2s.loc.rr.kg/t/topic/114445/3 "2026-10-18T15:40:26Z")

</div>

这个厉害了，码住

---

<div class="post-metadata">

作者： ![baxtax](https://2hkj2s.loc.rr.kg/letter_avatar_proxy/v4/letter/b/858c86/32.png) [@baxtax](https://2hkj2s.loc.rr.kg/u/baxtax)\
发布日期： [2026 年10 月 18 日 16:12 UTC](https://2hkj2s.loc.rr.kg/t/topic/114445/4 "2026-10-18T16:12:17Z")

</div>

先收藏，谢谢

---

<div class="post-metadata">

作者： ![Dade](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/dade/32/83890_2.png) [@Dade](https://2hkj2s.loc.rr.kg/u/Dade)\
发布日期： [2026 年10 月 19 日 02:21 UTC](https://2hkj2s.loc.rr.kg/t/topic/114445/5 "2026-10-19T02:21:06Z")

</div>

感谢分享

---

<div class="post-metadata">

作者： ![iougemini](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/iougemini/32/20512_2.png) [@iougemini](https://2hkj2s.loc.rr.kg/u/iougemini)\
发布日期： [2026 年10 月 19 日 02:28 UTC](https://2hkj2s.loc.rr.kg/t/topic/114445/6 "2026-10-19T02:28:37Z")

</div>

感谢分享哦
