Skip to content
| Marketplace
Sign in
Visual Studio Code>Machine Learning>Ray ClusterNew to Visual Studio Code? Get it now.
Ray Cluster

Ray Cluster

Mohammad Ramiz

|
1 install
| (0) | Free
See your Ray cluster's nodes, jobs, resources and problems without leaving VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Ray Cluster for VS Code

See your Ray cluster from inside VS Code: nodes, jobs, resources and the problems that usually break clusters, without switching to a browser or terminal.

Features

  • Status bar summary: node count, reserved CPUs and GPUs, and running jobs. It turns yellow or red when something needs attention, and the tooltip lists what.
  • Ray sidebar with four views:
    • Cluster: dashboard link, Ray version, a copyable ray start --address=… join command, and totals for CPU, GPU, memory, object store and jobs.
    • Health: problems found automatically:
      • Ray version mismatch between this machine and the cluster, with the pip install fix
      • a head node advertising an address other machines can't reach (127.0.0.1, the Docker bridge)
      • dead nodes, with Ray's reason
      • tasks waiting for resources, and whether they can ever run (for example, asking for a GPU on a CPU-only cluster)
      • fully reserved CPUs, hosts close to running out of memory, and recent job failures
    • Nodes: every node with its role, reserved resources, host CPU and memory load, and per-GPU use and memory. Dead nodes show why they died.
    • Jobs: submitted jobs with status, age and duration. Click a job to open its logs; stop a running job from its inline button.
  • Submit Current File as Job: the ▶ menu on a Python file runs ray job submit --working-dir . -- python <file> in a terminal, so your workspace code runs on the cluster.
  • Run doctor: runs ray ui doctor --mesh when your Ray has the ray ui command, otherwise ray status.

Setup

  1. Start Ray on the head node with a dashboard other machines can reach:
    ray start --head --node-ip-address=<head-ip> --dashboard-host=<head-ip>
    
  2. In VS Code, run Ray: Connect to Cluster… and enter http://<head-ip>:8265. If Ray runs on this machine, the default http://127.0.0.1:8265 works.

Settings

Setting Default
ray.dashboardUrl http://127.0.0.1:8265 Head node's dashboard. A bare IP gets port 8265.
ray.refreshIntervalSeconds 3 Refresh rate while reachable. It backs off to 15 seconds while offline.
ray.authTokenPath For clusters with token auth. Falls back to RAY_AUTH_TOKEN, then RAY_AUTH_TOKEN_PATH, then ~/.ray/auth_token.
ray.rayExecutable ray The ray CLI to use for submitting jobs and version checks, e.g. a virtualenv's ray.
ray.showStatusBar true Show the status bar summary.

How it works

The extension only reads Ray's dashboard HTTP API (/api/version, /api/v0/nodes, /api/cluster_status, /nodes?view=summary, /api/jobs/). It needs no Python packages and works with remote clusters. The auth token is sent only as an Authorization header and is never logged or written anywhere. Stopping a job asks for confirmation first.

Development

npm install
npm test                                  # unit tests
RAY_DASHBOARD_URL=127.0.0.1 npm test      # plus tests against a running cluster
npx vsce package                          # builds the .vsix

License

Apache-2.0. See LICENSE.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft