Skip to content

feat(node-provider): implement anthropic provider#195

Merged
calchiwo merged 1 commit intomainfrom
feat/node-anthropic-provider
Mar 22, 2026
Merged

feat(node-provider): implement anthropic provider#195
calchiwo merged 1 commit intomainfrom
feat/node-anthropic-provider

Conversation

@calchiwo
Copy link
Owner

Add Anthropic provider for the Node CLI.

Implements the provider using the same contract as existing providers and integrates with the provider registry and configuration system.

Changes

  • Implemented AnthropicProvider

  • Integrated provider into registry

  • Enabled usage via --llm anthropic

  • Added support for Anthropic config in config.toml

Provider Behavior

  • Requires api_key

  • Uses default model if not provided

  • Supports optional model override via config

  • Uses official Anthropic SDK

  • Returns generated text from messages.create

All Anthropic-specific logic is contained within the provider.

Usage

explainthisrepo owner/repo --llm anthropic

Configuration

[llm]
provider = "anthropic"

[providers.anthropic]
api_key = "..."
model = "claude-3-5-sonnet-20241022"

Notes

Model is optional and defaults to claude-3-5-sonnet-20241022

No changes to CLI or core generation pipeline were required

@calchiwo calchiwo added the node Pull requests that update the node code label Mar 22, 2026
@vercel
Copy link

vercel bot commented Mar 22, 2026

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

Project Deployment Actions Updated (UTC)
explainthisrepo Ready Ready Preview, Comment Mar 22, 2026 8:25pm

@calchiwo calchiwo merged commit 699a536 into main Mar 22, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

node Pull requests that update the node code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant