Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Using Iii?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/iii-hq-using-iii-68bfcab6)
<!-- generated by iii-skill-render. DO NOT EDIT (changes here are overwritten on the next render). Edit docs/next/using-iii/workers-registry.mdx. -->
# Worker Registry
## Browsing the registry
The iii Worker Registry at [workers.iii.dev](https://workers.iii.dev/) is the index of installable
workers. Each worker page lists the functions it provides, including the ones you observe, its
configuration schema, supported platforms, and agent skills. Use that information to locate a worker
that fulfills a capability your project needs.
{/* TODO: Add a llm-only note here on how an llm can browse the registry once that surface is stable in the skills worker */}
Workers can also be found on Docker and OCI-compatible registries.
## Adding a worker
`compose::add` accepts a registry name (optionally pinned with `@version`) or a local project path.
It writes the resolved worker and dependency graph to `worker-compose.yaml`, then restarts the
project. Its settings are managed through the [configuration worker](./configuration).
```bash
iii call -n dev compose::add worker=state
iii call -n dev compose::add worker=state@0.22.2
iii call -n dev compose::add worker=./workers/my_worker
```
<Note>
Replace `dev` with the running Compose daemon's namespace. For project lifecycle, status, updates,
and removal by editing the file, see [Workers](./workers) and [Compose](./compose).
</Note>
## Private workers
A private worker belongs to an organization and has a scoped name, `@<organization>/<name>`, such as
`@acme/ade`. Its container key is the part after the slash, `ade`. Every form that names a public
worker also takes a scoped name:
```bash
iii call -n dev compose::add worker=@acme/ade
iii call -n dev compose::add worker=@acme/ade@^0.4
iii call -n dev compose::add worker=api.workers.iii.dev/@acme/ade
```
In `worker-compose.yaml`, the same worker is `package://@acme/ade`, or
`package://api.workers.iii.dev/@acme/ade` with its registry named.
### Signing in to the registry
Compose installs a private worker only with a download token that has access to it. Save one with
`iii registry login`. It asks for the token without echoing it, checks it with the registry, and
saves it only when the registry accepts it:
```bash
iii registry login
iii registry whoami
iii registry logout
```
In a script or CI job, pipe the token in with `--token-stdin`. The token is never accepted as an
argument:
```bash
printf '%s' "$DOWNLOAD_TOKEN" | iii registry login --token-stdin
```
Add `--registry <url>` to any of these commands for a registry other than
`https://api.workers.iii.dev`. `iii registry whoami` checks the token this shell selects:
`III_REGISTRY_TOKEN` when it is set for the default registry, otherwise the saved token. It prints
where that token came from, the organization, the token's kind, prefix, access, and expiry, never
the token itself. Compose may select another token, from the environment of its own process.
`iii registry login` saves the token in `~/.iii/credentials.toml` under the registry's origin. The
file is readable only by you. Compose reads it again for each operation, so a running daemon uses a
new login without a restart.
Workers and hooks that run on the host run as your user, so they can read that file like any other
file you own. On a shared or persistent CI runner that installs from the default registry, prefer
`III_REGISTRY_TOKEN`, set for the job on the `iii` process that installs the workers (see below),
over `iii registry login`, which leaves the token on disk for later jobs. Another registry takes
only a saved token.
### Setting `III_REGISTRY_TOKEN`
`III_REGISTRY_TOKEN` gives a token for the default registry, `https://api.workers.iii.dev`, and
takes precedence over a token saved for it. It never applies to another registry, including one that
a compose file or lockfile names.
Set it in the environment of the `iii` process that installs the worker:
- `iii compose build` installs in its own process, so set the variable in the shell that runs it.
- `compose::*` functions run in the Compose daemon, so set the variable where the daemon starts
(`iii compose` or `iii compose --up`) and restart the daemon after changing it. Setting it in the
shell that runs `iii call` has no effect.
Compose keeps the token to itself. It reads the variable to install private workers and never passes
it to a worker, a hook, a build step, or the managed engine. A container that needs a registry token
declares it in its own `environment` or `env_file`.
### Where the token goes
The token is sent only to the registry's own origin (scheme, host, and port), and only over HTTPS or
to a loopback address. A download that redirects to a storage host follows the redirect without the
token. Lockfiles, compose files, reports, and error messages never contain it; an error shows at
most its first 8 characters.
### Troubleshooting private workers
Each error names the registry, the token by its first 8 characters (as the **Download tokens** tab
shows them), and where it came from: `III_REGISTRY_TOKEN` or the path of the credentials file. It
says what the failure stops and ends with the commands that fix it.
| Code | Meaning |
| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `REGISTRY_AUTH_FAILED` | The registry refused the token as invalid, expired, or revoked. While it is sent, every request to that registry fails, public workers included. The error names where the token came from. For a token saved in `~/.iii/credentials.toml`, replace it with `iii registry login`, or stop sending it with `iii registry logout`. For `III_REGISTRY_TOKEN`, which those commands do not change, set it to a new token or unset it where Compose reads it (see above); a running Compose daemon needs a restart to see the change. |
| `PACKAGE_NOT_RESOLVED` | For a scoped name, the worker does not exist or the token has no access to it. The registry answers both cases the same way. `iii registry whoami` lists the workers a token reaches. |
| `REGISTRY_CREDENTIALS_INVALID` | `III_REGISTRY_TOKEN` or `~/.iii/credentials.toml` cannot be used. |
When `~/.iii/credentials.toml` is not valid TOML, has an entry that is not an origin with a `token`,
or cannot be read, Compose stops every registry operation, public workers included: without the file
it cannot tell which token belongs to which registry. The error gives the file's path and the line
and column of the problem, never the file's content. `III_REGISTRY_TOKEN`, set where Compose reads
it (see above), gets around it for `https://api.workers.iii.dev` only.
Fix the line the error names, or move the file aside and sign in again. Moving it drops the tokens
saved for other registries, so sign in to those again too. The backup goes into a new directory of
its own, so it never replaces one an earlier recovery left:
```bash
mv ~/.iii/credentials.toml "$(mktemp -d ~/.iii/credentials-backup.XXXXXX)/"
iii registry login
```
`iii registry login` and `iii registry logout` never overwrite a credentials file they cannot read.
Compose reads a `~/.iii/credentials.toml` that is a symbolic link, but `login` and `logout` refuse
to change it: replacing the link would leave the file it points to as it was. Edit that file
yourself, or remove the link to keep a file of this machine's own. When other users can open
`~/.iii`, `login` and `logout` change its mode to `0700` before saving and print the old mode and
the new one.
## Artifact types
Compose currently runs registry workers published as native binaries or bundles. A bundle runs in a
VM through `iii call sandbox::build` and `iii call sandbox::start`, or on the host when its
container's `scripts.run` is a host command. See [Compose / VM workers](./compose#vm-workers).
Engine-kind roots are rejected because the engine already supplies them; image workers require an
OCI runtime and are not yet supported by Compose.