Skip to content

TeXDeck v0.2.0

Choose a tag to compare

@github-actions github-actions released this 07 Nov 13:19
· 103 commits to main since this release

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.

  1. Install Claude Code and sign in: claude auth login (the Claude subscription is the default; claude auth status shows what you are signed in with).

  2. Add these lines to texdeck.env and restart TeXDeck:

    TEXDECK_LLM_PROVIDER=claude-code
    TEXDECK_CLAUDE_CODE_MODEL=sonnet
    

    texdeck.env is in the app's data folder: ~/Library/Application Support/TeXDeck on macOS, %APPDATA%\TeXDeck on Windows, ~/.local/share/TeXDeck on Linux. When running from source, use server/.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