# Install Authgear ONCE on a VM

Authgear ONCE is an easy-install version of Authgear that can run on any Linux server.

ONCE is easier to set up than deploying the open-source version of Authgear. Compared to Authgear Cloud, it offers more customization and eliminates monthly subscriptions.

Anyone can purchase a one-time license for Authgear ONCE and install it on any popular cloud provider or VPS and have their own instance of Authgear running in less than 10 Minutes. The steps are easy, and you don't need to be a cloud or DevOps expert to use ONCE.

{% embed url="<https://youtu.be/VpSZYHJu7DM>" %}

## Getting Started with Authgear ONCE

### Prerequisites

You need to have the following in order to install Authgear ONCE:

* A valid Authgear ONCE license.
* A virtual machine with a public IP address and running a Linux server.
* A domain name
* Sendgrid account or SMTP server to handle sending of system emails.

You can get started with Authgear ONCE in these 4 steps:

### 1. Get Authgear ONCE License

Visit [authgear.com](https://authgear.com/) to purchase a one-time license for ONCE. Once the purchase is complete, you'll receive an email with your license and instructions on how to use it.

Each license and each installation contains 1 Authgear project. To create multiple projects, you need to buy multiple licenses.

### 2. Set up a Linux Virtual Machine

To get started with Authgear ONCE, the first thing you need to do is create a Virtual Machine (VM) with your preferred cloud provider. Your VM should run a Linux server.

Also, the machine should have Docker installed and have a public IP address. We recommend you create a machine that has Docker pre-installed if your cloud provider supports that. For VMs without Docker pre-installed, see <https://docs.docker.com/get-started/get-docker/> for guide on how to install Docker.

See our guides for setting up Authgear ONCE various cloud providers for more details:

{% content-ref url="install-authgear-once-on-vultr" %}
[install-authgear-once-on-vultr](https://docs.authgear.com/authgear-once/install-authgear-once-on-vultr)
{% endcontent-ref %}

### 3. Configure Domain Name

A domain name is required to access your instance of Authgear ONCE on the internet. Get any domain name from your preferred registrar.

Then, add the public IP address for your VM as **A** records on your domain.

The following are the A records you should configure to get started with Authgear ONCE using the default sub-domains:

<table><thead><tr><th width="74.5546875">Type</th><th>Name</th><th>Value</th><th>Usage</th></tr></thead><tbody><tr><td>A</td><td>auth</td><td>IP of your VM</td><td>The authentication endpoint</td></tr><tr><td>A</td><td>authgear-portal</td><td>IP of your VM</td><td>The admin portal for CIAM functions</td></tr><tr><td>A</td><td>authgear-portal-accounts</td><td>IP of your VM</td><td>A domain for logging into the Authgear portal.</td></tr></tbody></table>

### 4. Run the Installation Script

Access your VM via SSH or a custom console your cloud provider offers, then paste the installation command (the installation script is included in the email sent to you after the purchase of your ONCE license). The command should look like this:

```sh
/bin/sh -c "$(curl -fsSL https://once-license.authgear.com/install/YOUR-AUTHGEAR-ONCE-LICENSE-KEY)"
```

Once the installation is complete, log in to `authgear-portal.your-domain.com` to access the admin Portal for your new Authgear ONCE instance.

<figure><img src="https://2638622528-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAjXpMovvVxeIY33s_K%2Fuploads%2Fgit-blob-4d4b1a896d73059df6694c564b4ee827ab5b1230%2Fonce-onboard.png?alt=media" alt=""><figcaption><p>onboarding screen in Authgear Portal</p></figcaption></figure>

## Conclusion

Congratulations on installing your own instance of Authgear ONCE. You can continue reading the [official Authgear documentation site](https://docs.authgear.com/) to learn more about using all the features of Authgear.\
\
Contact support [here](https://www.authgear.com/schedule-demo), if you have any questions or need help with your setup.
