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

> Generated reference for the homelab api tunnel commands

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

## homelab api tunnel install-command

Generate worker install command with tunnel URL.

Answers the Linux (and, outside the LAN bridge, Windows) command that installs and enrolls a new server through the current registry URL. Homelab mints the one-time pairing token the command carries (15 minutes) and answers its id and expiry; the token is never an argument. With mode reinstall-guard it answers the Linux command for a server whose Guard update state is reinstall\_required: run as root on that server, it installs the current Guard in place and keeps the enrollment and identity key unchanged. The token then only downloads the Guard and is never redeemed.

```bash theme={null}
homelab api tunnel install-command [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/tunnel/install-command` |
| Changes state | Yes |
| MCP tool | `create_install_command` |

| Argument | Type | Description |
| - | - | - |
| `--mode` | string | One of `install`, `reinstall-guard`. Default `"install"`. |
| `--body` | json | JSON request body (`application/json`) as a literal, `@path` or `-` for stdin. |

## homelab api tunnel registry-url

Get public tunnel registry URL.

```bash theme={null}
homelab api tunnel registry-url [flags]
```

| | |
| - | - |
| HTTP | `GET /api/v1/tunnel/registry-url` |
| Changes state | No |
| MCP tool | `get_tunnel_registry_url` |

## homelab api tunnel start

Start Cloudflare tunnel.

```bash theme={null}
homelab api tunnel start [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/tunnel/start` |
| Changes state | Yes |
| MCP tool | `start_tunnel` |

## homelab api tunnel status

Get tunnel connection status.

```bash theme={null}
homelab api tunnel status [flags]
```

| | |
| - | - |
| HTTP | `GET /api/v1/tunnel/status` |
| Changes state | No |
| MCP tool | `get_tunnel_status` |

## homelab api tunnel stop

Stop Cloudflare tunnel.

```bash theme={null}
homelab api tunnel stop [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/tunnel/stop` |
| Changes state | Yes |
| MCP tool | `stop_tunnel` |

## homelab api tunnel subdomains list

List the caller's own kombify.me subdomains for diagnostics; registration is StackKits-owned.

Requires an authenticated caller. With the shared platform identity the list is scoped to the caller's owner binding.

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

| | |
| - | - |
| HTTP | `GET /api/v1/tunnel/subdomains` |
| Changes state | No |
| MCP tool | `list_tunnel_subdomains` |

## homelab api tunnel subdomains services

List services under one of the caller's own kombify.me base subdomains.

```bash theme={null}
homelab api tunnel subdomains services <base-id> [flags]
```

| | |
| - | - |
| HTTP | `GET /api/v1/tunnel/subdomains/{baseId}/services` |
| Changes state | No |
| MCP tool | `list_tunnel_subdomain_services` |

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

## homelab api tunnel topology

Detect network topology.

```bash theme={null}
homelab api tunnel topology [flags]
```

| | |
| - | - |
| HTTP | `GET /api/v1/tunnel/topology` |
| Changes state | No |
| MCP tool | `get_topology` |

## homelab api tunnel validate-url

Validate custom tunnel URL.

```bash theme={null}
homelab api tunnel validate-url [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/tunnel/validate-url` |
| Changes state | Yes |
| MCP tool | `validate_tunnel_url` |

| Argument | Type | Description |
| - | - | - |
| `--url` | string | — |
| `--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.