# Options · machine

Canonical URL: https://developers.iagenify.com/sdk/ref/agents/options/machine/
Language: en

`machine: ConnectedStorage`

Where the tools run. Three kinds are accepted, and two of them need you to supply the file operations.

Status: required · 3 kinds · decides the tool set

| machine.type | Is | Needs files | bash | terminal |
| --- | --- | --- | --- | --- |
| `filesystem` | A computer | no | yes | yes |
| `phone` | A visitor's phone or tablet | **yes** | only with `shell` | **never** |
| `object` · managed cloud | A cloud workspace | **yes** | only with `shell` | only with `terminals` |

Anything else is refused with `machine_required`: a database is not a place an agent can work.

```javascript
const pc = await api.storage.get();                 // this computer
const phone = await api.storage.device({ deviceId }); // a visitor's phone
const space = await api.storage.create({ service: "object", label: "Workspace" });
```

## It shapes the system prompt {#shapes-the-prompt}

The agent is told where it is working — this computer and its platform, a phone whose files are in its browser, or a Linux cloud workspace with POSIX paths. Getting that wrong is expensive: an agent that believes it is on another platform writes commands that all fail for one reason.

## The workspace {#workspace}

On a computer it is the SDK's own folder in the user's home directory, and `workspace` accepts only that path — any other is refused with `workspace_not_allowed`. On a phone or a cloud workspace the root is whatever your [files bridge](/sdk/agent/bridges/files) presents.

## The default storage is probably not a machine {#not-default}

> **An account's default is its own object storage**
>
> api.storage.get() with no argument gives you that, not the computer you are sitting at. Filter list() on type === "filesystem" and compare machineId when you mean « this machine ».

## The agent works on the device you are on {#agent-works-here}

Not on « the account's default », and not on a copy. That is the rule the whole design rests on: an agent reads the disk it is on, and nothing is uploaded for it to look at.

- [Computer](/sdk/ref/providers/computer): What a computer storage is.
- [Phone](/sdk/ref/providers/phone): And a phone.
- [bridges](/sdk/ref/agents/options/bridges): Supplying the file operations.

```python
pc = api.storage.get()                                   # this computer
phone = api.storage.device(device_id=device_id)          # a visitor's phone
space = api.storage.create(service="object", label="Workspace")
```
