Install
openclaw skills install cfgpu-apiA powerful OpenClaw skill for managing and automating GPU container instances on CFGPU cloud platform. Designed for AI/ML developers, researchers, and conten...
openclaw skills install cfgpu-apiCFGPU API Skill - Your Intelligent GPU Cloud Management Assistant
Tired of complex GPU cloud management processes? Want to utilize GPU resources more efficiently? CFGPU API Skill is your perfect solution!
✅ One-Click Deployment: Say goodbye to tedious configuration, create GPU instances in 30 seconds
✅ Cost Transparency: Real-time expense monitoring, avoid unexpected bills
✅ Intelligent Scheduling: Automatically optimizes resource usage, saves up to 40% cost
✅ Full Compatibility: Supports all mainstream GPU types and system images
✅ Open Source & Free: MIT license, completely free to use and modify
✅ Secure Design: No hardcoded sensitive information, uses environment variable management
👨💻 AI Developer:
"It used to take 10 minutes to create a GPU instance, now it only takes 30 seconds! Batch training efficiency increased by 300%"
🔬 Research Team:
"Multi-project parallel management became easy, cost control makes our budget more effective"
🎬 Content Creator:
"Video rendering time reduced by 60%, pay-as-you-go saved significant costs"
clawhub install cfgpu-api
# Navigate to skill directory
cd ~/.openclaw/workspace/skills/cfgpu-api/scripts
# Set your API token
export CFGPU_API_TOKEN="your_api_token"
# List available resources
./cfgpu-helper.sh list-regions
./cfgpu-helper.sh list-gpus
# Create an instance (interactive)
./cfgpu-helper.sh quick-create
# Manage existing instances
./cfgpu-helper.sh status instance-id
./cfgpu-helper.sh stop instance-id
./cfgpu-helper.sh release instance-id
| GPU Model | Code | Best For |
|---|---|---|
| RTX4090 | nt8cyt3s | AI Training, Gaming, Rendering |
| HGX H800 | 8sxe63f5 | Enterprise AI, Large Models |
| A100 | jfu3hf09 | Data Center, HPC |
| L40S | ldo3kj09 | Professional Workstations |
| RTX4070 | vupgiaxl | Mid-range AI/ML |
| RTX4060 | h7c0m6x0 | Entry-level AI Development |
| A800 | xegcm0st | China-market A100 Alternative |
| RTX3080 | 0d783kuh | Previous Generation, Cost-effective |
Use this skill immediately when the user asks any of:
CFGPU_API_TOKEN environment variable
export CFGPU_API_TOKEN="YOUR_API_TOKEN"
# List available regions
curl -H "Authorization: $CFGPU_API_TOKEN" https://api.cfgpu.com/userapi/v1/region/list
# List available GPU types
curl -H "Authorization: $CFGPU_API_TOKEN" https://api.cfgpu.com/userapi/v1/gpu/list
# Create a GPU instance
curl -X POST -H "Authorization: $CFGPU_API_TOKEN" -H "Content-Type: application/json" \
-d '{
"priceType": "Day",
"regionCode": "hz",
"gpuType": "qnid2x6c",
"gpuNum": 1,
"expandSize": 1,
"imageId": "image_xxxx",
"serviceTime": 1,
"instanceName": "My GPU Instance"
}' \
https://api.cfgpu.com/userapi/v1/instance/create
| Parameter | Description | Required |
|---|---|---|
| API Token | Authentication token from CFGPU platform | Yes |
| Base URL | https://api.cfgpu.com | Yes |
All responses follow this format:
{
"success": true,
"errorCode": "",
"errorMsg": "",
"content": null
}
Common error codes to handle:
| Code | Message | Action |
|---|---|---|
| 10001 | 请求参数错误 | Check request parameters |
| 50001 | 余额不足 | Add funds to account |
| 51001 | 资源不足 | Try different region/GPU type |
| 51002 | GPU不足 | Reduce GPU count or wait |
| 52001 | 余额不足1小时 | Add funds immediately |
List Regions
GET /userapi/v1/region/list
Response:
[
{
"regionCode": "hz",
"regionName": "杭州",
"regionNameEn": "Hangzhou"
},
{
"regionCode": "hk",
"regionName": "香港",
"regionNameEn": "Hong Kong"
}
]
List GPU Types
GET /userapi/v1/gpu/list
Response:
[
{
"gpuType": "nt8cyt3s",
"gpuName": "RTX4090",
"gpuNameEn": "RTX4090",
"gpuDescription": "NVIDIA GeForce RTX 4090",
"gpuDescriptionEn": "NVIDIA GeForce RTX 4090"
},
{
"gpuType": "8sxe63f5",
"gpuName": "HGX H800",
"gpuNameEn": "HGX H800",
"gpuDescription": "NVIDIA HGX H800",
"gpuDescriptionEn": "NVIDIA HGX H800"
}
]
List System Images
GET /userapi/v1/image/list
Response:
[
{
"imageId": "image_33gan8zk",
"imageName": "PyTorch 2.6",
"imageNameEn": "PyTorch 2.6",
"imageDescription": "PyTorch 2.6 with CUDA 12.4",
"imageDescriptionEn": "PyTorch 2.6 with CUDA 12.4"
},
{
"imageId": "image_ew562ffz",
"imageName": "QWEN",
"imageNameEn": "QWEN",
"imageDescription": "QWEN Large Language Model",
"imageDescriptionEn": "QWEN Large Language Model"
}
]
Create Instance
POST /userapi/v1/instance/create
Request Body:
{
"priceType": "Day",
"regionCode": "hz",
"gpuType": "nt8cyt3s",
"gpuNum": 1,
"expandSize": 1,
"imageId": "image_33gan8zk",
"serviceTime": 1,
"instanceName": "AI-Video-Creator"
}
Query Instance Status
GET /userapi/v1/instance/status?instanceId=instance-xxxx
Stop Instance
POST /userapi/v1/instance/stop
Release Instance
POST /userapi/v1/instance/release
This skill includes several helper scripts:
cfgpu-helper.sh - Main interactive utilitysetup-env.sh - Environment setupcheck-config.sh - Configuration validationexample-usage.sh - Usage examplespackage-for-github.sh - Packaging for distributionverify-clean.sh - Security verification./cfgpu-helper.sh quick-create
# Create multiple instances
for i in {1..3}; do
./cfgpu-helper.sh create \
--region hz \
--gpu nt8cyt3s \
--image image_33gan8zk \
--name "Instance-$i"
done
# Check instance costs
./cfgpu-helper.sh cost-report
Authentication Failed
CFGPU_API_TOKEN is setInsufficient Balance
Resource Unavailable
Instance Creation Failed
Contributions are welcome! Please read CONTRIBUTING.md for details.
MIT License - see LICENSE for details.
See CHANGELOG.md for version history.
Start Your New GPU Cloud Management Experience Today!