# agentHttpUrl

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

```ts
function agentHttpUrl(hubUrl): string;
```

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

`http(s)://…/agent` (the HTTP streaming routes) for a hub base URL; refuses plain http to anything but loopback.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `hubUrl` | `string` |

## Returns

`string`
