Skip to main content
Glama
CloudGrid

CloudGrid

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CLOUDGRID_TELEMETRYNoSet to "off" to disable error reporting via grid_report unconditionally.
CLOUDGRID_QA_IDLE_MSNoOverrides the abandoned-idle window for the QA session log. Default is 900000 (15 minutes).900000
CLOUDGRID_QA_SLACK_WEBHOOKNoAn internal/private Slack incoming-webhook URL. When set, the local (stdio) server posts a per-session QA log. Unset by default; the feature is fully dark when unset.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

CloudGrid runs the user's web apps at a live public URL and provides the infrastructure they need: managed MongoDB, Redis, pgvector, persistent disk, and an AI gateway that needs no API key. Every tool here is grid_*.

What it does, and the requests each tool serves:

  • One self-contained HTML file becomes a live public URL in seconds: grid_plug with html (or path to the file). Serves "make it live", "put it online", "give me a link", "share it with friends", "plug it".

  • A folder with several files, a framework, or anything that needs a database, a server, scheduled jobs, or an AI model, runs as a runtime app: grid_plug with path to the folder, with a cloudgrid.yaml that declares needs (needs: { database: true }, needs: { ai: true }); read the injected env vars lazily, inside handlers. Serves "deploy this app", "add a database", "let it call an AI model without my own key".

  • Iterating keeps the same link: grid_plug with target_entity_id updates in place.

  • Sharing and access: grid_visibility sets who can see it; grid_collab grants push access; grid_pickup copies any visible app's source.

What it does not do: it is not a shell, a container or VM host, or a Kubernetes target; it does not deploy a git repository from a URL; it does not run desktop or mobile apps.

How a plug works: creating anything needs a signed-in account (a signed-out create returns needs_auth; call grid_login, then grid_login_status after the browser step, then plug again). No grid yet: grid_plug returns needs_grid_create; suggest a slug, confirm it with the user, call grid_create_grid, then plug with that grid right away. More than one grid: it returns needs_grid; ask which. Never write an API key into page source or app code — needs: { ai: true } gives the app the managed AI gateway with no key, and other keys go in grid secrets (grid_plug rejects known key shapes). A runtime build is asynchronous: poll grid_check_deploy with its entity_id about every 15 seconds until success before saying it is live. End with the live URL.

Editing and access: to edit a page whose HTML is not in context, call grid_get_app_source first, then grid_plug with target_entity_id. "Collab" or "join" on someone else's app is grid_collab, not grid_pickup; it grants push access only, then grid_pull or grid_edit_existing_app gets the code. If a pull reports view-only, say so and offer grid_pickup (a separate copy) or grid_collab. Confirm with the user before grid_delete or grid_take_offline. Send grid_report only after the user agrees. grid_note feeds the optional QA log: send it before a plug, or pass grid_plug's session_note.

For shell steps, run the CLI as npx -y @cloudgrid-io/cli@latest <command> (never a bare grid); grid dev runs the app locally with the same services. grid_start returns a short orientation and the workflow index; grid_get_template loads workflows, templates, and reference docs.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
grid_pickupA

Pick up an app: copies any app the user can see into one of their grids as a NEW, separate entity (a fork, like a git fork). The copy records lineage back to the source and does not carry the source's secrets (the copy sets its own). Plugging the copy updates only the copy; the original is not changed. This is a fork, not a collab: it grants no access to the original entity, and it does not edit the original in place. Serves requests to copy, fork, remix, or make my own version of an app. Requires sign-in. Returns the copy's entity_id, slug, kind, grid, and lineage.

grid_pullA

Pull an app to continue or edit it IN PLACE, like git clone of the SAME entity: the next plug with its target_entity_id updates that entity, and the team sees the new version. Requires push access (owner or collaborator). For an app the caller can only view, it returns can_edit: false and the options that remain (a separate copy, or push access to the same entity), and changes nothing. A drop plugged outside any grid is claimed into a chosen grid with its claim_token; only the drop's owner can claim it. Serves requests to continue, edit, or work on an app the user owns or collaborates on. Requires sign-in. Returns the entity_id, slug, grid, url, and whether the caller can edit it.

grid_collabA

Collab: grants the signed-in user PUSH ACCESS to the SAME live entity that someone else owns, as a collaborator on that entity, not a copy. It grants permission only and fetches nothing: no code is downloaded, no new entity is created, and no forked_from lineage is recorded. Plugs to the shared entity update it in place (the team sees the new version and can roll it back). When the owner gates who may join, it sends the owner an access request on the user's behalf, and access starts as soon as they approve. Serves requests to collab on, join, or get push or write access to an app the user does not own. Requires sign-in. Returns the entity_id, url, can_edit, and whether a request is pending.

grid_create_gridA

Create a new grid (the workspace the user's apps live in) for the signed-in user, who becomes its admin. Serves an account with no grid yet (a plug result of needs_grid_create, or a NO_ACTIVE_ORG failure) and requests to create a new grid or workspace. The slug is permanent and appears in app URLs. A new grid finishes setup in the background in about 30 seconds, and a plug into it waits for that setup. Requires sign-in. Returns the grid's slug and name, and whether setup is still running.

grid_noteA

Record a one-paragraph summary of what was built this session and why, for the local edition's optional QA session log, which the CloudGrid team reads. A successful plug posts the log on that same call, so a note sent after it is not recorded (the plug's session_note field carries a note on the plug itself). The log is dark unless the operator of this machine has set CLOUDGRID_QA_SLACK_WEBHOOK. Returns a short acknowledgement.

grid_plugA

Plug an app, website, game, or HTML page into CloudGrid at a live public URL. Serves requests to deploy, publish, host, ship, launch, go live, or share a working link: "give me a link", "share it with friends", "make it live", "put it online", "host this". Takes one source: html (a self-contained page) or artifact_files (a multi-file or database-backed runtime app; cloudgrid.yaml declares its needs), or path (local folder, file, or .zip). No target_entity_id (or grid+slug) creates a new URL; with one it updates it in place. Signed out it returns needs_auth and publishes nothing (the user signs in with the local browser sign-in); there is no guest publish. Also publishing nothing: needs_grid (several grids, listed), needs_grid_create (no grid yet), needs_confirmation (the source has a cloudgrid.yaml). Page source is public; known API key shapes are rejected. A runtime app returns status building while its build runs. Returns the URL and the entity_id (the re-plug handle).

grid_get_app_sourceA

Retrieve the CURRENT deployed HTML of an inspiration/drop inline as text, for editing and re-plugging the SAME URL when its source is no longer in context (e.g. the user asks to 'change the color' of a page, even in a fresh chat with only its URL). Takes the entity_id from a plug result, the public url, or grid+slug; the session's last drop is the fallback. Given just a URL with no session, it resolves the entity_id via the pickup contract and also returns the entity's kind, single_html, capabilities (whether the caller may re-plug or fork it), and replug_handle. For a multi-file or runtime (app/agent) source it returns source_download_url, the route to the full source. Reads the HTML from the API server-side; read-only, creates nothing.

grid_loginA

Start a CLI-free CloudGrid sign-in. Serves requests to log in, sign in, or authenticate, and a plug result of needs_auth. Returns a URL to open in the browser, where the user completes the sign-in. Uses CloudGrid's existing OAuth.

grid_login_statusA

Finish a browser sign-in started from this server. Checks once: when the browser sign-in is complete, it saves the session and returns the signed-in email; otherwise it returns status pending.

grid_visibilityA

Change who can see a CloudGrid inspiration OR runtime app/agent. Simple modes: private (only the user), grid (everyone in their grid), link (anyone with the URL; indexed: true also makes it findable by search engines). Finer control via the TWO AXES instead: inside (who in the grid: private | spaces | grid) and outside (reach beyond it: none | link | public), with require_signin for a members-only link and spaces for selected spaces. 'authenticated' is retired (it maps to a sign-in-required link). Serves requests to make something private, restrict who sees it, or open it up. Takes the app's entity_id (from its plug result) or its url; the drop made earlier in the session is the fallback, and some hosts start a new session for every tool call. Kind-aware routing across both surfaces. Requires sign-in. Returns the stored visibility settings.

grid_check_deployA

Check whether an async runtime-app build (a deploy, which here means a plug) has finished and the app is live. Serves a plug that returned status "building", and questions like "is it live yet?". Takes the entity_id from the plug result (or the app url), plus its poll_url when there is one; the session's last plug is the fallback, and some hosts start a new session for every tool call. Returns status (success, failed, building, queued, or unknown) and live, which is true only when the build succeeded and the URL serves; a failed build adds the reason, a log tail, and a suggested fix. Requires sign-in (builds are owned). Works on every edition, including hosted.

grid_list_gridsA

List the signed-in user's grids, each with slug, name, role, whether it is the active grid, and setup status (render_ready). Requires sign-in. A plug into a brand-new grid waits for its setup by itself.

grid_startA

A short orientation for building with CloudGrid: the account this session is signed in as and its active grid, how to choose between a single-page plug and a runtime app (and what each provides: managed database, Redis, pgvector, disk, an AI gateway with no API key), the sign-in and grid steps a first plug goes through, and the index of workflows that load by name. Read-only, under 3,000 characters. Serves a first look at CloudGrid and questions about what it can do or which account is connected. The full operating playbook is the doc named playbook.

grid_get_templateA

Load a specific CloudGrid workflow, template, example, rule, troubleshooting note, or reference doc by kind and name: deterministic retrieval from the bundled corpus, no network. Workflow and template names come from the orientation's workflow index, e.g. {kind:"workflow", name:"presentation"} or {kind:"template", name:"deck"}. Reference docs (kind "doc"): cloudgrid-yaml (the manifest schema and needs: vocabulary), capability-map (which template fits a request), playbook (the full operating rules). Returns the entry's full content.

grid_reportA

Report a genuine CloudGrid failure (a build, deploy, or platform call that failed unexpectedly) to the CloudGrid team, with the user's explicit consent. What is sent: the short message (what failed), the context passed (the tool, inputs, grid, original request, error code/detail), and the client name and platform: only the message and context the user agreed to send, nothing else from the conversation. Redaction is key-name-only: a value is dropped only when its KEY looks secret, so a secret embedded in a value (e.g. inside HTML) is sent as is. Returns the outcome status.

grid_helloA

Create a minimal hello page and plug it into the user's grid, returning the live URL. If the user has more than one grid and grid is not given, it returns needs_grid with the list and plugs nothing. Serves requests for a first test page or a quick check that plugging works. Requires sign-in.

grid_create_projectA

Scaffold a new CloudGrid app or agent folder (cloudgrid.yaml + a web service), optionally pre-declaring resources. Wraps grid new (scaffolds locally; no server entity exists until the folder is plugged). Language note: the nextjs starter is TypeScript (writes tsconfig.json + app/.tsx), while CloudGrid templates are plain JavaScript. A template's files are the source of truth for the folder: its .js files replace the scaffolded tsconfig.json and app/.tsx, so no route has both a .tsx and a .js file.

grid_view_logsA

Tail recent logs for an entity. Does not stream; returns a snapshot. Wraps grid logs.

grid_shareA

Set an entity's visibility and print its URL. Defaults to link (anyone with the URL). Wraps grid visibility set.

grid_feedbackB

List recent feedback events for the active grid. Read-only. Wraps grid feedback list.

grid_whoamiA

Show the signed-in user and active grid. Wraps grid whoami.

grid_switch_gridB

Switch the active grid. Wraps grid use.

grid_logoutA

Sign out and clear local credentials. Wraps grid logout.

grid_statusC

Grid dashboard, entity detail, or deploy snapshot. Wraps grid status.

grid_infoC

Show metadata for a CloudGrid entity. Wraps grid info.

grid_getB

List CloudGrid grids, entities, or spaces. Wraps grid get <grids|entities|spaces> --json.

grid_describe_gridB

Show a grid's detail: role, members, spaces, tier, wildcard-TLS state. Wraps grid describe grid <slug> --json.

grid_edit_existing_appA

Continue/edit an EXISTING entity locally: downloads its source + cloudgrid.yaml and links the folder so the next grid plug from it updates the entity IN PLACE. Requires push access (owner or collaborator). Wraps grid pull. It makes no copy and grants no access: a separate copy (a fork) and push access to an entity the user can only view (CLI: grid collab <entity>) are separate operations.

grid_renameA

Rename a CloudGrid entity's display name (slug stays the same). Wraps grid rename.

grid_take_offlineC

Take an entity off the grid. Destructive. Wraps grid unplug.

grid_deleteB

Archive a CloudGrid inspiration. Destructive. Wraps grid delete entity.

grid_rollback_deployC

Rollback an entity to a previous version. Wraps grid rollback.

grid_list_versionsB

List published versions for an entity. Wraps grid versions.

grid_set_envC

Manage environment variables for an entity. Wraps grid env.

grid_set_secretB

Set or list secret names for an entity. Returns secret names only, not values. Wraps grid secrets.

grid_scaffoldA

Scaffold service folders declared in cloudgrid.yaml (idempotent). Wraps grid scaffold.

grid_diagnoseA

Run CloudGrid diagnostics on the local environment. Wraps grid doctor.

grid_get_urlA

Return the public URL for an entity. Does not open a browser. Wraps grid open --print.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.1/5.0

Scored across 38 tools

Disambiguation2/5

Several tool pairs are functionally indistinguishable: grid_pull and grid_edit_existing_app both wrap `grid pull` and both continue/edit an existing entity in place, while grid_share and grid_visibility both set visibility (share even wraps `visibility set`). The metadata cluster (grid_get, grid_info, grid_status, grid_describe_grid, grid_list_grids) and the scaffold cluster (grid_create_project, grid_scaffold) force an agent to guess which one to call. The long descriptions try to patch these boundaries, but the underlying overlap remains.

Naming Consistency3/5

Casing and prefix are uniform (grid_ + snake_case throughout), which helps a lot. However the verb grammar is mixed: some are clean verb_noun (create_grid, list_versions, check_deploy, get_app_source), while many are bare nouns or vague one-worders (pickup, pull, hello, note, status, info, get, share, start, whoami) that don't follow a predictable verb pattern.

Tool Count2/5

38 tools is heavy for the apparent scope, and much of the bulk is thin CLI passthroughs (grid_status, grid_info, grid_get, grid_whoami, grid_share, grid_diagnose) that could be consolidated. Several entries earn their place, but the count is inflated by wrappers around the same underlying commands.

Completeness4/5

The lifecycle is broadly covered: auth (login, login_status, logout), grids (create, list, switch, describe), publishing (plug, hello, create_project, scaffold), editing (pull, edit_existing_app, pickup fork, collab), versions/rollback, env/secrets, logs, visibility, docs, and diagnostics. Minor gaps exist around access revocation and collaborator/space management (no invite-remove or space create/delete), which agents will notice but can work around.

Maintenance

ActivityActive
ResponsivenessUsually handled