Overleaf CLI (olcli)

v1.0.0

Sync and manage Overleaf LaTeX projects from the command line. Pull projects locally, push changes back, compile PDFs, and download compile outputs like .bbl...

0· 264·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for aloth/olcli.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Overleaf CLI (olcli)" (aloth/olcli) from ClawHub.
Skill page: https://clawhub.ai/aloth/olcli
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Canonical install target

openclaw skills install aloth/olcli

ClawHub CLI

Package manager switcher

npx clawhub@latest install olcli
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
Name/description match the SKILL.md, which documents olcli commands for listing, pulling, pushing, compiling, and downloading Overleaf project outputs. The commands and workflows described are coherent with a CLI for Overleaf.
Instruction Scope
Runtime instructions only instruct the user to supply the Overleaf session cookie and run the olcli commands. The SKILL.md and references explain where the cookie is stored and how project metadata (.olcli.json) is written. There are no instructions to read unrelated files or exfiltrate data to unknown endpoints.
Install Mechanism
There is no forced install spec in registry metadata (instruction-only), and scripts/install.sh simply tries Homebrew then npm. SKILL.md recommends tapping aloth/tap and installing @aloth/olcli from npm. This is reasonable but relies on a third‑party Homebrew tap and an npm package — verify the tap/package owners and package contents before installing.
Credentials
The tool legitimately requires an Overleaf session cookie (overleaf_session2). references/API.md also documents an optional OVERLEAF_SESSION environment variable and local/global credential files. The registry metadata lists no required env vars; this mismatch is minor but worth noting. Providing the session cookie grants the tool full session-level access to your Overleaf account, so treat it like a password.
Persistence & Privilege
The skill does not request always:true, does not modify other skills, and stores credentials in standard local config paths (~/.config/olcli-nodejs/config.json or .olauth). No elevated system privileges are requested.
Assessment
This skill appears to do what it says: manage Overleaf projects via a CLI. Before installing or using it, verify the upstream project (check the GitHub repo and npm package @aloth/olcli and the Homebrew tap aloth/tap) to ensure you trust the maintainer. Be cautious when copying your overleaf_session2 cookie from the browser — that cookie is equivalent to logging in and can be used to access your account. Consider creating a dedicated Overleaf account or revoking the session after use, inspect the package code before installing, and prefer installing from a verified source (official GitHub/npm repo) rather than an unknown tap. If you are uncomfortable providing a session cookie, do not install/use the tool.

Like a lobster shell, security has layers — review code before you run it.

latestvk97784wver4p7kspjbq6rnww3982eraj
264downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

Overleaf Skill

Manage Overleaf LaTeX projects via the olcli CLI.

Installation

# Homebrew (recommended)
brew tap aloth/tap && brew install olcli

# npm
npm install -g @aloth/olcli

Authentication

Get your session cookie from Overleaf:

  1. Log into overleaf.com
  2. Open DevTools (F12) → Application → Cookies
  3. Copy the value of overleaf_session2
olcli auth --cookie "YOUR_SESSION_COOKIE"

Verify with:

olcli whoami

Common Workflows

Pull a project to work locally

olcli pull "My Paper"
cd My_Paper/

Edit and sync changes

# After editing files locally
olcli push              # Upload changes only
olcli sync              # Bidirectional sync (pull + push)

Compile and download PDF

olcli pdf                      # Compile and download
olcli pdf -o paper.pdf         # Custom output name
olcli compile                  # Just compile (no download)

Download .bbl for arXiv submission

olcli output bbl               # Download compiled .bbl
olcli output bbl -o main.bbl   # Custom filename
olcli output --list            # List all available outputs

Commands Reference

CommandDescription
olcli auth --cookie <value>Authenticate with session cookie
olcli whoamiCheck authentication status
olcli listList all projects
olcli info [project]Show project details
olcli pull [project] [dir]Download project files
olcli push [dir]Upload local changes
olcli sync [dir]Bidirectional sync
olcli upload <file>Upload a single file
olcli download <file>Download a single file
olcli zip [project]Download as zip archive
olcli compile [project]Trigger compilation
olcli pdf [project]Compile and download PDF
olcli output [type]Download compile outputs

Tips

  • Auto-detect project: Run commands from a synced directory (contains .olcli.json) to skip the project argument
  • Dry run: Use olcli push --dry-run to preview changes before uploading
  • Force overwrite: Use olcli pull --force to overwrite local changes
  • Project ID: You can use project ID instead of name (24-char hex from URL)

Troubleshooting

Session expired

Get a fresh cookie from the browser and run olcli auth again.

Compilation fails

Check the Overleaf web editor for detailed error logs.

Links

Comments

Loading comments...