Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here
overleaf-cli logo

overleaf-cli

dtmoore-claude-plugins

productivityClaude Codeby dylantmoore

Summary

Interact with Overleaf LaTeX projects — read, edit, compile, search, and manage files directly from Claude Code. Includes interactive browser login, real-time file editing via Socket.IO, PDF compilation, project search, suggested edits with diffs, and watch mode.

Install to Claude Code

/plugin install overleaf-cli@dtmoore-claude-plugins

Run in Claude Code. Add the marketplace first with /plugin marketplace add dylantmoore/claude-plugins if you haven't already.

README.md

overleaf-cli

A command-line tool for interacting with Overleaf projects. Designed for AI agent automation. All commands output compact JSON.

Also ships as a Claude Code plugin for seamless integration with Claude.

Install

Prerequisites

  • Node.js 18+ (download)
  • Google Chrome (for interactive login)

Setup

git clone https://github.com/dylantmoore/overleaf-cli.git
cd overleaf-cli
npm install
npm link

This installs two dependencies: ws (WebSocket client for Socket.IO) and puppeteer-core (uses your system Chrome for login — no bundled browser download).

As a Claude Code Plugin

/install-plugin https://github.com/dylantmoore/overleaf-cli

Or via the dylantmoore/claude-plugins marketplace:

/plugin install overleaf-cli

Quick Start

# Sign in (opens Chrome — sign into Overleaf, window closes automatically)
overleaf login

# List your projects
overleaf projects

# Read a file
overleaf read <project-id> main.tex --raw

# Targeted edit (preferred — only sends the changed bytes)
overleaf edit <project-id> main.tex --old "old text" --new "new text"

# Suggest a tracked change (reviewable in Overleaf editor)
overleaf suggest <project-id> main.tex --old "old text" --new "proposed text"

# Compile and download PDF
overleaf pdf <project-id> -o paper.pdf

Authentication

overleaf login opens Chrome to Overleaf's sign-in page. Once you log in, the session is captured automatically. Stored at ~/.config/overleaf-cli/session.json (mode 0600). Auto-refreshed on each API call.

For headless/CI environments: overleaf login --cookie "overleaf_session2=s%3A..."

Commands

Run overleaf help for the full list. Key commands:

Projects

| Command | Description | |---|---| | overleaf projects | List all projects | | overleaf create-project "My Paper" | Create a new blank project | | overleaf rename-project <id> "New Name" | Rename a project |

Reading & Editing

| Command | Description | |---|---| | overleaf read <id> main.tex | Read file content (JSON) | | overleaf read <id> main.tex --raw | Read file content (plain text) | | overleaf edit <id> main.tex --old "find" --new "replace" | Targeted edit (preferred) | | overleaf edit <id> main.tex --content "full content" | Full file replacement (fallback) | | overleaf suggest <id> main.tex --old "find" --new "replace" | Tracked change (accept/reject in editor) |

File Management

| Command | Description | |---|---| | overleaf files <id> | List all files | | overleaf create-doc <id> chapter2.tex | Create new doc | | overleaf create-folder <id> figures | Create folder | | overleaf delete-doc <id> <doc-id> | Delete doc | | overleaf delete-folder <id> <folder-id> | Delete folder | | overleaf rename <id> <entity-id> new.tex | Rename file/folder | | overleaf move <id> <entity-id> <folder-id> | Move to folder | | overleaf upload <id> ./image.png | Upload local file | | overleaf download <id> main.tex -o main.tex | Download file | | overleaf zip <id> -o project.zip | Download entire project |

Compilation

| Command | Description | |---|---| | overleaf compile <id> | Compile and show status | | overleaf pdf <id> -o paper.pdf | Compile + download PDF |

Search & History

| Command | Description | |---|---| | overleaf search <id> "keyword" | Search across all project files | | overleaf diff <id> main.tex --from 0 --to 5 | Show file diff between versions | | overleaf history <id> | View version history |

Collaboration

| Command | Description | |---|---| | overleaf threads <id> | View comment threads | | overleaf add-comment <id> main.tex "note" --at-text "anchor" | Add anchored comment | | overleaf comment <id> <thread-id> "reply" | Reply to a thread | | overleaf suggest <id> main.tex --old "x" --new "y" | Tracked change (accept/reject in editor) | | overleaf accept-changes <id> <doc-id> <change-ids...> | Accept tracked changes | | overleaf resolve-thread <id> <doc-id> <thread-id> | Resolve a thread | | overleaf watch <id> | Stream real-time changes (JSONL) | | overleaf wordcount <id> | Word count stats |

How It Works

  • REST API for project listing, compilation, file management, and downloads
  • Socket.IO v0.9 (Overleaf's real-time OT protocol) for reading/editing file content
  • Track changes via OT meta.tc for suggest command
  • Session cookies for auth, auto-refreshed on each request
  • Puppeteer-core (system Chrome) for interactive login

Contributing

See CONTRIBUTING.md for how to add commands, fix bugs, or improve the Claude Code skill (includes eval suite documentation).

License

MIT

Related plugins

Browse all →