openclaw-claude-batch
Claude Batch API for processing large volumes of requests asynchronously with 50% cost savings. Use for bulk content generation, data analysis, content moderation, batch evaluations, or large-scale testing where immediate responses are not required.
Why use this skill?
Process bulk Claude API requests asynchronously with the OpenClaw batch skill. Save 50% on token costs for data analysis and content generation.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/kai-tw/openclaw-claude-batchWhat This Skill Does
The openclaw-claude-batch skill provides a powerful interface for interacting with the Claude Batch API. This skill is specifically designed to handle large-scale LLM workloads asynchronously, allowing you to process thousands of requests without hitting standard rate limits or incurring the full cost of real-time API requests. By offloading heavy processing tasks, you can achieve significant infrastructure savings and operational efficiency. The skill handles the complexities of batch creation, polling for status updates, and parsing retrieved results, ensuring your workflow remains reliable and memory-efficient.
Installation
To integrate this skill into your environment, use the OpenClaw command-line interface. Run the following command in your terminal:
clawhub install openclaw/skills/skills/kai-tw/openclaw-claude-batch
Ensure you have the required anthropic SDK installed and your API credentials properly configured in your local environment variables before executing the install command.
Use Cases
- Bulk content generation: Efficiently generate thousands of product descriptions, blog posts, or marketing variations at 50% cost.
- Large-scale evaluations: Run complex test suites or model comparisons against thousands of inputs to generate robust performance metrics.
- Content moderation: Filter, classify, or flag vast datasets of user-generated content for safety and policy compliance.
- Data analysis: Execute complex transformations, summarizations, or entity extraction tasks across massive datasets.
Example Prompts
- "Run a batch process on
feedback_data.jsonlusing Claude-3.5-Sonnet and store the results inanalyzed_feedback.jsonl." - "Create a new Claude batch request for the 500 items in my queue and monitor its status until completion."
- "Summarize the batch processing results stored in
batch_id_123and save the errors to a separate report."
Tips & Limitations
- Cost Efficiency: Always utilize batching for non-time-sensitive tasks to leverage the 50% discount on token usage.
- Data Handling: Use the
custom_idfield in your JSONL file to map request inputs to specific outputs, as return order is not guaranteed. - Persistence: Remember that results are only available for 29 days after creation, so ensure you download and store your outputs before they expire.
- Limits: Batches are capped at 100,000 requests or 256MB per file. Plan your data segmentation accordingly if exceeding these limits.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-kai-tw-openclaw-claude-batch": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write, external-api
Related Skills
openclaw-tc-dict-skill
Query Traditional Chinese dictionaries from Ministry of Education (MOE) Taiwan. Supports looking up word definitions from the "國語辭典簡編本" (Concised Mandarin Dictionary) with automatic version management and optional periodic updates. Use when you need to look up Chinese word meanings, check definitions, or ensure you have the latest dictionary data.
pi-workflow
Workflow orchestration for Pi's task management, self-improvement, and code quality standards. Use when starting new projects, managing multi-step tasks (3+ steps or architectural decisions), capturing lessons from mistakes, writing verifiable code, or establishing quality gates before completion. Includes planning templates, progress tracking, bug fixing autonomy, and a lessons capture system to prevent repeated mistakes.
figma
Interact with the Figma REST API to read files, export layers/components as images, and retrieve comments. Use when the user needs information from Figma designs or wants to export assets for development. Triggers include "read figma file", "export figma layer", or "check figma comments".