/lepton-cli:lepton-clifrom lepton-cli
Operates NVIDIA DGX Cloud Lepton via the `lep` CLI. Manages workspaces, endpoints, dev pods, batch jobs, fine-tuning, Ray/Slurm clusters, storage, secrets, nodes, ingress, templates, logs, and auth. Use when the user needs safe command-line access to Lepton resources.
Ships in lepton-cli. 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.
Use the globally installed lep command to operate NVIDIA DGX Cloud Lepton resources from the terminal.
Run commands directly:
lep <command> [args...]
Before doing real work, verify the CLI is available:
lep --help
If lep is missing, tell the user the global Lepton CLI is not available in the current environment and ask them to install or expose it on PATH. Do not attempt to download or install it yourself.
lep --help and lep <group> --help before any unfamiliar command.lep <group> <subcommand> --help for exact flags and required arguments.lep help output as authoritative for command behavior — command availability and flags vary by version.Lepton authentication is scoped to a single workspace. A logged-in lep CLI may have a default workspace, but that default must not be assumed when the user has not named a workspace.
The CLI may read local configuration and these environment variables:
LEP_API_URL — workspace URL used by lep.LEP_TOKEN — workspace auth token.LEP_WORKSPACE — default workspace name/display name.LEP_ENV — optional environment label.Rules:
lep workspace auth-status, lep workspace status, lep workspace list, lep workspace url, or lep workspace id.LEP_* environment variables when available.LEP_* variables above when using environment credentials. Do not substitute LEPTON_WORKSPACE_* names unless the installed lep help or local configuration proves this CLI version reads them.lep workspace token, print config files, echo tokens, or include tokens in final answers unless the user explicitly asks.lep endpoint create can print a newly generated API token.
Treat that output as a secret: do not quote it in commentary or final answers,
do not persist the transcript, and tell the user to save and rotate it through a
secure channel.lep workspace login -i <id> -t <token> when the user explicitly provides credentials and accepts that the token may be persisted by the CLI.lep command fails with FailedToOpenSocket, DNS, or other connection errors that look like a sandboxed network, surface the error to the user and ask whether to retry with broader network permission rather than silently retrying.--help.Destructive or high-impact commands include remove, delete, stop, stop-all, remove-all, rm, rmdir, update, restart, create, uploads/downloads to user-sensitive paths, and interactive connections (ssh and shell commands).
Workloads are endpoints/deployments, dev pods, batch jobs, fine-tuning jobs, Ray clusters, Slurm clusters, and Dynamo endpoints (see references/workloads.md). Any command that modifies or deletes an existing workload requires explicit confirmation before it runs — even when auto mode is active or the user has previously approved similar actions in the session. Authorization does not carry over between resources or invocations.
Before running the mutation, read the workload's current state with a narrow read-only command, then show the user: the exact lep command to be run, the target workload name, the workspace, and the current state. State what will change in one sentence (e.g., "About to delete endpoint foo in workspace bar — this is irreversible") and ask the user to confirm. Only execute the mutating command after an explicit yes. A waiver applies only to the single named workload — do not generalize it to other workloads or to a later command.
--output or when the command naturally emits structured JSON.--path, download, or upload, verify the source and destination before running.deployment may be available as an alias for endpoint.lep depl or lep pod sh are rejected.lep dynamo ..., not lep endpoint .... lep dynamo replica log returns a snapshot of a replica's recent lines rather than a stream.lep <group> --help before concluding it is unsupported.lep slurm cluster list and lep slurm job list; both lists accept repeatable --status filters, while cluster list also accepts repeatable --name substring filters. Use lep slurm cluster get --name <name> (or --id <namespace/name>), lep slurm job get --id <job-id> (or --name <job-name>), lep slurm job attempts ..., and lep slurm job log ... for detail. Add --output json where advertised when structured output is needed.lep pod shell, lep endpoint shell, lep job shell, and lep raycluster shell open the dashboard's web-terminal shell through the workspace API (no SSH key or Teleport client) and apply the dashboard's availability rules. Pass --replica when an endpoint or job has several running replicas; a pod shell uses its newest replica and a Ray cluster shell defaults to the head node. Archived jobs, platform-managed tuning jobs, and Dynamo endpoints have no shell.tsh v18+): lep pod ssh --transport teleport, lep job ssh, lep node ssh, lep slurm cluster ssh, lep slurm job ssh, and lep slurm devpod ssh --transport teleport. Pods on the new DevPod API and Jobs do not publish their Teleport proxy, so they use the active tsh profile or --teleport-proxy. The Slurm and node commands require a personal API token whose owner matches the Teleport sign-in.sbatch, squeue, scancel) after connecting to the cluster. The CLI's Slurm job API is intentionally read-only. lep slurm cluster shell --name <name> opens an interactive login-node shell through the workspace API, and lep slurm cluster ssh --name <name> connects to a login node through Teleport; treat both as high-impact under the confirmation rules above.lep slurm devpod. create takes --cluster <name-or-namespace/name>. For get, remove, shell, and ssh, --name and --id are mutually exclusive while --cluster is an optional scope that can also select the cluster's Dev Pod by itself. get displays configuration, identity, connection details, and a web link by default (--output json preserves the API record). ssh executes the platform-reported bastion command, or connects through Teleport with --transport teleport; shell uses the workspace API. Treat create, remove, and interactive connection commands as high-impact operations under the confirmation rules above.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
nvidia-dgx, lep-cli, cloud-management, workspace, endpoint-deployment
npx claudepluginhub leptonai/leptonai --plugin lepton-cliOther plugins' skills for the same job