/nebius-cloud:nebius-serverless-endpointsfrom nebius-cloud
Deploys and manages inference endpoints on Nebius Serverless. Handles create, smoke-test, start, stop, teardown, and cost queries for vLLM or any container exposed over HTTPS.
Ships in nebius-cloud. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Deploy a container as a long-lived inference endpoint with the deterministic nebius ai endpoint create, smoke-test its managed URL, and — the part everyone forgets — account for the fact that it bills wall-clock from create to delete. Never the interactive ai create wizard.
Note: allowed-tools above pre-approves only reads. create, start, stop, and restart go through the normal permission flow and the workflow below.
These rules apply to every command in this skill. Full detail lives in the nebius-cloud-basics skill.
Agent identification. Export AI_AGENT before any Nebius CLI call, including preflight and --help. Keep non-empty harness-set value; unset or empty → set own harness slug. Every call must inherit it, including new shells.
CLI present and configured. Before the first Nebius call in a session:
nebius version # CLI installed (a subcommand — there is no --version flag)
nebius profile list # at least one profile; [default] marks the active one
nebius config get parent-id # project-...
nebius config get tenant-id # tenant-...
These skills require CLI 0.12.247 or newer; an individual skill may state a higher floor (the Serverless skills need 0.12.277) — the stricter number wins. If nebius version is older, stop and ask the user to update the CLI before relying on the commands or schemas below.
If any check fails or an ID comes back empty, stop and walk the user through CLI installation and profile setup: curl -sSL https://artifacts.nebius.cloud/cli/install.sh | bash, then nebius profile create --parent-id <project-id>. Print those commands for the user to run — do not run them yourself: the installer writes to their machine and the shown federation-profile command opens a browser and blocks. An expired session does not show up here; it surfaces on the first real API call, and re-auth is the same human task.
Resolve context first — never guess IDs. Nearly every call needs --parent-id, and the CLI does not say which scope it wants:
nebius profile current # which profile is active
nebius config get parent-id [-p <profile>] # project-... (project scope)
nebius config get tenant-id [-p <profile>] # tenant-... (tenant scope)
Compute resources are generally project-scoped; public-image discovery is region-scoped. Quota allowances may be project- or tenant-scoped. Capacity advice, capacity block groups, and capacity intervals are tenant-scoped. The wrong scope often returns empty lists or permission errors, not a helpful message. Pass -p <profile> explicitly whenever the user names a profile.
Output. Add --format json to API calls and parse that; the default table output is for humans. On paginated list calls, add --all only when --help exposes it. Some list-like commands differ: for example, compute image list-public requires --region and has no --all. Never pass -i/--interactive: it opens interactive entry or alternate-screen pagination and hangs unattended sessions. Never pass --follow (e.g. compute instance logs --follow, logging query --follow): it streams until killed and hangs an unattended session the same way.
Editing. Never run edit or edit-by-name: they open $EDITOR and hang in a non-interactive shell. Use update with explicit flags or update -f <file> instead.
Async operations. Mutations return an operation; by default the CLI blocks until it completes. With --async it returns an operation id — poll with nebius <service> <resource> operation wait <operation-id>.
Safety tiers. Every operation falls in exactly one tier; when a command fits two, the higher (more restrictive) tier wins.
| Tier | Operations | Behavior |
|---|---|---|
| A — read | list, get, get-by-name, batch-get, list-*, logs, --help | Run freely — unless the command emits credential material, which puts it in C whatever its verb. |
| B — gated write | create, update, start, stop, quota/capacity allowance changes | Print the fully resolved command verbatim, state what it changes and the cost implication, wait for explicit user confirmation, then run it exactly once. Never batch mutations; never retry one after an ambiguous failure. A command or rendered template carrying a literal secret is never printed and never run: it accepts key material, so it is Tier C — replace the literal with a secret selector, or hand the command to the human with the value left as a placeholder. |
| C — refuse | delete, purge, credential issuance (iam get-access-token, access keys; sole exception: iam auth-public-key generate is Tier B), any command that emits or accepts token/key material whatever its verb — a raw read whose output carries a token (secret-store payloads, an endpoint spec's auth token) included, -I/--impersonate-service-account-id (a global flag, valid on every command — including otherwise-free reads) | Do not run. Print the exact command for the human to run themselves and explain the blast radius. Exposure is the line, not handling: a credential captured into an unechoed shell variable and consumed inside the same compound command stays at its verb's own tier — what Tier C refuses is the value reaching tool output, the transcript, shell history, or a file. So the endpoint smoke test (`TOKEN=$(… |
Tool errors. Use the nebius-api-debug skill for debug logs and request Trace IDs.
Secrets. Never print or persist tokens, access keys, or the contents of ~/.nebius/credentials.json. Some Tier A reads carry credential material in their output: on a token-auth endpoint ai endpoint get/get-by-name return the bearer token at .spec.auth_token and ai endpoint list returns it for every item it lists, while job and endpoint specs carry plain --env values and registry passwords. Never read those raw — project the fields you need, e.g. | jq '{id: .metadata.id, state: .status.state, urls: .status.public_endpoints}', or | jq '.items[]? | {…}' on a list (the ? matters: an empty list can come back as bare {}, and .items[] on that aborts with "Cannot iterate over null").
Serverless tier additions: restart is Tier B like start/stop. endpoint delete is Tier C — but see The idle-cost rule: when an endpoint should die, saying so loudly is part of this skill's job. Commands here need CLI >= 0.12.277; if older, ask the user to run nebius update first (print it — never run it yourself).
An endpoint bills for every hour between create and delete — including idle time, including STARTING. A forgotten single-H100 endpoint is on the order of $90+/day (verify current prices at https://nebius.com/prices). Therefore, non-negotiable:
stop it (gated) or hand the user the delete command.--container-port HOST[:CONTAINER][/http|tcp|udp] (repeatable, default protocol http):
https:// URL per port; gRPC works over the same URL.tls://HOST:443 URL.The managed URLs are the canonical access path. --public (a raw public IP on the VM) is independent of them and almost never what you want — don't add it unless the user explicitly asks for a raw IP, and say why the managed URL is preferable (TLS, stable name, auth).
Default is --auth none — an open endpoint on the internet. For anything beyond a throwaway demo, recommend --auth token:
--auth token alone → the platform generates a random token (retrievable from the endpoint spec, not printed by you).--token-secret <selector> → token from MysteryBox (AUTH_TOKEN payload key) — the right choice for scripts; see nebius-serverless-data-secrets.--token <value> → caller-supplied; the user may set one themselves, but you never compose, print or run a command carrying the literal — it lands in the transcript and in the endpoint spec.Token-auth endpoints leak through get and list. The raw endpoint get/get-by-name output includes the token at .spec.auth_token, and endpoint list includes it for every endpoint it returns — one unfiltered list dumps every token in the project. Never run those commands unfiltered on a token-auth endpoint and never echo the token — always pipe through a jq filter that selects only the fields you need (see the workflow below).
--args is split on spaces, not commas (a comma-joined list arrives as one broken token), and the image ENTRYPOINT is prepended — the args must be valid for that entrypoint. The classic trap is vllm/vllm-openai, whose entrypoint is vllm: a bare --args "--model X" fails (no subcommand). The robust, verified form bypasses the entrypoint:
--container-command python3 \
--args "-m vllm.entrypoints.openai.api_server --model Qwen/Qwen3-0.6B --host 0.0.0.0 --port 8000"
Right: --args "--model X --port 8000" · Wrong: --args "--model,X,--port,8000".
Add --runner pooling (vLLM ≥ 0.14; older builds used --task embed), plus --trust-remote-code for models that ship custom code. This exposes /v1/embeddings, /pooling, /score, /rerank. Note /v1/models may 404 while the model is still loading, then 200 once ready — don't read the transient 404 as a failed deploy; confirm with a real request in the smoke test.
--preemptible runs the endpoint on a spot VM. With it you must choose how you pay — exactly one of three mutually-exclusive flags (GPU platforms only). A pricing model is required: a bare --preemptible is rejected at create with spec.pricing_model: pricing model must be specified for a preemptible instance.
--follows-spot-price — accept the current spot price, no cap; preempted only on capacity, not price.--spot-pricing-policy-id <id> — cap at a pricing policy's max bid; if the market rises above it the VM is preempted rather than billed higher. Get an existing id with nebius billing pricing-policy list --parent-id <project-id> --format json (its platform must match --platform); creating or changing a policy is a billing task — see nebius-billing.--on-demand — explicit regular VM (the default when --preemptible is absent); cannot be combined with --preemptible.Caution: an endpoint is a long-lived service, so a preemptible one can be reclaimed at any time → it goes STOPPED with no auto-restart (recover with nebius ai endpoint start <id>, gated). Use it only for serving that tolerates sudden interruption; keep anything user-facing on-demand. State the pricing model and its idle-cost implication in the deploy confirmation — the calculator (nebius-billing) quotes the live spot price (a spot flag plus --preemptible-on-preemption STOP) as well as on-demand, so state the actual spot rate.
nebius compute platform list --parent-id <project-id> --format json — the authoritative catalog; whatever it returns is what serverless accepts), auth choice, volumes/secrets.nebius ai endpoint get-by-name --name <name> --parent-id <project-id> --format json | jq '{id: .metadata.id, state: .status.state, urls: .status.public_endpoints}' — if it exists, report state and URL instead of double-creating (a duplicate is a second bill). The jq filter is not optional: the raw output carries .spec.auth_token.nebius ai endpoint create --parent-id <project-id> --name vllm-abc123 \
--image cr.eu-north1.nebius.cloud/e00example/vllm:latest \
--platform gpu-h100-sxm --preset 1gpu-16vcpu-200gb \
--container-port 8000/http --auth token --dry-run
The full flag surface (every valid flag, commented) is assets/endpoint-create.sh — build the command from it rather than improvising flags.--token or --registry-password value is neither printed nor run (Tier C) — use --auth token (platform-generated) or a --token-secret/--registry-secret selector instead.--async + poll endpoint get --id <id> --format json | jq '{state: .status.state, urls: .status.public_endpoints}' (model-pulling images take minutes; never logs --follow; never poll unfiltered — see the token warning above).URL=$(nebius ai endpoint get --id <id> --format json | jq -r '.status.public_endpoints[0]') \
&& TOKEN=$(nebius ai endpoint get --id <id> --format json | jq -r '.spec.auth_token') \
&& curl -sS -m 15 -H "Authorization: Bearer $TOKEN" "$URL"/<health-or-infer-path>
Never echo $TOKEN, never substitute the literal token into the curl. This is the Tier C carve-out, not an exception to it: the token is handled, never exposed. With --auth none, skip the TOKEN line and the header. With --token-secret, the token lives in MysteryBox, not in the spec — fetch it per nebius-serverless-data-secrets, or hand the curl to the user.
A deploy is not done until the URL answers. If it doesn't → nebius-serverless-troubleshooting, and remember the meter is running while you debug.stop (Tier B) parks the endpoint; start (Tier B) resumes it. Stopped endpoints stop the GPU bill — stopping is the default answer to "keep it around, not serving".endpoint update — changing image/preset/ports means create-new → smoke-test → then hand the user delete of the old one. Say this before starting so nobody expects in-place edits.delete (Tier C): print the command, note the managed URL dies with it.ssh into the endpoint exists for live debugging — last resort, see nebius-serverless-troubleshooting.Parsing output: filter list the same way as get (| jq '.items[]? | {id: .metadata.id, name: .metadata.name, state: .status.state, urls: .status.public_endpoints}'). Until MSPDEV-778 ships, an empty endpoint list prints bare {} — a missing items key means empty, which is why the filter needs .items[]? and not .items[] (the latter exits 5 on {}); errors print as plain text even with --format json — branch on exit code, read stderr.
nebius-serverless-data-secrets.nebius-serverless-troubleshooting.nebius-serverless-jobs.nebius-serverless-setup.What SKILL.md sets; muted values are Claude Code's defaults
14 skills in this plugin
/nebius-api-debugUse when investigating failed Nebius CLI commands, Terraform provider operations, or SDK calls./nebius-billingNebius billing - resource price estimates and preemptible-VM pricing policies. Use for "how much will this cost", "hourly/monthly price of a GPU VM", "current spot price", "estimate the price", "set a max spot price", "create a pricing policy", "cap my preemptible bid", "list pricing policies", "why is my policy BLOCKED" - nebius billing v1alpha1 calculator estimate for on-demand and live spot prices, and pricing-policy list/create/update/delete for the id behind --spot-pricing-policy-id./nebius-capacity-quotasGPU capacity advice and quota checks for Nebius. Use for "can I launch 8xB200 in us-central1-b", "what GPU capacity is currently advised", "how much quota do I have", "what's in our reservation", or "request a quota increase".npx claudepluginhub nebius/skills --plugin nebius-cloudOther plugins' skills for the same job