Ray
$ ray Official Med RiskThe ray CLI starts local or multi-node clusters (ray start, ray up), submits packaged jobs via ray job submit, and inspects cluster resources with ray status and the Ray State CLI (ray list, ray summary). While ray status emits text tables, ray list and ray summary support --format json.
pip install ray ray directly submits local working directories and --runtime-env-json payloads to cluster endpoints, avoiding MCP payload serialization bottlenecks.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Ray State subcommands (ray list, ray summary) support --format json and ray job submit accepts --runtime-env-json, though legacy ray status lacks --json.
ray listandray summarysupport--format jsonray job submitsupports--no-waitand--runtime-env-json
Separates read-only state queries from job submission and cluster provisioning, though ray up and ray down can provision or tear down cloud VMs without a universal --dry-run.
- State API commands are strictly read-only
- Cluster lifecycle commands (
ray up/ray down) modify cloud infra
Distributed via PyPI (pip install ray), but carries heavy native C++/Python wheel dependencies and full State CLI requires ray[default].
- Large Python package with
ray[default]extra needed for dashboard/jobs CLI
Industry-standard CLI for distributed Python/AI workloads, covering local clusters, remote job submission, and fine-grained actor/task debugging.
- Covers cluster lifecycle,
ray job submit, and State API inspection
Official Ray Project repository (ray-project/ray) under Apache-2.0 with massive community adoption and frequent releases.
- Official
ray-project/rayrepository under Apache-2.0
Extensive Ray docs, though CLI documentation is split across Cluster CLI, Jobs CLI, and State CLI pages.
- Official Ray CLI reference at docs.ray.io
Security, Auth & Guardrails
Uses cluster YAML configs passed via -y/config.yaml, RAY_ADDRESS for job submission endpoints, and cloud provider credentials when provisioning with ray up.
Apache-2.0 open-source framework; cloud VM and GPU cluster compute costs apply when scaling via cloud providers.
# Ray CLI (ray) Agent Rules - Prefer `ray list <resource> --format json` over scraping `ray status` tables. - Pass `--no-wait` to `ray job submit` so stdout log streaming does not flood context. - Never run `ray down`, `ray stop`, or `ray up` on production clusters without explicit user approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
ray list nodes --format json
Queries the Ray State API to return structured JSON node health and resource metadata.
ray status
Displays current CPU, GPU, and autoscaling demand across the connected cluster.
Controlled Writes & Previews
ray job submit --no-wait --runtime-env-json '{"pip": []}' -- python train.py Submits a job and returns the submission ID immediately without streaming unbounded logs.
Strengths for Agents
- + State CLI (
ray list,ray summary) provides--format jsonfor structured inspection of nodes, actors, and tasks. - +
ray job submit --no-waitprevents long-running training logs from blocking agent loops.
Caveats & Pitfalls
- ! Legacy
ray statusonly outputs human-readable text without a--jsonflag. - !
ray[default]extra is required for the Jobs and State CLIs, adding startup and install weight.