Integration guide

AgentGen + OpenClaw

Install the AgentGen skill from ClawHub and your OpenClaw assistant can generate PDFs and images from HTML on demand — triggered from WhatsApp, Telegram, Slack, or any chat you're already using.

What is OpenClaw?

OpenClaw is an open-source personal AI assistant that runs locally on your machine and is reachable via the messaging apps you already use — WhatsApp, Telegram, Slack, Discord, iMessage, and more. Skills from ClawHub extend what your assistant can do. The AgentGen skill adds PDF and image generation as a native capability — no copy-pasting curl commands, no context switching.

1. Prerequisites

You need OpenClaw running and the agentgen CLI installed on the same machine.

Install OpenClaw

curl -fsSL https://openclaw.ai/install.sh | bash
openclaw onboard

Install the agentgen CLI

# Homebrew (macOS & Linux)
brew tap Agent-Gen-com/agentgen && brew install agentgen

# One-liner
curl -fsSL https://raw.githubusercontent.com/Agent-Gen-com/agent-gen-lib/main/install.sh | sh

# Cargo
cargo install agentgen-cli

2. Install the skill from ClawHub

Browse to the skill on ClawHub and install it — your OpenClaw assistant will pick it up automatically:

🖨️

AgentGen — HTML to PDF & Image

clawhub.ai/lyair1/agentgen →

3. Try it — free tier, no sign-up

The skill works immediately without an API key. Just message your assistant — it will use the free tier automatically (1 req/min, small watermark on output):

Example messages to your assistant

  • “Generate a PDF invoice for this order and send me the link.”
  • “Create an OG image for my blog post at 1200×630 and save it locally.”
  • “Turn this HTML report into a PDF.”
  • “Upload logo.png and use it in a certificate PDF.”

4. Set your API key (optional)

For watermark-free output, no rate limit, and multi-page PDFs, add your API key. New accounts at agent-gen.com include 50 free tokens — no credit card required.

export AGENTGEN_API_KEY="agk_..."

# Verify
agentgen balance

Once set, your assistant uses the authenticated tier automatically. If tokens run low it will tell you your balance and where to top up.

What the skill can do

Available commands
CommandWhat it doesCost
agentgen imageRender HTML → PNG/JPEG/WebP screenshot1 token
agentgen pdfRender HTML → PDF (single or multi-page)2 tokens/page
agentgen uploadUpload a local file for 24h CDN accessFree
agentgen balanceCheck remaining token balanceFree

Free tier limits

  • • 1 request per 60 seconds per IP
  • • Single-page PDFs only (multi-page requires API key)
  • • Small agent-gen.com watermark on all output

1 token

Image generation

2 tokens/page

PDF generation

Free

Upload & balance

Give your assistant the power to generate documents

50 free tokens on signup. No credit card required.