Skip to content

feat(claude-headless): add standalone headless Claude CLI provider#1

Merged
AlexManev merged 1 commit into
mainfrom
claude/openclaw-headless-mode-eb4fZ
Apr 5, 2026
Merged

feat(claude-headless): add standalone headless Claude CLI provider#1
AlexManev merged 1 commit into
mainfrom
claude/openclaw-headless-mode-eb4fZ

Conversation

@AlexManev

Copy link
Copy Markdown
Owner

Adds a new claude-headless extension that routes inference through the
local Claude CLI binary (claude -p --permission-mode bypassPermissions)
instead of the Anthropic API. This lets users who cannot use Anthropic
OAuth or API keys run OpenClaw using a locally authenticated Claude CLI
installation.

The extension registers:

  • A claude-headless CLI backend that spawns claude in headless/print
    mode with bypassPermissions (the modern replacement for the legacy
    --dangerously-skip-permissions flag).
  • A claude-headless provider plugin with a detect auth method that
    reads local Claude CLI credentials via readClaudeCliCredentialsCached
    and sets agents.defaults.model = claude-headless/claude-sonnet-4-6.

Users set up via: openclaw auth (select "Claude headless (local CLI)")
or manually set agents.defaults.model to a claude-headless/* ref.

Adds a new claude-headless extension that routes inference through the
local Claude CLI binary (claude -p --permission-mode bypassPermissions)
instead of the Anthropic API. This lets users who cannot use Anthropic
OAuth or API keys run OpenClaw using a locally authenticated Claude CLI
installation.

The extension registers:
- A claude-headless CLI backend that spawns claude in headless/print
  mode with bypassPermissions (the modern replacement for the legacy
  --dangerously-skip-permissions flag).
- A claude-headless provider plugin with a detect auth method that
  reads local Claude CLI credentials via readClaudeCliCredentialsCached
  and sets agents.defaults.model = claude-headless/claude-sonnet-4-6.

Users set up via: openclaw auth (select "Claude headless (local CLI)")
or manually set agents.defaults.model to a claude-headless/* ref.
@AlexManev AlexManev merged commit c17742b into main Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants