Skip to content

Add Claude Code CLI as an LLM provider#64

Open
Builder106 wants to merge 1 commit into
Pickle-Pixel:mainfrom
SankofaForge-Hacks:feat/claude-code-llm-provider
Open

Add Claude Code CLI as an LLM provider#64
Builder106 wants to merge 1 commit into
Pickle-Pixel:mainfrom
SankofaForge-Hacks:feat/claude-code-llm-provider

Conversation

@Builder106

Copy link
Copy Markdown

What

Adds LLM_PROVIDER=claude_code so the scoring and tailoring stages can run through the local Claude Code CLI, with no API key required.

Why

ApplyPilot already requires the Claude Code CLI for the Tier 3 auto-apply stage. This lets users who have the CLI installed reuse it as the LLM backend for Tier 2 (scoring/tailoring) too, instead of also provisioning a Gemini/OpenAI key or a local model server.

Changes

  • llm.py: a claude_code backend on LLMClient that converts the OpenAI-style message list into a single prompt and shells out to the claude CLI. Selected when LLM_PROVIDER=claude_code.
  • config.py: tier detection treats LLM_PROVIDER=claude_code + a claude binary on PATH as a satisfied LLM backend (Tier 2), and the missing-backend hint mentions the option.
  • wizard/init.py: the init wizard offers claude_code as a provider choice and writes the env lines.

Notes

  • No new dependencies — uses the claude binary already documented for Tier 3.
  • Falls back cleanly: if claude isn't on PATH, the existing API-key/local-URL providers are unaffected.

Support LLM_PROVIDER=claude_code so scoring/tailoring can run through the
Claude Code CLI without an API key. Detects the claude binary in tier
checks, adds a claude_code branch to the init wizard, and wires the
provider into the LLM dispatch path.
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