Quickstart¶
Get from zero to a running Ray cluster in under 5 minutes.
Prerequisites¶
- Python 3.10+
- One of:
- A Kubernetes cluster with the KubeRay operator installed
- Docker (for the local sandbox — no existing cluster needed)
1. Install Krayne¶
Verify the installation:
2. Connect to a cluster¶
Choose one of two paths:
Spin up a local k3s cluster with KubeRay pre-installed:

The sandbox requires Docker with at least 2 CPUs and 6 GB RAM.
Then run krayne init to select the sandbox kubeconfig:
Select "Sandbox kubeconfig" when prompted. Krayne auto-selects the default context:

3. Create your first cluster¶

Local access
To access cluster services from your machine, use krayne tun-open my-first-cluster to create localhost port-forwards. Use krayne tun-close my-first-cluster to stop.
This creates a cluster with sensible defaults:
- Head node: 15 CPUs, 48 Gi memory
- 1 worker: 15 CPUs, 48 Gi memory
- Services: Jupyter notebook + SSH enabled
4. Check your cluster¶
List all clusters:

Get detailed information:

5. Clean up¶
If you used the sandbox, you can tear it down:
What's next¶
- Core Concepts — understand Ray clusters, head/worker nodes, and the lifecycle
- Creating Clusters — GPU clusters, YAML configs, and the Python SDK
- Managing Clusters — scaling, describing, and deleting clusters
- Configuration — config sources, defaults, and YAML schema