Turtle Link
← 返回首页

说明文档

这是什么

Turtle Link 是一个把 AI 引擎编译进编辑器本体的代码编辑器。装好之后直接打开项目就能用,不需要另外启动守护进程,也不需要把代码推到中转服务器。

下面按「装 → 用 → 数据在哪 → 出问题找谁」的顺序说明。

安装与首次启动

平台安装包启动方式
Windows 10 / 11(64 位)Turtle-Link-windows-x64-1.0.3.zip解压后双击 turtle-link.exe
Linux(64 位)准备中—
macOS · Apple Silicon(M 系列)Turtle-Link-macos-arm64-1.0.3.zip解压后打开 Turtle-Link-arm64.app
macOS · IntelTurtle-Link-macos-intel-1.0.3.zip解压后打开 Turtle-Link-intel.app
解压目录建议放在自己的用户目录下;放进系统目录可能需要管理员权限。

安装包只从本页面获取,其他来源无法验证。

第一次启动:四步引导

双击打开后不会直接进编辑器,而是先走一遍引导,四步走完就能开始干活。引导进度会保存,中途关掉,下次打开接着上次那步继续。

  1. 语言 · 选择界面语言:列表里是已安装的语言包 —— 简体中文、繁體中文、English、日本語、한국어、Français,每项显示成「原生名 (英文名)」。程序按系统语言自动预选一条(页面上会写「检测到系统语言:…」),同意就点「继续」;点别的语言,界面当场就换过去。没有你的语言也能用:选 English 继续即可;语言包放在 locales 目录,放进去就会出现在列表里(页面上有「打开语言包目录」)。
  2. 主题 · 选择主题:这一步只有两个选项 —— 深色 和 浅色,点一下立刻生效。长期写代码建议深色,夜里不刺眼。设置里的「主题设置」还有 Dracula、One Dark、Nord、Solarized 深/浅、GitHub、Monokai、Gruvbox 深色共 10 种配色,外加「自定义」可逐项调色号,之后随时换。
  3. 工作区 · 打开项目:这一步只决定左侧文件树对着哪个文件夹,两个按钮 —— 「打开项目…」弹出系统文件夹选择框,选中你的代码目录后直接跳到下一步;「先不打开项目」跳过,进编辑器后再打开也行(空窗口不影响使用)。选错了不要紧:文件树指哪个目录随时能换,程序只读不动你的文件。
  4. AI 连接(可选):三个要填的框 —— 「API 根地址」(服务商的接口地址)、「API Key」(服务商给的密钥)、「模型 ID」(用哪个模型)。三样都得自己填,软件里没有任何预设可套用:地址和模型 ID 照下方「接自己的模型」表里对应那一行逐字抄,Key 去服务商官网拿(表里「去哪申请」一列有链接)。填好后点「测试连接」试一下:按钮右边会显示结果 —— 通过是绿色提示,失败会写明原因(点测试会顺手保存草稿)。这一步还能点「跳过」,之后在「设置 → 模型」里补。怎么拿 Key、报错怎么改,见下文「接自己的模型 · 零基础版」。

这三步都能反悔:以后在哪改

想改什么去哪儿
界面语言设置 → 语言(随时切换,立即生效)
配色设置 → 主题设置:10 种预设 + 逐项色号 + 我的预设
当前项目 / 文件树根打开项目、切换项目;文件树只是视图,不复制也不移动你的文件
AI 模型 / Key设置 → 模型(可换服务商,可存多套档案)
引导只出现一次,之后不会打扰。想改语言、主题、工作区就去设置;想换模型,见下文「接自己的模型」。

快速开始:三条路,挑一条走

装好之后只需要配一次。同一份配置有三种改法:桌面面板点鼠标、浏览器里点、命令行敲。三条路改的是同一个配置文件,挑顺手的用,效果完全一样,随时能换。下面三条都从零走到「能对话」为止。

路线 A · 用桌面面板(GUI,最省事)

  1. 打开面板:装完在应用菜单里找 Link Agent Panel;也可以用命令 link-agent panel 起前台,link-agent panel --detach 起后台。
  2. 第一次要填连接:地址 127.0.0.1、端口 9876、Token 填 Admin Token。面板只是外壳,真正干活的是本机的 link-agent serve;装了服务端的话这一页保持默认就行。
  3. 配模型:左侧「模型」页 → 新建一个 API 档案 → 填 Base URL、API Key、模型名 → 保存。
  4. 授权目录:左侧「权限」页,把你要 AI 真正动手的目录加进授权列表。不在这个列表里的路径,AI 的文件与 Shell 工具都碰不到。
  5. 试一句话:「聊天」页发「看下当前目录有多少个文件」,能回话就通了。
  6. 关窗口不等于停服务:关窗或最小化只是收进系统托盘,serve 还在后台跑;从托盘「显示」叫回来,要彻底停就用托盘菜单退出或 link-agent quit。

面板左侧页签依次是:聊天、模型、Agent、权限、密钥、搜索、技能、工具、看板、任务、扩展、记忆、知识、频道、邮件、连接、文件、保险库。

路线 B · 用浏览器(Web 管理页)

  1. 先把服务起起来:link-agent serve。安装时注册了开机自启的话,它本来就在跑;用 link-agent info 或 curl http://127.0.0.1:9876/health 确认活着。
  2. 打开管理页:浏览器访问 http://127.0.0.1:9876/admin。开了 TLS 就用 https://;用 http:// 进会自动 301 跳到 https。
  3. 第一次要解锁:填 Admin Token(就是 link-agent init --generate-tokens 生成的那两个 Token 里的管理密码),填错进不去。Token 记在当前浏览器里,换浏览器或清 Cookie 要重填。
  4. 在 Web 里做初始化,按这个顺序点:
    1. 「AI 配置 → 模型」:填一个 API(Base URL / Key / 模型名),保存立即生效,不用重启服务;
    2. 「AI 配置 → 权限」:加授权目录(不在列表里的路径 AI 碰不到);
    3. 「AI 聊天」:选一个 Agent 和 API 档案,发一句话验证链路;
    4. 「连接」:要让手机或别的电脑连进来,在这里配网络与 TLS、远程频道(Telegram / 微信 / 邮箱);
    5. 「自动化」:要让 AI 按点干活,再配定时任务;
    6. 「数据」:看项目记忆、全局知识、文件浏览与项目目录。
  5. 改哪都一样:Web 里改的就是那份 config.json,面板和命令行立刻看到;反过来在面板或命令行改了,刷新页面也是新的。

侧栏一共六块:概览(服务状态、定时任务统计、待确认的高风险工具)、AI 聊天、自动化、AI 配置(模型 / Agent / 权限 / 工具 / 技能 / 联网搜索)、数据、连接。这一页就是无头服务端的全部界面,桌面编辑器和桌面面板连的也是同一个服务。

路线 C · 用命令行

  1. 跑初始化向导:link-agent init。每一步直接回车就是方括号里的默认值,依次问六件事:
    1. 监听地址 —— 默认 127.0.0.1:9876(只有本机能连)。要让局域网其他设备访问就填 0.0.0.0:9876,并且必须同时设密码;
    2. 是否启用 HTTPS —— 跨机访问就开;没有现成证书会自动生成自签名 server.pem / server.key;
    3. Admin Token(Web 管理页的钥匙)—— 回车自动生成随机串;
    4. API Token(OpenAI 兼容端点与 IDE 连接的钥匙)—— 同上;
    5. 是否注册开机自启;
    6. 是否现在就打开配置页。
  2. 或者一步到底(不交互):
    link-agent init --bind 0.0.0.0:9876 --generate-tokens --tls --autostart --open
    留需要的开关即可;加 --no-interactive 则一项不问、全取默认值;想强制进向导用 --interactive。
  3. 配模型:link-agent config set api_profiles.0.api_key '"sk-..."';也可以直接编辑 link-agent config path 打印出来的 config.json。
  4. 体检:link-agent config doctor,没配好的项会逐条列出来。
  5. 验证:link-agent info 看运行信息,link-agent ping 回 ok 就是活的。

两个 Token 请存好:Admin Token 是管理页的钥匙,API Token 是 IDE 与 OpenAI 兼容端点的钥匙。丢了重新生成一次即可。

配置项与菜单速查

三条路改的是同一份配置:全局 config.json 加当前目录的 .link-agent/ 项目覆盖层。用 link-agent config path 能同时看到这两层在哪。

常用命令

命令干什么
link-agent init首次初始化:监听地址、TLS、Token、开机自启、打开配置页
link-agent serve前台起服务(默认 127.0.0.1:9876)
link-agent panel起桌面面板;--detach 放后台
link-agent info / ping看运行信息 / 探活(回 ok)
link-agent stop / restart / quit停服务 / 重启 / 连面板一起退
link-agent config get <路径> / set读 / 写单个配置项,如 memory.enabled
link-agent config path / doctor打印配置路径(全局 + 项目层)/ 体检
link-agent keys generate生成 Token 与自签名证书(写进数据目录 keys/)
link-agent org / tools / memoryAgent 团队 / 工具 / 记忆 的子命令

常改的配置项

配置项默认作用
api_profiles空模型接入:Base URL、Key、模型名、上下文窗口
authorized_roots空授权目录。AI 的文件与 Shell 工具只能碰这些路径及其子路径
project_root / default_workspace—当前活动项目根 / 没有活动根时的默认工作目录
task—工具循环、信任策略、计划行为(allow_all_tools 默认 false)
memory开项目记忆与全局知识库
remote_enabled、telegram_*关远程频道:手机上接着聊、结果回到哪个会话
web_search—联网搜索的平台与密钥
listen_network / admin_token127.0.0.1 / 空Web 服务的监听地址与管理员密码。监听非本机地址又没密码时会拒绝启动
update.auto_applytrue无头服务端自带自动更新,不用图形界面也能升级

只改一个项目用 link-agent config set --project ...,只影响当前目录,不污染全局。

命令行(可选)

初始化服务端:turtle-link init

无头服务端的配置不用手写 JSON,一条命令就能起好(别名 setup):

# 监听本机 9876,自动生成两个 Token,装完直接打开 Web 配置页
turtle-link init --bind 127.0.0.1:9876 --generate-tokens --open

它会写配置文件、按需生成 API Token 与 Admin Token、可生成自签名证书、可注册开机自启,最后用浏览器打开 Web 配置页。不带任何参数直接运行会进入逐步交互向导。

参数作用
--bind 127.0.0.1:9876监听地址。默认只听本机;要让局域网访问填 0.0.0.0:9876。
--generate-tokens为没指定的 Token 随机生成密码,避免空 Token 裸奔。
--token / --admin-token手动指定 API Token / Admin Token。
--tls / --generate-tls启用 HTTPS;生成自签名证书(server.pem / server.key)。
--tls-cert + --tls-key用自己的证书和私钥。
--no-tls显式关掉 HTTPS。
--autostart注册开机自启(macOS LaunchAgent / Linux autostart + systemd user unit)。
--open装完自动用默认浏览器打开 Web 配置页。
--interactive / --no-interactive强制进入 / 禁用逐步向导。

安装包里同一个程序也能在终端直接用,不弹窗口。把解压目录加进 PATH 之后:

命令做什么
turtle-link notes.md打开指定文件(写 - 表示从标准输入读)
turtle-link -a在终端里跟 AI 对话,不启动图形界面
turtle-link -a -m "解释这个函数"只问一次,输出结果后退出
turtle-link -t终端全屏编辑模式
turtle-link -p notes.md把 Markdown 渲染成纯文本打印出来
turtle-link --register-file-types注册系统文件类型关联;--unregister-file-types 撤销

子命令写成 turtle-link <子命令>:

子命令做什么
ai(别名 code)终端编码助手,工具在本机执行
chat "消息"命令行问答,结果直接返回
sessions列出已保存的会话
resume [id]恢复会话;不写 id 就是最近一条
config读写配置(全局 + 项目 .link-agent/config.json)
init(别名 setup)初始化 link-agent
ping看 link-agent 是否在线
logs查看日志(--app 看应用日志)
self-update <url>下载新版本,校验 SHA-256 后原子替换,重启生效
pair(别名 pairing)远程渠道配对(Telegram 等)
channels查看已配对的渠道
memory记忆库与梦境扫掠
完整参数以 turtle-link --help 与 turtle-link <子命令> --help 的输出为准,版本不同可能增删。

界面怎么分工

主区域是编辑器,按项目打开代码;对话就在同一个窗口里,不需要切到浏览器。AI 要读文件、改文件、搜索、执行命令或跑测试时,会先发起一次工具调用请求,你确认之后才执行,不会静默改动你的仓库。

权限按项目授予:可以只给某个项目开某一类操作,用完随时收回。

界面三块

窗口就三块,不用切到浏览器:

  • 左侧文件树:打开的项目目录,点文件在中间打开。
  • 中间编辑区:多标签,每个文件一个标签,改完直接保存。
  • AI 对话:在同一个窗口里,可以一边看代码一边让它改。

基本功能怎么用

你要做的事怎么用
打开项目引导时选的工作区就是默认项目;换项目从菜单或欢迎页打开目录,文件树会跟着切。
让 AI 读 / 改代码在对话里直接说。它每次要读文件、写文件、搜索、执行命令或跑测试,都会先发一次工具调用请求,你确认后才执行。
控制权限范围权限按项目授予:只给某个项目开某一类操作,用完随时收回。
看它改了什么写操作前有改动预览,不满意就不确认,仓库不会被静默改动。
接自己的模型在设置的 AI 项里配,或用 Link Agent 的 Web 配置页,见下一节。
AI 不会静默改你的仓库:所有写操作、命令执行、测试运行都要过一次确认。

接自己的模型

模型由你提供:填自己的 API Key,选择提供方与模型,可以按任务配置不同的路由规则。换模型不需要重装,也不需要重新索引项目。

零基础版:AI 连接到底填什么

AI 连接就是让 Turtle Link 能跟你选的 AI 服务商说上话。要三样东西,缺一样都不通:

要填的通俗讲长什么样
API Key服务商发给你的「钥匙」,代表你的账号和余额,是一串很长的字符sk-… 开头,几十位,绝不能外传
API 根地址服务商地址(界面上这个框就叫「API 根地址」,英文 Base URL),程序往这里发请求https://api.deepseek.com/v1
模型 ID要哪一个「大脑」。同一家通常有好几档:贵的更聪明,便宜/小的更快deepseek-chat、gpt-4.1-mini

照着做四步(不用懂技术)

  1. 先确定用哪家服务商。打开设置面板里的 AI(模型)页 —— 就是首次引导第 4 步的同一页。下面这张表是各家常用的地址和模型,照着抄进对应的框:
    服务商默认模型要 Key 吗去哪申请(用浏览器打开)
    DeepSeekdeepseek-chat要platform.deepseek.com/api_keys
    OpenAIgpt-4.1-mini要platform.openai.com/api-keys
    Anthropicclaude-sonnet-5-5要console.anthropic.com/settings/keys
    Geminigemini-2.5-flash要aistudio.google.com/app/apikey
    OpenRouteropenai/gpt-4.1-mini要openrouter.ai/keys
    Ollama(本地)llama3.2不要先装 Ollama 并下载模型
    Custom / OpenAI 兼容你自己填看服务商照服务商文档抄地址和模型名
  2. 把地址和模型 ID 填进去。「API 根地址」抄表格该行的地址(通常以 /v1 结尾,漏掉 /v1 是最常见的错),「模型 ID」抄该行的模型名,一个字都别改。Key 用自己申请的,别借别人的。
  3. 去官网拿 Key。用浏览器打开该服务商的官网(下表「去哪申请」那一列就是地址),注册登录后进 API keys 页面新建一个,立刻复制。⚠️ 多数服务商只在创建那一刻完整显示,关掉窗口就看不全了 —— 别慌,删掉重新建一个就行。
  4. 粘进去、点「测试连接」、保存。把 Key 粘进「API Key」框,点旁边的「测试连接」:先显示「正在测试连接…」,结果出在按钮右边 —— 通过就说明配对了(点测试会自动保存草稿),失败会写原因,照着上面那张报错表改。之后随便发一句话也能再验一次。

不知道选哪家,看这张表

你的情况建议
想尽快跑起来、价格便宜DeepSeek:注册即用、按量计费、中文好、价格低
写长文、翻译、改文案,质量优先OpenAI(gpt-4.1 系列)或 Anthropic(Claude)
想一个账号试很多家的模型OpenRouter:聚合站,充一次值换着用
一分钱不花、代码不能出本机Ollama:本机跑开源模型,「API 根地址」填 http://127.0.0.1:11434,Key 可留空
公司有内部网关Custom / OpenAI 兼容:填公司给的地址、Key、模型 ID

报错了?对照这张表改

看到什么多半因为怎么改
401 / Unauthorized / invalid api keyKey 复制不完整、前后带了空格、Key 被删或过期整串重新复制一次,确认前后没有空格
404 / not foundBase URL 不对,最常见是结尾多写或少写了 /v1照上表逐字抄地址,注意别漏、也别多写 /v1
429 / rate limit / insufficient quota余额用完了,或短时间内请求太密去服务商后台充值;等一分钟再试
一直转圈 / 连接超时 / network error你的网络到不了这家服务商换一家能直连的,或改用本地 Ollama
model not found / 模型不存在模型名拼错,或账号没有这个模型的权限照上表「默认模型」一列抄;去服务商后台看可用模型列表
关于钱:这类接口按用量计费,一次普通对话通常只要几分钱,不是包月订阅。建议在服务商后台设好每月上限,用超自动停,免得忘记。
关于 Key 安全:Key 就等于你账号里的钱 —— 别贴群聊、别截图、别提交进 Git 仓库。它只保存在你自己电脑的配置文件里,我们这边没有你的 Key,也替你找不回来。
没有 Key 也能用:编辑、文件树、命令执行照常,只是 AI 对话不可用,随时可以回来补。

项目记忆存在哪

项目约定、历史结论和对话记录保存在本机。关掉窗口再打开同一个项目,可以接着上次的结论往下做,不必重新交代背景。

数据默认不出机器。只有当你配置了第三方模型提供方时,该次请求涉及的内容才会发送给这家提供方。

手机端接着聊:微信

离开电脑时想接着推进,用手机微信就行。远程通道是可选项,默认关闭:不开启就不会监听任何端口;开启后同一个工作区可以在微信里继续对话,关闭后通道立即失效。

Link Agent(独立工具)

Link Agent 与 Turtle Link 分开编号、分开安装:下载 Link-Agent-1.0.2-linux-x64.zip,解压后直接执行 ./link-agent 就能跑,不需要编译,也不依赖 Turtle Link。它是在本机执行任务、接入各家模型的引擎;Turtle Link 只是它的一个图形前端。

包里另带两个可执行文件:link-agent-panel 是图形面板(也可以在里面手动检查更新),rg 是内容检索用的 ripgrep,免去另装。想装进命令路径可执行 bash install.sh,默认装到 ~/.local/bin。

版本说明:Link Agent 当前 1.0.2,与 Turtle Link 的 1.0.3 是两条独立版本线。1.0.2 起支持无头自动更新:常驻的 serve 会自己检查清单、验签、下载并切换到新版本,不需要图形界面。升级后进程原地 exec 到 update/current 指向的二进制,pid 不变,所以 systemd 重启和机器重启都不会退回旧版。想临时关掉启动自检可设 LINK_AGENT_NO_REEXEC=1。图形面板里仍可手动检查更新,也可以用 link-agent self-update <URL> --sha256 <SHA256> 指定包强制升级。

Web 管理界面

link-agent serve 起来之后,浏览器打开 http://127.0.0.1:9876/admin;启用 TLS 后是 https://,用 http:// 访问会自动 301 跳转。这就是无头服务端的全部界面,桌面编辑器和轻量 Panel 连的是同一个服务。

左侧区域能做什么
概览服务状态、定时任务统计、待确认的高风险工具、快捷入口。
AI 聊天选 Agent 和 API 档案进行流式对话,进行中的任务可点「停止」中断。
自动化定时任务(含 Workflow ID、待确认队列)、扩展与工作流。
AI 配置模型、Agent、权限、工具、技能、联网搜索。
数据项目记忆、全局知识、文件浏览、项目目录。
连接远程频道(Telegram / 微信 / 邮箱)、网络与 TLS、密钥。

第一次打开要解锁

填 LINK_AGENT_ADMIN_TOKEN,或配置里的 admin_token —— 就是 init --generate-tokens 生成的那两个 Token 之一。解锁后顶栏显示在线状态和调度是否激活。Token 存在当前浏览器,换浏览器要重填。

让脚本和别的机器用:Hook API

外部脚本可以用 Admin Token 触发一次无人值守任务:

curl -X POST -H "X-Auth: $LINK_AGENT_ADMIN_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"检查磁盘并汇总","allow_all_tools":true}' \
  http://127.0.0.1:9876/api/hook/run
  • allow_all_tools 默认 false,显式写 true 才会自动批准工具调用。
  • 轮询结果 GET /api/hook/job?id=...,中断 POST /api/hook/abort。
服务默认只听 127.0.0.1。要给手机或别的电脑用,改 --bind 0.0.0.0:9876 并配合 TLS 与反向代理,别把没有密码的 9876 直接开到公网。

系统要求

项目要求
WindowsWindows 10 / 11,64 位
Linux64 位发行版
macOS分架构下载,Apple Silicon 与 Intel 各一份
安装包体积Windows 33.6 MB / Linux 39.3 MB

常见问题

关掉窗口后还有后台进程吗

没有。AI 引擎与编辑器是同一个进程,关掉窗口就全部结束,不会留下常驻服务。

能不能完全离线使用

打开项目、浏览与编辑代码都不需要网络。AI 功能取决于你配置的模型:接入云端提供方时需要网络。

代码会被上传吗

不配置第三方模型提供方时,代码不会离开本机。配置了的话,只有该次请求涉及的上下文会发给提供方,范围由你实际发出的请求决定。

卸载需要做什么

删掉程序目录即可。是否保留本机的项目数据由你决定,删除前请先备份。

出问题怎么找我

发邮件到页面底部的「反馈」邮箱,附上系统版本、Turtle Link 版本号和复现步骤;崩溃类问题请附日志。安全漏洞请直接发邮件,不要在公开渠道描述细节。

What this is

Turtle Link is a code editor with the AI engine compiled into the editor itself. Once installed, open a project and start working — there is no separate daemon to launch and no relay server to push code through.

The sections below follow the order: install, use, where data lives, who to contact.

Install and first launch

PlatformPackageHow to start
Windows 10 / 11 (64-bit)Turtle-Link-windows-x64-1.0.3.zipUnzip, then run turtle-link.exe
Linux (64-bit)Coming soon—
macOS · Apple Silicon (M series)Turtle-Link-macos-arm64-1.0.3.zipUnzip, then open Turtle-Link-arm64.app
macOS · IntelTurtle-Link-macos-intel-1.0.3.zipUnzip, then open Turtle-Link-intel.app
Unzip into a folder under your own user directory; a system directory may require administrator rights.

Get the package from this site only; other sources cannot be verified.

First launch: four guided steps

Double-clicking does not drop you straight into the editor. A short guide runs first; four steps and you are working. Progress is saved, so quitting halfway resumes at the same step next time.

  1. Language · Choose your language: the list shows installed language packs — Simplified Chinese, Traditional Chinese, English, Japanese, Korean and French — each as “native name (English name)”. The system language is pre-selected (the page says “Detected system language: …”); press Continue to accept it, or click another language to switch the interface instantly. No pack for your language? Still fine — continue in English; packs dropped into the locales folder appear in the list (the page offers an open-language-pack-folder button).
  2. Theme · Choose a theme: only two options here — Dark and Light, applied the moment you click. Dark is easier on the eyes for long sessions. Theme Settings later offers ten palettes (Dracula, One Dark, Nord, Solarized Dark/Light, GitHub, Monokai, Gruvbox Dark and more) plus a Customize option for per-element colours.
  3. Workspace · Open a project: this step only decides which folder the file tree points at. Two buttons — Open Project… opens the system folder picker and jumps to the next step once you pick your code folder; Start without a project skips it and you can open one later (an empty window still works). Picking wrong is harmless: you can point the file tree elsewhere at any time, and the app never modifies your files.
  4. AI connection (optional): three fields — “API root URL” (the provider’s endpoint), “API Key” and “Model ID”. You fill in all three yourself; nothing is filled automatically: copy the address and model verbatim from the matching row of the table under “Bring your own model”, and get the key from the provider’s site (the “Where to get a key” column links there). Then click “Test connection”: the result shows to the right of the button — green on success, with the reason on failure (testing also saves the draft). You can also click “Skip” and set it up later under “Settings → Model”. See “Bring your own model · from zero” below for keys and error messages.

All three are reversible: where to change them later

What you want to changeWhere
Interface languageSettings → Language (switch anytime, takes effect immediately)
Colour schemeSettings → Theme Settings: ten presets, per-element colours, and your own saved presets
Current project / file-tree rootOpen or switch projects; the file tree is only a view — it never copies or moves your files
AI model / keySettings → Model (switch providers, keep several profiles)
The guide appears only once. Language, theme and workspace live in settings; to change models see "Bring your own model" below.

Quick start: pick one of three routes

You only have to configure it once. The same settings can be filled in three ways: clicking in the desktop panel, clicking in a browser, or typing commands. All three write the same config file, so use whichever suits you — the result is identical and you can switch any time. Each route below goes from zero to "it answers me".

Route A · The desktop panel (GUI, least effort)

  1. Open the panel: after installing, find Link Agent Panel in your application menu; or run link-agent panel in a terminal (add --detach to send it to the background).
  2. First launch asks for the connection: address 127.0.0.1, port 9876, Token = your Admin Token. The panel is only a shell; the process doing the work is link-agent serve on the same machine — if you installed the server, leave this page as it is.
  3. Add a model: left sidebar → Model → create an API profile → fill in Base URL, API Key, model name → save.
  4. Authorize folders: left sidebar → Permissions → add the directories the AI is actually allowed to touch. Paths not on this list are unreachable for its file and shell tools.
  5. Say something: in Chat, ask "how many files are in the current directory?" — if it answers, you are done.
  6. Closing the window does not stop the service: closing or minimizing just hides the panel in the system tray while serve keeps running. Bring it back from the tray, and stop everything with the tray menu or link-agent quit.

The panel tabs, in order: Chat, Model, Agents, Permissions, Keys, Search, Skills, Tools, Board, Tasks, Extensions, Memory, Knowledge, Channels, Email, Connect, Files, Vault.

Route B · The browser (web admin console)

  1. Start the service: link-agent serve. If you enabled autostart during install it is already running; confirm with link-agent info or curl http://127.0.0.1:9876/health.
  2. Open the console: browse to http://127.0.0.1:9876/admin. With TLS enabled use https://; hitting it over http:// redirects (301) to https automatically.
  3. The first visit asks you to unlock: enter the Admin Token (the admin password from the pair generated by link-agent init --generate-tokens). A wrong token gets you nowhere. The token is remembered by that browser — a different browser, or clearing cookies, means entering it again.
  4. Initial setup inside the console, in this order:
    1. AI configuration → Model: add one API (Base URL / Key / model name). Saving takes effect immediately, no restart;
    2. AI configuration → Permissions: add authorized folders (anything not listed is unreachable);
    3. AI chat: pick an agent and an API profile, send one message to verify the link;
    4. Connection: to reach it from your phone or another computer, set up network, TLS and remote channels (Telegram / WhatsApp / email) here;
    5. Automation: when you want the AI to work on a schedule, set up tasks here;
    6. Data: project memory, global knowledge, file browser and project folders.
  5. Either way is the same file: what you change in the browser is that same config.json, so the panel and the CLI see it at once — and vice versa; refresh the page to see their changes.

The sidebar has six sections: Overview (service status, scheduled-task counts, high-risk tool calls waiting for approval), AI chat, Automation, AI configuration (model / agents / permissions / tools / skills / web search), Data, Connection. This page is the entire interface of the headless server; the desktop editor and the desktop panel talk to that same service.

Route C · The command line

  1. Run the setup wizard: link-agent init. Pressing Enter accepts the default shown in brackets. It asks six things:
    1. Listen address — default 127.0.0.1:9876 (this machine only). For other devices on your LAN enter 0.0.0.0:9876, and set a password at the same time;
    2. Enable HTTPS — do it if you will connect from another machine; without an existing certificate a self-signed server.pem / server.key is generated;
    3. Admin Token (the key to the web console) — Enter generates a random one;
    4. API Token (the key for the OpenAI-compatible endpoint and IDE clients) — same;
    5. Register autostart on boot;
    6. Open the configuration page now.
  2. Or do it in one shot (non-interactive):
    link-agent init --bind 0.0.0.0:9876 --generate-tokens --tls --autostart --open
    Keep the switches you need. --no-interactive takes all defaults without asking; --interactive forces the wizard.
  3. Add a model: link-agent config set api_profiles.0.api_key '"sk-..."'; or edit the config.json printed by link-agent config path.
  4. Health check: link-agent config doctor lists whatever is still unconfigured.
  5. Verify: link-agent info for runtime details, link-agent ping — ok means it is alive.

Keep both tokens: the Admin Token opens the console, the API Token opens the IDE and OpenAI-compatible endpoints. Lost one? Just generate it again.

Settings and menus at a glance

All three routes edit the same configuration: the global config.json plus the .link-agent/ overlay of the current directory. link-agent config path prints where both live.

Common commands

CommandWhat it does
link-agent initFirst-time setup: listen address, TLS, tokens, autostart, open the config page
link-agent serveRun the service in the foreground (default 127.0.0.1:9876)
link-agent panelLaunch the desktop panel; --detach for background
link-agent info / pingRuntime details / liveness probe (prints ok)
link-agent stop / restart / quitStop / restart / quit including the panel
link-agent config get <path> / setRead / write a single setting, e.g. memory.enabled
link-agent config path / doctorPrint config paths (global + project) / health check
link-agent keys generateGenerate tokens and a self-signed certificate (into keys/ in the data directory)
link-agent org / tools / memorySubcommands for agent teams / tools / memory

Settings you are most likely to change

SettingDefaultWhat it does
api_profilesemptyModel access: Base URL, key, model name, context window
authorized_rootsemptyAuthorized folders. File and shell tools can only reach these paths and their subpaths
project_root / default_workspace—Active project root / fallback working directory when there is none
task—Tool loop, trust policy, planning behaviour (allow_all_tools defaults to false)
memoryonProject memory and the global knowledge base
remote_enabled, telegram_*offRemote channels: continue the conversation from your phone, and which session it reports back to
web_search—Web search provider and its key
listen_network / admin_token127.0.0.1 / emptyWeb service listen address and admin password. Listening on a non-local address without a password refuses to start
update.auto_applytrueThe headless server updates itself; no GUI needed

To change a single project only, use link-agent config set --project ... — it affects that directory alone and leaves the global config clean.

Command line (optional)

Setting up the server: turtle-link init

The headless server config does not need hand-written JSON — one command sets it up (alias setup):

# listen on 127.0.0.1:9876, generate both tokens, then open the web config page
turtle-link init --bind 127.0.0.1:9876 --generate-tokens --open

It writes the config file, generates an API token and an admin token as needed, can create a self-signed certificate and register autostart, and finally opens the web config page. Run it with no arguments for the step-by-step wizard.

FlagEffect
--bind 127.0.0.1:9876Listen address. Defaults to localhost only; use 0.0.0.0:9876 for LAN access.
--generate-tokensGenerate random credentials for any value you did not specify, so nothing runs unauthenticated.
--token / --admin-tokenSet the API token / admin token yourself.
--tls / --generate-tlsEnable HTTPS; generate a self-signed certificate (server.pem / server.key).
--tls-cert + --tls-keyUse your own certificate and private key.
--no-tlsExplicitly disable HTTPS.
--autostartRegister login autostart (macOS LaunchAgent / Linux autostart + systemd user unit).
--openOpen the web config page in your default browser when done.
--interactive / --no-interactiveForce the wizard / skip it and use defaults.

The same executable also runs in a terminal without opening a window. After putting the unzipped folder on your PATH:

CommandWhat it does
turtle-link notes.mdOpen a file (- reads from standard input)
turtle-link -aChat with the AI in the terminal, no GUI
turtle-link -a -m "explain this function"One question, print the answer, exit
turtle-link -tFull-screen terminal editor
turtle-link -p notes.mdRender Markdown to plain text and print it
turtle-link --register-file-typesRegister file-type associations; --unregister-file-types removes them

Subcommands are written as turtle-link <subcommand>:

SubcommandWhat it does
ai (alias code)Coding assistant in the terminal; tools run locally
chat "message"Ask from the command line and get the answer back
sessionsList saved sessions
resume [id]Resume a session; omit the id for the latest one
configRead and write config (global plus project .link-agent/config.json)
init (alias setup)Initialize link-agent
pingCheck whether link-agent is online
logsShow logs (--app for the application log)
self-update <url>Download a new build, verify SHA-256, replace atomically, take effect after restart
pair (alias pairing)Pair remote channels (Telegram and others)
channelsShow paired channels
memoryMemory store and dream sweep
The command output of turtle-link --help and turtle-link <subcommand> --help is authoritative; flags may be added or removed between versions.

How the window is divided

The main area is the editor, with code opened per project; the conversation lives in the same window, so you never switch to a browser. When the AI wants to read a file, edit a file, search, run a command or run tests, it first requests a tool call — nothing runs until you confirm, and nothing is changed silently.

Permissions are granted per project: you can enable one kind of action for one project and revoke it later.

Three panes

The window has three panes, and you never need to switch to a browser:

  • File tree (left): the open project; click a file to open it in the middle.
  • Editor (middle): tabs, one per file, saved in place.
  • AI chat: same window, so you can read code and ask for changes side by side.

Everyday tasks

What you wantHow
Open a projectThe workspace you picked during setup is the default; open another folder from the menu or welcome screen and the file tree follows.
Have the AI read or change codeJust ask in the chat. Before reading files, writing files, searching, running commands or tests, it sends a tool request and waits for your confirmation.
Limit what it may touchPermissions are granted per project: enable one class of operation for one project, revoke it any time.
See what changedWrites show a preview first; decline it and the repository stays untouched.
Use your own modelSettings → AI, or the Link Agent web config page — see the next section.
The AI never edits your repository silently: writes, command execution and test runs all go through one confirmation.

Bring your own model

Models are yours: enter your own API key, pick a provider and a model, and set routing rules per task. Switching models does not require reinstalling or re-indexing the project.

Absolute beginner: what the AI connection actually needs

Connecting AI simply means letting Turtle Link talk to an AI provider you choose. Three items, and all of them are required:

FieldIn plain wordsWhat it looks like
API keyThe key your provider issues. It represents your account and your credit — a long string of characters.Starts with sk-..., dozens of characters, never share it
API root URLThe provider’s address. The field is labelled “API root URL” in the app; it is where the app sends its requests.https://api.deepseek.com/v1
Model IDWhich “brain” to use. Most providers offer several tiers: the expensive ones are smarter, the small/cheap ones are faster.deepseek-chat, gpt-4.1-mini

Four steps, no technical knowledge needed

  1. Pick a provider. Open the AI (model) page in settings — the same page as step 4 of the first-run guide. The table below lists each provider’s address and model — copy them verbatim:
    ProviderDefault modelKey needed?Where to get a key (open in your browser)
    DeepSeekdeepseek-chatYesplatform.deepseek.com/api_keys
    OpenAIgpt-4.1-miniYesplatform.openai.com/api-keys
    Anthropicclaude-sonnet-5-5Yesconsole.anthropic.com/settings/keys
    Geminigemini-2.5-flashYesaistudio.google.com/app/apikey
    OpenRouteropenai/gpt-4.1-miniYesopenrouter.ai/keys
    Ollama (local)llama3.2NoInstall Ollama and pull a model first
    Custom / OpenAI-compatibleYou fill it inDependsCopy address and model from your provider’s docs
  2. Fill in the address and model ID. Copy the address from that row into “API root URL” (it usually ends with /v1; a missing /v1 is the most common mistake) and the model name into “Model ID”, character for character. Use your own key, never someone else’s.
  3. Get a key. Open the provider’s website in your browser (the “Where to get a key” column below gives the address), register or sign in, go to the API keys page and create one — copy it right away. Most providers show the full key only once; if you close the window, just delete it and create a new one.
  4. Paste, test, save. Paste the key into the “API key” field and press Test connection: you first see “Testing connection…”, then the result next to the button — green means it is configured (testing saves the draft for you), a warning gives the reason, so fix it against the error table above. Sending a message afterwards verifies it too.

Not sure which provider to pick

Your situationSuggestion
Quick to get started, low priceDeepSeek: sign up and go, pay-as-you-go, good Chinese, low price
Long-form writing, translation, polished copyOpenAI (gpt-4.1 family) or Anthropic (Claude)
Want one account to try many modelsOpenRouter: an aggregator, top up once and switch models
Spend nothing, code must stay on this machineOllama: run an open model locally, API root URL http://127.0.0.1:11434, key may be left empty
Company gatewayCustom / OpenAI-compatible: enter the address, key and model ID your company gives you

Errors, and what they usually mean

What you seeUsual causeFix
401 / Unauthorized / invalid api keyKey copied incompletely, stray spaces around it, or the key was deleted/expiredCopy the whole key again and make sure there are no spaces
404 / not foundWrong Base URL — most often a missing or extra /v1 at the endCopy the address from the table character by character; watch the /v1 suffix
429 / rate limit / insufficient quotaOut of credit, or requests sent too fastTop up in the provider dashboard; wait a minute and retry
Spins forever / timeout / network errorYour network cannot reach that providerSwitch to a provider you can reach directly, or use local Ollama
model not foundModel ID misspelled, or your account lacks access to that modelCopy the name from the “Default model” column; check the available models in the provider dashboard
About money: these APIs bill by usage — an ordinary chat usually costs a few cents, it is not a monthly subscription. Set a monthly limit in the provider dashboard so it stops automatically instead of surprising you.
About key safety: a key is money in your account — do not paste it into group chats, screenshots or a Git repository. It is stored only in the config file on your own computer; we do not hold your key and cannot recover it for you.
Works without a key too: editing, the file tree and command execution keep working; only AI chat is unavailable, and you can add a key any time.

Where project memory lives

Project conventions, earlier conclusions and conversation transcripts are stored on this machine. Close the window, open the same project later, and you continue from where the last session stopped.

Data stays local by default. Only when you configure a third-party model provider is the content of that request sent to that provider.

Continuing from your phone: WhatsApp and Telegram

The remote channel is optional and off by default: while it is off, no port is opened. When enabled, you can keep talking to the same workspace from WhatsApp or Telegram — useful when you are away from the machine. Disabling it closes the channel immediately.

Link Agent (standalone)

Link Agent is versioned and installed separately from Turtle Link: download Link-Agent-1.0.2-linux-x64.zip, unzip it and run ./link-agent — no build step, no dependency on Turtle Link. It is the engine that runs tasks locally and talks to model providers; Turtle Link is just one of its front ends.

The archive also ships link-agent-panel (GUI panel; you can also trigger update checks there) and rg (ripgrep for content search, so you need not install it). To put it on your PATH run bash install.sh; it installs into ~/.local/bin by default.

Versioning: Link Agent is at 1.0.2 on its own line, independent of Turtle Link 1.0.3. Since 1.0.2 it updates itself headlessly: a long-running serve checks the manifest, verifies the signature, downloads and switches to the new build — no graphical session involved. After an upgrade the process execs in place into the binary pointed to by update/current, so the pid stays the same and neither a systemd restart nor a reboot falls back to the old version. Set LINK_AGENT_NO_REEXEC=1 to disable the startup check. The GUI panel can still check manually, and link-agent self-update <URL> --sha256 <SHA256> forces a specific package.

Web admin console

Once link-agent serve is running, open http://127.0.0.1:9876/admin; with TLS enabled use https:// — plain http:// redirects with a 301. This is the whole interface of the headless server; the desktop editor and the lightweight Panel talk to the same service.

Left-hand sectionWhat it does
OverviewService status, scheduled-task stats, high-risk tools awaiting confirmation, shortcuts.
AI chatStreaming chat with a chosen agent and API profile; a "stop" button interrupts a running job.
AutomationScheduled tasks (workflow IDs, pending-confirmation queue), extensions and workflows.
AI configModel, agents, permissions, tools, skills, web search.
DataProject memory, global knowledge, file browser, project directories.
ConnectionsRemote channels (Telegram / WeChat / email), network and TLS, secrets.

Unlocking on first visit

Enter LINK_AGENT_ADMIN_TOKEN, or the admin_token from the config — that is one of the two tokens created by init --generate-tokens. The top bar then shows online status and whether the scheduler is active. The token is stored in the current browser, so a different browser asks again.

For scripts and other machines: the Hook API

An external script can trigger one unattended job with the admin token:

curl -X POST -H "X-Auth: $LINK_AGENT_ADMIN_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"check disk usage and summarize","allow_all_tools":true}' \
  http://127.0.0.1:9876/api/hook/run
  • allow_all_tools defaults to false; only true auto-approves tool calls.
  • Poll the result with GET /api/hook/job?id=..., abort with POST /api/hook/abort.
The service listens on 127.0.0.1 only. To reach it from a phone or another machine, bind 0.0.0.0:9876 behind TLS and a reverse proxy — never expose port 9876 to the internet without a token.

System requirements

ItemRequirement
WindowsWindows 10 / 11, 64-bit
Linux64-bit distribution
macOSSeparate downloads for Apple Silicon and Intel
Package sizeWindows 33.6 MB / Linux 39.3 MB

Frequently asked

Is anything left running after I close the window?

No. The engine and the editor are one process: closing the window ends everything, with no service left behind.

Can I use it fully offline?

Opening a project and browsing or editing code need no network. AI features depend on the model you configure; a cloud provider requires connectivity.

Is my code uploaded anywhere?

Without a third-party model provider configured, code does not leave the machine. With one configured, only the context of that particular request is sent, and its scope is whatever you actually send.

How do I uninstall?

Delete the program folder. Whether to keep local project data is your call — back it up first.

Getting help

Email the address behind the Feedback link in the footer, including your OS, the Turtle Link version and reproduction steps; attach logs for crashes. For security vulnerabilities, write directly instead of describing details in public.