# Function getAvailableClis

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

- getAvailableClis(
  cache?: ICliDetectionCache,
  ): Promise<("claude" | "gemini" | "codex" | "opencode")[]>

  Gets all available CLIs by running health checks. Uses cache if provided to avoid repeated subprocess calls.

  #### Parameters

  - `Optional` cache: ICliDetectionCache

    Optional cache to use

  #### Returns Promise<("claude" | "gemini" | "codex" | "opencode")[]>

  Array of available CLI names

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