# Function createAllAdapters

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

- createAllAdapters(
  logger?: ILogger,
  codexTransport?: CliTransport,
  ): Map<"claude" | "gemini" | "codex" | "opencode", ICliAdapter>

  Creates all available CLI adapters. Uses MCP transport for Codex by default (preferred).

  #### Parameters

  - `Optional` logger: ILogger

    Optional shared logger

  - codexTransport: CliTransport = 'mcp'

    Transport for Codex (default: 'mcp')

  #### Returns Map<"claude" | "gemini" | "codex" | "opencode", ICliAdapter>

  Map of CLI name to adapter

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