Overleaf Plugin for OpenClaw
Manage Overleaf LaTeX projects through git integration. An OpenClaw plugin that provides agent tools for cloning, branching, compiling, and pushing Overleaf projects.
Tools
| Tool | Description |
|---|---|
overleaf_clone | Clone an Overleaf project via git |
overleaf_branch | Create or switch branches for tailored versions |
overleaf_compile | Compile LaTeX locally (pdflatex/xelatex/lualatex) |
overleaf_push | Stage, commit, and push changes to Overleaf |
overleaf_status | Check project status, branch, and changes |
overleaf_health | Verify credentials, connectivity, and compiler setup |
Installation
openclaw plugins install clawhub:@wahajahmed010/openclaw-overleaf
Configuration
Add to your OpenClaw config:
{
plugins: {
entries: {
overleaf: {
config: {
projectDir: "/path/to/overleaf/projects", // defaults to workspace root
defaultCompiler: "pdflatex" // or "xelatex", "lualatex"
}
}
}
}
}
Credentials
Store Overleaf credentials at ~/.openclaw/.overleaf_credentials:
echo "OVERLEAF_EMAIL=your@email.com" > ~/.openclaw/.overleaf_credentials
echo "OVERLEAF_PASSWORD=your_password_or_token" >> ~/.openclaw/.overleaf_credentials
chmod 600 ~/.openclaw/.overleaf_credentials
Usage
Once installed and configured, the agent can use Overleaf tools directly:
- Clone:
overleaf_clonewith a project ID from the Overleaf URL - Branch:
overleaf_branchto createresume/company-slugbranches - Edit: The agent reads and modifies
.texfiles - Compile:
overleaf_compileto verify no LaTeX errors - Push:
overleaf_pushwith a commit message
Workflow Example
- Clone:
overleaf_clone({ projectId: "abc123" }) - Branch:
overleaf_branch({ projectId: "abc123", branchName: "resume/acme-corp" }) - Edit the
.texfiles (agent does this via file tools) - Compile:
overleaf_compile({ projectId: "abc123" }) - Push:
overleaf_push({ projectId: "abc123", message: "tailor: resume for Acme Corp" })
License
MIT-0