Skip to content
Skillpedia
Agents84k · #1398

cli-batches

What it does

This skill shows how to send large sets of AI requests as batch jobs from the command line. It is for teams who need many model calls processed together and the results saved to files.

When to use it

  • ✓When a user wants to run many AI requests as one batch job.
  • ✓When a user wants to check the progress of a batch or cancel it.
  • ✓When a user wants to download batch results or errors to a file.

Skill link

https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-batches/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-batches/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Submit this JSONL file of prompts as a batch and save the results when it is done.”

5 new skills a week. 1 minute to read.

How it works

The skill uploads a batch input file, starts a job with a chosen endpoint and time window, then can wait for it to finish. Results and errors can be saved to files.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->

Overview

Submit and monitor batch inference jobs from the CLI. Upload and manage files for batch processing, retrieve results, and integrate batch pipelines with CI/CD workflows.

Quick install

npm install -g omniroute   # or: npx omniroute
omniroute --version

Subcommands

batches

Example:

omniroute batches

batches list

Flags:

  • --status <s>
  • --limit <n>

Example:

omniroute batches list

batches get <batchId>

Example:

omniroute batches get <batchId>

batches create

Flags:

  • --input-file <fileId>
  • --endpoint <e>
  • --completion-window <w>
  • --metadata <kv>

Example:

omniroute batches create

batches submit

Flags:

  • --jsonl <path>
  • --endpoint <e>
  • --wait

Example:

omniroute batches submit

batches cancel <batchId>

Flags:

  • --yes

Example:

omniroute batches cancel <batchId>

batches wait <batchId>

Flags:

  • --timeout <ms>

Example:

omniroute batches wait <batchId>

batches output <batchId>

Flags:

  • --out <path>

Example:

omniroute batches output <batchId>

batches errors <batchId>

Flags:

  • --out <path>

Example:

omniroute batches errors <batchId>

files

Example:

omniroute files

files list

Flags:

  • --purpose <p>
  • --limit <n>

Example:

omniroute files list

files get <fileId>

Example:

omniroute files get <fileId>

files upload <path>

Flags:

  • --purpose <p>

Example:

omniroute files upload <path>

files content <fileId>

Flags:

  • --out <path>

Example:

omniroute files content <fileId>

files delete <fileId>

Flags:

  • --yes

Example:

omniroute files delete <fileId>
FAQ

What format does the input need?

The batch input is a JSONL file, which the submit command takes with a jsonl path option.

Can I wait for the batch to finish?

Yes. The submit command has a wait option, and a separate wait command takes a timeout.

Can I stop a batch?

Yes. The cancel command stops a batch, and asks for confirmation unless you pass a yes flag.

Details

Original description by the author

Submit and monitor batch inference jobs from the CLI. Upload and manage files for batch processing, retrieve results, and integrate batch pipelines with CI/CD workflows.

repo: cheaper-inference/OmniRoute

Popularity

GitHub stars
84k
Ranking position
#1398
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills