Installation
Requirements
- Python 3.8 or later
- A Lightning AI account
Install
Install from PyPI:
pip install lightning-sdkFor model serving support:
pip install "lightning-sdk[serve]"Authentication
Log in via the CLI before using the SDK:
lightning loginThis stores credentials locally and is required for all API calls.
You can also set the LIGHTNING_API_KEY environment variable to authenticate
non-interactively in CI or headless environments.
Was this page helpful?
Thanks for the feedback.