The engine runs in your process, so anything your process can reach, it can reach — through an object you pass. A phone's browser storage, a container, a desktop application's own API: none of it needs anything on our side.
| Option | Gives | Page |
|---|---|---|
files | A workspace that is not a disk | files |
shell | bash somewhere other than this machine | shell |
terminals | Shells that outlive an answer | terminals |
customTools | Tools of your own, beside the 35 | customTools |
An agent on a phone
const phone = await api.storage.device({ deviceId });
const agent = api.agents.create({
runtime: "local",
machine: phone,
model: "gemini-3.5-flash",
files: phoneBridge(), // its browser storage, reached from your page
shell: phoneShell(), // a sandboxed shell in the page
});phone = api.storage.device(device_id=device_id)
agent = api.agents.create(
runtime="local",
machine=phone,
model="gemini-3.5-flash",
files=PhoneBridge(), # its browser storage, reached from your page
# The Python engine has no shell bridge: leave "bash" out of a phone's tools
tools=["read", "list", "glob", "grep", "write", "edit", "move", "delete"],
)When a bridge is required
| machine | files | Otherwise |
|---|---|---|
A computer (filesystem) | optional | The machine's own workspace is used |
| A phone | required | files_required at creation |
| A cloud workspace | required | files_required at creation |
The refusal names the six operations and which of them are missing, so a half-written bridge fails at creation rather than in the middle of a run.
The tool list follows the bridges
- No
shellon a phone or a cloud workspace → nobash. Nothing would run it. - A phone → no
terminal, ever. - A cloud workspace →
terminalonly when you supplyterminals. - A computer → both, from the machine itself.
Rather than offering bash and failing, the engine leaves it out — and the system prompt loses its instructions with it. The model never plans around something that is not there.