> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kombify.io/llms.txt
> Use this file to discover all available pages before exploring further.

# homelab api workers

> Generated reference for the homelab api workers commands

> [!NOTE]
>
> Generated from the Homelab v0.49.2 release (source `2614eaba28d8`). For an installed version, `homelab api <command> --help` is authoritative.

## homelab api workers approve

Approve pending worker.

```bash theme={null}
homelab api workers approve <id> [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/workers/{id}/approve` |
| Changes state | Yes |
| MCP tool | `approve_worker` |

| Argument | Type | Description |
| - | - | - |
| `<id>` | string | **Required.** Resource ID. |

## homelab api workers identity upgrade approve

Approve the key a legacy server proposed.

Binds the pending key named by `key_thumbprint`, which makes the worker key-bound (bearer-only requests are denied afterwards). Requires the owner and a fresh multi-factor sign-in (at most 300 seconds old). The approving subject and time are recorded with the identity and logged. 409 `identity_upgrade_not_pending` when no unexpired pending key has that fingerprint.

```bash theme={null}
homelab api workers identity upgrade approve <id> [flags]
```

> [!WARNING]
>
> Requires confirmation: This operation decides which key may command the server; approve only a key whose fingerprint the Guard logs on the server. Pass `--yes` or answer the prompt; a non-interactive run without `--yes` stops before any request with exit code 9.

| | |
| - | - |
| HTTP | `POST /api/v1/workers/{id}/identity/upgrade/approve` |
| Changes state | Yes |
| MCP tool | `approve_worker_identity_upgrade` |

| Argument | Type | Description |
| - | - | - |
| `<id>` | string | **Required.** Resource ID. |
| `--key-thumbprint` | string | **Required.** |
| `--body` | json | JSON request body (`application/json`) as a literal, `@path` or `-` for stdin. |

## homelab api workers identity upgrade reject

Discard the key a legacy server proposed.

The owner's reset when the pending key is not the server's own: the proposal is discarded and must be made again. Rotating the server credential ends the holder's access to the bind endpoint.

```bash theme={null}
homelab api workers identity upgrade reject <id> [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/workers/{id}/identity/upgrade/reject` |
| Changes state | Yes |
| MCP tool | None |

| Argument | Type | Description |
| - | - | - |
| `<id>` | string | **Required.** Resource ID. |

## homelab api workers identity upgrade-status

Show whether a server still needs its identity key approved.

For the owner of the worker. `identity_binding=legacy_bearer` with `code=guard_identity_upgrade_required` means the server authenticates with its bearer credential alone and is observe-only; `pending` carries the fingerprint of the key the server proposed, which the owner compares with the fingerprint the Guard logs on the server. A worker of another tenant or owner is 404.

```bash theme={null}
homelab api workers identity upgrade-status <id> [flags]
```

| | |
| - | - |
| HTTP | `GET /api/v1/workers/{id}/identity/upgrade` |
| Changes state | No |
| MCP tool | `get_worker_identity_upgrade` |

| Argument | Type | Description |
| - | - | - |
| `<id>` | string | **Required.** Resource ID. |

## homelab api workers identity upgrades

List the owner's servers that wait for an identity key approval.

For the owner. Each entry is a server of theirs that proposed a key and is observe-only until that exact key is approved with `approveWorkerIdentityUpgrade` (fresh multi-factor sign-in required). Entries carry the hostname and the key fingerprint to compare with the one the Guard logs on the server. Listing grants nothing.

```bash theme={null}
homelab api workers identity upgrades [flags]
```

| | |
| - | - |
| HTTP | `GET /api/v1/workers/identity-upgrades` |
| Changes state | No |
| MCP tool | `list_worker_identity_upgrades` |

## homelab api workers list

List registered workers (filtered by owner).

```bash theme={null}
homelab api workers list [flags]
```

| | |
| - | - |
| HTTP | `GET /api/v1/workers` |
| Changes state | No |
| MCP tool | `list_workers` |

| Argument | Type | Description |
| - | - | - |
| `--page` | integer | Page number (default 1). |
| `--per-page` | integer | Items per page (default 20, max 100). |

## homelab api workers outcomes list

List the unresolved operation outcomes of one kombify Guard.

Lists the operations of an owned worker whose outcome is unknown: the kombify Guard recorded that the effect may or may not have happened and no observation settled it. Each one fences further changes on the server. `state` is `reconciling` while the Guard still tries to settle it and `needs_operator` once it stayed unresolved past the configured time (`HOMELAB_GUARD_OUTCOME_NEEDS_OPERATOR_AFTER`, default 30 minutes). The time only changes how the outcome is shown; it never releases the fence. Another tenant's or owner's worker is 404.

```bash theme={null}
homelab api workers outcomes list <id> [flags]
```

| | |
| - | - |
| HTTP | `GET /api/v1/workers/{id}/outcomes` |
| Changes state | No |
| MCP tool | `list_guard_unresolved_outcomes` |

| Argument | Type | Description |
| - | - | - |
| `<id>` | string | **Required.** Resource ID. |

## homelab api workers outcomes resolve

Release an unresolved kombify Guard operation outcome.

Commits an append-only operator resolution revision for an operation whose outcome is unknown and releases the worker's fence. `disposition` is `verified_applied` (the effect is in place), `verified_not_applied` (nothing happened) or `accept_unknown` (release without a verified outcome); `note` records what was verified. The actor is the authenticated subject and is recorded with the revision; a Guard cannot commit these dispositions. The person's own session needs a fresh multi-factor sign-in (at most 300 seconds old); an agent acting for the person needs none. `expected_revision` must be the revision the list returned, otherwise 409 `outcome_revision_stale`. The body is decoded strictly: exact keys, no unknown fields.

```bash theme={null}
homelab api workers outcomes resolve <id> <command-id> [flags]
```

> [!WARNING]
>
> Requires confirmation: This operation releases the fence of an operation whose outcome was never settled, so conflicting changes may run against the server. Pass `--yes` or answer the prompt; a non-interactive run without `--yes` stops before any request with exit code 9.

| | |
| - | - |
| HTTP | `POST /api/v1/workers/{id}/outcomes/{command_id}/resolve` |
| Changes state | Yes |
| MCP tool | `resolve_guard_unresolved_outcome` |

| Argument | Type | Description |
| - | - | - |
| `<id>` | string | **Required.** Resource ID. |
| `<command-id>` | string | **Required.** |
| `--disposition` | string | **Required.** One of `verified_applied`, `verified_not_applied`, `accept_unknown`. |
| `--expected-revision` | integer | **Required.** |
| `--note` | string | **Required.** |
| `--body` | json | JSON request body (`application/json`) as a literal, `@path` or `-` for stdin. |

## homelab api workers tenant-handoff confirm

Confirm the handoff of a retired server's command evidence.

The owner, as custodian of a detached or retired server, confirms that the command evidence its Guard still holds (journal entries, outcomes and identity state) may leave the server by `export` (an archive the operator takes off the server) or `quarantine` (a root-only directory outside the Guard state). The response shows a one-time `confirmation` exactly once and is valid for 72 hours. It is bound to the host key the worker used. The operator passes it to `homelab agent handoff `--server` --confirmation-file`, which has the control plane verify it for this server's key, then moves and securely removes the evidence and records a receipt. Pairing a server whose host key served another tenant, or that declares another tenant's evidence, is refused (409 `tenant_handoff_required`) until a receipt of that tenant is consumed. A receipt is consumed once, by the pairing that proves the confirmed key, before expiry; only that pairing may repeat it within 15 minutes (409 `tenant_handoff_invalid` otherwise). Requires the owner and a fresh multi-factor sign-in (at most 300 seconds old). 409 `tenant_handoff_worker_active` while the worker is not revoked or rejected, 409 `tenant_handoff_unbindable` for a worker that never bound a host key. A worker of another tenant or owner is 404.

```bash theme={null}
homelab api workers tenant-handoff confirm <id> [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/workers/{id}/tenant-handoff` |
| Changes state | Yes |
| MCP tool | None |

| Argument | Type | Description |
| - | - | - |
| `<id>` | string | **Required.** Resource ID. |
| `--disposition` | string | **Required.** One of `export`, `quarantine`. |
| `--body` | json | JSON request body (`application/json`) as a literal, `@path` or `-` for stdin. |

## homelab api workers updates set

Set a server's update setting.

Stores the server's update setting (`ask`, `automatic` or `with_stackkits_releases`) for the owner of the worker and records the change with its actor in the audit log. Reversible.

```bash theme={null}
homelab api workers updates set <id> <behavior> [flags]
```

| | |
| - | - |
| HTTP | `PUT /api/v1/workers/{id}/stackkits-update/behavior` |
| Changes state | Yes |
| MCP tool | `set_server_update_setting` |

| Argument | Type | Description |
| - | - | - |
| `<id>` | string | **Required.** Resource ID. |
| `<behavior>` | string | **Required.** One of `ask`, `automatic`, `with_stackkits_releases`. |
| `--body` | json | JSON request body (`application/json`) as a literal, `@path` or `-` for stdin. |

## homelab api workers updates show

Read a server's update setting and pending StackKits release.

For the owner of the worker. `behavior` is the server's one update setting for its StackKits release and the applications it manages (D-2026-11-12-06): `ask` (default; checked application versions are offered with one click), `automatic` (StackKits releases start without a click; checked application versions apply in the maintenance window once that action exists) or `with_stackkits_releases` (applications change only with a StackKits release). Security fixes are offered in every setting. The per-application facts are on the service `version`.

```bash theme={null}
homelab api workers updates show <id> [flags]
```

| | |
| - | - |
| HTTP | `GET /api/v1/workers/{id}/stackkits-update` |
| Changes state | No |
| MCP tool | `get_server_update_setting` |

| Argument | Type | Description |
| - | - | - |
| `<id>` | string | **Required.** Resource ID. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.