# When a package sleeps

Source: https://docs.vlayers.ai/reference/hosting/get-install-hosting-settings

`GET /v1/installs/{install}/hosting` · scope `workspace:read`

Shows how long the package waits with nothing to do before it sleeps (`settings.sleepAfterIdleMinutes`, or `null` when it is always on) and what keeping it running all the time would cost a month.

Requires an API key with the `workspace:read` scope.

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `install` | path | string | yes | The install id from `GET /v1/installs`. Example: `"0192f5c3-7a8b-7c9d-8e1f-3a4b5c6d7e89"` |

## Request

cURL:

```bash
curl "https://api.vlayers.ai/v1/installs/$INSTALL_ID/hosting" \
  -H "Authorization: Bearer $VOICELAYER_API_KEY"
```

TypeScript:

```ts
import { VoiceLayer } from '@voicelayer/api';

const voicelayer = new VoiceLayer();

const { alwaysOnMonthlyUsd } = await voicelayer.hosting.getInstallSettings('<install-id>');
console.log(alwaysOnMonthlyUsd);
```

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

result = vl.hosting.get_install_settings("<install-id>")
print(result.always_on_monthly_usd)
```

## Response `200`

```json
{
  "kind": "install",
  "unitId": "0192f5c1-5e6f-7a8b-9c0d-1e2f3a4b5c67",
  "name": "com.example/orders-panel@1.0.0",
  "settings": {
    "sleepAfterIdleMinutes": 30
  },
  "alwaysOn": false,
  "sizeClass": "small",
  "warmCount": 1,
  "hourlyUsd": 0.03,
  "alwaysOnMonthlyUsd": 21.9,
  "lastActiveAt": "2026-10-20T15:04:05.000Z",
  "pollsEverySeconds": null,
  "staysAwakeBySchedule": false
}
```
