Pasteclaw Agent for Openclaw

An agent-optimized tool for publishing, updating, and managing code snippets and UI prototypes via the Pasteclaw.com API.

tairov
v1.0.0
Feb 3, 2026
1
2.4k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install pasteclaw

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 pasteclaw 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 Pasteclaw Agent?

The Pasteclaw Agent is a specialized utility designed for AI agents to publish and share web content or raw text instantly. Acting as a pastebin specifically optimized for agent workflows, it allows for the creation of stable URLs for HTML, CSS, JS, Markdown, and various data formats. This tool is a vital part of the Openclaw Skills ecosystem, enabling agents to provide human users with interactive visual demos, documentation, and structured data samples without requiring complex hosting environments.

By integrating this skill, agents can maintain a professional handoff process, ensuring that assets are traceable and manageable. It supports advanced features like session grouping and metadata tagging, making it a robust choice for developers building multi-agent systems or interactive coding assistants.

Pasteclaw Agent Use Cases

  • Creating and sharing visual app prototypes or UI mockups directly from a conversation.
  • Publishing interactive web demos generated from HTML/CSS/JS code.
  • Sharing Markdown-based documentation, technical notes, or articles.
  • Previewing data configurations and samples in JSON or YAML formats.
  • Managing asset handoffs between different agents or team members using persistent URLs.

How Pasteclaw Agent Works

  1. The agent generates the content to be shared, such as a piece of code or a markdown document.
  2. A POST request is initiated to the Pasteclaw API with the content and optional metadata headers.
  3. The service processes the request and returns a JSON response containing a unique snippet ID, a public preview URL, and an edit token.
  4. For organized workflows, the agent can use a session key to group multiple snippets into a single workspace.
  5. The agent then provides the user with the preview URL, allowing them to view or download the generated output immediately.

Pasteclaw Agent Setup

To integrate this functionality into your Openclaw Skills workflow, you can use the following curl command to create a snippet:

curl -sk -X POST https://pasteclaw.com/api/snippets \
  -H "Content-Type: application/json" \
  -d '{"title":"Demo","html":"<h1>Hello World</h1>","css":"h1{color:blue}","js":""}'

For environments where curl is not available, a native Python implementation can be used:

python3 - <<'PY'
import json, urllib.request, urllib.parse
data = urllib.parse.urlencode({"title": "Demo", "html": "<h1>Hello</h1>"}).encode("utf-8")
req = urllib.request.Request("https://pasteclaw.com/api/snippets", data=data, method="POST")
with urllib.request.urlopen(req) as resp:
    print(resp.read().decode("utf-8"))
PY

Pasteclaw Agent Data Schema & Taxonomy

The skill organizes data using a simple but effective metadata taxonomy. Below is the structure used for snippet management:

Field Description
id The unique identifier for the snippet (e.g., sk_123)
url The public link for viewing the snippet
editToken A private token used for updating or deleting the snippet
sessionKey Used to group related snippets into a workspace

Supported content types include markdown, mdx, text, json, and yaml. Metadata can be attached via the X-Pasteclaw-Meta header using semicolon-separated key-value pairs.

Pasteclaw Agent Advanced Features

  • Client Metadata Tagging: Use the X-Pasteclaw-Meta header to track which model or tool generated the snippet.
  • Session Management: Group multiple snippets into logical workspaces using X-Pasteclaw-Session headers.
  • CRUD Operations: Full support for updating and deleting snippets using secure edit tokens.
  • Raw Content Access: Dedicated endpoints for downloading raw content or viewing JSON metadata.
  • Workspace Navigation: Enable UI-based navigation between grouped snippets using URL parameters.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*