Repository navigation
Releases
TeXDeck v0.8.0
TeXDeck now has a third part, Papering: a LaTeX workspace where a coding agent edits your paper with you.
Papering
- Projects with a file tree, an editor and the PDF side by side. Panes are resizable and become tabs on a narrow screen. Start from a blank article (English or Chinese) or import a zip, for example from Overleaf; download the PDF or the project as a zip.
- The project recompiles shortly after you stop typing. Errors show with their file and line while the last good PDF stays up. Choose pdflatex, xelatex or lualatex when a TeX installation is present.
- SyncTeX both ways: double-click the PDF to jump to the source line, or press the crosshair to go from the cursor to the PDF.
- Agent: Claude Code, Codex, Antigravity, or an API key through Claude Code or Codex, picked per session, with the model picked per message. The agent edits the project's files; the editor shows each change as it lands and the project recompiles when it is done. Codex signs in from the panel with a device code.
- Add to chat: select text in the editor or the PDF and send it with your message as a card that names its source line. Snip sends a region of the PDF as an image.
- Runs of tool calls fold into one line. Sessions keep their history, resume where they left off, and can be deleted from the clock menu.
Where the agent runs
On a Linux server, compiles run in bubblewrap with no network and no shell escape, and the agent runs in bubblewrap behind pasta, seeing only the project and its own sign-in, with no route to private addresses.
The desktop app has no such sandbox. It compiles with your TeX installation (latexmk) if you have one, else with its bundled Tectonic, and starts the agent CLI on your computer, as you would in a terminal. The agent is told to stay in the project folder, but nothing enforces that. Antigravity is offered only on a Linux server. On macOS the app now reads your shell's PATH, so MacTeX, Homebrew and npm installs are found when it is started from Finder.
Other changes
- SyncTeX is read by TeXDeck itself, so the desktop builds need no
synctexprogram. - The Docker image installs latexmk and the recommended TeX fonts (the Navy template could not be built in it before).
/healthcounts running agent runs, so a deploy waits for them.
Download
macOS (Apple silicon), Windows and Linux builds are below. They bundle their own TeX engine. The builds are unsigned: on macOS right-click the app and choose Open; on Windows choose More info, then Run anyway. For the agent, install Claude Code or Codex on the same computer first.
中文说明
TeXDeck 新增第三部分 Papering:一个由编程 agent 陪你改论文的 LaTeX 工作区。
工作区:左边文件,中间编辑器,右边 PDF,三栏可拖宽,窄屏变成标签页。可以从空白文章(中文或英文)开始,也可以导入 zip(比如从 Overleaf 下载的项目),PDF 和项目 zip 都能下载。停止输入片刻后自动重新编译,出错时显示文件和行号,PDF 保留上一次成功的版本;装了 TeX 时可以选 pdflatex、xelatex 或 lualatex。SyncTeX 双向跳转:双击 PDF 跳到源码行,点准星从光标跳到 PDF。
Agent:Claude Code、Codex、Antigravity,或经 Claude Code、Codex 调用的 API key,每个会话选一种,每条消息可以换模型。agent 直接改项目文件,编辑器实时显示改动,结束后自动重新编译。Codex 在面板里用设备码登录。在编辑器或 PDF 里选中文字后点 Add to chat,这段内容会以注明源码行的卡片随消息发出;Snip 把 PDF 上框选的区域作为图片发出。连续的工具调用折叠成一行;会话保留历史、可以接着上次继续,也可以在时钟菜单里删除。
运行环境:在 Linux 服务器上,编译在 bubblewrap 里进行,断网且禁止 shell escape;agent 运行在 bubblewrap 加 pasta 里,只能看到项目和它自己的登录,连不到内网地址。桌面版没有这层沙箱:装了 TeX(latexmk)就用你的 TeX,没装就用自带的 Tectonic,agent 命令行直接在你的电脑上启动,和你在终端里运行它一样;TeXDeck 会要求它只在项目目录里活动,但无法强制。Antigravity 只在 Linux 服务器上提供。macOS 版从 Finder 启动时会读取你 shell 里的 PATH,MacTeX、Homebrew 和 npm 装的命令都能找到。
其他:SyncTeX 由 TeXDeck 自己解析,桌面版不再需要 synctex 程序;Docker 镜像补装了 latexmk 和常用 TeX 字体(此前镜像里 Navy 模板编译不过);/health 把正在运行的 agent 计入任务数,部署会等它们结束。
下载:下方有 macOS(Apple 芯片)、Windows、Linux 安装包,自带 TeX 引擎。安装包未签名:macOS 右键选“打开”,Windows 点“更多信息”再点“仍要运行”。要用 agent,请先在同一台电脑上装好 Claude Code 或 Codex。
TeXDeck v0.7.0: Learn — study notes, questions and mock exams
TeXDeck now helps you study a PDF as well as present it. The app has two halves, Learn and Presentation, switched from the top bar.
Study notes, linked to the source
Learn → Study notes turns one or more PDFs, or pasted text, into a few pages of boxed notes typeset in LaTeX (PDF, TeX and an Overleaf zip). The notebook shows the source on the left and the notes in the middle, with several documents as tabs.
- Every heading records the source pages it came from. Double-click a part of the notes and the source scrolls to its page; double-click a source page and the notes scroll to the part covering it.
- Ask AI: select text on either side, or drag an Area box around a figure or table, and ask. The model gets the notes, the source text and images of the quoted pages, answers with page numbers and rendered maths, and takes follow-ups.
- Each question leaves a numbered mark on the page to reopen it. Open several question cards at once and drag them into any half-column. New session starts a clean conversation without losing earlier marks.
- Add to notes turns an answer into an edit request for the right box of the notes.
- A progress rail marks parts as learnt and shades them green, in the notes and on the source pages they cover.
Mock exams
Learn → Practice exam builds an exam from your material plus whatever you know about the real one: a description, a table of question types, the time allowed, and up to ten past papers (PDF or photos).
- The model drafts an exam profile (sections, topics with their share of the marks, question style, marking habits) that you can edit.
- New paper writes a full mock exam with an answer key, typeset in LaTeX, avoiding earlier papers' questions. Add an optional focus for a paper.
- Practise in the browser one question at a time. Choice, true/false and fill-in questions are marked on the spot; short answers and calculations are marked by the model, or by you against the model answer.
- Per-topic mastery from every answer, with recent answers weighing most; the weakest high-value topic is flagged Practise next, and later papers lean toward weak topics.
- Drill: 10 to 15 questions of one type on one topic, easy to hard. Add topics of your own with example questions.
Presentation
- While an edited deck recompiles, the current slide stays on screen with a status badge, and the result is shown only once the job has really finished (edits with attached images could show the old PDF before).
- Speaker notes in the edit panel are a fixed four lines that fold out.
- Downloads (PDF, TeX, zip, PPTX) are named after the deck title.
- The model is told not to write disclaimers, hedges, image credits or one-line summary boxes on slides.
- The PDF viewer renders CID fonts such as Fandol correctly.
Server and accounts
- Up to five jobs run at once; TeX engine runs are capped at two.
- Invites → Copy link copies a sign-up link that opens the registration form with the code filled in.
License
From this release TeXDeck is source-available under the PolyForm Noncommercial License 1.0.0: free for personal, educational and other noncommercial use; commercial use needs a license from the author. v0.6.1 and earlier remain under MIT.
Download
macOS (Apple silicon), Windows and Linux builds are below. They bundle their own TeX engine. The builds are unsigned: on macOS right-click the app and choose Open; on Windows choose More info, then Run anyway.
中文说明
TeXDeck 现在不光能把 PDF 做成幻灯片,也能帮你学懂它、备考它。顶栏分成 Learn 和 Presentation 两部分。
学习笔记:一份或多份 PDF(或粘贴的文字)生成几页带框的 LaTeX 笔记,可导出 PDF、TeX、Overleaf zip。笔记本左边原文、中间笔记,多份材料用标签页切换。每个标题记着出处页码,双击笔记跳到原文对应页,双击原文跳到讲它的笔记。在任意一边选中文字或用 Area 框住图表即可提问,回答带页码和公式,可以追问;每个问题在页面上留编号,可同时打开多张问题卡片并拖到任意半栏;New session 开新对话而不丢旧批注;Add to notes 把回答变成对笔记的修改请求。左侧进度栏标记已学部分,笔记和对应原文页罩成浅绿色。
模拟考试:用材料加上你对真实考试的了解(文字描述、题型表、时长、最多十份往年题,PDF 或照片)新建考试。模型起草考试画像(结构、考点及分值占比、出题风格、评分习惯),可修改。New paper 出一整张 LaTeX 排版的模拟卷和答案,避开之前的题,可以指定侧重。浏览器里逐题练习:客观题当场判,主观题由模型判或对照答案自评。每个考点按作答记录计算掌握度,最近的作答权重最高,分值高又没掌握的考点标为 Practise next,之后的卷子偏向弱项。Drill 针对一个考点出 10 到 15 道同题型、由浅入深的题;也可以自加考点并附例题。
幻灯片:修改后重新编译期间当前页保持显示并带状态标签,任务真正结束才显示结果(以前带图修改可能显示旧 PDF);编辑面板的演讲者备注固定四行、可展开;PDF、TeX、zip、PPTX 下载按标题命名;提示词要求模型不写免责声明、限定语、图片来源和一句话总结框;PDF 查看器能正确显示 Fandol 等 CID 字体。
服务器与账号:最多同时运行五个任务,TeX 引擎同时最多两个;Invites 菜单可以直接复制注册链接,打开即填好邀请码。
许可证:从本版起改为 PolyForm Noncommercial 1.0.0,个人、教学等非商业用途免费,商业用途须取得作者授权;v0.6.1 及以前的版本仍是 MIT。
下载:下方有 macOS(Apple 芯片)、Windows、Linux 安装包,自带 TeX 引擎。安装包未签名:macOS 右键选“打开”,Windows 点“更多信息”再点“仍要运行”。
TeXDeck v0.6.1
Whole-deck requests join the change list
A request under Whole deck now waits in the change list next to the slide requests and text fixes. Apply all sends the whole-deck request and every slide request to the model in one call, then compiles once.
Attach images to any request
Next to the request box, Attach image adds pictures to a slide request or a whole-deck request; screenshots can also be pasted straight into the box. The model sees each picture with its size and shape and places it as the request says. The images stay in the change list, with thumbnails, until you apply it.
Faster edits
- For a whole-deck request the model now writes only the slides that change (rewritten, removed or new ones) instead of retyping the whole deck, unless the preamble or most slides change.
- An edit that keeps the slide structure compiles in one LaTeX pass instead of two: about 4 seconds instead of 8.
- A reply the model gets wrong is asked for once more before the edit is rolled back.
PPTX fonts that your computer has
PowerPoint, WPS and Keynote find fonts by exact name, and the same design goes by many names: Palatino is "Palatino Linotype" on Windows, "Palatino" on macOS, "URW Palladio L" or "TeX Gyre Pagella" elsewhere; Kai is KaiTi, STKaiti, Kaiti SC, AR PL UKai and more. TeXDeck now knows these designs and their names, checks which fonts are installed on the computer you download from, and writes the nearest one: the very font if you have it, else the same design under another name, else the closest design of the same style. A serif font never falls back to a sans one; Kai and Fangsong fall back to Song.
中文说明
整套修改也进待改列表:Whole deck 里的修改要求现在和单页要求、改字一起排进待改列表。点 Apply all,整套要求和各页要求合成一次模型调用,最后只编译一次。
修改要求可以附图:输入框旁的 Attach image 可以给单页要求或整套要求加图片,截图也可以直接粘贴进输入框。模型能看到每张图的尺寸和形状,按要求放进幻灯片。应用之前,图片和缩略图一直留在待改列表里。
修改更快:整套修改时,模型只写有变化的页(改写、删除或新增),不再把整套重抄一遍,除非要改导言区或大部分页。不改变页面结构的修改只编译一遍,约 4 秒,原来是 8 秒。模型回复格式不对时会再要一次,仍不行才回滚。
PPTX 用你电脑上有的字体:PowerPoint、WPS、Keynote 按精确名字找字体,而同一款设计有很多名字:Palatino 在 Windows 上叫 Palatino Linotype,在 macOS 上叫 Palatino,在别处叫 URW Palladio L 或 TeX Gyre Pagella;楷体有 KaiTi、STKaiti、Kaiti SC、AR PL UKai 等叫法。TeXDeck 现在认识这些设计和它们的各种名字,下载时检查你电脑上装了哪些字体,写入最接近的一个:有原字体就用原字体,没有就用同一设计的其他名字,再没有就用同风格里最接近的设计。衬线字体不会回退到无衬线字体,楷体、仿宋回退到宋体。
TeXDeck v0.6.0
Your own images on the slides
Add photos, screenshots or logos under Images to include on the form, up to 12, each with an optional note such as "on the results slide". The model sees every image with its size and shape and picks the slide and a layout that suits it: full width for wide images, beside the text for square and tall ones. Images keep their proportions and never run off the slide; after compiling, any image left out is placed and any slide that overflows is fixed. The model no longer redraws photos or scans from your material, and describes them in words instead.
Fix many things, compile once
Clicking text to fix it and asking for a change under This page no longer recompile each time. Changes wait in a list at the top of the deck, marked on the slides and on the thumbnails, and Apply all makes them in one go: your text fixes, then all slide requests in a single model call, then one compile. The list survives a reload. The title page can now take requests too.
Layout problems are caught for you
After every compile, slides where text runs into other text (chart labels, arrow labels on top of boxes) or that run off the page are found and sent back to the model to fix. The prompts also ask for arrows long enough to see and labels that keep clear of each other.
Memory
The model notes your habits (say, "at most three bullets a slide") and the mistakes you had to fix, and follows them in every new deck and edit. Open Memory in the top bar to read or rewrite them.
Antigravity
Run the model on a Google Antigravity plan through the agy CLI. agy is an agent whose tools cannot be switched off, so TeXDeck only runs it inside bubblewrap, where it sees nothing but its own sign-in and the request's files. That means Linux only; each account signs in to its own agy.
Smaller things
- A TeXDeck icon of our own, on the web and in the desktop app.
- The page count shows the PDF's pages, title and section pages included.
中文说明
在幻灯片里放自己的图片:表单的 Images to include 里可以加入照片、截图或 logo,最多 12 张,每张可附一句备注,比如"放在结果那一页"。模型能看到每张图的尺寸和形状,自己决定放在哪一页、怎样排版:宽图占满整行,方图和竖图放在文字旁边。图片保持原比例,不会超出页面;编译后如果有图没用上,会补放进去,超出页面的页会被修正。材料里的照片、扫描图不再被模型重画,改用文字描述。
改完再一次编译:点击文字改字、在 This page 里提修改要求,都不再立即重新编译。修改会排进幻灯片上方的列表,并在页面和缩略图上标出位置;点 Apply all 一次完成:先改字,再把各页要求合并成一次模型调用,最后只编译一次。刷新页面列表不会丢。标题页现在也可以提修改要求。
自动发现排版问题:每次编译后,会找出文字互相压住(图表标签、箭头标签压在方框上)或超出页面的页,交回模型修正。提示词也要求箭头够长、标签互不重叠。
记忆:模型会记下你的习惯(比如"每页最多三条要点")和你改过的错误,之后生成和修改都会照做。顶栏的 Memory 里可以查看和修改。
Antigravity:可以用 Google Antigravity 订阅,经 agy 命令行调用。agy 是一个工具关不掉的 agent,所以 TeXDeck 只在 bubblewrap 沙箱里运行它,它只能看到自己的登录和本次请求的文件。因此只支持 Linux,每个账号各自登录自己的 agy。
其他:换上了 TeXDeck 自己的图标,网页和桌面版都已更新;页数显示改为 PDF 的实际页数,包括标题页和分节页。
TeXDeck v0.5.0
Make a template your own
Click New template on the home page, or the palette icon on Academic, Emerald, Graphite, Navy or Scholar. The editor shows the template's sample deck and recompiles it a moment after each change, so what you see is what your slides will look like.
- Colours: each template lists the colours worth changing (main, accent, headings, body text and so on). Pick them from a palette or type a hex value; each one resets on its own.
- Title-page background: use any picture, whatever its size or shape. Place it on the 16:9 page by dragging, scaling, stretching an edge or rotating, and fill the rest with a blurred copy of the picture, a colour or the template's own background. A tint keeps the title readable, and dashed boxes show where the title text will sit.
- Logos: plain margins are trimmed so the logo fills its slot. The plain background can be kept, cleared around the logo, or cleared everywhere (for the holes inside letters). Wide and tall logos now fit their slot in every template instead of being stretched to a fixed width.
- Saved per account: a custom template stores only what you changed, so the layout still comes from the built-in template. Reopen it later and the picture, its position and the colours come back as you left them. Deleting a template keeps the decks made with it working.
中文说明
自定义模板:首页点 New template,或在 Academic、Emerald、Graphite、Navy、Scholar 上点调色板图标。编辑器显示这套模板的示例幻灯片,每次修改后稍等片刻就重新编译,看到的就是生成出来的样子。
- 配色:每套模板列出值得改的颜色(主色、强调色、标题、正文等),用调色板选或直接输入色值,每项可以单独恢复默认。
- 标题页背景:任意尺寸、任意比例的图片都能用。在 16:9 页面里拖动、缩放、单边拉伸、旋转来摆放,空白处可以用模糊的同一张图、纯色或模板原背景填充。遮罩可以保证标题看得清,虚线框标出标题文字的位置。
- Logo:自动裁掉纯色边缘,让 logo 占满它的位置。纯色背景可以保留、只去掉外围,或全部去掉(字母内洞也去掉)。所有模板里,偏宽或偏高的 logo 都会按比例放进自己的位置,不再被拉成固定宽度。
- 按账号保存:自定义模板只保存改动部分,版式仍来自内置模板。重新打开时图片、位置和配色都会还原。删除模板后,用它做过的幻灯片照常可用。
TeXDeck 0.4.0
Click the slide to fix its text
Click any text on the preview and a small editor opens right under it, showing the words as they appear on the slide, not the LaTeX behind them. Fix a typo, press Enter, and the deck recompiles without calling the model. Bold and other emphasis inside the sentence are kept; characters such as %, & and _ are escaped for you. Only a sentence with a formula in it opens as LaTeX, and then just that sentence.
The click is matched to its source by what the page can show: the slide's own frame plus the title, section names and other text outside frames. Text wrapped onto several lines, repeated labels in diagrams, small caps, math letters and formulas split over several source lines are all found.
Export and review
- PPTX download: the compiled deck becomes an editable PowerPoint file. Text stays in real text boxes with its position, size, colour and bullets; formulas and decorations stay as images.
- Speaker notes: every content slide gets notes. They show next to the preview and go into the PPTX notes. Older decks can get them with "Whole deck".
- Preview: one page at a time with Prev/Next or the arrow keys, and page thumbnails underneath.
- ChatGPT models: the list now comes from your own account.
Running it for several people
- Invite-code sign-up: set
TEXDECK_REGISTRATION=true. The first person signs up with the codehi_my_texdeck, which then stops working, and becomes the admin. After that the admin hands out one-use codes from the Invites button. - Separate accounts: each account connects its own ChatGPT, Claude or API key and sees only its own decks.
- Sign-in without registration: still available with accounts made on the server (
python -m app.auth add). - Docker and server setup: Docker keeps accounts in the state volume.
docs/deploycovers a server behind Caddy and Cloudflare. - Desktop and local use: unchanged, with no sign-in.
中文说明
点击幻灯片直接改字:在预览上点任意文字,下方弹出小编辑框,显示的是幻灯片上的文字,不是背后的 LaTeX 代码。改完按 Enter,不调用模型,直接重新编译。句中的加粗等格式会保留,%、&、_ 等特殊字符自动转义。只有含公式的句子才显示 LaTeX,而且只显示这一句。点击的文字只在可能排版出本页的源码里查找:本页的 frame,加上标题、节名等 frame 之外的内容。折行的文字、图里重复出现的标签、小型大写、公式里的字母、拆成多行写的公式都能找到。
导出与预览:
- PPTX 下载:编译好的幻灯片可以导出为可编辑的 PowerPoint,文字是真正的文本框,保留位置、字号、颜色和项目符号;公式和装饰保留为图片。
- 演讲者备注:每个内容页都有备注,显示在预览旁边,也会写进 PPTX 的备注栏;旧幻灯片可以用 "Whole deck" 补上。
- 预览:改为单页显示,用 Prev/Next 或方向键翻页,下方有缩略图。
- ChatGPT 模型列表:改为从你自己的账号读取。
多人使用:
- 邀请码注册:设
TEXDECK_REGISTRATION=true后,第一个人用邀请码hi_my_texdeck注册,成为管理员,这个码随即失效;之后由管理员在顶栏 Invites 里发一次性邀请码。 - 账号独立:每个账号连接自己的 ChatGPT、Claude 或 API key,只能看到自己的幻灯片。
- 不开注册:也可以在服务器上直接建账号(
python -m app.auth add)。 - Docker 与服务器部署:Docker 会把账号保存在 state 卷里。服务器部署见
docs/deploy。 - 桌面版和本地运行:不受影响,无需登录。
Full Changelog: v0.3.0...v0.4.0
TeXDeck v0.3.0
One model button
The top bar now has a single model button. Its panel lists three ways to run the model, lets you switch between them, and lets you pick the model for each:
ChatGPT on your ChatGPT plan: click Connect, sign in, then pick one of the models your account offers.
Claude on your Claude plan (new): needs Claude Code installed on the same computer. If Claude Code is already signed in, Connect is all it takes; otherwise TeXDeck runs claude auth login, shows the sign-in link, and you paste the code back in. Choose Fable, Opus, Sonnet or Haiku. TeXDeck drives your own Claude Code in headless mode and never sees the credentials. Not available in the Docker image.
API key for any OpenAI-compatible vision model, now entered in the panel instead of a config file.
Simpler form
- Material comes first; the title is optional and taken from the document when left empty.
- New "Slide language" choice: same as the material (default), English or 中文.
- Author, institute and extra instructions sit under "More options".
- Generate stays disabled until a model is connected, with a button to connect one.
- On a finished deck, one box changes either "This page" or the "Whole deck"; the LaTeX source is hidden until you ask for it.
- If the model fails (signed out, quota, unavailable), the error offers "Change model" and "Try again".
中文说明
统一的模型按钮:顶栏只有一个模型按钮,面板里列出三种用法,可以随时切换,也可以分别选择模型。
ChatGPT 订阅:点 Connect 登录,再从账号可用的模型里选一个。
Claude 订阅(新增):同一台电脑上要装有 Claude Code。Claude Code 已经登录的话,点 Connect 就能用;没登录的话,TeXDeck 会启动 claude auth login 并显示登录链接,授权后把页面上的代码粘贴回来。模型可选 Fable、Opus、Sonnet、Haiku。TeXDeck 以无头模式驱动你本机的 Claude Code,接触不到凭据。Docker 镜像不支持。
API key:任意 OpenAI 兼容的视觉模型,现在直接在面板里填写,不用再改配置文件。
表单简化:材料放在最前面;标题可以留空,由模型从文档里取;新增"幻灯片语言"选项(跟随材料,默认 / English / 中文);作者、机构、附加要求收进 "More options"。没连接模型时 Generate 不可用,并提供连接按钮。生成后的修改合并为一个输入框,用 "This page / Whole deck" 切换范围,LaTeX 源码默认折叠。模型出错(未登录、额度用完、模型不可用)时,错误卡片直接提供 "Change model" 和 "Try again"。
Full Changelog: v0.2.0...v0.3.0
TeXDeck v0.2.0
TeXDeck can now run on a Claude subscription as well as a ChatGPT subscription. No API key needed.
ChatGPT subscription
Open TeXDeck, click Sign in with ChatGPT in the top bar and finish signing in in the browser. That's it.
Claude subscription (new)
TeXDeck runs your own Claude Code CLI in headless mode (claude -p), so generation uses the account that CLI is signed in with. TeXDeck never sees your credentials.
-
Install Claude Code and sign in:
claude auth login(the Claude subscription is the default;claude auth statusshows what you are signed in with). -
Add these lines to
texdeck.envand restart TeXDeck:TEXDECK_LLM_PROVIDER=claude-code TEXDECK_CLAUDE_CODE_MODEL=sonnettexdeck.envis in the app's data folder:~/Library/Application Support/TeXDeckon macOS,%APPDATA%\TeXDeckon Windows,~/.local/share/TeXDeckon Linux. When running from source, useserver/.env.
The top bar then shows Claude Code · sonnet. If ANTHROPIC_API_KEY is set in your environment, the CLI bills the API instead of your subscription. This mode does not work in the Docker image, which has no Claude Code CLI.
中文说明
现在可以直接用 ChatGPT 或 Claude 订阅生成,不需要 API key。
ChatGPT 订阅:打开 TeXDeck,点顶栏的 Sign in with ChatGPT,在浏览器里完成登录即可。
Claude 订阅(新增):TeXDeck 以无头模式调用你本机的 Claude Code CLI(claude -p),用的是这个 CLI 登录的账号,TeXDeck 接触不到凭据。先安装 Claude Code 并运行 claude auth login 登录(默认就是 Claude 订阅,可用 claude auth status 确认),然后在 texdeck.env 里加上下面两行,重启 TeXDeck:
TEXDECK_LLM_PROVIDER=claude-code
TEXDECK_CLAUDE_CODE_MODEL=sonnet
texdeck.env 在数据目录里:macOS 是 ~/Library/Application Support/TeXDeck,Windows 是 %APPDATA%\TeXDeck,Linux 是 ~/.local/share/TeXDeck;源码运行则写在 server/.env。生效后顶栏显示 Claude Code · sonnet。环境里设了 ANTHROPIC_API_KEY 的话,CLI 会改走 API 计费。Docker 镜像里没有 Claude Code CLI,不能用这个模式。
Full Changelog: v0.1.0...v0.2.0


