Skip to content

feat: add Claude CLI provider for Opus/Sonnet without API key#157

Open
jeff-atriumn wants to merge 2 commits intomainfrom
feat/claude-cli-provider
Open

feat: add Claude CLI provider for Opus/Sonnet without API key#157
jeff-atriumn wants to merge 2 commits intomainfrom
feat/claude-cli-provider

Conversation

@jeff-atriumn
Copy link
Copy Markdown
Member

Summary

  • Adds ClaudeCLIProvider that spawns the claude CLI for Opus/Sonnet models — same pattern Arqo uses
  • No ANTHROPIC_API_KEY needed; uses Claude Code's own OAuth auth automatically
  • Haiku stays on direct OAuth API (lightweight, fast)
  • Updates default model from claude-sonnet-4-5-20250514 (404'd) to claude-opus-4-6
  • Model routing: API key → Haiku stays direct OAuth → Sonnet/Opus spawn CLI

Test plan

  • LLM_PROVIDER=anthropic LLM_MODEL=claude-opus-4-6 node dist/cli.js social draft --product authored-systems --type insight generates posts without ANTHROPIC_API_KEY
  • LLM_MODEL=claude-haiku-4-5 still uses direct OAuth API

🤖 Generated with Claude Code

Adds ClaudeCLIProvider that spawns the claude CLI, enabling Opus and
Sonnet generation via Claude Code's own OAuth auth — no ANTHROPIC_API_KEY
needed. Haiku stays on direct OAuth API. Updates default model to
claude-opus-4-6.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cryyer Ready Ready Preview, Comment Mar 26, 2026 11:51pm

Request Review

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant