---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/claude_code_cli/exceptions/variables/E_INVALID_CLAUDE_CODE_CLI_OPTIONS.md
description: >-
  Thrown when the resolved adapter options (constructor, executor overrides, or
  per-dispatch `stash.claudeCodeCli`) fail validation — including `extraArgs`
  security-flag rejection, the `apiKey`/`authToken` XOR violation, and the
  POSIX-only platform guard.
---

# Variable: E\_INVALID\_CLAUDE\_CODE\_CLI\_OPTIONS

```ts
const E_INVALID_CLAUDE_CODE_CLI_OPTIONS: CreatedException<[string]>;
```

Defined in: [src/batteries/llm/claude\_code\_cli/exceptions.ts:20](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/batteries/llm/claude_code_cli/exceptions.ts#L20)

Thrown when the resolved adapter options (constructor, executor overrides, or per-dispatch
`stash.claudeCodeCli`) fail validation — including `extraArgs` security-flag rejection, the
`apiKey`/`authToken` XOR violation, and the POSIX-only platform guard.
