Skip to main content

forge

The Forge command-line interface. Sign in once with a Forge API key, then download and upload dataset episodes, convert MCAP ↔ LeRobot (v2.0, v2.1 and v3.0), and lower the video frame rate. Conversion and frame-rate changes run on your computer; for LeRobot v2.1, forge download --server-export can also have Forge build the dataset. Forge stores and serves episodes exactly as they were uploaded.

The full guide is on Forge: Documentation → Command-Line Interface (CLI).

Install

Linux only: x86_64 or arm64, glibc 2.28+ (e.g. Ubuntu 20.04+, Debian 12+, RHEL/Rocky 8+). On Windows, run it inside WSL2 (Ubuntu). macOS is not supported. No root, Python or ffmpeg needed.

curl -fsSL https://forge.eastworlds.io/install.sh | bash

This installs forge with its own Python into ~/.forge (about 310 MB) and links forge and eforge (the same program) into ~/.local/bin. A specific version: … | bash -s -- 0.2.0.

Prefer a Python tool manager (Linux)? uv tool install eastworlds-forge or pipx install eastworlds-forge.

Sign in

forge

The first run opens Forge → API keys with a CLI key filled in. Press Create, copy the command the page shows, and paste it at the prompt. In CI, set FORGE_API_KEY instead.

Use

forge datasets list                  # add --shared for datasets shared with you, -n ORG for one organisation's
forge download eastworlds/yam-fold-handkerchief -o ./data --verdict valid
forge download eastworlds/yam-fold-handkerchief -o ./lerobot --format lerobot-v21 --fps 10
forge upload ./recordings/2026-09-29 --to eastworlds/yam-fold-handkerchief
forge convert mcap-to-lerobot ./data/eastworlds/yam-fold-handkerchief -o ./lerobot/yam_fold
forge convert lerobot-to-mcap ./lerobot/yam_fold -o ./mcap_again
forge episodes tag eastworlds/yam-fold-handkerchief --tag scene=lab --add quality:good --remove quality:bad
forge episodes report eastworlds/yam-fold-handkerchief ep_0007 --category video_sync --at 1:05.5 -m "Wrist camera lags the arm"
forge episodes issues eastworlds/yam-fold-handkerchief ep_0007

forge episodes tag adds and removes hand-picked tags on episodes already in Forge (needs a key that can write the dataset). Choose the episodes with the same options as forge episodes list (--episode, --episodes-file, --tag, --task, --verdict, ...; here --tag only filters, --add and --remove change tags), or pass --all for the whole dataset; with no selection it refuses. It prints the plan and asks before writing; --yes skips the question (required without a terminal), --dry-run only prints the plan. Removing runs first, then adding, so a tag in both is kept; tags Forge fills in itself (such as duration) are skipped and reported. Up to 5,000 episodes go in one call; a bigger selection is sent in several, and if one fails the earlier ones stay tagged.

Replace files in an episode

forge episodes replace eastworlds/yam-fold-handkerchief ep_0007 ./cam0.mp4 --as videos/cam0.mp4
forge episodes replace eastworlds/yam-fold-handkerchief ep_0007 ./fixed-files --dry-run

forge episodes replace NAMESPACE/DATASET EPISODE_NAME PATH... replaces or adds files in an episode that is already in Forge (needs a key that can write the dataset). Point it at a folder holding only the corrected files, not at a downloaded episode folder. Each PATH is a file (stored under its file name, or under --as RELPATH when you give exactly one file) or a folder (every file in it, with its path inside the folder). Files that already exist in the episode are replaced, new ones are added, files identical to what is there are skipped, and the episode's other files are left alone. meta/ and forge/ files are not accepted. A replace is refused while the episode is shared with a cloned dataset (an episode in a dataset that has been cloned, or that is a clone). It asks before replacing; --yes skips the question (required without a terminal). --dry-run plans and prints how many files would be uploaded and how many are identical, and sends nothing. --json prints the replaced, added and skipped paths and the episode's final file count and size. Replaces do not write .forge/pushed.json.

Report an issue

forge episodes report tells a dataset's organization that an episode has a problem. It works on any episode you can read: a key with datasets:read is enough, you do not need to own or write the dataset.

forge episodes report eastworlds/yam-fold-handkerchief ep_0007 --category video_sync --at 1:05.5 -m "Wrist camera lags the arm"
forge episodes report eastworlds/yam-fold-handkerchief ep_0007 -c corrupt_file --message-file notes.txt --dry-run
forge episodes issues eastworlds/yam-fold-handkerchief ep_0007     # reports on one episode
forge episodes issues eastworlds/yam-fold-handkerchief             # the dataset's open queue (its organization only)

Categories: corrupt_file (Corrupt or unreadable file), missing_files (Missing files), video_sync (Video or sync problem), wrong_metadata (Wrong metadata), other (Something else). The message is 1 to 4000 characters, from --message or --message-file (- reads standard input). --at is a point in the episode: 12.5, 12.5s, 1500ms, 1:05.25 or 1:02:03. The command prints the report and asks Report this issue?; --yes skips the question (required without a terminal), --dry-run only prints it. Forge limits how many reports can be sent in a short time; if it says there are too many, wait a little and try again. After sending, it prints the page on the web where you can follow the report. Leave out the dataset, episode, category or message in a terminal and it asks for them.

forge episodes issues with an episode lists the reports on it (the dataset's organization sees all of them, anyone else sees the ones they filed); without an episode it lists the dataset's queue, open reports by default (--status open|resolved|dismissed|all), which only the dataset's organization can see.

Global options such as --json and -y go before the command: forge --json datasets list.

forge update updates, forge doctor checks the setup, forge uninstall removes everything (your keys stay unless you confirm).

Exit code Meaning
0 OK
1 Failure
2 Usage or validation error
3 Bad or expired key
4 Missing scope
5 Not found
6 Conflict
7 Server or network error
130 Interrupted

Conversion

forge convert turns MCAP recordings into LeRobot datasets and back, on your computer. Details, defaults and every field it reads are in docs/CONVERSION.md.

Supported
MCAP input ROS 2 cdr, ros1, protobuf, json messages (ROS 1 .bag: run mcap convert first)
Cameras H.264 / H.265 / VP9 / AV1 video, JPEG/PNG images, raw rgb8 bgr8 rgba8 bgra8 mono8 mono16 yuv422; any number, or none
State and action JointState; else poses, std_msgs scalars and arrays (--state-topic, --action-topic, --extra-topic to choose)
Rigs WAGMI handheld (Dex1 or Yubi gripper), YAM, Unitree G1, any JointState robot
LeRobot read v2.0, v2.1, v3.0; write v2.1 or v3.0; image and video columns

Annotations

Add your own annotations (workflow runs with lanes of segments) to a dataset's existing episodes. The file is forge.annotations.v1 JSONL, one episode per line: {"episode": "<name>" and/or "episode_index": N, "workflows": {"<name>": {"results": [{"segments": [...]}], "finishedAt": "...", "failed": false}}}. Everyone who can view the dataset sees uploaded annotations, and the original episodes and annotations are not changed. Annotations cannot be deleted from the CLI; dataset owners can hide a run in Episode view settings. Uploaded annotations are not part of downloads or exports. upload also takes an MCAP annotations file (a real MCAP file whose name ends in .mcap); Forge checks it itself, so use upload --dry-run rather than check (JSONL only) for it. forge download --annotation-format mcap (with --content full or annotations) packs forge/annotations.mcap instead of forge/annotations.jsonl. Your API key needs datasets:write for check and upload and datasets:read for show. Limits: 20 MiB, 5,000 lines and 1 MiB per line (the first two are checked locally before anything is sent; a file over either exits 2). Forge limits how fast annotations can be uploaded; the CLI waits and retries automatically. Prefer questions to flags? Run forge and choose Annotations: Add annotations to existing episodes (a check, the plan and one question), See what's on an episode, or Get a sample file; it shows the command it ran.

Rules for the file: one JSON object per line, with no duplicate keys. schema, if present, is forge.annotations.v1. Name the episode with episode and/or episode_index (if both, they must be the same episode). workflows holds up to 20 workflows, each name 1 to 200 characters. Each workflow has a results list (up to 50), and a result may carry a segments list. Unless failed is true, a workflow needs at least one segment; one episode line has at most 2,000 segments. startMs and endMs are whole milliseconds with 0 <= startMs < endMs <= the episode's length (up to 24 hours when the length is unknown). Every segment needs a non-blank title (at most 200 characters); description (at most 2,000 characters), qualityScore (a whole number from 1 to 5) and reviewStatus (pending, accepted or rejected) are optional; other fields are ignored. Segments inside one result must not overlap (touching is fine). finishedAt is optional (ISO-8601, at most a day in the future; default: the upload time). A line that breaks a rule is rejected; check and upload print each reason as line N: <json path>: <reason> (the first 10 lines, or all with --all). Lines already added are reported as "N already added, will be skipped" and are not an error.

forge annotations sample > a.jsonl          # a two-line file that follows the format
# edit the episode names (or episode_index) to match your dataset
forge annotations check eastworlds/yam-fold-handkerchief a.jsonl
forge annotations upload eastworlds/yam-fold-handkerchief a.jsonl     # shows the plan, asks, uploads
forge annotations upload eastworlds/yam-fold-handkerchief a.jsonl --yes   # no question (scripts)
forge annotations show eastworlds/yam-fold-handkerchief EPISODE

upload runs the check, prints what will change (Add annotations to N episodes in NAMESPACE/DATASET:, the first 8 episodes with their workflow names and segment counts, and M more, how many lines are already added and will be skipped, and with --partial how many lines with problems will be skipped), prints the notes, and then asks Upload these annotations? before sending anything. The global --yes skips the question; without a terminal (or with --json) it is required, otherwise upload exits 2 with "pass --yes to upload without a prompt". Answering no exits 130. --dry-run prints the plan and stops without asking. When nothing can be added it says so and exits 0 without asking. Lines with problems stop the upload (exit 1) unless you pass --partial. Added annotations to N episodes. is printed on success, and Nothing to add: these annotations are already on those episodes. when every line was already added. Exit codes: 0 ok (also when everything was already added), 1 some lines would be skipped (check, upload --dry-run) or have problems without --partial, or no line matches, 2 usage or local file problems (not a file, over the size limits, no lines) or upload without --yes and without a terminal, 3 bad key, 4 missing permission (datasets:write for check and upload, datasets:read for show), 5 dataset or episode not found, 7 server or network error, 130 you answered no to the question. All commands are in COMMANDS.md.

Interactive mode and tab completion

In a terminal, forge can ask instead of making you remember flags. Type forge on its own for a menu that reaches every command (and, under "Advanced options", the useful flags), or leave arguments out of forge download, forge upload, forge episodes show, forge uploads status or forge downloads show and it asks for them. Every guided flow ends by printing the equivalent forge … command, so you can copy it into a script.

Menus appear only when both stdin and stderr are terminals, CI is not set, and you did not pass --yes or --json. Anywhere else a missing argument is the usual usage error, and nothing is ever written to stdout by a menu.

Tab completion for datasets, tasks, tags, file types, annotation runs (it uses your saved key, waits at most 2 seconds, and stays silent if it cannot reach Forge):

forge --install-completion    # then open a new shell
forge --show-completion       # print the script instead of installing it

Develop

python3.11 -m venv .venv && .venv/bin/pip install -e '.[dev]'
.venv/bin/pytest
.venv/bin/ruff check src tests
  • src/forge_cli/convert/ is a port of the production-verified MCAP → LeRobot v2.1 converter. tests/test_convert_golden.py compares the two on real recordings when FORGE_VERIFIED_SAMPLE and FORGE_GOLDEN_EPISODES are set.
  • install/install.sh is the installer; tests/test_install.py runs it against a local fake release.
  • scripts/build_release.py --out dist/release builds what the download host serves. On a vX.Y.Z tag, .github/workflows/release.yml publishes it to Tencent COS behind EdgeOne (https://cli-forge.eastworlds.io); setup in docs/RELEASE_INFRA.md.

Design: docs/INITIAL_PLAN_V2.md. What was built: docs/INITIAL_DONE_V2.md.

Metadata

Release files for eastworlds-forge 0.14.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eastworlds-forge 0.14.0
File Size Uploaded Provenance Actions
eastworlds_forge-0.14.0.tar.gz 203.6 kB With provenance Details for eastworlds_forge-0.14.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for eastworlds-forge 0.14.0
File Interpreter ABI Platform Actions
eastworlds_forge-0.14.0-py3-none-any.whl Python 3 none any Details for eastworlds_forge-0.14.0-py3-none-any.whl

Total release size: 444.4 kB

Release files / eastworlds_forge-0.14.0.tar.gz

Download URL eastworlds_forge-0.14.0.tar.gz
Size 203.6 kB
Tags Source
SHA-256 checksum
How to use checksums
eebfdf5d46f47fc8ddd89c30adcd67e2898304cf65eb45edd2b6d44093d99d66
BLAKE2b-256 checksum
How to use checksums
2a42d6c9f3556f715bc128dca03413aed0b1cca54ea31b8c869f3a6cf7b70eef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / eastworlds_forge-0.14.0-py3-none-any.whl

Download URL eastworlds_forge-0.14.0-py3-none-any.whl
Size 240.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4a647b354c30f410b3f78d486b255e22c31713ee7eacaec5013f152d4714330
BLAKE2b-256 checksum
How to use checksums
7ded4306972d4f6a46e40d9a0ac958824a5956ffb14297d5cc4dc6e044845550
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Security for eastworlds-forge 0.14.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for eastworlds_forge-0.14.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page