by Ghqqqq
Run Codex inside Overleaf with a Chrome side panel, local LaTeX mirror, diff review, Track Changes support, undo checkpoints, and compile-log context.
# Add to your Claude Code skills
git clone https://github.com/Ghqqqq/codex-overleaf-linkGuides for using cli tools skills like codex-overleaf-link.
codex-overleaf-link is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Ghqqqq. Run Codex inside Overleaf with a Chrome side panel, local LaTeX mirror, diff review, Track Changes support, undo checkpoints, and compile-log context. It has 120 GitHub stars.
codex-overleaf-link's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/Ghqqqq/codex-overleaf-link" and add it to your Claude Code skills directory (see the Installation section above).
codex-overleaf-link is primarily written in JavaScript. It is open-source under Ghqqqq on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other CLI Tools skills you can browse and compare side by side. Open the CLI Tools category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh codex-overleaf-link against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Codex Overleaf Link adds a Codex panel next to the Overleaf editor. Ask about your project, or let Codex edit it: changes go back through the editor, as tracked changes if you want, and a run can be undone until you accept its changes. It runs on your machine through the Codex CLI, or, when you switch a project to Antigravity, through Google's Antigravity CLI.

Features · Install · How it works · Configuration · Troubleshooting
| Mode | Codex can | Changes go to |
|---|---|---|
| Ask | read the project | nowhere; Overleaf is not touched |
| Auto | read and edit | Overleaf, in Editing mode |
| Auto + Track | read and edit | Overleaf, as tracked changes |
With Track on, each rewritten sentence becomes one tracked change and small fixes stay word-level, so the Review panel reads like edits made by hand. Accept changes accepts the run's own tracked changes. Undo changes restores the files the run wrote and removes the files it created, also after a page reload.

Attach project files with @ or +, add @compile-log for a compile problem, or select lines in the editor and choose Add to Chat to reference them as a range such as main.tex:22-24. Edit Selection limits the edit to the selected text. PDFs and images can be attached for Codex to read; they are never added to the project. The line above the composer shows what Codex will read next: the current file, the selected files, or the whole project.
Up to five project files stay attached across turns. Attachments are limited to 8 per turn, 12 MiB each and 32 MiB in total.
Each run keeps its steps and its answer together. Expand the timeline to see what Codex read, ran and changed. With Parallel Subagents on (experimental), the main agent can hand work to readers and workers that run alongside it. Open one to read its conversation, then go back to the main task.
The ring beside the model shows how full the conversation's context window is. Open it to see the latest input, cached input and output, or to compact the conversation; /compact does the same.
Every run ends with a short result. If a run doesn't go as planned, its card names the cause, what it means for the document, and a next step: Didn't finish, Partly written, Not written, or Check Overleaf when a write couldn't be confirmed.
@compile-log in the composer, for you to send.Builds a writing-style skill from Overleaf projects and PDFs you choose.
The style guides phrasing, rhythm, structure and tone; facts, results and citations still come from your project. The same page holds the project's Personalization notes for terminology and LaTeX conventions.
The panel uses the local Codex CLI's models by default; choose the model and reasoning level in the composer. To use another endpoint (experimental), add a provider under Settings → All projects → Models & connections. Shortcuts fill in the defaults for OpenAI-compatible and Anthropic-compatible APIs, Kimi, GLM and DeepSeek; you add the API key and model IDs.
Each project can run on Codex or on Google Antigravity. Choose Antigravity under Settings → All projects → Models & connections, sign in with Google if the pane asks you to, click Use for this project, then pick a Gemini model and thinking level in the composer. The panel switches to its Antigravity form: the mark, the agent's name in the interface and the toolbar icon for that tab change. Earlier runs keep the name of the agent that ran them.
Ask and Auto work as they do with Codex: Auto writes through the editor, as tracked changes if Track is on, and a run can be undone. Antigravity has no sandbox like Codex's, so the native host answers each of its permission requests: Ask never writes, Auto writes only inside the project's local workspace, and commands are limited to read-only inspection tools. Guiding a running turn, forks, /compact, skills and parallel subagents are Codex-only for now.
You need Google Chrome on macOS, Windows or Linux (or Chromium on Linux), Node.js 20+, and the Codex CLI, installed and signed in. To use Antigravity, also install the Antigravity CLI (agy) and sign in with Google. The extension works on overleaf.com, www.overleaf.com and cn.overleaf.com; self-hosted Overleaf is not supported.
If you already use Codex in a terminal on the computer where Chrome runs, give it this prompt:
Install Codex Overleaf Link on this computer. Follow the install steps in https://github.com/Ghqqqq/codex-overleaf-link, then tell me what I still need to do in Chrome.
npm exec --yes [email protected] -- install-managed
The installer sets up the native host and a managed copy of the extension, then prints the extension's folder.
In chrome://extensions, turn on Developer mode, click Load unpacked and pick the extension folder. Open an Overleaf project and the panel appears on the right.
# macOS / Linux
CODEX_OVERLEAF_REF=v2.7.1 bash -c "$(curl -fsSL https://raw.githubusercontent.com/Ghqqqq/codex-overleaf-link/v2.7.1/install.sh)"
# Windows
iwr https://raw.githubusercontent.com/Ghqqqq/codex-overleaf-link/v2.7.1/install.ps1 -OutFile install.ps1
$env:CODEX_OVERLEAF_REF='v2.7.1'
powershell -ExecutionPolicy Bypass -File install.ps1
# From source. Unmanaged: rebuild and reload the extension yourself after changes.
git clone https://github.com/Ghqqqq/codex-overleaf-link.git && cd codex-overleaf-link
npm ci && npm run build:content && npm run install:native
# then load extension/ as an unpacked exten