castai-hello-world

Featured

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".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# CAST AI Hello World ## Overview 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. ## Prerequisites - Completed `castai-install-auth` setup - `CASTAI_API_KEY` environment variable set - At least one cluster connected to CAST AI ## Instructions ### Step 1: List Connected Clusters ```bash curl -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" } ``` ### Step 2: Get Cluster Savings Report ```bash export 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 }' ``` ### Step 3: List Cluster Nodes ```bash curl -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 }' `...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category