First for AI agents and agent builders; also for infrastructure and platform teams and cloud architects. Compare estimated cost/hr, latency, error rate, and resilience before provisioning real cloud resources.
Use Case 1
Give agents a callable world model (MCP, REST, x402) to compare infrastructure actions using estimated cost/hr, latency, error rate, and resilience — without provisioning real cloud resources.
Exploring infrastructure actions against live resources can incur cloud costs and affect real user traffic.
Use simulated traffic patterns to compare actions and estimated outcomes. Check model assumptions and validate the resulting recommendations against your own workload before rollout.
Key Endpoints
Quick Start
# Requires Bash, curl and jq. Set CWM_BASE_URL to your CWM origin and CWM_API_KEY to a key with read/write scopes and available credits. These are authenticated, metered API calls, not the no-key demo.# Creates an owned simulation and a cloned RL environment, then takes one scale-out step (not a full training loop).set -euo pipefail: "${CWM_BASE_URL:?Set CWM_BASE_URL}": "${CWM_API_KEY:?Set CWM_API_KEY}"CWM_BASE_URL="${CWM_BASE_URL%/}"request() {curl --fail-with-body -sS --max-time 60 "$CWM_BASE_URL$2" \-X "$1" -H "Authorization: Bearer $CWM_API_KEY" \-H "Content-Type: application/json" "${@:3}"}sim=$(request POST "/api/simulations" --data "{\"name\": \"use-case-lab\",\"traffic\": 100,\"resources\": [{\"id\": \"web\",\"type\": \"compute\",\"name\": \"Web server\",\"provider\": \"aws\",\"location\": {\"regionKey\": \"us-east-1\",\"zoneKey\": \"us-east-1a\"},\"characteristics\": {\"size\": \"t3.medium\",\"autoscaling\": false}}],\"connections\": []}")SIM_ID=$(jq -er '.id' <<< "$sim")env=$(request POST "/api/rl/environments" --data "{\"simulationId\": \"$SIM_ID\",\"episodeConfig\": {\"maxSteps\": 1000,\"initialTraffic\": 100,\"enableFailures\": false}}")ENV_ID=$(jq -er '.environment.id' <<< "$env")result=$(request POST "/api/rl/environments/$ENV_ID/step" --data "{\"action\": {\"type\": \"scale_out\",\"parameters\": {\"instanceCount\": 1}}}")jq . <<< "$result"
Use Case 2
Review proposed architecture and scaling changes before rollout, with modeled cost, latency, errors, and resilience evidence in the places you already work (PR, ticket, Slack).
Discovering under-provisioning during a real launch or promotion, scrambling to scale reactively, and absorbing the revenue impact of a degraded user experience.
Run what-if scenarios against any traffic shape in seconds. Get specific SLA violation windows and recommended threshold values before a single line of config changes in production.
Key Endpoints
Quick Start
# Requires Bash, curl and jq. Set CWM_BASE_URL to your CWM origin and CWM_API_KEY to a key with read/write scopes and available credits. These are authenticated, metered API calls, not the no-key demo.# Validates a traffic forecast. For threshold recommendations, use /api/predictions/optimize-thresholds with the same body instead.set -euo pipefail: "${CWM_BASE_URL:?Set CWM_BASE_URL}": "${CWM_API_KEY:?Set CWM_API_KEY}"CWM_BASE_URL="${CWM_BASE_URL%/}"request() {curl --fail-with-body -sS --max-time 60 "$CWM_BASE_URL$2" \-X "$1" -H "Authorization: Bearer $CWM_API_KEY" \-H "Content-Type: application/json" "${@:3}"}sim=$(request POST "/api/simulations" --data "{\"name\": \"use-case-lab\",\"traffic\": 100,\"resources\": [{\"id\": \"web\",\"type\": \"compute\",\"name\": \"Web server\",\"provider\": \"aws\",\"location\": {\"regionKey\": \"us-east-1\",\"zoneKey\": \"us-east-1a\"},\"characteristics\": {\"size\": \"t3.medium\",\"autoscaling\": false}}],\"connections\": []}")SIM_ID=$(jq -er '.id' <<< "$sim")job=$(request POST "/api/predictions/validate" --data "{\"simulationId\": \"$SIM_ID\",\"trafficForecast\": {\"name\": \"Launch ramp\",\"dataPoints\": [{\"timestamp\": 0,\"rps\": 100},{\"timestamp\": 300,\"rps\": 12000},{\"timestamp\": 3900,\"rps\": 12000}]},\"testSteps\": 100}")JOB_ID=$(jq -er '.job.id' <<< "$job")completed=falsefor ((attempt=0; attempt<300; attempt++)); dostatus=$(request GET "/api/predictions/jobs/$JOB_ID")state=$(jq -er '.status' <<< "$status")case "$state" incompleted) completed=true; break ;;failed|cancelled) echo "$status" >&2; exit 1 ;;esacsleep 2doneif [[ "$completed" != true ]]; then echo "Polling timed out; job may still be running." >&2; exit 1; firesult=$(request GET "/api/predictions/jobs/$JOB_ID/results")jq . <<< "$result"
Use Case 3
Run right-sizing on simulated workloads. Compare instance types, spot over-provisioning, and quantify savings before changing real infra.
Changing instance sizes in production before comparing cost savings with the throughput and capacity trade-offs.
Run an owned simulation with representative traffic, then compare current instance sizes with proposed sizes, estimated hourly rates, savings percentages, and trade-off notes. Recommendations are modeled estimates; test peak traffic before applying a change.
Key Endpoints
Quick Start
# Requires curl and jq. Set CWM_BASE_URL to your CWM origin,# CWM_API_KEY to your key, and SIM_ID to an owned simulation.# First run that simulation with representative traffic and inspect its metrics.: "${CWM_BASE_URL:?Set CWM_BASE_URL}": "${CWM_API_KEY:?Set CWM_API_KEY}": "${SIM_ID:?Set SIM_ID}"# 1. Read current instance sizes (no resources changed)simulation=$(curl --fail-with-body -sS \"$CWM_BASE_URL/api/simulations/$SIM_ID" \-H "Authorization: Bearer $CWM_API_KEY") || exit 1# 2. Get modeled right-sizing recommendationshints=$(curl --fail-with-body -sS \"$CWM_BASE_URL/api/simulations/$SIM_ID/right-sizing-hint" \-H "Authorization: Bearer $CWM_API_KEY") || exit 1# 3. Compare current vs. proposed sizes and estimated savingsjq --argjson sim "$simulation" 'if .hasHint then.hints[] | . as $hint |($sim.resources | map(select(.id == $hint.affectedResourceId)) | first) as $resource |{resource: .affectedResourceName,currentSize: $resource.characteristics.size,proposedSize: .recommendedSlug,estimatedHourlyRate: .hourlyRate,estimatedSavingsPct: .estimatedSavingsPct,reason, tradeOffNote}else {message: "No right-sizing recommendation for the current modeled state."}end' <<< "$hints"# Savings are estimates, not a bill. Review trade-offs and test peak traffic.# A cross_provider_alternative is a migration option, not a direct resize.
Use Case 4
Generate and score architecture variants across AWS, GCP, Azure, OCI, and DigitalOcean — cost, latency, and resilience side by side.
Running parallel production workloads on multiple providers for weeks, or relying on rough estimates that miss provider-specific pricing nuances and latency trade-offs.
Evaluate every provider combination and traffic-split ratio in minutes. Identify potential, model-estimated savings for your workload while comparing detailed per-strategy cost, latency, and vendor lock-in scores.
Key Endpoints
Quick Start
# Requires Bash, curl and jq. Set CWM_BASE_URL to your CWM origin and CWM_API_KEY to a key with read/write scopes and available credits. These are authenticated, metered API calls, not the no-key demo.# Explores an explicit workload profile; this endpoint does not consume a simulationId. Costs are modeled estimates.set -euo pipefail: "${CWM_BASE_URL:?Set CWM_BASE_URL}": "${CWM_API_KEY:?Set CWM_API_KEY}"CWM_BASE_URL="${CWM_BASE_URL%/}"request() {curl --fail-with-body -sS --max-time 60 "$CWM_BASE_URL$2" \-X "$1" -H "Authorization: Bearer $CWM_API_KEY" \-H "Content-Type: application/json" "${@:3}"}job=$(request POST "/api/multi-cloud/explore" --data "{\"workloadProfile\": {\"computeInstances\": 8,\"databaseInstances\": 1,\"storageGB\": 100,\"trafficRPS\": 5000,\"latencyRequirementMs\": 100,\"primaryRegion\": \"us-east-1\",\"sourceProvider\": \"aws\"},\"optimizationWeights\": {\"cost\": 0.5,\"latency\": 0.3,\"vendorLockIn\": 0.2}}")JOB_ID=$(jq -er '.job.id' <<< "$job")completed=falsefor ((attempt=0; attempt<300; attempt++)); dostatus=$(request GET "/api/multi-cloud/jobs/$JOB_ID")state=$(jq -er '.status' <<< "$status")case "$state" incompleted) completed=true; break ;;failed|cancelled) echo "$status" >&2; exit 1 ;;esacsleep 2doneif [[ "$completed" != true ]]; then echo "Polling timed out; job may still be running." >&2; exit 1; firesult=$(request GET "/api/multi-cloud/jobs/$JOB_ID/results")jq . <<< "$result"
Use Case 5
Inject AZ outages, database failures, and latency spikes to evaluate cost, latency, errors, and resilience before rollout. Chaos is the method; the outcomes are the decision.
Expensive game days with real production risk, manual failure simulation, and no repeatable way to measure resilience scores across architecture changes.
Inject supported failures into a virtual architecture. Review modeled resilience scores, vulnerabilities, and remediation recommendations alongside estimated cost, latency, and errors — without touching production.
Key Endpoints
Quick Start
# Requires Bash, curl and jq. Set CWM_BASE_URL to your CWM origin and CWM_API_KEY to a key with read/write scopes and available credits. These are authenticated, metered API calls, not the no-key demo.# Creates an owned single-region simulation and tests a modeled AZ outage. No real cloud resources are changed.set -euo pipefail: "${CWM_BASE_URL:?Set CWM_BASE_URL}": "${CWM_API_KEY:?Set CWM_API_KEY}"CWM_BASE_URL="${CWM_BASE_URL%/}"request() {curl --fail-with-body -sS --max-time 60 "$CWM_BASE_URL$2" \-X "$1" -H "Authorization: Bearer $CWM_API_KEY" \-H "Content-Type: application/json" "${@:3}"}sim=$(request POST "/api/simulations" --data "{\"name\": \"use-case-lab\",\"traffic\": 100,\"resources\": [{\"id\": \"web\",\"type\": \"compute\",\"name\": \"Web server\",\"provider\": \"aws\",\"location\": {\"regionKey\": \"us-east-1\",\"zoneKey\": \"us-east-1a\"},\"characteristics\": {\"size\": \"t3.medium\",\"autoscaling\": false}}],\"connections\": []}")SIM_ID=$(jq -er '.id' <<< "$sim")job=$(request POST "/api/chaos/run" --data "{\"simulationId\": \"$SIM_ID\",\"scenarioId\": \"zone_failure\",\"duration\": 300}")JOB_ID=$(jq -er '.job.id' <<< "$job")completed=falsefor ((attempt=0; attempt<300; attempt++)); dostatus=$(request GET "/api/chaos/jobs/$JOB_ID")state=$(jq -er '.status' <<< "$status")case "$state" incompleted) completed=true; break ;;failed|cancelled) echo "$status" >&2; exit 1 ;;esacsleep 2doneif [[ "$completed" != true ]]; then echo "Polling timed out; job may still be running." >&2; exit 1; firesult=$(request GET "/api/chaos/jobs/$JOB_ID/results")jq . <<< "$result"