# Quickstart

Source: https://openpanel.sh/docs/getting-started/quickstart

From sign-up to a live opnl.app address: connect a server with one command, create a project and deploy a repository.

This walk-through takes you from a new account to an app answering at an HTTPS address under opnl.app, all in the console.

You need:

- a Linux server with systemd, on an `amd64` or `arm64` processor, that can reach the internet. A fresh Ubuntu or Debian server is easiest: the installer adds Docker there for you. It can be a cloud server or a machine behind a home router; nothing has to be forwarded to it;
- a repository with an app that listens on an HTTP port, on GitHub, GitLab, Gitea, Forgejo, Bitbucket or any Git server.

<Steps>
<Step>
### Create your account [#create-your-account]

Open [openpanel.sh/signup](https://openpanel.sh/signup), fill in your name, email and a password, and confirm your email with the link OpenPanel sends. Your account comes with its own organization, and you are its Owner. See [First steps](/docs/getting-started/first-steps).
</Step>

<Step>
### Start the Servers plan [#start-the-servers-plan]

Every server is a seat in the Servers plan: €20 a month covers your first five. As the Owner, start it on the [billing page](https://openpanel.sh/organization/billing). Payments are in test mode. See [Plans and prices](/docs/billing).
</Step>

<Step>
### Connect your server with one command [#connect-your-server-with-one-command]

Open **Servers**, click **Add server** and choose **One command**. Give the server a **Name** and click **Create install command**. The console shows two things:

1. the command to run on the server, as root or with sudo:

   ```sh
   curl -fsSL https://openpanel.sh/install.sh | sudo sh
   ```

2. a one-time token. Copy it now: it is shown once and works for an hour. Paste it when the installer asks; the typing stays hidden.

The installer checks the agent's signature, installs it with Docker, and starts it. The agent only connects out, to OpenPanel, so the server opens no port. Within a minute the console says **Connected.** See [The OpenPanel agent](/docs/servers/agent).
</Step>

<Step>
### Add a Git account [#add-a-git-account]

Open **Organization settings**, go to **Git accounts** and click **Add Git account**, or **Add your own account** for a repository that is yours rather than the organization's. Pick the kind, paste a token with the scopes the dialog names, and click **Add account**. OpenPanel checks it straight away. See [Git accounts](/docs/git).
</Step>

<Step>
### Create a project [#create-a-project]

Open **Projects**, click **New project**, name it, for example `shop`, and click **Create project**. It opens on its [canvas](/docs/projects/canvas), in its production environment.
</Step>

<Step>
### Add the service from your repository [#add-the-service-from-your-repository]

Click **New service** and choose **A Git repository**. Then:

- choose the **Git account**, the **Repository** and the **Branch**; for a monorepo, the **Folder** the app is in;
- under **Build and start**, keep **Auto**: [Railpack](/docs/builds/languages) works out the language and builds an image. Choose **Dockerfile** if the repository has one you want used;
- under **Networking**, keep **Public** and type the port your app listens on as the HTTP port;
- under **Servers it may run on**, tick your server;
- leave **Deploy after creating** ticked, and click **Create service**.

If your app reads its port from a variable, such as `PORT`, add that variable under **Variables**: OpenPanel sets no variables of its own yet.
</Step>

<Step>
### Watch it deploy [#watch-it-deploy]

The service's panel opens. Its **Deployments** tab shows the deployment moving from **Queued** to **Building** (the agent builds the image on your server) to **Deploying** and **Running**. A new version takes traffic only when it is running and passes its [health check](/docs/projects/health-checks), if it has one.
</Step>

<Step>
### Open its address [#open-its-address]

On the **Overview** tab, **Addresses** shows the service's address, such as `web-shop-k3x9.opnl.app`, with HTTPS. Open it: your app answers.
</Step>
</Steps>

## Next [#next]

- **Deploy on every push:** turn on [push to deploy](/docs/deploy/push-to-deploy) in the service's **Settings** tab.
- **Add a database:** **New service**, then **A database**. See [Deploy a template](/docs/deploy/templates).
- **Set variables and secrets:** see [Variables](/docs/variables).
- **Go back to an earlier version:** see [Rollbacks and history](/docs/deploy/rollbacks).
- **Invite your team:** see [Invite members](/docs/members/invite).

## The same from a terminal [#the-same-from-a-terminal]

Once the server is connected, the [CLI](/docs/cli) does the rest from a terminal: install it, run `openpanel login`, then create the project and the service and deploy. [Link and deploy](/docs/cli/deploy) walks through it. To have an AI agent do it, see [Quickstart with AI](/docs/getting-started/quickstart-ai).

## If something goes wrong [#if-something-goes-wrong]

- [A server does not connect](/docs/troubleshooting/server-does-not-connect)
- [A build fails](/docs/troubleshooting/build-fails)
- [A deploy fails](/docs/troubleshooting/deploy-fails)