# Launching a SecretVM

## Using SecretAI Portal

You can easily create and deploy a Confidential Virtual Machine using the [Secret AI Dev Portal](https://secretai.scrtlabs.com/). Follow the steps below to get started:

{% stepper %}
{% step %}

#### Log In

* Visit the portal: [https://secretai.scrtlabs.com](https://secretai.scrtlabs.com/)
* Sign in with your wallet or your Google account
  {% endstep %}

{% step %}
**Create a New SecretVM**

* In the left sidebar, navigate to **`SecretVMs`**.
* Click the **`Create New SecretVM`** button.

<figure><img src="/files/wcanxVA3B6zsCp8ge56m" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Configure Your Machine**

* **Select VM Type**\
  Choose from one of the available VM sizes

<figure><img src="/files/bYLs9lrb050wUou4lvA9" alt=""><figcaption></figcaption></figure>

* **Select your environment**\
  Development environment can be accessed from the outside (via serial console or ssh). Also it has some development tools installed (e.g. `git`).

<figure><img src="/files/UHohFeMjIfhbNJeG2SlY" alt=""><figcaption></figcaption></figure>

* **Upload Docker Compose File**\
  Upload your custom `docker-compose.yaml` that defines the container workload
* **Set Secret Environment Variables (Optional)**\
  Add environment variables that will be stored securely and injected into your container at runtime
  {% endstep %}

{% step %}

### Choosing the Platform

The Portal currently supports Intel TDX and AMD SEV platforms.&#x20;

The developer can choose one of them, or let the Portal pick the technology.

<figure><img src="/files/0CSz8AHEiNxm00zCeseO" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Launch the VM**

* Click **`Launch your SecretVM`** to spin up your Confidential Virtual Machine.
* Your SecretVM will begin provisioning, and you'll be able to monitor its status and access attestation endpoints once it's live.
  {% endstep %}
  {% endstepper %}

## Using SecretAI CLI

See [SecretVM CLI](/secret-network-documentation/secretvm-confidential-virtual-machines/secretvm-cli.md) for information on how to launch and manage SecretVM through command line interface


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.scrt.network/secret-network-documentation/secretvm-confidential-virtual-machines/launching-a-secretvm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
