# Keep a package always on

Source: https://docs.vlayers.ai/reference/hosting/turn-install-always-on

`POST /v1/installs/{install}/hosting/always-on` · scope `workspace:write`

Turns sleep off: the package keeps its room every hour and is billed at the room's hourly price for each. Refused with `always_on_full` when the plan's always-on rooms, or the server's share of them, are used up.

Requires an API key with the `workspace:write` 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 -X POST "https://api.vlayers.ai/v1/installs/$INSTALL_ID/hosting/always-on" \
  -H "Authorization: Bearer $VOICELAYER_API_KEY"
```

TypeScript:

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

const voicelayer = new VoiceLayer();

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

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

result = vl.hosting.turn_install_always_on("<install-id>")
print(result.always_on)
```

## Response `200`

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