# normalizeHubUrl

<!-- https://uncage.vercel.app/docs/api/agent/functions/normalizehuburl/ -->

```ts
function normalizeHubUrl(input): string;
```

Defined in: agent/src/device.ts:17

`uncage setup <url>` input → hub base URL. No scheme → https. No path → `/api/uncage` is
appended. Plain http is only accepted for localhost / 127.0.0.1 (development).

## Parameters

| Parameter | Type |
| ------ | ------ |
| `input` | `string` |

## Returns

`string`
