# Function isCliAvailable

CLI Adapters exports - CLI integration with defensive parsing Split from index.ts for file size compliance (Issue #285)

- isCliAvailable(
  cli: "claude" | "gemini" | "codex" | "opencode",
  cache?: ICliDetectionCache,
  ): Promise<boolean>

  Checks if a CLI is available by running a health check. Uses cache if provided to avoid repeated subprocess calls.

  #### Parameters

  - cli: "claude" | "gemini" | "codex" | "opencode"

    CLI name to check

  - `Optional` cache: ICliDetectionCache

    Optional cache to use

  #### Returns Promise<boolean>

  True if CLI is healthy

  - Defined in packages/nexus-agents/src/cli-adapters/factory.ts:127