# Overview

Canonical URL: https://developers.iagenify.com/pt/sdk/ref/compute/
Language: pt

Run a one-off command or keep a terminal open in an isolated cloud workspace backed by one of your IaGenify Object Storages.

Status: container-isolated · Object Storage workspace · network access is disabled

## The surface {#surface}

| Call | What it does |
| --- | --- |
| [status()](/pt/sdk/ref/compute/status) | Reports whether the compute runner can accept work. |
| [exec(options)](/pt/sdk/ref/compute/exec) | Runs one command in a temporary container and returns when it finishes. |
| [terminals](/pt/sdk/ref/compute/terminals) | Creates, lists, reads and removes persistent terminal sessions. |

## Workspace and isolation {#workspace}

Each command runs in a container with the selected Object Storage mounted at `/workspace`. That storage is the only mounted workspace. The runner reports its network policy through `status()`; network access defaults to `none`, while deployments may explicitly allow egress. If the runner is unavailable, calls fail instead of running commands on the API host.

## Choose a one-off command or a terminal {#choose}

- Use `exec()` for a bounded command whose output and exit status you need once.
- Use `terminals.create()` for a process that should remain open while you send more lines, read incremental output, or open a preview port.
- Use `terminals.interrupt()` to stop the current command and keep the terminal, or `terminals.remove()` to close the terminal and its container.

> **A terminal can execute commands**
>
> Treat terminal creation, input and preview URLs as access to a live workspace. Keep the API key server-side, scope the selected storage deliberately, and do not expose a preview URL as a secret-free public endpoint.

- [status()](/pt/sdk/ref/compute/status): Check runner availability.
- [terminals](/pt/sdk/ref/compute/terminals): Manage a persistent terminal.
- [HTTP reference](/pt/api/reference/compute/post-exec): The underlying command endpoint.
