Skip to main content
The Shelv OpenClaw skill lets your agent convert PDFs into structured Markdown filesystems and hydrate them directly into the OpenClaw workspace. Once hydrated, your agent explores the output with standard Unix tools — ls, cat, grep, find.

Setup

  1. Get an API key — see Authentication
  2. Set the SHELV_API_KEY environment variable in your OpenClaw config:
The skill requires SHELV_API_KEY to be set before running any commands.

Workflows

The skill provides three shell scripts that your agent calls in sequence:

1. Upload a document

Options:
  • --name — display name for the shelf
  • --template book|legal-contract|charter-party|academic-paper — structuring template (auto-detected if omitted)
  • --review — pause at review status before finalizing
  • --wait — block until processing completes

2. Poll for completion

Polls GET /v1/shelves/{id} every 5 seconds. Exits 0 on ready or review, exits 1 on failed or timeout (10 minutes). Processing flow: uploadingparsingstructuringverifyingready

3. Hydrate into workspace

Downloads the archive, verifies the checksum, and extracts files to:
Options:
  • --name — override the directory name
  • --force — replace an existing shelf directory
After hydration, explore with standard tools:

Quick example

Give your agent a prompt like:
The agent will:
  1. Upload the PDF to Shelv
  2. Poll until processing completes
  3. Download and extract the structured Markdown
  4. Use find, cat, and grep to explore the result

Requirements

  • curl, tar, jq, and shasum (or sha256sum) must be available
  • macOS or Linux

Templates

Omit the --template flag to let Shelv auto-detect the document structure.