ls, cat, grep, find.
Setup
- Get an API key — see Authentication
- Set the
SHELV_API_KEYenvironment variable in your OpenClaw config:
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
--name— display name for the shelf--template book|legal-contract|charter-party|academic-paper— structuring template (auto-detected if omitted)--review— pause atreviewstatus before finalizing--wait— block until processing completes
2. Poll for completion
GET /v1/shelves/{id} every 5 seconds. Exits 0 on ready or review, exits 1 on failed or timeout (10 minutes).
Processing flow: uploading → parsing → structuring → verifying → ready
3. Hydrate into workspace
--name— override the directory name--force— replace an existing shelf directory
Quick example
Give your agent a prompt like:- Upload the PDF to Shelv
- Poll until processing completes
- Download and extract the structured Markdown
- Use
find,cat, andgrepto explore the result
Requirements
curl,tar,jq, andshasum(orsha256sum) must be available- macOS or Linux
Templates
| Template | Description |
|---|---|
book | Chapters, sections, and subsections |
legal-contract | Articles, clauses, definitions, and appendices |
charter-party | Part I terms, clauses, riders, and annexes |
academic-paper | Abstract, sections, references, and figures |
--template flag to let Shelv auto-detect the document structure.