SkyPilot Nightly

1.0.0.dev20260415 · active · verified Thu Apr 16

SkyPilot is a system designed to run, manage, and scale AI workloads on any AI infrastructure. It offers a unified interface to leverage reserved GPUs, Kubernetes clusters, Slurm clusters, or over 20 cloud providers, abstracting away complex infrastructure burdens. The `skypilot-nightly` package provides the very latest features, bug fixes, and development builds, focusing on maximizing cost savings, GPU availability, and providing managed execution for AI tasks.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to define a simple task using the SkyPilot Python SDK and launch it on AWS. The task runs a basic 'Hello, SkyPilot!' command. SkyPilot automatically handles resource provisioning, setup, and execution. You can omit the `cloud=sky.AWS()` specification to allow SkyPilot to automatically select the cheapest and most available cloud resource.

import sky

task = sky.Task(
    run='echo "Hello, SkyPilot!"',
    resources=sky.Resources(cloud=sky.AWS())
)

# Launch the task on AWS. SkyPilot will provision resources and run the command.
# For multi-cloud optimization, remove 'cloud=sky.AWS()' and let SkyPilot choose.
cluster_name = "my-first-sky-cluster"
request_id = sky.launch(task, cluster_name=cluster_name)

print(f"Launched cluster '{cluster_name}' with request ID: {request_id}")
print(f"To view logs: sky logs {cluster_name}")
print(f"To stop and delete: sky down {cluster_name}")

# Example of checking status asynchronously
# from sky.client import sdk_async as sdk
# import asyncio
# async def get_status():
#     status = await sdk.status()
#     print(status)
# asyncio.run(get_status())

view raw JSON →