> ## Documentation Index
> Fetch the complete documentation index at: https://docs.veadk.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect a computer to Studio

Start the local preview helper to open sandbox web pages from Studio. For a connected Mac, use the endpoint, device binding ID and token issued by Studio. Studio can show the connected device name and architecture, open sandbox previews there and launch the installed Orca desktop app. Revocation or a rejected upgrade stops the connection. Reconnect with a valid binding.

> [!WARNING]
>
> The connected Studio can execute Bash commands with the current macOS user’s permissions. The directory option selects the starting directory. Use a binding you authorized and supply its token in the designated environment variable. Obtain one-time launch URLs and preview requests from that Studio.

## local connect

| Option | Description | Default |
| - | - | - |
| `--endpoint <url>` | Trusted cloud WSS endpoint (WS only for loopback development) | — |
| `--binding-id <id>` | Cloud-issued binding identifying the authorized user and device | — |
| `--directory <path>` | Initial working directory for each Bash command. not a filesystem sandbox | — |
| `--token-env <name>` | Environment variable holding the cloud-issued binding token | AGENTKIT\_LOCAL\_EXECUTION\_TOKEN |

```bash theme={null}
agentkit local connect --endpoint "$STUDIO_ENDPOINT" --binding-id "$BINDING_ID" --directory "$PWD"
```

## local open-orca

| Option | Description | Default |
| - | - | - |
| `--launch-stdin` | Read the one-time Studio launch URL from standard input | Off |

```bash theme={null}
agentkit local open-orca --launch-stdin < studio-launch-url.txt
```

## local open-preview

| Option | Description | Default |
| - | - | - |
| `--request-stdin` | Read the authorized preview request from standard input | Off |

```bash theme={null}
agentkit local open-preview --request-stdin < studio-preview.json
```

## local start

| Option | Description | Default |
| - | - | - |
| `--studio-origin <origin>` | Exact HTTPS origin of the Studio to authorize | — |

```bash theme={null}
agentkit local start --studio-origin "$STUDIO_ORIGIN"
```

## local serve

| Option | Description | Default |
| - | - | - |
| `--studio-origin <origin>` | Exact HTTPS origin of the Studio to authorize | — |

```bash theme={null}
agentkit local serve --studio-origin "$STUDIO_ORIGIN"
```

## local status

This command takes no command-specific options.

```bash theme={null}
agentkit local status
```

## local stop

This command takes no command-specific options.

```bash theme={null}
agentkit local stop
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.