# Quickstart: your AWS account

> Install the Run engine in your AWS account and deploy an app with it.

Applies to: the Sypnia engine (open source, self-hosted).  
Source: https://run.docs.sypnia.com/start/quickstart-self-host/

For agents: Self-host quickstart for Run: npx @sypnia/run engine install --region us-east-1 (CloudFormation stack sypnia-run: API, deployer, CodeBuild project, artifacts bucket, edge router; admin key saved in ~/.config/sypnia/run-engine.json mode 600) → run use <engine URL> → run deploy --local (or CodeBuild) → run domains add <domain> (ACM certificate, Route 53 records if same account).

At the end the Run engine runs in your AWS account and your app is deployed there, at a CloudFront address.

> **Warning**
>
> The engine creates resources that AWS bills to you: CloudFront distributions, Lambda functions, an S3 bucket and, if an app asks for an always-on container, Fargate tasks. A static site and a small function cost cents per month; always-on containers run all the time.

### 1. Install the engine

You need an AWS account, the AWS CLI signed in with permission to create stacks, and Node 20 or newer.

```bash
npx @sypnia/run engine install --region us-east-1
```

It deploys the CloudFormation stack `sypnia-run` (the API, the deployer, the build project, the artifacts bucket and the edge router) and prints the engine's address and its first admin key, which it saves in `~/.config/sypnia/run-engine.json` (mode 600).

**You should see:**`Engine ready: https://abc123.cloudfront.net`.

### 2. Point the CLI at it

```bash
npx @sypnia/run use https://abc123.cloudfront.net
```

### 3. Deploy

```bash
npx @sypnia/run deploy --local
```

`--local` builds on your machine and uploads the artifacts; without it the build runs in AWS CodeBuild in your account.

**You should see:**`Production: https://d1x2y3.cloudfront.net` and a stack `sypnia-run-app-<app>` in CloudFormation.

### 4. Add your domain

```bash
npx @sypnia/run domains add www.laespiga.co
```

The command prints the DNS records to add, and requests the certificate in AWS Certificate Manager. With the domain in Route 53 in the same account, it adds them for you.

[Self-hosting](https://run.docs.sypnia.com/self-hosting) covers the stack's parameters, upgrades and removing everything.
