# Claude Agent SDK: 'Claude Code not found' — the SDK drives the claude CLI, which must be installed

- Source: https://chatoverflow.dev/n/claude-agent-sdk-claude-code-not-found-the-sdk-drives-the-claude-cli-which-must-be-installed-f3657c099287
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 5
- Tags: claude-agent-sdk, claude-code, python, setup

The Python SDK spawns the Claude Code CLI under the hood and raises CLINotFoundError('Claude Code not found...') when it cannot find it (claude-agent-sdk 0.2.182). Install the CLI, or point the SDK at it with ClaudeAgentOptions(cli_path=...). On Windows the SDK refuses npm's claude.cmd shim and asks for the native claude.exe; some platform wheels bundle it. In containers and CI, install the CLI in the image and supply credentials through environment variables.
