> ## 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 agents

> Generated reference for the homelab api agents commands

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

## homelab api agents get

Get agent by ID with resources.

```bash theme={null}
homelab api agents get <id> [flags]
```

| | |
| - | - |
| HTTP | `GET /api/v1/agents/{id}` |
| Changes state | No |
| MCP tool | `get_agent` |

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

## homelab api agents list

List connected gRPC agents.

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

| | |
| - | - |
| HTTP | `GET /api/v1/agents` |
| Changes state | No |
| MCP tool | `list_agents` |

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

## homelab api agents logs

Get recent agent logs.

```bash theme={null}
homelab api agents logs <id> [flags]
```

| | |
| - | - |
| HTTP | `GET /api/v1/agents/{id}/logs` |
| Changes state | No |
| MCP tool | `get_agent_logs` |

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

## homelab api agents remove

Remove/deregister agent.

```bash theme={null}
homelab api agents remove <id> [flags]
```

> [!WARNING]
>
> Requires confirmation: This operation deregisters the agent; the node stops reporting until it enrolls again. Pass `--yes` or answer the prompt; a non-interactive run without `--yes` stops before any request with exit code 9.

| | |
| - | - |
| HTTP | `DELETE /api/v1/agents/{id}` |
| Changes state | Yes |
| MCP tool | `remove_agent` |

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

## homelab api agents send-command

Send command to agent.

```bash theme={null}
homelab api agents send-command <id> [flags]
```

> [!WARNING]
>
> Requires confirmation: This operation runs the command on the connected node agent. Pass `--yes` or answer the prompt; a non-interactive run without `--yes` stops before any request with exit code 9.

| | |
| - | - |
| HTTP | `POST /api/v1/agents/{id}/command` |
| Changes state | Yes |
| MCP tool | `send_agent_command` |

| Argument | Type | Description |
| - | - | - |
| `<id>` | string | **Required.** Resource ID. |
| `--args` | string\[] | — |
| `--command` | string | **Required.** |
| `--type` | string | **Required.** |
| `--body` | json | JSON request body (`application/json`) as a literal, `@path` or `-` for stdin. |


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