Skip to content
Sign in
registry / publish

Publish workers and kits

Sign in with GitHub, create an organization and an API key, then publish from the terminal with the registry CLI. Bundle workers and kits publish right away; binary workers and executables need a verified organization.

Sign in with GitHub

How it works

  1. 1

    Sign in with GitHub

    Use the GitHub account you sign in to iii cloud with. Browsing and installing never need an account.

  2. 2

    Create an organization

    Organizations publish. Create one for yourself or your company, or join your team’s. Its handle is permanent and names your kits, as in acme/review-kit.

  3. 3

    Create an API key

    Keys belong to the organization and are shown once. registry login saves one for the CLI; CI reads REGISTRY_API_KEY.

  4. 4

    Publish with the CLI

    registry publish uploads an immutable version: digest-pinned for workers, content-addressed for kits. A worker is published from a running iii engine it’s connected to, which supplies its functions, with their schemas, for the API reference.

What you can publish

  • Every organization

    Bundle worker

    Node.js or Python, one .tar.gz with iii.worker.yaml

  • Every organization

    Kit

    Agent profiles, skills and the workers they need

  • Verified organizations

    Binary worker

    Native archives per target, signed by digest

  • Verified organizations

    Executable

    A standalone program installed with curl | sh

Binary workers and executables ship native code, so the iii team verifies who publishes them. Request it from your organization’s dashboard; bundle workers and kits publish while you wait.

Technical guide

From a folder to a published bundle worker

The toggle switches between the rendered guide and its Markdown source.

  1. 1

    Install the CLI

    curl -fsSL https://iii.dev/registry/install/registry-cli/latest.sh | sh
    registry --help

    The script picks the archive for this OS and architecture, checks its SHA-256 and installs registry in ~/.local/bin (INSTALL_DIR changes the folder).

  2. 2

    Log in with an organization API key

    Sign in at https://iii.dev/registry/sign-in with GitHub, create an organization, then a key under API keys on its dashboard. It is shown once.

    printf '%s\n' "$REGISTRY_API_KEY" | registry login --stdin
    registry whoami      # handle: <your-org>

    login checks the key with GET /whoami before saving it to ~/.iii/registry-api-key (mode 0600). In CI, skip login and set REGISTRY_API_KEY.

  3. 3

    Describe the worker in iii.worker.yaml

    iii: v1
    name: pdf-render              # unique on the registry, never an org handle
    deploy: bundle                # binary needs a verified organization
    manifest: package.json        # the version is read from here
    description: Render HTML and Markdown to PDF.
    license: Apache-2.0
    repo: https://github.com/<your-org>/pdf-render
    tags: [pdf, documents]
    scripts:
      start: node dist/index.js   # what iii runs to start the worker

    iii checks the copy inside the bundle: name matches the worker, scripts.start is set, scripts.setup is not allowed. A Python worker also sets runtime.base_image: docker.io/iiidev/python:latest, or iii runs it on the Node.js image. A README.md next to it is required and becomes the worker page.

  4. 4

    Build the bundle

    npm ci && npm run build            # emits build/dist/index.js
    cp iii.worker.yaml README.md build/
    tar -czf pdf-render.tar.gz -C build .

    A bundle is one .tar.gz with iii.worker.yaml at its root; .tgz, .zip and plain .tar are refused. Leave out virtualenvs, __pycache__ and macOS ._* files: the CLI warns about them.

  5. 5

    Connect it to a local iii engine

    The CLI reads the worker's functions and trigger types, with their schemas, from an engine the worker is connected to. They become the API reference on the worker page.

    iii &                                                   # ws://localhost:49134
    (cd build && III_WORKER_NAME=pdf-render node dist/index.js) &

    The worker registers under its registry name. --engine ws://host:port (or III_URL) points at another engine.

  6. 6

    Dry run, then publish

    registry publish --artifacts ./pdf-render.tar.gz --dry-run
    registry publish --artifacts ./pdf-render.tar.gz --engine-wait 30
    • --skills ./skills publishes Markdown skills for agents with the version (skills/SKILL.md is the overview).
    • Versions are immutable. The same bytes again is a no-op; different bytes need a version bump.
    • --tag next publishes a candidate that semver ranges skip; registry tag promote <version> makes it latest.
  7. 7

    Check it

    • Page: https://iii.dev/registry/workers/pdf-render (cached for about a minute)
    • Install: iii trigger compose::add worker=pdf-render
    • Downloads appear on your organization's dashboard.

Publishing a kit instead

A kit is named <handle>/<kit>, here <your-org>/<kit>, and declares the workers it needs by semver range.

registry kit init     # iii.kit.yaml, README.md, CHANGELOG.md, agents/, skills/
registry check        # offline checks, no key needed
registry publish      # published as <your-org>/<kit>

Common errors

worker pdf-render is not connected to the iii engine at …
Start the worker with III_WORKER_NAME=pdf-render on that engine, or pass --engine.
bundle workers need --artifacts to be the .tar.gz archive …
Point --artifacts at the file, not at a folder.
iii.worker.yaml inside … has no scripts.start
Add scripts.start to the manifest you archive.
… already published with different contents
Bump version in package.json.
<your-org> is not verified: binary workers and executables need a verified organization
Publish with deploy: bundle, or request verification at https://iii.dev/registry/dashboard/<your-org>/verification.

Search the registry

Find workers, kits and executables, or jump to a page.