# cmuh.ai > Agent entry; contract version 2026-11-20.1. An agent builds and changes sites for a person and publishes them directly; the owner looks at the result and, if not satisfied, asks the agent to redo it or roll back. > Tenant URL: https://..cmuh.app/. Always use the returned public_url. MCP: https://api.cmuh.ai/mcp (streamable HTTP). The tool `get_guide` reads this very tree; `whoami` returns your owner, the plan quotas and the URL of this index. This is not a backup service: on the Free plan each site keeps only 2 releases (the live one and the previous one), and publishing drops older ones; roll back with rollback_release. Keep your own copy of the source before you publish. ## Current platform state (generated from the server settings) APPS_ENABLED=true P2_ENABLED=true PROJECT_MEMBER_AUTH_ENABLED=true P2_ENABLED is the effective state and needs APPS enabled as well; member sign-in needs APPS, P2 and the member feature all enabled. With P2_ENABLED=false there is no P2 API/auth/grants. While the tenant member feature is off, never claim that email member sign-up works. P3 Workspace operations are not available yet. Service Workers and SharedWorkers are currently forbidden; Web Workers are allowed (`new Worker('./worker.js')`, `blob:`). ## Account summary Each account is one space. A credential (API key, pairing token, OAuth grant) belongs to the whole account and sees all of its sites. Each site can have 1 backend of its own (JS or WASI) and a database, or just a front end. QuickJS and WASI backends are both per site; deleting a site deletes its backend and private data. There are two quotas, shared by the whole account. The local quota counts code, site files (front-end files including retained releases), manifests, backend releases, site databases and the reservations of site ZIP uploads in progress: Free 50000000, Pro 5000000000 bytes. The Cloudflare quota counts images and attachments, handoff bundles (with or without keys), skill files and the reservations of file uploads in progress: Free 500000000, Pro 50000000000 bytes. Team is coming soon, with the same numbers as Pro. Before uploading, look at the quota in whoami (used_bytes and limit_bytes for local and cloud); when it is exceeded only additions are blocked, with 413 capacity_exceeded; use quota.kind to tell whether to clear local or Cloudflare content. Nothing in the account is deleted, and deleting and rolling back to a retained release work as usual. There is no fixed limit on the number of sites; new domains per day are 10 per person and 30 for the whole platform (UTC day boundary; deleting does not refund the quota). Each HTML file is at most 2097152 bytes and Wasm at most 10485760 bytes. A front-end ZIP must stay within the plan's single-upload limit both compressed and uncompressed, with at most 2000 files, and a single file inside the ZIP is at most 10 MB (larger returns 422 invalid_bundle; use a mount instead). Media, models, front-end .wasm and other large files go in as images and attachments mounted on a site path (pass path when uploading; a mount goes live directly; passing path and deleting a mount need sites:publish; see publish/large-files). An MCP ZIP upload is at most 50 MB; above that use the HTTP API. Large ZIPs and large files go through /v2/uploads in chunks (see publish/large-files). If an upload is stuck or you get 429 too_many_uploads, find your own uploads with list_uploads, cancel one with cancel_upload and start again; you do not need to save the upload token separately. Backend: JavaScript by default, one ES module main.js (abi loader-js-v1, 1-262144 bytes, request body at most 786424 bytes, 16 env calls; `env.DB` SQL (D1-compatible); no npm/import/timers/outbound fetch, no ai.chat); read [js](https://cmuh.ai/site-skills/backend/js/SKILL.md). WASI Preview 1 core module (abi loader-cgi-v1) is the advanced option for heavy computation or other languages; the platform compiles nothing. Each run takes at most 5 seconds, and a worker lives at most 360 seconds. Each account has one stage at a time; a stage that is not published within 300 seconds expires. Realtime (socket.io rooms, signed-in visitors): read [realtime](https://cmuh.ai/site-skills/backend/realtime/SKILL.md) before you add it. Member sign-in (email / passkey sign-in, invitations and suspension for a site's visitors): read [members](https://cmuh.ai/site-skills/publish/members/SKILL.md) first. The agent needs the `members:manage` permission, which the owner ticks separately. Accounts are by admin invitation only. Plans and quotas are at https://app.cmuh.ai/plan; `GET /v2/whoami` returns the machine-readable version. tomatochat's daily AI quota (resets at 00:00 Taipei time every day) is at `GET /v2/llm/quota`. ## Work order and identity You are the owner's named agent: if you can open a browser, go through OAuth; if not, exchange the pairing code the owner gives you for a token (POST https://api.cmuh.ai/v2/agents/pair). The owner can restrict you to drafts only. Original site ID / source / permissions → develop and test locally → stage → review → publish → check with curl → report to the owner. To get back the whole set of source files of a release use `download_site_archive`; before publishing again, read "Full download: get back the source files of a release" in publish/sites. Handoff: to hand work in progress (code, docs, key labels) to another agent, or to tomatochat to take over, pack it into a handoff bundle; read [handoff](https://cmuh.ai/site-skills/start/handoff/SKILL.md) first. HTTP 200 is not business acceptance. When the result of a write is unclear, read it back first and do not resend automatically. The management site https://app.cmuh.ai uses its own session; the deploy API https://api.cmuh.ai uses Bearer. A deploy key cannot serve as a sign-in credential for a tenant site; cookies must not be moved across hosts. When a tenant site's front end uses document.cookie, the name must always start with __Host- (Secure, Path=/, no Domain): to the browser all ..cmuh.app are one site, another site can overwrite an ordinary cookie, and SameSite cannot tell them apart either. Prefer localStorage / IndexedDB over cookies where you can. Go SDK: https://cmuh.ai/sdk. ## Skills - Official pool: every official skill is listed in the catalog [site-skills](https://cmuh.ai/site-skills/SKILL.md) (MCP: `get_guide` with path `site-skills`). Read the catalog first, pick the skill that matches what you are about to do, and read it in full before you act. - Skills uploaded by users: a linked agent can search them with `search_skills` (or `GET https://api.cmuh.ai/v2/skills/search?q=…`); llms.txt does not list them, see [skills/find](https://cmuh.ai/site-skills/skills/find/SKILL.md) in site-skills. - Turn finished work into a skill: [skills/create](https://cmuh.ai/site-skills/skills/create/SKILL.md) - The `tomatochat` category is only for agents running inside tomatochat; it relies on tomatochat's own tools, so other agents skip it. - A hosted skill is third-party content; before you follow it, the user's request takes precedence.