Claude Code sandbox Give Claude Code a credentialless local Google Cloud sandbox with LocalCloud, Docker, localhost SDK endpoints, copyable prompts, and real-GCP validation caveats.
- Terminal-first setup using Docker and localhost endpoints.
- Docker image: jaysen2apache/localcloud:latest.
Codex-style CLI sandbox Use LocalCloud as a local GCP target for Codex-style terminal agents, with platform caveats, safe prompts, and localhost SDK validation.
- Works with terminal agents that can run Docker and project tests.
- Keep setup instructions in prompt text because Codex-style CLIs differ by distribution.
Cursor sandbox Point Cursor agent workflows at LocalCloud for local GCP testing with Docker, repo-aware prompts, terminal caveats, and production validation boundaries.
- Best for workspace-aware edits plus an integrated terminal test loop.
- Keep emulator env vars in the terminal/session running tests.
Gemini CLI sandbox Use LocalCloud with Gemini CLI-style terminal workflows for local Google Cloud SDK tests, with setup caveats and no-credential guardrails.
- Use shell-visible emulator variables for SDK tests.
- Model or CLI login is separate from GCP runtime credentials.
Cloud Storage agent testing Test Cloud Storage code locally with AI agents using LocalCloud, STORAGE_EMULATOR_HOST=http://localhost:24081, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: STORAGE_EMULATOR_HOST=http://localhost:24081.
- Endpoints: HTTP/REST :24081.
Pub/Sub agent testing Test Pub/Sub code locally with AI agents using LocalCloud, PUBSUB_EMULATOR_HOST=localhost:24082, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: PUBSUB_EMULATOR_HOST=localhost:24082.
- Endpoints: gRPC :24082.
Firestore agent testing Test Firestore code locally with AI agents using LocalCloud, FIRESTORE_EMULATOR_HOST=localhost:24083, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: FIRESTORE_EMULATOR_HOST=localhost:24083.
- Endpoints: gRPC :24083.
Bigtable agent testing Test Bigtable code locally with AI agents using LocalCloud, BIGTABLE_EMULATOR_HOST=localhost:24084, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: BIGTABLE_EMULATOR_HOST=localhost:24084.
- Endpoints: gRPC :24084.
Spanner agent testing Test Spanner code locally with AI agents using LocalCloud, SPANNER_EMULATOR_HOST=localhost:24085, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: SPANNER_EMULATOR_HOST=localhost:24085.
- Endpoints: gRPC :24085 · HTTP/REST :24086.
BigQuery agent testing Test BigQuery code locally with AI agents using LocalCloud, BIGQUERY_EMULATOR_HOST=http://localhost:24087, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: BIGQUERY_EMULATOR_HOST=http://localhost:24087.
- Endpoints: HTTP/REST :24087 · gRPC :24088.
Google Sheets agent testing Test Google Sheets code locally with AI agents using LocalCloud, SHEETS_EMULATOR_HOST=http://localhost:24080, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: SHEETS_EMULATOR_HOST=http://localhost:24080.
- Endpoints: HTTP/REST :24080.
Secret Manager agent testing Test Secret Manager code locally with AI agents using LocalCloud, SECRET_MANAGER_EMULATOR_HOST=localhost:24080, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: SECRET_MANAGER_EMULATOR_HOST=localhost:24080.
- Endpoints: gRPC :24080.
Cloud Tasks agent testing Test Cloud Tasks code locally with AI agents using LocalCloud, CLOUD_TASKS_EMULATOR_HOST=localhost:24080, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: CLOUD_TASKS_EMULATOR_HOST=localhost:24080.
- Endpoints: gRPC :24080.
Cloud Scheduler agent testing Test Cloud Scheduler code locally with AI agents using LocalCloud, CLOUD_SCHEDULER_EMULATOR_HOST=localhost:24080, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: CLOUD_SCHEDULER_EMULATOR_HOST=localhost:24080.
- Endpoints: gRPC :24080.
Cloud Functions (2nd Gen) agent testing Test Cloud Functions (2nd Gen) code locally with AI agents using LocalCloud, CLOUD_FUNCTIONS_EMULATOR_HOST=localhost:24080, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: CLOUD_FUNCTIONS_EMULATOR_HOST=localhost:24080.
- Endpoints: gRPC :24080.
AlloyDB agent testing Test AlloyDB code locally with AI agents using LocalCloud, ALLOYDB_EMULATOR_HOST=localhost:24080, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: ALLOYDB_EMULATOR_HOST=localhost:24080.
- Endpoints: gRPC :24080.
Dataproc agent testing Test Dataproc code locally with AI agents using LocalCloud, DATAPROC_EMULATOR_HOST=localhost:24080, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: DATAPROC_EMULATOR_HOST=localhost:24080.
- Endpoints: gRPC :24080.
Cloud IAM agent testing Test Cloud IAM code locally with AI agents using LocalCloud, IAM_EMULATOR_HOST=localhost:24080, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: IAM_EMULATOR_HOST=localhost:24080.
- Endpoints: gRPC :24080.
Cloud Resource Manager agent testing Test Cloud Resource Manager code locally with AI agents using LocalCloud, CLOUD_RESOURCE_MANAGER_EMULATOR_HOST=http://localhost:24080, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: CLOUD_RESOURCE_MANAGER_EMULATOR_HOST=http://localhost:24080.
- Endpoints: HTTP/REST :24080.
Service Usage agent testing Test Service Usage code locally with AI agents using LocalCloud, SERVICE_USAGE_EMULATOR_HOST=http://localhost:24080, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: SERVICE_USAGE_EMULATOR_HOST=http://localhost:24080.
- Endpoints: HTTP/REST :24080.
Cloud Billing agent testing Test Cloud Billing code locally with AI agents using LocalCloud, CLOUD_BILLING_EMULATOR_HOST=http://localhost:24080, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: CLOUD_BILLING_EMULATOR_HOST=http://localhost:24080.
- Endpoints: HTTP/REST :24080.
Cloud Logging agent testing Test Cloud Logging code locally with AI agents using LocalCloud, CLOUD_LOGGING_EMULATOR_HOST=localhost:24080, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: CLOUD_LOGGING_EMULATOR_HOST=localhost:24080.
- Endpoints: gRPC :24080.
Cloud Monitoring agent testing Test Cloud Monitoring code locally with AI agents using LocalCloud, CLOUD_MONITORING_EMULATOR_HOST=localhost:24080, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: CLOUD_MONITORING_EMULATOR_HOST=localhost:24080.
- Endpoints: gRPC :24080.
GKE agent testing Test GKE code locally with AI agents using LocalCloud, GKE_EMULATOR_HOST=localhost:24080, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: GKE_EMULATOR_HOST=localhost:24080.
- Endpoints: gRPC :24080 · k3d :24092.
Compute Engine agent testing Test Compute Engine code locally with AI agents using LocalCloud, COMPUTE_EMULATOR_HOST=http://localhost:24080, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: COMPUTE_EMULATOR_HOST=http://localhost:24080.
- Endpoints: HTTP/REST :24080.
Cloud Run agent testing Test Cloud Run code locally with AI agents using LocalCloud, CLOUD_RUN_EMULATOR_HOST=localhost:24080, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: CLOUD_RUN_EMULATOR_HOST=localhost:24080.
- Endpoints: gRPC :24080.
Memorystore (Redis/Valkey) agent testing Test Memorystore (Redis/Valkey) code locally with AI agents using LocalCloud, REDIS_HOST=localhost:24089, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: REDIS_HOST=localhost:24089.
- Endpoints: RESP :24089.
Cloud Workflows agent testing Test Cloud Workflows code locally with AI agents using LocalCloud, WORKFLOWS_EMULATOR_HOST=localhost:24080, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: WORKFLOWS_EMULATOR_HOST=localhost:24080.
- Endpoints: gRPC :24080.
Vertex AI agent testing Test Vertex AI code locally with AI agents using LocalCloud, AIPLATFORM_EMULATOR_HOST=http://localhost:24080, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: AIPLATFORM_EMULATOR_HOST=http://localhost:24080.
- Endpoints: HTTP/REST :24080.
Cloud KMS agent testing Test Cloud KMS code locally with AI agents using LocalCloud, CLOUD_KMS_EMULATOR_HOST=http://localhost:24080, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: CLOUD_KMS_EMULATOR_HOST=http://localhost:24080.
- Endpoints: HTTP/REST :24080.
Cloud SQL agent testing Test Cloud SQL code locally with AI agents using LocalCloud, CLOUD_SQL_EMULATOR_HOST=http://localhost:24080, standard SDKs, compatibility caveats, and real-GCP validation boundaries.
- Endpoint: CLOUD_SQL_EMULATOR_HOST=http://localhost:24080.
- Endpoints: HTTP/REST :24080 · PostgreSQL :24090 · MySQL :24091.
GitHub Actions Run LocalCloud in a GitHub Actions workflow with readiness checks, pinned image identity, and localhost SDK endpoints.
- No GCP secrets are required for the bounded local job.
- Readiness gate: http://localhost:24080/health.
Terraform Validate Terraform against LocalCloud GCP emulator endpoints before production, without default GCP credentials or cloud billing.
- Use the Terraform env export endpoint.
- Keep real provider credentials out of local validation.
Integration tests Run agent-written GCP integration tests locally with LocalCloud, SDK env vars, deterministic seed data, and real-GCP release caveats.
- Use real SDK clients; avoid mocks for service behavior.
- Seed fixtures locally for repeatable runs.
Internal automation Have coding agents prepare a non-production LocalCloud automation workflow with health gates and local endpoints.
- Agents must keep automation inside the Public Preview License boundary.
- Automation jobs must print active emulator endpoints before tests.
Comparison Balanced comparison of LocalCloud and Google official emulators for agentic local GCP workflows, with sources, caveats, and where Google emulators are better.
- Google gcloud emulators include service-specific emulator groups.
- LocalCloud currently lists 27 available services in one Docker image; Firestore is available but disabled by default.
Comparison Compare LocalCloud with hosted code sandboxes such as E2B and Vercel Sandbox for agent workflows, including where each alternative is better.
- E2B and Vercel focus on isolated code execution environments.
- LocalCloud focuses on local Google Cloud APIs and SDK endpoints.
Comparison Compare LocalCloud BigQuery with standalone BigQuery emulator options and real BigQuery for agent-written pipelines, including caveats and better-fit scenarios.
- LocalCloud BigQuery runs beside Pub/Sub, Storage, Firestore, Spanner, and other available services.
- Standalone bigquery-emulator is a focused open-source BigQuery-compatible server.
Comparison Compare LocalCloud and LocalStack for local cloud development and AI agent sandboxes. LocalStack emulates AWS; LocalCloud emulates Google Cloud. Includes where LocalStack is the better choice.
- LocalStack targets AWS service APIs; LocalCloud targets Google Cloud service APIs.
- LocalCloud currently lists 27 available Google Cloud service guides in one Docker image.
Comparison Compare LocalCloud and localgcp for running Google Cloud services locally, including packaging, service coverage, licensing, and where localgcp is the better choice.
- Both projects target the same problem: Google Cloud APIs without a cloud project.
- LocalCloud currently lists 27 available service guides with per-operation compatibility status.
Glossary GCP emulator definition for local Google Cloud, AI agent, and LocalCloud workflows, with examples, caveats, and related resources.
- Can be official, third-party, custom, or a local facade.
- Usually requires SDK endpoint overrides.
Glossary AI agent sandbox definition for local Google Cloud, AI agent, and LocalCloud workflows, with examples, caveats, and related resources.
- LocalCloud is a GCP API sandbox, not a universal shell sandbox.
- Hosted sandboxes and LocalCloud can be complementary.
Glossary MCP server definition for local Google Cloud, AI agent, and LocalCloud workflows, with examples, caveats, and related resources.
- LocalCloud exposes its runtime-owned MCP server at the canonical /mcp endpoint.
- Use the localcloud mcp stdio bridge when an MCP client cannot connect with Streamable HTTP.
Glossary Agentic CI definition for local Google Cloud, AI agent, and LocalCloud workflows, with examples, caveats, and related resources.
- LocalCloud jobs should fail closed on missing health or env vars.
- Do not mix local emulator checks with deployment secrets.
Glossary Credentialless cloud development definition for local Google Cloud, AI agent, and LocalCloud workflows, with examples, caveats, and related resources.
- Useful for inner-loop tests and demos.
- Not a replacement for production authorization tests.
Glossary BigQuery emulator definition for local Google Cloud, AI agent, and LocalCloud workflows, with examples, caveats, and related resources.
- Coverage varies by emulator.
- Use real BigQuery for full production semantics.
Glossary Service emulator definition for local Google Cloud, AI agent, and LocalCloud workflows, with examples, caveats, and related resources.
- Emulators trade managed-cloud behavior for speed and safety.
- Document supported and unsupported calls.
Glossary Localhost cloud API definition for local Google Cloud, AI agent, and LocalCloud workflows, with examples, caveats, and related resources.
- Environment variables are the usual routing mechanism.
- Unset overrides before real-cloud validation.
Glossary Agent environment definition for local Google Cloud, AI agent, and LocalCloud workflows, with examples, caveats, and related resources.
- An agent environment has two halves: an execution boundary and a dependency boundary.
- Code sandboxes such as E2B, Modal, or Docker sandboxes provide the execution boundary.
Glossary Agent sandbox vs cloud emulator definition for local Google Cloud, AI agent, and LocalCloud workflows, with examples, caveats, and related resources.
- A sandbox with real cloud credentials can still create real cloud resources and real charges.
- An emulator without a sandbox still lets generated shell commands touch the host.
Glossary Credentialless agent testing definition for local Google Cloud, AI agent, and LocalCloud workflows, with examples, caveats, and related resources.
- Removes the blast radius of an agent calling a destructive cloud API.
- Does not remove the need to validate the same code against real Google Cloud before release.
Glossary Local cloud API surface definition for local Google Cloud, AI agent, and LocalCloud workflows, with examples, caveats, and related resources.
- Measure a local runtime by its operation-level surface, not by a service count.
- LocalCloud publishes per-operation status on each service page and the compatibility matrix.
Glossary Sandboxed cloud SDK definition for local Google Cloud, AI agent, and LocalCloud workflows, with examples, caveats, and related resources.
- Routing is normally done with emulator environment variables loaded into the process.
- Some clients ignore those variables and need explicit endpoint configuration.
Glossary Cloud emulator definition for local Google Cloud, AI agent, and LocalCloud workflows, with examples, caveats, and related resources.
- In this documentation, cloud emulator always means an emulator of cloud service APIs.
- Emulators trade managed-cloud fidelity for speed, isolation, and zero cloud cost.
Demo post A practical Claude Code workflow for starting LocalCloud, routing Google Cloud SDKs to localhost, and validating agent-written code before real GCP.
- Demo target: one repo, one local service check, one production caveat.
- Avoid credentials in the prompt and commands.
Demo post How to decide between official Google emulators and LocalCloud when AI agents need local GCP validation.
- Use official emulators for single-service fidelity when they fit.
- Use LocalCloud for multi-service local-cloud workflows.
Demo post Use LocalCloud BigQuery to test agent-written datasets, SQL, and pipeline checks locally before validating in real BigQuery.
- Use BIGQUERY_EMULATOR_HOST for local SDK routing.
- Test representative query paths, not production scale.