Cycode CLI
$ cycode Official Med RiskCycode CLI is the MIT-licensed command-line client for Cycode's application security platform, unifying secrets, IaC, SCA, and SAST scans (-t secret|iac|sca|sast). It emits structured JSON via -o json and supports headless CI authentication via CYCODE_CLIENT_ID and CYCODE_CLIENT_SECRET alongside interactive cycode auth.
brew install cycode cycode scan -o json runs local pre-commit/CI scans cleanly via CLI, while Cycode's native MCP integration fits platform-wide alert triage.
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
Supports -o json structured output and env-var service authentication, though interactive cycode auth uses browser login and scans depend on Cycode backend connectivity.
-o jsonoutput withsummaryanddetectionsfields- Requires Cycode backend auth (
cycode author env client creds)
Hides secret values unless --show-secret is explicitly passed and performs read-only workspace scanning, though findings/metadata sync with the Cycode platform.
- Secrets masked by default; read-only local files
Available via brew install cycode, pip install cycode, and standalone binaries across macOS, Linux, and Windows.
- Homebrew, PyPI, and release binaries
Consolidates four scanner types (secret, iac, sca, sast) under one CLI interface.
- Multi-engine
-tscan selector
Actively maintained official Cycode CLI with frequent releases.
- Official cycodehq/cycode-cli repository
Detailed README and PyPI docs covering auth, proxy/CA settings, and scan subcommands.
- Official docs on github.com/cycodehq/cycode-cli
Security, Auth & Guardrails
Stores auth tokens in ~/.cycode/config.yaml via cycode auth, or reads CYCODE_CLIENT_ID / CYCODE_CLIENT_SECRET env vars.
MIT open-source CLI; requires a Cycode platform account and API credentials for cloud-backed scans.
# Cycode CLI Agent Rules - Never pass `--show-secret` so detected secrets stay masked in `-o json` outputs. - Configure `CYCODE_CLIENT_ID` and `CYCODE_CLIENT_SECRET` for headless runs instead of interactive `cycode auth`.
Agent-Ready Command Recipes
Safe Read-Only Queries
cycode -o json scan -t secret path .
Runs a secrets scan on . and returns a structured JSON summary and detections array without revealing raw secrets by default.
cycode -o json scan -t iac path infra/
Evaluates IaC files in infra/ against Cycode policies and outputs JSON detections.
Strengths for Agents
- + Masks detected secrets by default unless
--show-secretis passed. - + Single
-o jsonoutput schema acrosssecret,iac,sca, andsastscans.
Caveats & Pitfalls
- ! Requires Cycode account credentials (
cycode authorCYCODE_CLIENT_ID/CYCODE_CLIENT_SECRET); not a standalone offline scanner. - ! Interactive
cycode authopens a browser window.