Derive it, check it, prove it.
Open-source AI theorist for the desktop, VS Code, and the terminal.
Desktop App · Docs · Install · Programs · Models · Work with TeXRA · Worldline SDK · Sponsor
TeXRA connects frontier models to the tools theoretical research depends on:
Wolfram and Python, a live Lean 4 server with Loogle, arXiv and Zotero, LaTeX
compilation with latexdiff PDFs, and parallel multi-agent scripts.
TeXRA 1.0 ships as a standalone Desktop App, a VS Code extension (also Cursor, Windsurf, and Antigravity), and a terminal CLI over one SQLite-backed Effect runtime. Apache 2.0, no TeXRA account: bring your own API keys or subscriptions, and requests go straight from your machine to the provider.
- Tools in the loop. Check derivations in Wolfram and Python, type-check
proofs against a live Lean 4 server, cite real papers from arXiv and Zotero,
and inspect every LaTeX edit as a line-by-line diff or compiled
latexdiffPDF. - One assistant, parallel scripts, autonomous goals. Describe the problem and files; there is no agent menu. For large jobs, the assistant writes sandboxed JavaScript to fan out helper agents in parallel, delegates coding to Codex or Claude Code, or runs multi-round goals checked by an independent judge.
- Built for multi-hour problems. Tasks persist to SQLite, resume after a crash without repeating finished work, fork at any turn, and stay alive in a shared background service across Desktop, VS Code, and CLI.
- Tailored to your project. Add rules in
AGENTS.md, Markdown memory,SKILL.mdskills, and Claude Code / Codex plugins (including MCP servers and custom programs).
- Desktop App (macOS, Windows, Linux; no VS Code required): download from texra-ai/texra-desktop-releases.
- VS Code extension & Terminal CLI:
# VS Code 1.125+ (also Cursor, Windsurf, Antigravity)
code --install-extension texra-ai.texra
# Terminal CLI (Node.js 22.22.2+ or 24.15+)
npm install -g @texra-ai/cli # or: brew install texra-ai/tap/texraAdd an API key in Settings → Models (or texra auth chatgpt login /
texra auth grok login), then open a project folder or start from the terminal:
texra setup # guided setup and first task
texra chat # interactive chat
texra run edit --input paper.tex # revise LaTeX with compiled diffs
texra run review --input paper.tex --print # audit derivations and math
texra run prove --input Proofs/Basic.lean # complete proofs with Lean diagnosticsAll three apps share credentials, settings, and task history. See the Installation and Quick Start guides.
Ask the assistant in plain words or run texra run <program> --input <file>
(full catalog):
| Family | Programs | What it returns |
|---|---|---|
| Document | edit, annotate, enhance, apply, transcribe, slides, poster |
Compiled LaTeX and latexdiff PDFs |
| Task | review, search, derive, solve, experiment, code, review-code, simplify, test, fix-latex, latexdiff |
Research report or verified project edits |
| Lean 4 | prove, lean-simplify, blueprint, lean-search |
Proofs verified with zero errors, zero sorry, no new axioms |
Direct routes to Anthropic, OpenAI, Google Gemini, DeepSeek, xAI Grok, Moonshot Kimi, Alibaba Qwen, Zhipu GLM, MiniMax, and Meta Muse, plus ChatGPT, Grok, Kimi Code, and GLM subscriptions and custom OpenAI Responses, Anthropic Messages, or Gemini Interactions endpoints. Mix models freely across helper agents and programs (Models guide).
- Lean 4 formalizations: TNLean (tensor-network theory and MPS), QICLean (quantum information and channels), MIPStarRE (MIP* = RE).
- Papers: Can Theoretical Physics Research Benefit from Language Agents? (ICML 2026) · Multi-agent Autoformalization of Tensor Network Theory (2026) · Co-Designing Quantum Codes with Transversal Diagonal Gates via Multi-Agent Systems (2025) · Agentic Publication Protocol (2026).
More at texra.ai/work-using-texra.
TeXRA's core ships as two standalone Effect 4 libraries you can embed in your own apps, CLIs, and editors:
- Worldline (
@texra-ai/worldline): Durable, forkable agent runtime in Effect backed by SQLite, with crash-tested recovery, plain-JS multi-agent scripts in QuickJS, approvals, plugins, browser-safe UI views, and 14 runnable examples. @texra-ai/llm: Pure EffectModelover OpenAI Responses, Anthropic Messages, and Google Interactions (10 providers, 140+llm-zoomodels, typedModelError, lazy SDK loading, and wire cassettes).
Companion MIT-licensed repositories under texra-ai:
Workspace packages, upgrading from 0.40, and development
- Packages:
@texra-ai/worldline·@texra-ai/llm·@texra-ai/texra·packages/extension·packages/desktop·@texra-ai/cli·packages/trace-viewer - Upgrading from 0.40: 1.0 starts with fresh SQLite history (0.40 JSON
state and your research files are untouched), shares keys in
~/.texra/secrets/, retires TeXRA accounts / OpenRouter / Copilot / custom agent YAML files, and usesprovider/id[@effort]model names. See CHANGELOG.md. - Development:
corepack pnpm install,npm run typecheck,npm run gate,npm run test:pure. Architecture guide: AGENTS.md.
Full Docs · GitHub Issues · SECURITY.md · contact@texra.ai
Licensed under Apache-2.0. © TeXRA Team 2024–2026. Terms · Providers