In the error list, Ask AI for a Fix explains an error and suggests a change to your source. Nothing is sent until you press it, and your source changes only when you press Apply. It is a Pro feature (the trial counts), with no limit on how often you ask: the AI is on your device, your computer or your own account.
Ask for a fix
- Compile, then open the error list (errors). On the free plan the button carries a Pro mark and opens the plans.
- Under an error, press Ask AI for a Fix. While it works: "Asking… (This Device)" — or the place you chose.
- The answer, Suggested by AI (…), explains what went wrong and shows the change: the lines that go and the lines that come, and any
\usepackageit would add to the preamble. Some answers only explain. - Press Apply, or Apply and Compile to compile straight away. Undo takes the change back.
If the file has changed since you asked, the app says "The file has changed, so this can't be applied. Ask again." Answers are not kept: they go with the next compile.
Where the AI runs
Choose it in Settings › AI › Where AI runs:
- This Device — Apple Intelligence, on an iPhone or iPad that has it, with iOS or iPadOS 26 or later. Nothing leaves the device. Android and computers have no model on the device for this; choose one of the others there.
- Your Own Computer — Rectoly for LaTeX on your Mac, Windows or Linux computer, with an AI that runs there (Ollama, LM Studio and the like), over your own network, encrypted (set it up). On iPhone, iPad and Android.
- Your own API key — a key from an AI company: sent from this device straight to that company, under your account.
Use your own API key
In Settings › AI, choose Your own API key, then:
- AI company: OpenAI, Anthropic (Claude), Google Gemini, DeepSeek, OpenRouter, OpenAI-compatible (with its Server URL) or Ollama / LM Studio (a server on your own network, no key needed).
- API key: paste it (Get an API Key opens the company's page). It is stored only on this device, in its secure storage.
- Model: keep the suggested one, or Get the Model List from the AI Company.
- Test Connection, then Use This Setup. The first time for each company, the app says what will be sent and asks you to agree (Agree and Set Up).
To stop, press Stop Using. Changing the company or the URL asks you to agree again. On a computer, an Ollama or LM Studio set up here can also answer your other devices (your own computer).
What is sent
Only when you press Ask AI for a Fix, and only:
- the error, the file name and line, and the 15 lines before and after it,
- the part of the log about this error,
- the main file's
\documentclass,\usepackageand\RequirePackagelines, - the engine and the language for the explanation.
Other files, .bib files and figures are never sent, and nothing passes through Rectoly's servers. After asking, What Was Sent shows it. With your own API key, the AI company's charges, terms and data practices apply; follow your institution's and your co-authors' or journal's rules for your manuscript.
If it does not answer
- "AI is not available on this device": choose your own API key or your own computer in Settings › AI.
- "The API key was not accepted": check the key and your credit with the company.
- "The AI company's rate limit was reached": wait a little and ask again.
- "The AI declined to process this content": fix the error by hand, with the explanation.