# Artemis Insights installer guide (partner technicians)

This guide is for technicians installing Artemis Insights on a customer's server as part of a site visit. Plan on about an hour on-site for a standard install, most of it waiting on downloads.

You sign in at **https://myartemisinsights.com/partner.html** with the technician login Artemis Insights issued to your company. You never need the customer's passwords, and you never see the code they use to create their admin login.

## Before the visit

**Confirm the customer is approved.** Create the customer in the partner portal before you go. If their status says *Waiting for approval*, Artemis Insights still has to approve them, and you can't generate the install link until they do. If your company is auto-approved, the status goes straight to *Ready to install*.

**Confirm the customer's email address with them.** The setup code goes to this address. A typo here is the most common reason a customer can't finish setup.

**Submit a work order.** Every install needs one: open the customer in the portal and fill in the site address, scheduled date and your PO number. You can't generate an install link without it. Artemis Insights confirms each work order before you can generate its install link, so submit it before you schedule the visit; you'll be emailed when it's confirmed (or declined, with the reason). Pick the install tier, meaning which features this customer gets. It's what Artemis Insights invoices your company for, and it only becomes billable when the install link is actually run. Generating another link after a failed attempt doesn't bill again, and you can cancel a work order whose link was never used.

**Check the server against these requirements.**

| | Minimum | Recommended |
|---|---|---|
| Operating system | Ubuntu or Debian Linux (preferred), or Windows 10/11 (runs via WSL2) | Ubuntu 24.04 LTS |
| CPU | 2 cores | 4 cores |
| Memory | 4 GB | 8 GB |
| Disk | 40 GB SSD | 100 GB SSD |
| Network | Wired Ethernet, fixed local IP (DHCP reservation) | Same, on a UPS |

Add 6 GB of memory and 10 GB of disk if the customer wants local AI. For restaurant installs, also read `HARDWARE.md` (printers, card readers, kitchen screens).

**Check the network.** The server needs outbound HTTPS (port 443) to `myartemisinsights.com`, to the release download host, and to Docker's image registries. Nothing needs to be opened inbound from the internet. Staff reach the app on the local network at port 8080.

**Bring:** the customer's server admin password (sudo on Linux, an Administrator account on Windows), and about 10 GB of download allowance if the site is on a metered connection.

## On-site

1. Sign in to the partner portal, open the customer, and confirm the status is *Ready to install* and the work order is there.
2. On the customer's server, open a terminal (Linux) or PowerShell (Windows).
3. In the portal, select **Generate install link**, pick Linux or Windows, and copy the command.
4. Paste the command into the terminal and press Enter. **The link works once and expires after 10 minutes.** If it expires or fails, generate a new one; the old one simply stops working.
5. On Windows, click **Yes** on the permission prompt. If Windows asks to restart (it may need to turn on WSL2), restart. The install resumes on its own.
6. Answer the installer's questions (see below). Watch the portal: the status changes to *Installing* as soon as the installer downloads.

### The installer's questions

Press **Enter** to skip anything you're not sure about. Skipping is safe; every option can be added later.

| Question | What to do |
|---|---|
| Tailscale remote access | Yes only if the customer wants to reach the app away from the building and has agreed to a Tailscale account. |
| Self-hosted email, phone receptionist, shared storage | No, unless this was planned with the customer in advance. |
| Database: self or cloud | `self` (press Enter). |
| ENCRYPTION_KEY / JWT_SECRET | Press Enter to generate. Only enter a value if the customer's IT team handed you one. |
| API keys, TURN, Mailgun, SMTP | Press Enter. Only type in a value the customer gives you and wants set now; don't create accounts on their behalf. |
| Update button / nightly auto-update | Yes to the button. Nightly auto-update only if the customer asked for it. |

On a partner install, the installer does **not** ask for an admin email or password and does **not** print any secrets. That's expected.

### Finishing

When the installer finishes, it prints the server's local address (for example `http://192.168.1.20:8080`). Within a few minutes the portal changes to *Waiting for customer*.

Then hand over to the customer:

1. Give them the address the installer printed.
2. Ask them to open `<address>/setup` and enter the setup code from their email.
3. They choose their own admin email and password. Step away from the screen while they do.

When they finish, the portal shows *Live*, and your company contact gets an email. Your part is done.

## Cloud server installs (hosted by you)

You can run a client's install on a cloud server you host instead of a machine at their site.

1. Create a Linux (Ubuntu 22.04 or newer) or Windows server with your cloud provider, sized like the on-site hardware in HARDWARE-REQUIREMENTS.md. Add a GPU-capable size only if the client wants the local AI model.
2. Submit the work order and generate the install link exactly as for an on-site install, then run the link's command on the cloud server.
3. When the installer asks where the server runs, answer **cloud**. (For scripted installs, set `INSTALL_SERVER_LOCATION=cloud` first.)
4. Give the client an https address for the server, using Tailscale https or the Cloudflare tunnel (`docker-compose.cloudflare-tunnel.yml`).

What changes on a cloud server:

- **You bill your client** for the hosting, alongside the license. Artemis Insights only invoices you for the license, through the partner portal; there is no Artemis subscription or payment screen on the server.
- **AI:** the client either connects their own Anthropic API account (they pay Anthropic directly per use) or uses the local AI model on the server. If they choose the local model, explain in writing before setup any extra cloud cost it adds, such as a larger or GPU server.
- **Not available from a cloud server:** wired screens on the store's network and direct PLC connections. Those need a server at the customer's site.
- You're responsible for the server's uptime, backups and security updates (partner agreement section 6).

## Troubleshooting

Most problems can be fixed from the partner portal. Each customer's page shows a timeline of what has happened so far.

| What you see | What to do |
|---|---|
| "This install link has expired or was already used" | Generate a new link in the portal. |
| Portal still says *Link generated* after you ran the command | The command didn't reach the server. Check the server's internet connection and that you copied the whole command, then generate a new link. |
| "already has an existing install (found .env there)" | A previous attempt left files in `~/artemis-insights`. If that attempt never finished, rename the folder (`mv ~/artemis-insights ~/artemis-insights.old`) and generate a new link. If the customer has data in it, stop and open a ticket. |
| Windows: the window closed, or nothing seems to happen | Read `install-log.txt` in `%USERPROFILE%\artemis-insights`. Make sure you clicked Yes on the permission prompt. Restart if WSL2 was just turned on, then generate a new link. |
| Docker errors, or the installer stops partway | Check free disk space (`df -h`) and memory. Re-run with a new link once fixed. Attach the full terminal output to a ticket if it happens again. |
| Port 8080 or 4000 already in use | Another program on the server uses that port. Stop it, or open a ticket before changing ports. |
| Portal stays on *Installing* for more than 45 minutes | The server hasn't checked in yet. Make sure the containers are running (`docker compose ps` in `~/artemis-insights`) and the server can reach `myartemisinsights.com`. |
| Customer didn't get the setup email | Ask them to check spam. Then use **Resend setup email** in the portal. If the address was wrong, correct it under *Setup email problems*; the email is resent to the new address. |
| Customer says the setup code doesn't match | Make sure they're using the most recent email for this company, and typing it into this server's `/setup` page. Letters are not case-sensitive and dashes are optional. After 10 attempts in an hour, the page makes them wait before trying again. |
| `/setup` says setup is already complete | Someone already created the admin. If it wasn't the customer, open a ticket right away. |
| Portal shows *Offline* | The customer finished setup but the server hasn't checked in for a few hours. Check that it's powered on and online. |

### Asking Artemis Insights for help

Use **Ask Artemis Insights for help** on the customer's page in the portal. The ticket is tied to that install automatically. Include:

- what you ran and what you expected
- the exact error text (copy it; don't retype it)
- on Windows, the contents of `install-log.txt`

Replies go to your company's contact email.

## What you never need to do

- Ask for, write down, or type the customer's admin password
- Create the customer's admin login yourself
- Copy anything out of the `.env` file (it holds the customer's encryption keys; the customer's administrator should back it up)

If a customer asks you to do any of these, open a ticket instead.
