Claude CLI

Call the locally-installed, subscription-authenticated Claude CLI directly (no Anthropic API key)

Claude CLI

AI-generated

Summary

Runs the locally installed Claude CLI once for each incoming item, passing the prompt to claude -p and returning its output. Optionally extracts text from a PDF binary and appends it to the prompt before the call.

Inputs

  • Prompt (required) — Text passed to the Claude CLI.
  • Model — Optional model ID passed with --model; an empty value uses the CLI default.
  • Attach PDF — When enabled, extracts up to 4,000 characters of text from the PDF in the selected binary field and appends it to the prompt. Extraction failures are ignored.
  • Input Binary Field — Binary property containing the PDF; shown when Attach PDF is enabled. Defaults to data.
  • Timeout (ms) — Time limit for the Claude CLI process; defaults to 120,000 ms.

Output shape

One output item per input item, paired with its source item.

Each successful item contains json.success: true, trimmed CLI stdout in json.output, and trimmed stderr in json.error. If the CLI call fails and Continue On Fail is enabled, the item contains success: false, an empty output, and the error message; otherwise the node throws an error.

Links

Discussion