AgentSkillsCN

manage-prime-gpu-pods

仅需借助`prime` CLI,即可按需管理Prime Intellect的GPU容器。当工作需要探寻非即时可用的GPU资源、挑选最具性价比的配置方案、创建容器、查询容器状态、通过SSH远程连接、终止容器运行,或从终端命令中追溯容器的历史记录时,这一工具将助您轻松驾驭云端计算资源。

SKILL.md
--- frontmatter
name: manage-prime-gpu-pods
description: Manage Prime Intellect on-demand GPU pods using only the `prime` CLI. Use when work requires discovering non-spot GPU availability, selecting the cheapest matching configuration, creating pods, checking pod status, connecting with SSH, terminating pods, or auditing pod history from terminal commands.

Manage Prime Gpu Pods

Overview

Manage Prime Intellect GPU pods end-to-end with CLI-only workflows. Prefer automation-safe commands with --output json and use the bundled script to filter and select on-demand (non-spot) GPU configurations.

Workflow

  1. Verify CLI access and authentication.
bash
prime --version
prime config view
# Authenticate if needed
prime login --headless
# Or configure key directly
prime config set-api-key
  1. Discover matching GPU inventory in JSON.
bash
prime availability list \
  --gpu-type H100_80GB \
  --gpu-count 1 \
  --no-group-similar \
  --output json
  1. Select on-demand configurations and generate a create command.
bash
prime availability list \
  --gpu-type H100_80GB \
  --gpu-count 1 \
  --no-group-similar \
  --output json \
| python "$CODEX_HOME/skills/manage-prime-gpu-pods/scripts/select_on_demand_gpu.py" \
    --top 5 \
    --output table

prime availability list \
  --gpu-type H100_80GB \
  --gpu-count 1 \
  --no-group-similar \
  --output json \
| python "$CODEX_HOME/skills/manage-prime-gpu-pods/scripts/select_on_demand_gpu.py" \
    --output create-cmd
  1. Create the pod from a selected ID.
bash
prime pods create --id <ID> --name <pod-name> --yes

If disk, vcpus, memory, or image is not provided, the CLI prompts interactively for missing values.

  1. Monitor readiness and connect.
bash
prime pods list
prime pods status <pod-id>
prime pods ssh <pod-id>
  1. Terminate and review history.
bash
prime pods terminate <pod-id> --yes
prime pods history --output json

Execution Rules

  • Use prime availability list --output json for machine parsing instead of table output.
  • Use --no-group-similar when selecting a concrete purchasable configuration.
  • Treat on-demand as is_spot == false.
  • Sort matching on-demand candidates by price_value ascending when user asks for cheapest.
  • Use prime pods create --id <ID> as the canonical launch path from availability results.
  • Use prime pods status <pod-id> --output json for automation polling.
  • Use prime pods terminate <pod-id> --yes for deterministic cleanup.
  • Respect team context:
    • Persisted team: prime config set-team-id <team-id>
    • Per-command override: prime pods create --team-id <team-id> ...

References

  • Read references/prime-cli-command-map.md for a compact command/flag inventory derived from this repository.
  • Run scripts/select_on_demand_gpu.py to filter and rank non-spot configurations from prime availability list --output json.