Installation Guide
This guide will walk you through the process of installing TeXRA and all its dependencies to ensure optimal performance.
System Requirements
TeXRA is designed to work on all major operating systems with the following minimum requirements:
- Visual Studio Code: Version 1.105 or newer (for the VS Code extension)
- Operating System: Windows, macOS, or Linux
- Internet Connection: Required for API access to language models
Installing the Extension
From Extension Marketplaces
The easiest way to install TeXRA is directly from an extension marketplace:
- Open VS Code or your VSCodium-compatible editor.
- Go to the Extensions view (click the square icon in the Activity Bar or press
Ctrl+Shift+X). - Search for "TeXRA".
- Find the extension published by "texra-ai".
- Click the "Install" button.
- Reload your editor if prompted.
TeXRA is available on both the official VS Code Marketplace and the Open VSX Registry:
Open in VS CodeView on Open VSX
You can also install TeXRA directly in your preferred editor using protocol-based links:
CLI
The standalone texra command is published to npm. Install it globally (requires Node.js >=22.9.0):
npm install -g @texra-ai/cliOr with Homebrew on macOS and Linux:
brew install texra-ai/tap/texraSee TeXRA CLI for usage, shell completion, and workspace defaults.
From VSIX File
- Open VS Code
- Obtain the newest release (
.vsixfile, e.g.,texra-<version>.vsix) - Find the
.vsixfile in the VS Code file explorer - Right-click on the
.vsixfile - From the context menu, select "Install Extension VSIX"
Installing Required Dependencies
Now for the slightly less fun part – making sure TeXRA has the tools it needs. Only a LaTeX distribution is strictly required for core document processing; the other tools below unlock specific features. Install the ones you need and follow the instructions for your operating system.
Core document processing — compiling and rendering .tex.
Backs the latexindent and latexdiff scripts.
Figure and image processing.
Rasterizes PDF figures for the image tools above.
Install only what you need: a LaTeX distribution is the one hard requirement; Perl, GraphicsMagick/ImageMagick, and Ghostscript each unlock a specific optional feature.
Check what's detected with texra doctor
Run texra doctor to see what TeXRA found — the LaTeX toolchain, runtime and authentication, and which optional tools are deferred until first use.
- latexmkfound
- pdflatexfound
- xelatexfound
- lualatexfound
- bibtexfound
- biberfound
- latexdifffound
- latexindentfound
- Node.js22.11.0found
- Authenticationsigned infound
- Models availableAnthropic, OpenAIfound
- GraphicsMagick / ImageMagickchecked when needed
- Ghostscriptchecked when needed
- Wolframchecked when needed
texra doctor groups its findings: the full LaTeX toolchain and runtime/auth are verified up front, while the optional image tools and Wolfram are checked on demand the first time a feature needs them.
Homebrew
WHAT IS HOMEBREW?
Homebrew is a free package manager for macOS and Linux that makes it easy to install command-line tools and applications from the terminal. Many of the macOS instructions below use brew install commands, which require Homebrew to be installed first.
If you're on macOS and don't have Homebrew yet, open the Terminal app (found in Applications → Utilities) and paste this command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Follow the on-screen prompts to complete the installation. Once finished, you can use any of the brew install commands in the sections below.
TIP
If you prefer not to use Homebrew, each section also links to the tool's official website where you can download a traditional installer.
LaTeX Distribution
IMPORTANT
A LaTeX distribution is required for TeXRA to properly process LaTeX documents.
Windows
Install either MiKTeX or TeX Live (MiKTeX is easier for beginners):
MiKTeX (recommended for Windows):
- Go to miktex.org/download
- Click the download button for the Windows installer
- Run the downloaded
.exefile and follow the setup wizard - When prompted, choose "Install missing packages on the fly" — this lets MiKTeX automatically download LaTeX packages as you need them
TeX Live (alternative):
- Go to tug.org/texlive/windows.html
- Download the
install-tl-windows.exeinstaller - Run the installer — the full installation may take a while as TeX Live downloads all packages upfront
After installing either distribution, restart VS Code so TeXRA can detect the new programs. You can verify the installation by opening a terminal (Command Prompt or PowerShell) and running:
pdflatex --versionmacOS
Install TeX Live via Homebrew — this is the recommended option for most TeXRA users because it is smaller, stays current with brew upgrade, and skips the Mac-specific GUI apps that VS Code users don't need:
brew install texliveAlternative distributions:
- MacTeX with GUI apps (includes TeXShop, BibDesk, etc., ~4 GB):
brew install --cask mactex, or download the.pkgfrom tug.org/mactex - MacTeX without GUI apps (smaller MacTeX variant):
brew install --cask mactex-no-gui
After installing, restart VS Code so TeXRA can detect the new programs. You can verify by opening Terminal and running:
pdflatex --versionLinux (Ubuntu/Debian)
Install TeX Live:
sudo apt-get update
sudo apt-get install texlive-fullAfter installing, restart VS Code and verify with:
pdflatex --versionPerl
OPTIONAL
Perl backs the latexindent and latexdiff LaTeX tools (both are Perl scripts). Install it only if you use auto-formatting or LaTeX diffs — it's usually already bundled with MiKTeX/TeX Live and pre-installed on macOS/Linux.
Windows
- Included with MiKTeX or TeX Live
- Verify installation by running
perl --versionin Command Prompt
macOS
- Pre-installed
- Verify with
perl --versionin Terminal
Linux
sudo apt-get install perlGraphicsMagick/ImageMagick
OPTIONAL
Needed only for TeXRA's figure and image processing features. GraphicsMagick is the recommended option for better performance; ImageMagick is a drop-in alternative.
GraphicsMagick
Windows:
- Download from GraphicsMagick website
- Add installation directory to PATH
macOS:
brew install graphicsmagickLinux:
sudo apt-get install graphicsmagickImageMagick (Alternative)
Windows:
- Download from ImageMagick website
- Follow the detailed installation guide
macOS:
brew install imagemagickLinux:
sudo apt-get install imagemagickGhostscript
OPTIONAL
Ghostscript is used by GraphicsMagick/ImageMagick to rasterize PDF figures. Install it alongside GraphicsMagick/ImageMagick only if you use TeXRA's figure/image processing features.
Windows
- Download from Ghostscript website
- For compatibility issues, you might need to install version 9.52 from this link
macOS
brew install ghostscriptLinux
sudo apt-get install ghostscriptSetting Up API Keys
TeXRA talks to model providers directly with an API key you supply. You need a key from at least one provider — Anthropic, OpenAI, Google, etc. — and you give it to TeXRA the same way on every platform: the key is named ANTHROPIC_API_KEY / OPENAI_API_KEY / GOOGLE_API_KEY and so on.
In the VS Code Extension
The friendliest path: open the TeXRA Dashboard, go to the Models tab, and click the provider you want. Paste the key and it's saved in VS Code's secret storage. You can also run TeXRA: Set API Key from the Command Palette, or drop the keys in a .env file in your project — the extension reads it on startup.
API Configuration
Chat subscriptions (ChatGPT Plus, Claude Pro, etc.) do not include API access — you need a key from the provider's developer platform.
| Provider | Status | Actions |
|---|---|---|
Anthropic | Key set | |
OpenAI | Key set | |
Google | Env | |
xAI | Not set | |
DeepSeek | Not set |
The Dashboard's Models tab → API Configuration: each provider shows its key status (Set · Env · Not set) with Set, Get, and Remove actions.
In the CLI
Set the provider key in your shell, then check it's picked up:
export ANTHROPIC_API_KEY=sk-…
texra doctorThe CLI doesn't read .env files automatically (the extension does). If you already keep keys in a project .env, load them into the shell first — for example in bash or zsh:
set -a; . .env; set +a
texra doctorPrefer not to manage keys at all? Sign in to TeXRA for included hosted access:
texra login
texra auth statusSee TeXRA CLI for sign-in, workspace defaults, and switching between hosted and personal-key access.
Getting API Keys
- OpenAI API Key: Available from OpenAI API
- Anthropic API Key: Available from Anthropic Console
- Google API Key: Available from Google AI Studio
- OpenRouter API Key: Available from OpenRouter Dashboard
- xAI API Key: Available from xAI Console
- DeepSeek API Key: Available from DeepSeek Platform
- Moonshot API Key: Available from Moonshot Console
- DashScope API Key: Available from DashScope Console
- MiniMax API Key: Available from MiniMax Platform (international) or MiniMax China (China region)
- GLM API Key: Available from Z.AI (international) or BigModel (China region)
Verifying Installation
To verify that TeXRA and all dependencies are correctly installed:
- Open VS Code
- Click on the TeXRA icon in the Activity Bar
- The TeXRA panel should load without errors
- Create or open a LaTeX document
- Try a simple command like "Indent Current TeX" from the editor title menu
If any component is missing, TeXRA will typically show an error message indicating what needs to be installed.
Troubleshooting Installation
Common Installation Issues
Most installation problems fall into one of four categories. Find your symptom and work through its checks:
Four common failure modes and the checks for each: a loading extension, LaTeX or image processing, and API keys.
Getting Help
If you encounter persistent installation issues:
- Check the GitHub Issues page for known problems
- Look for error messages in the TeXRA ProgressBoard
- File a new issue with detailed information about your system and the specific error
Next Steps
With TeXRA and all dependencies installed, you're ready to start using the tool to enhance your academic research. Check out the Quick Start Guide to learn the basics, or examine specific features in the other documentation sections.