overleaf-comments-export
⚠️ Unofficial tool. This is a third-party utility that talks to Overleaf's undocumented internal HTTP endpoints. It is not affiliated with or endorsed by Overleaf. Endpoints may change without notice. Use at your own risk and in accordance with Overleaf's Terms of Service.
Export the comment threads and tracked changes from an Overleaf project into clean Markdown + structured JSON — designed so an AI assistant (Claude, ChatGPT, etc.) can ingest reviewer feedback and help you address it.
Why
Overleaf doesn't provide a way to export comments or tracked changes for use outside the editor. If you want to:
- have an AI agent draft point-by-point replies to reviewers,
- archive reviewer discussions outside of Overleaf,
- batch-address feedback across a large paper, or
- split feedback by reviewer to delegate work,
… you currently have to copy comments by hand. This tool automates that, given an Overleaf project URL and a logged-in browser session.
Install
pip install overleaf-comments-export
Requires Python 3.10+. Works on macOS, Linux, and Windows.
Quick start
CLI
overleaf-comments-export \
--project-url https://www.overleaf.com/project/<24-hex-id> \
--out ./paper-comments \
--browser safari
The first time you run it, sign in to Overleaf in your browser of choice; the tool reads the session cookie from there.
GUI
overleaf-comments-export --gui
Opens a small Tkinter window with all options surfaced. Best for non-technical users.
What it produces
In your output folder, by default:
| File | Purpose |
|---|---|
comments-<date>.md |
Human-readable Markdown grouped by file → section → line, with stable IDs (C001, C002, …) and source-context snippets around each anchor. |
comments.json |
Structured data — summary, top-level threads, files, comments, tracked_changes, etc. Schema described in agents.md. |
comments.jsonl |
One self-contained JSON record per comment for streaming/pipelines. |
agents.md |
A brief instruction file telling an AI agent how to consume the batch. |
by-reviewer/<name>.md |
(Optional, --per-reviewer) One Markdown per reviewer with only their threads. |
comments.log |
Diagnostic log for the run. |
Filtering
# Only open comments
overleaf-comments-export --project-url … --out ./out --no-resolved
# Only one reviewer's threads
overleaf-comments-export --project-url … --out ./out --reviewer "Emma"
# Compact (default) vs. detailed (multi-line code-fence) layout
overleaf-comments-export --project-url … --out ./out --render-mode detailed
# Per-reviewer sub-reports under ./out/by-reviewer/
overleaf-comments-export --project-url … --out ./out --per-reviewer
Full flag reference: overleaf-comments-export --help.
Browser authentication
The tool reads the overleaf_session2 cookie from your browser. Trade-offs
by browser on macOS:
| Browser | Notes |
|---|---|
| Safari | Recommended. No Keychain prompt; macOS may ask once for permission to read ~/Library/Cookies/. |
| Firefox | No Keychain prompt; plain SQLite cookie store. |
| Chrome / Edge / Brave | Cookies are AES-encrypted with a Keychain-stored key; you'll get a Keychain password prompt every run. Hidden behind an opt-in in the GUI. |
On Windows, Chrome 127+ uses App-Bound Encryption that browser-cookie3
can't decrypt. On Linux, snap-packaged browsers sandbox their cookie stores.
If reading the cookie from your browser fails, paste it instead — this works on every OS and browser:
overleaf-comments-export --project-url <url> --out ./out --cookie "PASTE_HERE"
Or set it once: export OVERLEAF_SESSION="PASTE_HERE". In the GUI, choose
"Paste the cookie myself" and click How? for step-by-step instructions.
To find it: open Overleaf, press F12, go to Application (or Storage) →
Cookies → https://www.overleaf.com, and copy the Value of overleaf_session2.
Treat it like a password; it stops working when you sign out.
Troubleshooting
| What you see | What it means |
|---|---|
| "Could not look up www.overleaf.com" | This computer is offline, or a VPN/DNS problem. Not an Overleaf issue. |
| "Overleaf refused the request (not signed in)" | Your session expired. Sign in again in the browser, then re-run. |
| "Could not read Overleaf cookies from chrome" | Use the paste-the-cookie method above. |
| "Overleaf could not find that project" | Wrong link, or this account has no access. |
Status & maintenance
This is a personal research utility published in case it's useful to others. It is provided as-is, with no guaranteed maintenance, no SLA, and no roadmap. Pull requests are welcome; issues may or may not be acted upon.
If Overleaf changes their internal API, this tool may stop working until someone (you?) adapts it.
License
MIT — see LICENSE.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file overleaf_comments_export-0.3.0.tar.gz.
File metadata
- Download URL: overleaf_comments_export-0.3.0.tar.gz
- Upload date:
- Size: 46.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d20ba4850a99a733d1bfd064dae9d0d70d8d797afc99e6743696d10f64d320a3
|
|
| MD5 |
4e294619ba0cd5a20354b038b127e4be
|
|
| BLAKE2b-256 |
70782cd810b27dba5abcbc3b699c6a6dc82b8d80ff2f997068fe611613f552a5
|
Provenance
The following attestation bundles were made for overleaf_comments_export-0.3.0.tar.gz:
Publisher:
publish.yml on Mangluu/overleaf-comments-export
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
overleaf_comments_export-0.3.0.tar.gz -
Subject digest:
d20ba4850a99a733d1bfd064dae9d0d70d8d797afc99e6743696d10f64d320a3 - Sigstore transparency entry: 2426646787
- Sigstore integration time:
-
Permalink:
Mangluu/overleaf-comments-export@a8171bbe52774941f51d9e7b7389779c83a971a7 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/Mangluu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a8171bbe52774941f51d9e7b7389779c83a971a7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file overleaf_comments_export-0.3.0-py3-none-any.whl.
File metadata
- Download URL: overleaf_comments_export-0.3.0-py3-none-any.whl
- Upload date:
- Size: 40.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8e901ffd06dcd851b53daebad3a9a6c9e13fe572630f1c2c04bc06474e22d8f
|
|
| MD5 |
4d2f85f46ff096356b91bbff79f2f7f9
|
|
| BLAKE2b-256 |
52fcc771e5151c67a9450b9f34c739714e2456838e96e2cfbc4e080a63e65f07
|
Provenance
The following attestation bundles were made for overleaf_comments_export-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on Mangluu/overleaf-comments-export
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
overleaf_comments_export-0.3.0-py3-none-any.whl -
Subject digest:
e8e901ffd06dcd851b53daebad3a9a6c9e13fe572630f1c2c04bc06474e22d8f - Sigstore transparency entry: 2426647155
- Sigstore integration time:
-
Permalink:
Mangluu/overleaf-comments-export@a8171bbe52774941f51d9e7b7389779c83a971a7 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/Mangluu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a8171bbe52774941f51d9e7b7389779c83a971a7 -
Trigger Event:
push
-
Statement type: