Set up CMRE
Every step happens in a web browser by clicking: no command line. Allow about an hour. You need accounts for the Code Vault, the Data Vault, the Edge Runtime and the Social Relay, and admin access to the Commerce Hub store. Each link opens the right page; the provider table at the end lists every service behind CMRE's native names. The handbook's runbook shows where these steps sit in the full plan.
1. Put the code in the Code Vault 5 min
- Unzip
cmre.zipon your computer. - Open Code Vault › New repository. Name cmre, choose Private, click Create repository.
- On the new repository page click uploading an existing file.
- Open the unzipped
cmrefolder, select everything inside it (thedatabase,public,srcandtestsfolders and the files beside them) and drag it onto the page. Click Commit changes.
database, public, src and package.json at the top level, not inside another folder.2. Create the Data Vault 10 min
- Open Data Vault › Projects → New project. Name cmre, a region near your customers, and a strong database password saved in your password manager. Click Create new project and wait for it to finish.
- Left menu → SQL Editor → New query.
- In your Code Vault repository open
database/migrations/0001_foundation.sql, click Copy raw file (the two-squares icon above the code), paste it into the SQL Editor and click Run. It should end with Success. - New query, same for
0002_growth_and_customers.sql. New query, same for0003_views_and_setup.sql. Run the three in this order, each once. - Project Settings (gear) → Data API: copy the Project URL.
- Project Settings → API Keys: copy the Publishable key (starts
sb_publishable_) and create or reveal a Secret key (startssb_secret_). Older projects may show only the legacy anon and service_role keys; those work too, in the same places.
workspaces, content_items, bets, customer_tiers and social_leads, each marked RLS enabled.3. Deploy on the Edge Runtime 10 min
- Open Edge Runtime › Applications → Create.
- Choose Import a repository. Connect the Code Vault when asked and allow access to
cmre. - Select
cmre. Leave the build command empty; the deploy command is (the Edge Runtime runs it for you). Click Create and deploy. - Note the address shown, for example
https://cmre.<your-subdomain>.. That is your app. - Recommended: Edge Runtime › Plans → the paid plan. The Tuesday KPI refresh makes more outside calls in one run than the free plan allows.
4. Add the settings and secrets 5 min
Edge Runtime → your cmre application → Settings → Variables and Secrets → Add. Add each row as type Secret.
| Name | Value |
|---|---|
| DATA_VAULT_URL | Project URL from step 2 |
| DATA_VAULT_PUBLIC_KEY | Publishable key (or anon key) from step 2 |
| DATA_VAULT_SERVICE_KEY | Secret key (or service_role key) from step 2 |
| SOCIAL_RELAY_KEY | Create an API key in the Social Relay dashboard (settings, API keys) |
| ENCRYPTION_KEY | Generate one below |
| INSIGHT_MODEL_KEY (optional) | Lets the Producer agent write with the Insight Model. Create a key in the Insight Model console. Without it the agents use built-in templates. |
The key is made in your browser with a secure random generator and never sent anywhere. Keep a copy in your password manager: if it is lost, the Commerce Hub access token has to be saved again.
- Click Deploy (or Save and deploy).
- Settings → Trigger events: confirm two cron triggers,
*/15 * * * *and5 * * * *. They come from the code.
your-app-address/api/config. It shows your Data Vault URL, "relayConfigured": true and "version": "3.2.0".5. Point sign-in at your app 2 min
- Data Vault → Authentication → URL Configuration.
- Site URL = your app address from step 3.
- Redirect URLs → Add URL: the same address followed by /**. Save.
- Optional: Authentication → Emails → custom SMTP, so sign-up emails come from your domain (the built-in sender is rate-limited).
6. Create your account and workspace 5 min
- Open your app address → Create account. Confirm the email, then sign in.
- Create a workspace named Arctic Barrier with the template Winter retail 2026 (or Standard for another brand). You become its owner. The three launch checklists (31 items), six email flows, seven experiments, the collections, the advertised codes to audit, a basket at your price points, wholesale terms and the first content ideas for every channel are filled in.
- You land on Launch. Each checklist item says which page or outside tool it happens in.
- Settings → Team: invite the CMO, operator, merchandising lead and admin by email. They join when they sign up or sign in with that email.
7. Connect the Social Relay and every channel 15 min
In the Social Relay dashboard, then on Settings → Connections in CMRE.
- Social Relay dashboard: create a profile for the brand with the store's time zone. Connect every network the brand uses to that profile. Start with the six CMRE turns on for this template: Pin board, Short-video, Photo, Community, Business listing and Professional (for corporate gifts). Connect others when you are ready to post there; they stay off in CMRE until you switch them on. The provider table names each network.
- Turn on the Social Relay's Inbox add-on so the Social Scout can read comments and messages.
- In CMRE: Load Social Relay profiles → choose it → Use this profile.
- Type the store admin domain (Commerce Hub admin → Settings → Domains) → Connect store via Social Relay → approve in the tab that opens.
- Sync accounts from Social Relay, then tick Verified for each brand handle after checking it on screen.
- Load store blogs → choose the blog → Use this blog.
- 6. Channel settings: check the six ticked Active channels; Load boards and pick the default Pin board board; choose Video visibility and Short-video audience; enter a Forum group or Community server channel id only if you post there. Click Save channel settings.
8. Connect the Commerce Hub store 10 min
CMRE reads orders, stock and customers. With your approval it writes tier tags, discounts, customer segments, marketing report entries, bundle products and VIP gift cards, and it can add a storefront event pixel. The Commerce Hub now issues this access through an app made in its Dev Dashboard; CMRE renews the access itself every day.
- In CMRE, open Settings → Connections → 5. Connect the Commerce Hub store. Keep this tab open: it shows three values with Copy buttons (App URL, Allowed redirection URL, Access scopes).
- Open the Commerce Hub Dev Dashboard and sign in with the store owner's account. Click Create app → Start from Dev Dashboard, name it CMRE and click Create.
- In the app's version settings, paste the App URL and the Allowed redirection URL from CMRE, and paste the scopes into Scopes: read_orders,read_products,read_inventory,read_customers,write_customers,write_discounts,write_marketing_events,write_products,write_gift_cards,write_pixels,read_customer_events. Click Release.
- In the same version settings, under Compliance webhooks, paste this address for all three privacy topics (customer data request, customer erasure, shop erasure): https://cmre.io/api/commerce/webhooks. CMRE checks each request's signature with your app's client secret before acting.
- Install the app on your store. If the Dev Dashboard asks how to distribute it, choose Custom distribution, enter your store domain, and open the install link it gives you.
- In the app's Settings, copy the Client ID and Client secret.
- Back in CMRE: paste the store domain, Client ID and Client secret → Connect store.
- If the store and the app are in the same organization, it connects at once.
- Otherwise CMRE shows Approve on the store: click it, approve, and you return to CMRE connected.
- Catalog & offers → Sync products from the store, star 4 to 6 hero products and enter unit costs.
- Customers → Refresh from Commerce Hub. KPIs, tiers, buying plan, cross-sell, returns and the order-size report appear. It refreshes itself every Tuesday at 8 AM.
extensions/README.md in the CMRE code, or ask CloudOneSoftware to install them. Then turn them on in Settings → Store tools.9. Turn on the revenue features 20 min
- Settings → Workspace → Order size and reviews: confirm Free shipping from 35, and paste your Review link (the page of your reviews app, starting https://). Save.
- Install a reviews app from the Commerce Hub app store so product pages show reviews; then build the Review request flow in Commerce Mail (Catalog & offers → Email flows lists its tests).
- Add a signup pop-up (Commerce Hub theme editor or Commerce Mail forms) offering the welcome code ABWELCOME10, and consider retiring the public SP10 code once it runs.
- Wholesale: tick Wholesale page on, check the minimum units, discount and terms, and Save. Copy the trade page link; trade buyers in Social leads get a Copy trade link button.
- Catalog & offers → Products → Feed check: fix the listed products (hero products first) in the Commerce Hub product editor and sync again. Then, in the Commerce Hub admin, add the free search listings sales channel and the Pin board sales channel so your products appear in shopping results and on pins.
- Settings → Workspace → Order size and reviews: confirm the standard and express cut-off dates with your carrier (template: 2026-12-15 and 2026-12-19). In the Commerce Hub admin, turn on digital gift cards.
- Catalog & offers → Order size: read the free-shipping recommendation, add the cart message, and save the first two bundle ideas. The owner or CMO approves them; build them in the store; mark them live.
10. Connect the CMRE Assistant 3 min
- In the app: Settings → Agents & CMRE Assistant. Name the key, leave Allow drafts off for a read-only start, click Create key for CMRE Assistant. Copy what is shown; the key is displayed once.
- Assistant workspace: Settings › Connectors → Add custom connector. Name CMRE, URL = the private connector URL. Treat that URL like a password. Help: custom connectors
- Developer assistant or another Agent Bridge client: use the project config shown with the key (server
/bridgewith anAuthorization: Bearerheader). - Ask: "How did last week go and what is the one change?", "Is anything going out this week that will be blocked?", "Who in our comments is asking about wholesale?", "Draft a gift post for the beret".
11. Updating later
- Code changes: edit or upload files in the Code Vault repository. The Edge Runtime redeploys within a minute or two (application → Deployments).
- Database changes: new files in
database/migrationsare run once each in the SQL Editor, in number order. - Logs: application → Observability shows API errors and scheduled job runs.
- Rotate a secret: change it under Variables and Secrets and deploy. A new
ENCRYPTION_KEYmeans clicking Connect store again. - After four weeks: open Numbers → Channels. Post more where it says Grow, switch off what says Pause, and turn on one new channel at a time.
- Coming from v2.2: v3.5 is a clean install (33 tables). Create a new Data Vault project and follow steps 2 to 10; keep v2 running until L1 passes. Re-enter unit costs, offers and creators by hand; tiers, KPIs, order size and quick wins rebuild from the Commerce Hub on the first refresh.
Provider table
CMRE uses CloudOneSoftware-native names everywhere. This is the only place the services behind those names are listed; the links in the steps above are filled in from this table.
| Native name | Provider | Link or value | Used for |
|---|---|---|---|
| Code Vault | GitHub | github.com/new | Holds the code; the Edge Runtime deploys from it |
| Data Vault | Supabase | supabase.com/dashboard/projects | Database, sign-in, Row Level Security |
| Edge Runtime | Cloudflare Workers | dash.cloudflare.com › Workers & Pages | Hosts the app, API, Agent Bridge, survey and scheduled jobs |
| Edge Runtime plans | Cloudflare Workers | Workers plans | Paid plan for the weekly KPI refresh |
| Edge Runtime deploy command | Cloudflare Wrangler | npx wrangler deploy | Run by the Edge Runtime on each deploy; config in wrangler.jsonc |
| Edge Runtime default domain | Cloudflare | workers.dev | Your app's first address |
| Social Relay | Zernio | zernio.com/dashboard | Social posts, store blog, inbox for the Social Scout |
| Commerce Hub | Shopify | admin.shopify.com | Store, orders, stock, codes, customer tags; Commerce Mail is Shopify Messaging and the Pairing Engine is Search & Discovery |
| Commerce Hub Dev Dashboard | Shopify | dev.shopify.com/dashboard | Where the CMRE store app is created; gives the Client ID and Client secret |
| Free search listings · Pin board catalog | Google & YouTube sales channel · Pinterest sales channel | Added from the Commerce Hub admin | Products in shopping results and on pins at no cost per click |
| Insight Model | Anthropic (Claude API) | platform.claude.com | Optional writing help for the Producer agent |
| CMRE Assistant | Claude | claude.ai › Settings › Connectors | Asks questions of CMRE through the Agent Bridge (an MCP server at /bridge) |
| Assistant help | Claude | Custom connectors help | How to add a custom connector |
| Photo · Community · Short-post · Short-video · Video · Pin board · Professional · Thread · Open-social · Forum · Business listing · Messenger · Chat · Snap · Community server · Team chat | Instagram · Facebook · X · TikTok · YouTube · Pinterest · LinkedIn · Threads · Bluesky · Reddit · Google Business Profile · Telegram · WhatsApp · Snapchat · Discord · Slack | Connected inside the Social Relay | Where posts go; Photo, Community, Short-post, Open-social, Forum, Messenger and Chat are also where the Social Scout listens |
| Store · Blog site | Shopify · WordPress | Connected inside the Social Relay | Store link for stock and blog articles |
| Social ad network · Search & shopping ads · Store ads | Meta Ads · Google Ads · Shop campaigns | Set up in each ad platform | Paid tests on Numbers › Paid tests |