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

Infisical CLI

$ infisical Official High Risk
Infisical · Security & Secrets · MIT · macos / linux / windows

infisical manages environment secrets against Infisical Cloud or self-hosted servers, injects them cleanly via infisical run -- <cmd>, and includes infisical scan for local secret-leak detection.

FCRS-1.0 Score
84 /100
Good
Medium Confidence
Zero-Friction Install
brew install infisical/get-cli/infisical
CLI vs MCP Decision CLI Preferred vs MCP

infisical run injects secrets straight into subprocesses while infisical scan runs offline—keeping credentials out of MCP traffic.

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

Supports --format=json on export/secrets, headless INFISICAL_TOKEN, and infisical run subprocess injection.

  • Machine identity tokens and infisical run subprocess injection
Trust & Safety 17 / 25

infisical run and scan are safe patterns, though infisical export or secrets outputs plaintext values unless avoided.

  • Plaintext exposure risk via export/secrets; remote write via set/delete
Setup & Portability 13 / 15

Distributed via brew, npm, deb/rpm repos, and GitHub binaries.

  • Cross-platform Go binary and npm wrapper
Utility & Efficiency 14 / 15

Combines self-hostable secrets injection with built-in git secret leak scanning.

  • Both run injection and scan secret detection in one CLI
Maintenance & Lineage 9 / 10

Actively developed official CLI (Infisical/infisical) with strong OSS traction.

  • Rapidly maintained MIT-licensed upstream
Docs & Verifiability 9 / 10

Clear CLI reference and Machine Identity docs at infisical.com/docs/cli/overview.

  • Well-organized official CLI documentation

Security, Auth & Guardrails

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

Uses OS keyring/config after infisical login, or INFISICAL_TOKEN / Machine Identity Universal Auth env vars in CI.

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

CLI is open-source (MIT); self-hostable core with free/paid Infisical Cloud plans.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Infisical CLI Agent Rules
- Prefer `infisical run --env=dev -- <cmd>` over `infisical export` or `secrets get --plain` so secret values stay out of stdout.
- Use `INFISICAL_TOKEN` machine identities scoped strictly to non-production environments.

Agent-Ready Command Recipes

Safe Read-Only Queries

Scan local repo for leaked secrets offline
infisical scan --exit-code=0

Runs Infisical's built-in secret scanner across the local repository.

Run app tests with secrets injected into subprocess
infisical run --env=dev -- npm test

Fetches dev environment secrets into child process memory without creating .env files.

Controlled Writes & Previews

Set a key in the dev environment
infisical secrets set FEATURE_FLAG=true --env=dev

Updates a single secret in the non-production dev environment.

Strengths for Agents

  • + Open-source, self-hostable secrets workflow with infisical run subprocess injection.
  • + Built-in infisical scan catches hardcoded secrets locally before commits.

Caveats & Pitfalls

  • ! Running infisical export or infisical secrets without care prints plaintext secrets into agent stdout.
  • ! Scope INFISICAL_TOKEN to dev to prevent touching prod secrets.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI