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

# Quickstart

> Manage Hexel Studio infrastructure from the terminal with the hexel CLI.

The `hexel` CLI is for infrastructure and operations. Use it to manage compute, fleets, tasks, tools, policies, approvals, runtime, and auth.

## Authenticate

```bash theme={"dark"}
export HEXEL_API_KEY="YOUR_API_KEY"
hexel auth login
```

## Compute

```bash theme={"dark"}
# Sandboxes
hexel compute sandbox create --tier standard
hexel compute sandbox exec YOUR_SANDBOX_ID --code "print(1 + 1)"
hexel compute sandbox list
hexel compute sandbox release YOUR_SANDBOX_ID

# Agents
hexel compute agent register \
  --name my-agent \
  --image ghcr.io/your-org/agent:v1 \
  --capabilities "chat,streaming"
hexel compute agent list
hexel compute agent delete YOUR_AGENT_ID

# Instances (deploy is CLI-only, not in the SDK)
hexel compute instance deploy YOUR_AGENT_ID --env-file .env
hexel compute instance list
hexel compute instance stop YOUR_INSTANCE_ID
hexel compute instance redeploy YOUR_INSTANCE_ID
hexel compute instance delete YOUR_INSTANCE_ID
```

## Orchestration

```bash theme={"dark"}
# Fleets
hexel fleet list

# Tasks
hexel task list
hexel task get YOUR_TASK_ID

# Approvals
hexel approval list
hexel approval review YOUR_APPROVAL_ID --approve

# Policies
hexel policy list
hexel policy evaluate
```

## Tools

```bash theme={"dark"}
hexel tools list
hexel tools info YOUR_TOOL_SLUG
```

## Runtime

```bash theme={"dark"}
hexel runtime lease ...
hexel runtime resources ...
```

## Output formats

Most commands support `-o table` (default), `-o json`, and `-o yaml`:

```bash theme={"dark"}
hexel compute instance list -o json
```

## Next steps

<CardGroup cols={2}>
  <Card title="Compute" icon="microchip" href="/docs/compute/overview">
    Sandboxes, agents, and instances.
  </Card>

  <Card title="Orchestration" icon="sitemap" href="/docs/orchestration/overview">
    Tasks, fleets, and approvals.
  </Card>

  <Card title="Authentication" icon="key" href="/docs/getting-started/authentication">
    Credentials and tokens.
  </Card>
</CardGroup>
