# `ClaudeAgentSDK.Errors.CLIConnectionError`
[🔗](https://github.com/nshkrdotcom/claude_agent_sdk/blob/v0.9.2/lib/claude_agent_sdk/errors.ex#L170)

Raised when the SDK fails to connect to the Claude CLI process.

Common causes include:
- Working directory does not exist or is inaccessible
- Claude CLI crashed during startup
- Port/transport layer communication failure

## Fields

- `:message` - Human-readable error description
- `:cwd` - Working directory that was attempted (if available)
- `:reason` - Underlying error reason

# `t`
[🔗](https://github.com/nshkrdotcom/claude_agent_sdk/blob/v0.9.2/lib/claude_agent_sdk/errors.ex#L188)

```elixir
@type t() :: %ClaudeAgentSDK.Errors.CLIConnectionError{
  __exception__: true,
  cwd: String.t() | nil,
  message: String.t(),
  reason: term()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
