AgentGen for Openclaw

A powerful CLI utility for converting HTML content into professional-grade PDFs and images without complex server-side rendering setup.

lyair1
v1.0.0
Mar 4, 2026
0
1.1k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install agentgen

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 agentgen 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 AgentGen?

AgentGen is a high-performance skill designed to bridge the gap between web content and static assets. By leveraging the AgentGen API, developers can programmatically generate screenshots and document exports directly from HTML strings or files. This is an essential addition to the library of Openclaw Skills for teams needing to automate invoice generation, report creation, or social media preview images (OG images).

It offers a seamless experience with a zero-configuration free tier, making it accessible for rapid prototyping while scaling to production needs with an authenticated API. The tool handles complex CSS and layout rendering, providing a reliable way to capture web content in static formats like PDF, PNG, JPEG, and WebP.

AgentGen Use Cases

  • Automated invoice and receipt generation from HTML templates for finance workflows.
  • Creating dynamic social media Open Graph images with custom viewport dimensions.
  • Exporting complex web reports into multi-page PDF documents for client distribution.
  • Generating retina-quality screenshots of web components for technical documentation.
  • Hosting temporary assets like fonts and logos for remote rendering via the upload feature.

How AgentGen Works

  1. The user prepares an HTML file or string with inlined CSS styles to ensure consistent rendering across the API.
  2. Local assets such as images or fonts are optionally uploaded to a temporary cloud storage using the upload command to ensure they are accessible during the rendering process.
  3. The user executes the agentgen command, specifying the input source and desired output format, whether it be a PDF or an image.
  4. The Openclaw Skills runner interacts with the AgentGen API to process the HTML and apply specific layout configurations like margins and scale.
  5. The final asset is saved to the local filesystem or returned as a publicly accessible URL for immediate use in other applications.

AgentGen Setup

To install this tool among your Openclaw Skills, use the Homebrew package manager:

brew tap Agent-Gen-com/agentgen
brew install agentgen

For authenticated access without watermarks and higher rate limits, set your API key in your environment:

export AGENTGEN_API_KEY=your_key_here

You can verify your token balance at any time by running:

agentgen balance

AgentGen Data Schema & Taxonomy

The skill organizes rendering data through CLI flags and configuration parameters. Below is a breakdown of how the data is structured during generation:

Parameter Description Valid Values
--format Defines the output file type png, jpeg, webp, A4, Letter, A3, Legal
--scale Image rendering scale for high DPI 1, 2 (Retina quality)
--margin PDF page margins for print layout e.g., 20mm, 15px
--width / --height Viewport dimensions for images Pixel values (e.g., 1200, 630)
--pages List of files for multi-page generation Multiple HTML file paths
--print-background Includes background colors and images Boolean flag

AgentGen Advanced Features

  • Multi-page PDF assembly allows users to combine separate HTML files into a single, cohesive document.
  • Temporary asset hosting provides a 24-hour window for referencing local images and fonts in remote renders.
  • Full control over PDF typography and layout, including customizable margins and landscape orientation.
  • Support for retina-quality rendering using the scale parameter, perfect for high-resolution marketing assets.
  • Automated transition between the free tier and the authenticated API based on the presence of an API key.
  • Optimized for OG image generation with specific viewport control to meet social media platform requirements.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*