> For the complete documentation index, see [llms.txt](https://docs.mithril.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mithril.ai/flow-cli-and-sdk/quickstart.md).

# Quickstart

Get from zero to GPU in 5 minutes.

### 1. Setup

#### 1) Install uv — optional but recommended

Installation guide: [docs.astral.sh/uv/getting-started/installation](https://docs.astral.sh/uv/getting-started/installation/)

* macOS/Linux:

  ```bash
  curl -LsSf https://astral.sh/uv/install.sh | sh
  ```
* Windows (PowerShell):

  ```powershell
  powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
  ```

#### 2) Install Flow

* Global CLI (uv):

  ```bash
  uv tool install flow-compute
  ```
* Global CLI (pipx):

  ```bash
  pipx install flow-compute
  ```

#### Authenticate

{% hint style="success" %}
Mithril is generally available for work purposes. Individual users will be waitlisted for now.
{% endhint %}

```bash
flow setup
```

#### Add billing details

To provision compute, add a payment method in the [Mithril Console](https://app.mithril.ai/settings/billing).

### 2. Create an instance

```bash
# Create a GPU instance
flow instance create --instance-type a100

# Monitor your instances
flow instance list

# Access first instance in list
flow ssh 1

# Check details of a specific instance
flow instance info <instance-name>
```

### 3. Development (research preview)

#### Interactive Environment

<pre class="language-bash"><code class="lang-bash"><strong># Launch persistent development environment
</strong><strong>flow --mode research
</strong><strong>flow dev
</strong><strong>
</strong><strong># See other commands
</strong><strong>flow help
</strong></code></pre>

The `flow dev` command gives you a persistent GPU environment that stays running between sessions - great for iterative development.

### 4. Instance Types

| Type     | GPUs    | Memory | Use Case                         |
| -------- | ------- | ------ | -------------------------------- |
| `a100`   | 1x A100 | 80GB   | Single GPU training, inference   |
| `4xa100` | 4x A100 | 320GB  | Multi-GPU workloads              |
| `8xh100` | 8x H100 | 640GB  | Large-scale distributed training |

Check current pricing:

```bash
flow pricing
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mithril.ai/flow-cli-and-sdk/quickstart.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
