Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Query CAST AI cluster savings report and node inventory. Use when verifying CAST AI connectivity, viewing cluster cost savings, or listing managed nodes after onboarding. Trigger with phrases like "cast ai hello world", "cast ai savings", "cast ai cluster status", "test cast ai connection".
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 103% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 36% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -3% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 78% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -36% | 0% |
First API calls against the CAST AI REST API: list connected clusters, retrieve the savings report, and inspect node inventory. All examples use curl with the X-API-Key header -- no SDK required.
castai-install-auth setupCASTAI_API_KEY environment variable setbashcurl -s -H "X-API-Key: ${CASTAI_API_KEY}" \ https://api.cast.ai/v1/kubernetes/external-clusters \ | jq '.items[] | {id, name, status, providerType}'
Expected output:
json{ "id": "abc123-def456", "name": "production-eks", "status": "ready", "providerType": "eks" }
bashexport CASTAI_CLUSTER_ID="your-cluster-id" # Current month savings curl -s -H "X-API-Key: ${CASTAI_API_KEY}" \ "https://api.cast.ai/v1/kubernetes/clusters/${CASTAI_CLUSTER_ID}/savings" \ | jq '{ monthlySavings: .monthlySavings, savingsPercentage: .savingsPercentage, currentCost: .currentMonthlyCost, optimizedCost: .optimizedMonthlyCost }'
bashcurl -s -H "X-API-Key: ${CASTAI_API_KEY}" \ "https://api.cast.ai/v1/kubernetes/external-clusters/${CASTAI_CLUSTER_ID}/nodes" \ | jq '.items[] | { name: .name, instanceType: .instanceType, lifecycle: .lifecycle, cpu: .allocatableCpu, memory: .allocatableMemory, zone: .zone }'
bashcurl -s -H "X-API-Key: ${CASTAI_API_KEY}" \ "https://api.cast.ai/v1/kubernetes/clusters/${CASTAI_CLUSTER_ID}/policies" \ | jq '{ enabled: .enabled, unschedulablePods: .unschedulablePods.enabled, nodeDownscaler: .nodeDownscaler.enabled, spotInstances: .spotInstances.enabled }'
| Error | Cause | Solution | |-------|-------|----------| | 401 Unauthorized | Bad API key | Regenerate at console.cast.ai | | 404 Not Found | Wrong cluster ID | List clusters first to get correct ID | | Empty items array | No clusters connected | Run castai-install-auth to onboard | | agentStatus: offline | Agent not running | Check kubectl get pods -n castai-agent |
Proceed to castai-local-dev-loop to set up a development workflow.
Other measured skills in the registry, with their headline benchmark lift.