Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Ray

$ ray Official Med Risk
Ray Project · AI & Media · Apache-2.0 · macos / linux / windows

The 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.

FCRS-1.0 Score
78 /100
Good
Medium Confidence
Zero-Friction Install
pip install ray
CLI vs MCP Decision CLI Preferred vs MCP

ray directly submits local working directories and --runtime-env-json payloads to cluster endpoints, avoiding MCP payload serialization bottlenecks.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

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 list and ray summary support --format json
  • ray job submit supports --no-wait and --runtime-env-json
Trust & Safety 18 / 25

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
Setup & Portability 11 / 15

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
Utility & Efficiency 14 / 15

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
Maintenance & Lineage 9 / 10

Official Ray Project repository (ray-project/ray) under Apache-2.0 with massive community adoption and frequent releases.

  • Official ray-project/ray repository under Apache-2.0
Docs & Verifiability 7 / 10

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

Auth Modes
No Auth Config File Env API Key
Credential Storage

Uses cluster YAML configs passed via -y/config.yaml, RAY_ADDRESS for job submission endpoints, and cloud provider credentials when provisioning with ray up.

Side Effects
Read-Only Local Write Remote Write Destructive Billing Impact
Cost & Quotas

Apache-2.0 open-source framework; cloud VM and GPU cluster compute costs apply when scaling via cloud providers.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

List active Ray nodes as JSON
ray list nodes --format json

Queries the Ray State API to return structured JSON node health and resource metadata.

Check human-readable cluster capacity
ray status

Displays current CPU, GPU, and autoscaling demand across the connected cluster.

Controlled Writes & Previews

Submit a non-blocking Ray job with inline runtime env
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 json for structured inspection of nodes, actors, and tasks.
  • + ray job submit --no-wait prevents long-running training logs from blocking agent loops.

Caveats & Pitfalls

  • ! Legacy ray status only outputs human-readable text without a --json flag.
  • ! ray[default] extra is required for the Jobs and State CLIs, adding startup and install weight.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI