Skip to content
Back to skills

Leptonai

ASecurity

"Use the LeptonAI Python SDK and lep CLI for NVIDIA DGX Cloud

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
businesspythonbashnodeapi

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill leptonai --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Leptonai?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Leptonai
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-leptonai/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-leptonai)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: leptonai
description: "Use the LeptonAI Python SDK and lep CLI for NVIDIA DGX Cloud
  Lepton workspaces, endpoint calls, workloads, storage, secrets, ingress
  routing, and safe cloud-operation planning."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# LeptonAI

Use this repo skill when the task involves the `leptonai` Python package, the `lep` CLI, or NVIDIA DGX Cloud Lepton workspace operations: endpoints, jobs, dev pods, Ray clusters, fine-tuning jobs, storage, secrets, ingress, logs, or Python endpoint clients.

Do **not** run live Lepton cloud mutations just because this skill is loaded. Creating, updating, stopping, deleting, uploading, downloading, setting ingress endpoints, creating secrets, or opening `pod ssh` requires explicit user confirmation for the single target after a read-first plan.

## First checks

Install for normal use:

```bash
pip install -U leptonai
lep --help
```

For a source checkout or contributor context:

```bash
pip install -e .
# add tests only when needed for repo-native validation
pip install -e .[test]
```

Minimal Python import smoke:

```python
import leptonai
from leptonai.client import Client, local
print(leptonai.__version__)
print(local(8080))
```

Safe bundled checks that do not contact Lepton:

```bash
python scripts/leptonai_smoke_check.py --groups endpoint workspace job pod ingress storage
python scripts/inspect_leptonai.py
```

## Route by task

| User task | Read next |
| --- | --- |
| Discover `lep`, list command groups, classify read-only vs mutating commands, handle hidden aliases or abbreviations, scope outputs/logs | [sub-skills/cli-operations/SKILL.md](sub-skills/cli-operations/SKILL.md) |
| Log in, choose/switch workspaces, inspect auth state safely, build `APIClient`, troubleshoot 401/403/404/token/URL issues | [sub-skills/workspace-and-auth/SKILL.md](sub-skills/workspace-and-auth/SKILL.md) |
| Call a deployed endpoint from Python, inspect OpenAPI-derived `Client` paths, build SDK scripts with v2 API resources or Pydantic specs | [sub-skills/sdk-client/SKILL.md](sub-skills/sdk-client/SKILL.md) |
| Operate endpoints/deployments, dev pods, jobs, Ray clusters, fine-tunes, templates, resource shapes, logs, events, nodes | [sub-skills/workload-management/SKILL.md](sub-skills/workload-management/SKILL.md) |
| Plan storage/file transfer, secrets, ingress/canary routing, IP allowlists, tokens, mount/env/secret validation | [sub-skills/storage-secrets-ingress/SKILL.md](sub-skills/storage-secrets-ingress/SKILL.md) |
| Check package version, Python support, entry points, and refresh baseline | [references/package-overview.md](references/package-overview.md) and [references/repo-provenance.md](references/repo-provenance.md) |
| Diagnose install/import, CLI availability, version warnings, credentials, network, or stale skill concerns | [references/troubleshooting.md](references/troubleshooting.md) |

## Safety defaults

1. Prefer help and read-only commands before any mutation: `lep --help`, `lep <group> --help`, `lep workspace list/status/id/url`, `lep endpoint list/status`, `lep job list/get`, `lep ingress get`, or `lep storage ls`.
2. Expand hidden aliases and abbreviations to full names in plans. Prefer `lep endpoint` over hidden legacy `lep deployment`, and prefer `lep storage` over hidden `lep file` unless a user explicitly needs compatibility.
3. Redact tokens and secret values. Avoid `lep workspace token` unless the user explicitly asks to retrieve the raw token as the task.
4. Treat `create`, `update`, `stop`, `start`, `restart`, `remove`, `delete`, `rm`, `rmdir`, `upload`, `download` to sensitive local paths, `ingress set-endpoints`, and `pod ssh` as mutating or high-impact.
5. For mutations, read current state first, show exact command, workspace, target resource/path/domain, observed state, and one-sentence impact; ask for explicit confirmation for that target only.
6. Live Lepton operations require authenticated workspace context and may incur cost, alter traffic, expose endpoints, or delete cloud data.

## Important boundaries

- Local GPU hardware is not required to use the SDK/CLI package. Lepton workloads may request GPU resource shapes in the remote workspace, but that is a cloud-capacity decision, not a local CUDA install requirement.
- `Client(...)` for a real URL/workspace endpoint fetches OpenAPI metadata and makes network calls. Use `no_check=True` only when intentionally deferring that check.
- `APIClient()` and its resource methods are live workspace API clients. Do not instantiate or call them for mutation unless the workspace/auth route has established context and the user has approved the operation.
- This generated skill is self-contained. If the current package source, CLI commands, or tests differ from [references/repo-provenance.md](references/repo-provenance.md), refresh the skill rather than relying on stale routes.

Files in this skill

  • SKILL.md4.8 KB
  • references/package-overview.md5 KB
  • references/repo-provenance.md2.8 KB
  • references/repo-routing-metadata.json497 B
  • references/troubleshooting.md4.9 KB
  • references/workload-taxonomy.md2.9 KB
  • scripts/inspect_leptonai.py5.6 KB
  • scripts/leptonai_smoke_check.py5.9 KB
  • sub-skills/cli-operations/SKILL.md3.1 KB
  • sub-skills/cli-operations/references/cli-command-map.md6.2 KB
  • sub-skills/cli-operations/references/safety-and-output.md6.8 KB
  • sub-skills/cli-operations/references/troubleshooting.md5.1 KB
  • sub-skills/cli-operations/scripts/lep_help_snapshot.py7.4 KB
  • sub-skills/sdk-client/SKILL.md4.5 KB
  • sub-skills/sdk-client/references/api-resources.md7.7 KB
  • sub-skills/sdk-client/references/client-api.md7.1 KB
  • sub-skills/sdk-client/references/specs-and-models.md6.6 KB
  • sub-skills/sdk-client/references/troubleshooting.md7.9 KB
  • sub-skills/sdk-client/scripts/client_path_tree_demo.py3.2 KB
  • sub-skills/sdk-client/scripts/sdk_introspection.py5.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.