lightning-llm-gateway
Installation
SKILL.md
Lightning AI LLM Gateway (Models API)
The LLM gateway gives one API + one bill for models from multiple providers. Model names are provider/model (see Finding model names). Import LLM from lightning_sdk.llm; it is not exported at package top level.
Setup & auth
# Use the Lightning AI CLI from the current env; install or upgrade it there if it's missing or older than 2026.9.18
v=$(lightning --version 2>/dev/null | sed -n 's/^Lightning CLI version //p')
[ -n "$v" ] && [ "$(printf '%s\n' 2026.9.18 "$v" | sort -V | head -1)" = 2026.9.18 ] \
|| uv pip install -U lightning-sdk || python3 -m pip install -U lightning-sdk
lightning --version # must print "Lightning CLI version …"; if not, see the table below
lightning login # or headless: export LIGHTNING_USER_ID=... LIGHTNING_API_KEY=...
This uses, and if needed installs into, the agent's current environment (project venv, conda env,
…); then call plain lightning … everywhere. If setup doesn't go cleanly: