feat: add direct Anthropic API support (CLAUDE-ANTHROPIC)#448
Merged
jmacAJ merged 1 commit intoaj-archipelago:mainfrom Jan 21, 2026
Merged
feat: add direct Anthropic API support (CLAUDE-ANTHROPIC)#448jmacAJ merged 1 commit intoaj-archipelago:mainfrom
jmacAJ merged 1 commit intoaj-archipelago:mainfrom
Conversation
Add ClaudeAnthropicPlugin for direct access to Anthropic's API at api.anthropic.com, bypassing the need for Google Vertex AI. Key differences from CLAUDE-4-VERTEX: - Uses x-api-key header authentication - Model specified in request body - anthropic-version header instead of body parameter - Stream parameter in request body Added models: - claude-sonnet-4: Claude Sonnet 4 via direct API - claude-45-sonnet: Claude 4.5 Sonnet via direct API - claude-45-opus: Claude 4.5 Opus via direct API All models support streaming, tool calling, vision, and document (PDF) input via the inherited Claude4VertexPlugin functionality. Includes unit tests and integration tests.
hammadsaj
approved these changes
Jan 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for direct access to Anthropic's API at
api.anthropic.com, without requiring Google Vertex AI.ClaudeAnthropicPluginextendsClaude4VertexPluginto reuse all message/content conversion logicCLAUDE-ANTHROPICclaude-sonnet-4,claude-45-sonnet,claude-45-opusKey differences from CLAUDE-4-VERTEX:
x-api-keyheader authentication (viaCLAUDE_API_KEYenv var)anthropic-versionheader instead of body parameterFeatures supported:
Files Changed
server/plugins/claudeAnthropicPlugin.js- New pluginserver/modelExecutor.js- Import and case statementconfig.js- Model configurations andclaudeApiKeyconfig entrytests/unit/plugins/claudeAnthropicPlugin.test.js- Unit teststests/integration/rest/vendors/claude_anthropic_direct.test.js- Integration testsTest Plan
npm test -- tests/unit/plugins/claudeAnthropicPlugin.test.jsCLAUDE_API_KEY):npm test -- tests/integration/rest/vendors/claude_anthropic_direct.test.jsclaude-45-sonnetmodel