Built for Agents

Give agents a place to compare infrastructure actions before provisioning, using estimated cost per hour, modeled latency and error rate, and resilience scores from failure experiments to decide: ship, don't ship, or ship with change. Connect through hosted MCP, the Go client, or the REST/x402 API.

REST API

Every simulation action is a JSON API call. Create simulations, run steps, inject failures, and read metrics programmatically without any browser interaction.

MCP Server

Hosted Streamable HTTP endpoint: https://www.cloudworldmodel.ai/mcp. No package installation is required. Configure your client with {"mcpServers":{"cloud-world-model":{"url":"https://www.cloudworldmodel.ai/mcp","headers":{"x-api-key":"<your CWM API key>"}}}}. Omit headers for the keyless demo; send x-api-key on initialize and every later session request for authenticated tools. Use tools/list for the current catalog. simulation.from_input is advertised publicly but requires a write key to execute; api.spec is authenticated-only.

Pay-per-request with x402

AI agents can pay for API calls in USDC over Base — no human-in-the-loop billing setup. The simulation returns 402 for unpaid calls, which the agent resolves autonomously.

Go client

go get github.com/canvascloudai/cwm-go@v0.1.0

HTTP clients

Use the REST API from any language, with a CWM API key or x402 payment on eligible REST routes. x402 is not an MCP payment mechanism. See /api-docs/openapi.json for the machine-readable API contract.

CLI

Install the cwm CLI to script simulation workflows in shell. Chain create → step → right-size in a single bash pipeline.