Cloud Setup Guide
This guide walks you through setting up Massu AI Cloud — the optional cloud layer that adds sync, dashboards, and team features on top of the open-source core.
Prerequisites
- Massu AI core installed and running locally
- A Massu AI Cloud subscription (Cloud Pro or Cloud Team)
- Node.js 18 or later
Step 1: Create Your Cloud Account
- Visit massu.ai/pricing and choose Cloud Pro or Cloud Team
- Complete the checkout process
- You'll receive a welcome email with your dashboard URL
Step 2: Generate an API Key
- Log in to your Cloud dashboard
- Navigate to Settings → API Keys
- Click Generate New Key
- Copy the key — you'll need it in the next step
Security note: Your API key should be stored securely and never committed to version control.
Step 3: Configure Local Sync
The recommended, git-safe way to register your key is massu login, which stores it in ~/.massu/credentials (outside every repository) so it is never committed:
npx massu loginAlternatively, export it as an environment variable:
export MASSU_API_KEY=your-api-key-hereThen enable cloud sync in your massu.config.yaml:
cloud:
enabled: true
sync:
memory: true
analytics: true
audit: trueDo not put the env var name in the config as a placeholder. The loader does not expand shell-style
${VAR}placeholders — a dollar-braceapiKeyvalue is stored as literal text, not your key. Provide the key viamassu loginor theMASSU_API_KEYenv var instead. The cloud endpoint defaults tohttps://api.massu.ai/v1; you only need to setcloud.endpoint(orMASSU_CLOUD_ENDPOINT) for self-hosted or enterprise deployments.
Step 4: Verify the Connection
Confirm your key is picked up and your tier is resolved:
npx massu doctor
# Look for the License line, e.g.: "Pro (via ~/.massu/credentials)"What Gets Synced
| Data Type | Synced? | Notes |
|---|---|---|
| Quality scores | Yes | Aggregated per session |
| Observations | Yes | Memory entries |
| Audit trail | Yes | Compliance-ready |
| Session summaries | Yes | For dashboard analytics |
| Source code | Never | Code stays local |
| Credentials | Never | Keys stay local |
Step 5: Explore the Dashboard
Your Cloud dashboard provides:
- Session history — Browse past coding sessions with quality metrics
- Quality trends — Track improvement over time
- Cost tracking — Monitor AI API costs per feature
- Team activity (Cloud Team) — See what your team is working on
Troubleshooting
"MASSU CLOUD SYNC PAUSED" at session start
The massu cloud refused this project's uploads in a way that retrying cannot fix, and the banner shows the server's own reason. Common ones:
- HTTP 401: the API key is invalid or revoked. Generate a new one from the dashboard.
- HTTP 403 "Sync not available for current plan status": the organisation's plan is not active or trialing. Check your plan on the billing page.
While paused, massu sends and queues nothing, and your local memory keeps working. It checks again once a day and resumes on its own as soon as the account is allowed to sync. Uploads refused this way are not queued for later.
"Cloud sync failed: unauthorized"
Your API key may be expired or invalid. Generate a new one from the dashboard.
"Cloud sync failed: network error"
Check your internet connection. Cloud sync requires HTTPS access to api.massu.ai. Temporary failures like this are queued and retried later; the queue holds at most 500 items and nothing older than 30 days.
Data not appearing in dashboard
Sync runs automatically in the background as your sessions produce data. Wait for the next sync cycle, then refresh the dashboard.