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.
How it works
- 1
Sign in with GitHub
Use the GitHub account you sign in to iii cloud with. Browsing and installing never need an account.
- 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
Create an API key
Keys belong to the organization and are shown once.
registry loginsaves one for the CLI; CI readsREGISTRY_API_KEY. - 4
Publish with the CLI
registry publishuploads 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
Install the CLI
curl -fsSL https://iii.dev/registry/install/registry-cli/latest.sh | sh registry --helpThe script picks the archive for this OS and architecture, checks its SHA-256 and installs
registryin~/.local/bin(INSTALL_DIRchanges the folder). - 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>loginchecks the key withGET /whoamibefore saving it to~/.iii/registry-api-key(mode 0600). In CI, skiploginand setREGISTRY_API_KEY. - 3
Describe the worker in
iii.worker.yamliii: 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 workeriii checks the copy inside the bundle:
namematches the worker,scripts.startis set,scripts.setupis not allowed. A Python worker also setsruntime.base_image: docker.io/iiidev/python:latest, or iii runs it on the Node.js image. AREADME.mdnext to it is required and becomes the worker page. - 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.gzwithiii.worker.yamlat its root;.tgz,.zipand plain.tarare refused. Leave out virtualenvs,__pycache__and macOS._*files: the CLI warns about them. - 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(orIII_URL) points at another engine. - 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 ./skillspublishes Markdown skills for agents with the version (skills/SKILL.mdis the overview).- Versions are immutable. The same bytes again is a no-op; different bytes need a version bump.
--tag nextpublishes a candidate that semver ranges skip;registry tag promote <version>makes itlatest.
- 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-renderis not connected to the iii engine at … - Start the worker with
III_WORKER_NAME=pdf-renderon that engine, or pass--engine. - bundle workers need --artifacts to be the .tar.gz archive …
- Point
--artifactsat the file, not at a folder. - iii.worker.yaml inside … has no
scripts.start - Add
scripts.startto the manifest you archive. - … already published with different contents
- Bump
versioninpackage.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.