# Function getCliForModelId

- getCliForModelId(
  modelId:
  | "claude-opus"
  | "claude-sonnet"
  | "claude-haiku"
  | "gemini-3-pro"
  | "gemini-pro"
  | "gemini-3-flash"
  | "gemini-flash"
  | "codex-5.3"
  | "codex-5.2"
  | "codex-5.1-mini"
  | "opencode-default"
  | "opencode-custom-opus"
  | "opencode-custom-sonnet"
  | "openrouter-nemotron-super"
  | "openrouter-qwen-coder",
  ): "claude"
  | "gemini"
  | "codex"
  | "opencode"
  | undefined

  Get the CLI name for a model ID.

  #### Parameters

  - modelId:
    | "claude-opus"
    | "claude-sonnet"
    | "claude-haiku"
    | "gemini-3-pro"
    | "gemini-pro"
    | "gemini-3-flash"
    | "gemini-flash"
    | "codex-5.3"
    | "codex-5.2"
    | "codex-5.1-mini"
    | "opencode-default"
    | "opencode-custom-opus"
    | "opencode-custom-sonnet"
    | "openrouter-nemotron-super"
    | "openrouter-qwen-coder"

  #### Returns "claude" | "gemini" | "codex" | "opencode" | undefined

  - Defined in packages/nexus-agents/src/config/model-availability.ts:175