Overleaf CLI (olcli) for Openclaw

A robust command-line interface designed to synchronize, compile, and manage Overleaf LaTeX projects directly from your local environment.

aloth
v1.1.0
Feb 7, 2026
0
2k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install overleaf-skill

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install overleaf-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Overleaf CLI (olcli)?

The Overleaf skill provides a powerful CLI bridge between your local development environment and the Overleaf platform. It allows researchers, scientists, and developers to treat LaTeX projects like source code, enabling local editing with preferred tools while maintaining the collaborative benefits of the cloud. By integrating this tool into your workflow through Openclaw Skills, you can automate the tedious aspects of academic writing, such as manual file uploads and complex multi-file synchronization.

Overleaf CLI (olcli) Use Cases

  • Syncing Overleaf projects to a local machine for offline editing with specialized LaTeX editors.
  • Automating the preparation of arXiv submission packages by programmatically extracting .bbl and .aux files.
  • Compiling LaTeX documents remotely and downloading the resulting PDFs directly from the terminal.
  • Performing bidirectional synchronization to ensure local and cloud versions of a manuscript stay in lockstep.

How Overleaf CLI (olcli) Works

  1. Authenticate with your Overleaf account by providing a session cookie via the CLI.
  2. Pull an existing project using its name or ID to create a local workspace.
  3. Edit your LaTeX files locally using your preferred IDE or text editor.
  4. Use the sync or push commands to upload local changes or resolve differences with the remote version.
  5. Trigger a remote compilation on the Overleaf servers to verify the document state.
  6. Retrieve specific build outputs like the PDF or auxiliary files required for journal submissions.

Overleaf CLI (olcli) Setup

Install the tool via Homebrew or npm to get started with Openclaw Skills for LaTeX management:

# Install via Homebrew
brew tap aloth/tap && brew install olcli

# Install via npm
npm install -g @aloth/olcli

To authenticate, log into your Overleaf account in a browser, extract the overleaf_session2 cookie from your browser's Developer Tools, and run:

olcli auth --cookie "YOUR_SESSION_COOKIE"

Overleaf CLI (olcli) Data Schema & Taxonomy

The skill manages project metadata locally to facilitate seamless interaction with the Overleaf API.

Data Point Description
.olcli.json A local configuration file stored in the project directory to track sync state.
Project ID A 24-character hexadecimal identifier used for precise project targeting.
Session Cookie Encrypted credentials used for secure API communication.
Build Artifacts Compiled files such as .pdf, .bbl, and .log files retrieved from the server.

Overleaf CLI (olcli) Advanced Features

  • Bidirectional synchronization to safely merge changes between local and remote environments.
  • Support for downloading specific compile outputs required for arXiv and other academic repositories.
  • Dry-run capability to preview file changes and synchronization actions before execution.
  • Integrated project discovery that identifies the correct project based on your current working directory.
  • Direct file injection for uploading figures, assets, and bibliographies without a full project pull.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*