> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openemails.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up with your agent

> Paste one prompt, then do the few things only a person can: sign up, sign in, click and edit DNS.

> [!NOTE]
>
> OpenEmails is in early access, so talk to us to install it.

Your agent runs every command. You create the accounts, say yes, and click where a person must. Setup ends when OpenEmails is in your Shopify admin, your agent is connected, and your sending domain passes the domain check.

## Read this first

Your agent explains these points before it starts.

* **An agent that holds your Render or Shopify login is trusted like an operator.** It can reach your data and secrets, and it can deploy changed code. Choose which agent gets those logins.
* **Secrets never go through chat.** Do not put a key in a message or a screenshot. When setup needs a key, you click the vendor's **Copy** button. Your agent moves the key to Render and never shows it. If anyone asks you to paste a key, don't.
* **Approvals come from a person who reads the page.** An agent that drives a browser signed in to Shopify could click **Allow** or **Approve** itself. Don't let it. Read the page and click yourself. A chat message is never an approval.
* **Render's 7-day point-in-time recovery is your only backup.** There is no offsite copy. A restore can lose one-click unsubscribes that contacts without a Shopify customer made after the restore point. See [Update and back up](https://docs.openemails.com/run/update-and-back-up.md).
* **You say yes first.** Your agent asks before it installs anything on your Mac, before anything that costs money, and before every deploy.

## Start

Once you have early access, open your coding agent and paste:

```text Setup prompt wrap theme={"dark"}
Set up OpenEmails for my Shopify store. Read docs/setup/README.md and follow .claude/skills/openemail-setup/SKILL.md. Guide me through the steps, check what is already done, and finish with my agent connected and the full sending-domain check passed.
```

If you stop partway, paste the same prompt later. Your agent checks what is done and continues from there.

**1. Confirm your store**

* Your agent asks your Shopify plan and stops on **Basic**.
* It looks up your store's `myshopify.com` name and primary domain from your website. Confirm both.
* It proposes `email.yourstore.com` as your copy's address and checks the name is free. If something already uses it, pick another.
* If you haven't started PostShiba, your agent opens it now. See [Before you start](https://docs.openemails.com/setup/before-you-start.md).

> [!TIP]
>
> **Checkpoint:** your agent has repeated back your plan, your domain and your hostname, and PostShiba's approval is requested.

**2. Trust the app folder**

* Your agent puts the app's files in an app folder on your Mac, `~/.opensubs-email/app`, and moves the session there.
* Your agent app asks whether to trust the folder and shows its permission list. The list allows one setup script. That script signs in to Render and Shopify, checks that your copy runs, and releases new versions.
* Say yes. Then your agent doesn't stop to ask about each of those commands.
* The list doesn't replace your yes in chat for costs, installs and deploys.

> [!TIP]
>
> **Checkpoint:** your agent is working in the app folder and has told you which version it will install.

**3. Create the Shopify app**

* Your agent starts Shopify's sign-in. Sign in in the browser it opens.
* Pick your store's own organization. If it isn't listed, stop: a Partner organization isn't a substitute.
* Your agent creates the app there and fills in its settings. Nothing is installed on your store yet.
* Your agent opens the app's **Distribution** page. Confirm that it shows **Custom distribution**. Shopify gives a custom-distribution app the customer data that checkout recovery links need.
* Your agent opens the app's **Settings** in Shopify's Dev Dashboard. Under **Access requests**, turn on **Bulk queries** before you install the app. See [Shopify's bulk access instructions](https://shopify.dev/docs/apps/build/apis/graphql-admin/bulk-operations/queries#enabling-access-to-bulk-operations).
* OpenEmails uses **Bulk queries** for the first pull, a full resync, the daily consent check and large catch-ups. While it is off, the first pull can't finish, so sending waits.
* Leave **Bulk mutations** off. It is a separate switch, and it needs an IP allowlist. Turn it on only if you want approved hand subscribes and the consent changes from a Klaviyo migration written back to Shopify. See [Turn on Bulk mutations](#turn-on-bulk-mutations).
* Each switch lapses after 31 days without that kind of operation. Then you turn it on again.

> [!TIP]
>
> **Checkpoint:** your agent reports that the app exists and its settings are valid. The **Distribution** page shows **Custom distribution**, and **Bulk queries** is on under **Access requests**.

**4. Set up Render and hand over the keys**

* After your yes for the cost, your agent opens Render. Create an account that you use only for this store, select the **Pro** workspace plan and add a card.
* Click **Authorize** when Render asks whether your agent may sign in.
* Your agent creates the web service, the worker and the database. It moves your Shopify app's credentials into Render itself.
* In PostShiba, as a **Team Administrator**, open **API keys** and click **Create API key**. Name it for this store, pick **Full access**, save, then click **Copy**.
* Your agent takes the key from your clipboard, clears the clipboard, and sends the key to Render. If PostShiba has several clusters, your agent asks which one, and you click **Copy** again.
* Your agent asks for your yes, then deploys.

> [!TIP]
>
> **Checkpoint:** your agent reports that both services are live on the same version and that the health check answers.

**5. Make your first DNS visit**

* Your agent opens your DNS host and shows you a CNAME record for `email`, plus a DMARC record if your domain has none. Add them exactly as shown.
* Your agent checks for the record and tells you when it finds it.
* Details are in [Connect your sending domain](https://docs.openemails.com/setup/connect-your-sending-domain.md).

> [!TIP]
>
> **Checkpoint:** your agent reports `https://email.yourstore.com` answering over HTTPS.

**6. Install the app**

* Your agent asks for your yes, then releases the app's first version. The release includes the storefront pixel and the segment action for Shopify's **Customers** page. Sign in to Shopify again if it asks.
* Your agent opens the install link. Click **Install**, grant the requested access, and open the app.
* The first pull of your Shopify customers and orders starts by itself.

![Home in the Shopify admin: the green Sending is on banner, Needs you with nothing waiting, and At a glance counts.](https://mintcdn.com/openemails/_EEXRkFEoy5ouZ3V/images/setup/home.png?fit=max\&auto=format\&n=_EEXRkFEoy5ouZ3V\&q=85\&s=9dae94e97c4cb631e0064e9f795938c1)

> [!TIP]
>
> **Checkpoint:** the app opens in your Shopify admin on **Home**, with its **Setup guide**.

**7. Connect your agent**

* Your agent adds your copy to your AI app and starts the sign-in. Claude and ChatGPT on the web need a few clicks from you. [Connect your AI](https://docs.openemails.com/setup/connect-your-ai.md) lists them.
* The sign-in ends on the **Connect an agent** screen in your Shopify admin. Check the agent's name and the **Return address**.
* **Let this agent make changes** starts unticked. Tick it so that setup can continue, then click **Allow**.

> [!TIP]
>
> **Checkpoint:** your agent lists the OpenEmails tools and reads your status back to you.

**8. Let the first pull run**

* You have nothing to click. Your copy brings in every Shopify customer who has an email address, with their consent, and your order history.
* No email goes out until the first pull finishes. Setup continues during the pull.
* See its progress under **Settings > Shopify sync**, or ask your agent.

> [!TIP]
>
> **Checkpoint:** **Settings > Shopify sync** shows the first pull finished.

**9. Set up your sending domain**

* Choose a sending domain with your agent. It must be a subdomain of your store's domain that nothing else uses, such as `news.yourstore.com`. There is no default.
* Your agent sets up the sender and shows you PostShiba's DNS records. This is your second DNS visit.
* Your agent runs the full domain check and tells you who fixes each finding.
* Follow [Connect your sending domain](https://docs.openemails.com/setup/connect-your-sending-domain.md).

> [!TIP]
>
> **Checkpoint:** **Settings > Sending domain** shows "Every setting passed the last check."

**10. Choose your From name, tracking and brand**

* Open tracking and click tracking start on. You are responsible for your contacts' consent to tracking. OpenEmails can't decide it for you.
* Set your From name and each tracking switch under **Settings > Email settings**, or ask your agent.
* Your agent saves your brand with you: logos, colors, fonts and voice. It tells you what is still missing.

> [!TIP]
>
> **Checkpoint:** your agent's last summary names your hostname, sending domain, connected agent, domain check result, first-pull progress, tracking choices and brand. It also lists everything that still waits.

## What's still waiting

Email can't go out yet when the domain check passes. Your agent lists each thing that is still open:

* **PostShiba's approval.** Until PostShiba approves your team, it delivers only to your own team's addresses.
* **The first pull**, if it hasn't finished.
* **The Klaviyo hold.** Every new copy starts with this [hold](https://docs.openemails.com/run/holds-and-sending-limits.md), and no campaign or flow email goes out while it is on. Test emails and notices to the store owner still go out. If you are moving from Klaviyo, connect it and run the migration. See [Move from Klaviyo](https://docs.openemails.com/use/move-from-klaviyo.md). If you have no Klaviyo account, click **Confirm no Klaviyo account** under **Settings > Klaviyo**.

If a step fails twice, your agent stops. It tells you what it tried, the exact error and what it recommends.

## Turn on Bulk mutations

This part is optional. With **Bulk mutations** on, OpenEmails marks Shopify customers subscribed after an approved hand subscribe. It also writes the subscribes and unsubscribes from an approved Klaviyo migration to Shopify.

While the switch is off, those writes fail. OpenEmails still records consent and the do-not-email list itself. A regular unsubscribe still reaches Shopify, because it uses a different Shopify request.

**1. Get the IP addresses**

* Ask your agent for the outbound IP addresses of both Render services, the web service and the worker. Your agent reads them under **Connect > Outbound** on each service in Render and removes duplicates.
* Render shares its default ranges with other Render customers in the same region. Shopify recommends specific server addresses where possible.
* Render sells dedicated IP addresses. They need a **Pro** workspace or higher and cost extra each month. See [Render's outbound IP addresses](https://render.com/docs/outbound-ip-addresses) and [Render's dedicated IPs](https://render.com/docs/dedicated-ips).

> [!TIP]
>
> **Checkpoint:** your agent has given you every address or range that either service can use.

**2. Add them to the allowlist**

* In Shopify's Dev Dashboard, open the app's **Settings > IP allowlist > Manage**.
* Add the values under **IP addresses or CIDR ranges**. Don't enforce the list yet.
* Follow [Shopify's IP allowlist instructions](https://shopify.dev/docs/apps/build/dev-dashboard/ip-allowlist#set-up-an-ip-allowlist).

> [!TIP]
>
> **Checkpoint:** the list holds the addresses of both services and is not enforced.

**3. Test, then enforce**

* Do this after the app is installed. Before the install, Shopify has no traffic from your copy to test.
* Wait until both services have made requests to Shopify. The worker makes requests during the first pull. The web service makes one when your connected agent reads your status.
* Choose **Test against recent traffic**. When the test covers both services, enforce the list and save.

> [!WARNING]
>
> **Include both services.** Shopify refuses every request from a service that an enforced list leaves out. OpenEmails then reports that Shopify access is lost.

> [!TIP]
>
> **Checkpoint:** the list is enforced, and your agent's status shows no loss of Shopify access.

**4. Turn on the switch**

* Back under **Access requests**, turn on **Bulk mutations**.
* If a hand subscribe failed while the switch was off, ask your agent to prepare a fresh approval for it.
* After a Klaviyo migration, ask your agent to check the migration's Shopify results before you plan another run.

> [!TIP]
>
> **Checkpoint:** **Bulk mutations** is on, and your agent's status no longer says that Shopify refused a bulk write.

> [card] [Connect your sending domain](https://docs.openemails.com/setup/connect-your-sending-domain.md)
>
> The DNS records, the domain check and warm-up.

> [card] [What your agent can do](https://docs.openemails.com/ai/what-your-agent-can-do.md)
>
> Emails, flows, contacts and reports, from chat.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.