Quick Start Guide
You have a paper draft and a deadline. Let's get TeXRA working for you in under five minutes. On a fresh install, the setup assistant offers to run this whole loop for you in one conversation; this page is the reference for the Launcher you'll drive every day after.
The whole story in one line: Setup is the doorman, polish is the demo, the orchestrator is the habit.
The Launcher tab: point it at your file, pick an agent and a model, write one sentence, and press Execute.
Overview
TeXRA sits inside VS Code and helps you polish writing, fix errors, create figures, and transform documents—without leaving your editor. Here's the short version:
- Select your file
- Pick an agent and model
- Write a short instruction
- Click Execute
- Review the diff
💡 Tip: Inside VS Code you can open the Get started with TeXRA walkthrough from the Get Started page (or by running
TeXRA: Open Getting Started Walkthrough). It tells the same story in three beats — sign in or add a key, the setup assistant takes it from here, meet the orchestrator — and links directly to the relevant commands.
Prefer the terminal?
This guide walks through the VS Code extension. If you installed the CLI, the same agents run from the command line — start an interactive session with texra chat, or run a single agent with texra run polish --input draft.tex. Run texra agents list to see what's available.
Sign in or add a key
A credential is the one step no agent can do for you. On a fresh install, the Welcome to TeXRA card in the TeXRA panel offers the same two choices, in the same order:
- Sign in — free for academics — Researcher Access: no API key needed (recommended). Run TeXRA: Sign In from the Command Palette, or pick the sign-in option on the welcome card. Signing in also unlocks remote agents, including the orchestrator.
- Use your own provider API key — Anthropic, OpenAI, Google, and more. Open the Dashboard's Models tab (the gear icon at the top of the TeXRA panel) and set your provider's key in the API Configuration table, or place a
.envfile in your workspace with variables likeOPENAI_API_KEY.
The full per-provider key reference — the API Configuration table, Set / Get / Remove actions, and per-provider toggles — lives in Models → Setting API Keys.
Once a credential is in place, the setup assistant takes it from here: one conversation that checks your environment, applies a team for your field, and runs your first polish, ending at a diff. First run is the manual mirror of that conversation.
CLI credentials
The terminal uses the same two paths — texra login for included hosted access, or provider env vars for your own keys. See Authentication on the CLI page.
Basic Workflow
Haven't run an agent yet? First run walks through the whole loop — sample file, one polish run, read the diff — in five minutes, side-by-side for the extension and the CLI. The sections below cover the Launcher controls you'll use beyond that.
The Launcher in Detail
Open the TeXRA panel from the brain icon in the sidebar, or press Ctrl+Alt+M (Cmd+Option+M on macOS).
Select Files
- In the Input section, click Add files and pick your document from the file picker. You can also drag-and-drop it from the OS file manager. If you have several
.texfiles open and want them all, use Add opened files — it appends every editor tab whose extension matches. - (Optional) Use the same buttons in Context to add read-only references or preamble, and Media to add figure files.
Multiple Files
Each category holds an ordered list — add as many files as the task needs and drag rows to reorder them.
The file selector: Input holds the document you're editing, Context holds references and preamble, and Media holds figures.
Choose Agent, Model, and Instruction
The dropdown menus at the bottom of the instruction box pick the agent (e.g. polish for improving writing) and the model (e.g. sonnet46). Then write a specific instruction in the text area:
Improve the clarity and flow of this document. Focus on making the technical
explanations more accessible. Fix any grammatical issues or awkward phrasing.
Ensure consistent terminology throughout.Effective Instructions
Be specific about what you want! Include what should change and what should remain the same.
Configure Tools
Two icon buttons sit in the file-group header rows of the file selector — one next to the Input label, one next to the Media label. They light up when a helper is active.
- Click the Tool configuration options button to:
- Attach TeX Count — include document word-count statistics so the agent knows the document's size and structure
- Click the Auto-extract options button to enable, for this run:
- Figures — pull figures out of the document automatically
- TikZ Figures — extract TikZ figures
- Compile Input PDF — compile the input to PDF first
Reflection rounds are controlled by the selected agent—most writing agents already include a follow-up critique pass.
The two helper menus in the Input and Media file-group headers. Active helpers tint their buttons; here Attach TeX Count and Figures are on.
Save Prompts for Later
For advanced debugging, enable the texra.debug.saveInputPrompt setting (in .texra/config.json or VS Code settings) to store the generated prompt alongside other debug artifacts.
Execute and Watch the Run
Press Execute (). The ProgressBoard opens in the TeXRA view and streams the run live — see the ProgressBoard guide for interpreting the logs.
The ProgressBoard streams the run live — todos, delegated subagents, and the tool-use log — with the output files alongside.
Review Results
- When the agent completes, VS Code will open the generated output file from the run's task storage folder (e.g.,
r0/draft.tex, preserving the input filename). - Review the changes made by the AI. Remember, it's smart, but hasn't passed its quals yet!
- You can compare the original and modified versions using:
ProgressBoard Diff: Click the Diff button on the completed stream to compare the original file against the generated task-storage output.
r0/draft.tex TeXRA12\begin{abstract}13We present an efficient method for the14estimation of spectral gaps in random regular graphs.15\end{abstract}1617\section{Preliminaries}18Let $G$ be a $d$-regular graph.draft.tex Previous draft12\begin{abstract}13We present anovel and efficientmethod for the14estimation of spectral gapsin random regular graphs.15\end{abstract}1617\section{Preliminaries}18Let $G$ be a graph.VS Code's diff editor opens with your original on the left and the round-0 output (
r0/draft.tex) on the right — removed text in red, improved text in green.You can accept reviewed outputs from the ProgressBoard after comparing the changes.
TeXRA's LaTeXdiff feature: Use the LaTeXdiffs section in the TeXRA panel for a compiled, visual comparison. This creates a PDF with additions highlighted in blue and deletions in red.
For details on how LaTeX diff works, see the LaTeX Diff guide.
From the CLI
The same agents are one command away from the terminal. After npm install -g @texra-ai/cli (Node.js >=22.9.0) or brew install texra-ai/tap/texra:
# Sign in for included hosted access, or set ANTHROPIC_API_KEY / OPENAI_API_KEY in your shell:
texra login
# One-shot run (prints the revised file's path; --output copies it next to the input):
texra run polish --input draft.tex \
--instruction "Improve clarity; preserve math and citations."
# Or open an interactive tool-use session:
texra chat- r0 — draft revision
- r1 — critique and revise
What a one-shot run looks like: rounds stream as progress, then the path to the revised document prints on stdout.
Run history is shared with VS Code, so a run started in the CLI shows up in the extension's ProgressBoard (and vice versa). See TeXRA CLI for sign-in, workspace defaults, and headless output formats.
Common Quick Tasks
Here are some common tasks you can try with TeXRA. Each is just an agent, a model, and a one-line instruction in the Launcher footer:
Three starter recipes — pick the agent and model, then paste the instruction. The first model listed is a good default; the others are interchangeable alternatives.
Understanding the Output
A completed run writes everything into the run's task storage folder, one folder per round. Each round holds three artifacts, and the document keeps your input filename (draft.tex, not output.tex):
r0/Round 0draft.texOutputinput filename preserveddraft.logLogprocess detailsdraft_polish_r0_diff.pdfDifforiginal vs revised
r1/next round, same trioOne folder per round under r{round}/<input-filename>: the revised Output, a Log of the run, and the Diff PDF. Round 1 (and any further reflection rounds) repeat the same trio.
So if your input file is paper.tex, the first round's output lands at r0/paper.tex — the filename you started with, never output.tex. The CLI writes the same per-round tree under .texra/runs/<run-id>/ — see First run for the terminal walkthrough.
Next Steps
Now that you've completed your first task with TeXRA, you can:
- Explore more built-in agents for specialized tasks
- Learn about LaTeX diff for comparing document versions
- Discover how to use intelligent merge for combining changes
- Optimize your workflow with custom configuration
For any issues or questions, refer to the troubleshooting section or check the GitHub repository.