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

Yandex Cloud CLI

$ yc Official High Risk
Yandex Cloud · Cloud & Infra · Proprietary · macos / linux / windows

Yandex Cloud CLI (yc) manages compute VMs, Managed Kubernetes, serverless functions, VPCs, and IAM across Yandex Cloud. Built-in --format json, --profile isolation, --no-user-output, and service-account key auth make it reliable for headless automation.

FCRS-1.0 Score
83 /100
Good
Medium Confidence
Zero-Friction Install
brew install yandex-cloud-cli
CLI vs MCP Decision CLI Preferred vs MCP

yc --format json exposes the full Yandex Cloud control plane directly with familiar gcloud-like subcommands and zero MCP overhead.

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 22 / 25

Global --format json, --no-user-output stderr suppression, YC_TOKEN / service-account key auth, and predictable gcloud-style verb structure.

  • Global --format json and --no-user-output flags
  • Supports headless service-account key files and YC_TOKEN
Trust & Safety 20 / 25

Supports isolated --profile contexts and least-privilege service accounts, though cloud resource deletion and billing operations are irreversible.

  • Profile and service-account IAM scoping
Setup & Portability 13 / 15

Available via brew install yandex-cloud-cli and official install script across macOS, Linux, and Windows, though closed-source distribution.

  • Supported on macOS, Linux, and Windows via Homebrew and installer
Utility & Efficiency 13 / 15

Complete coverage of Yandex Cloud APIs in one binary with consistent --format json.

  • Unified CLI covering compute, k8s, serverless, VPC, and IAM
Maintenance & Lineage 8 / 10

Official first-party Yandex Cloud CLI, though proprietary rather than open-source.

  • First-party vendor CLI distributed by Yandex Cloud
Docs & Verifiability 7 / 10

Complete online CLI reference and built-in --help, though some edge error messages skew Russian/regional docs.

  • Published English CLI reference at yandex.cloud/en/docs/cli/

Security, Auth & Guardrails

Auth Modes
OAuth Browser Service Account Config File Env API Key
Credential Storage

Stores profiles in ~/.config/yandex-cloud/config.yaml and accepts YC_TOKEN, service account authorized keys (--service-account-key-file), or metadata IAM tokens.

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

Proprietary free official CLI; provisioning VMs, Managed Kubernetes, or storage incurs Yandex Cloud billing.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Yandex Cloud CLI (yc) Agent Rules
- Always pass `--format json` and `--no-user-output` on automated commands.
- Pin `--profile` and `--folder-id` explicitly before mutations.
- Never run `yc ... delete` or `yc ... stop` without explicit user approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

List compute instances as JSON
yc compute instance list --format json

Returns compute VM IDs, zones, statuses, and network addresses as structured JSON.

Inspect active CLI profile configuration
yc config list --format json

Displays active cloud-id, folder-id, and zone settings in JSON.

Controlled Writes & Previews

Configure a dedicated service-account profile
yc config profile create sa-agent && yc config set service-account-key sa-key.json

Isolates agent permissions to a scoped service-account profile rather than a user OAuth token.

Strengths for Agents

  • + Consistent --format json across virtually all resource list/get commands.
  • + Headless service-account key files and --profile isolation fit CI and sandboxed agents.
  • + --no-user-output keeps stdout clean for JSON parsing.

Caveats & Pitfalls

  • ! Proprietary closed-source binary without a public source repository.
  • ! Lacks a global --dry-run flag across mutating resource commands.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI