WIP: feat: add official Claude API Messages provider #463

Draft
nsaspy wants to merge 1 commit from codex/claude-api-provider into feat/zai-provider-protocols
Owner

Adds a named Anthropic Messages API provider with deferred ANTHROPIC_API_KEY and x-api-key authentication. Preserves bearer authentication for the Z.AI Claude protocol and distinct provider identity. Depends on PR #460. Local exact-head checks passed: 1264/1264 deterministic tests, 16/16 benchmark deterministic, 15/15 deep experiment, runtime/load/CLI, diff check, and prolog-verify check. Native Anthropic streaming and live account conformance remain open; no ANTHROPIC_API_KEY is available in this environment.

Adds a named Anthropic Messages API provider with deferred ANTHROPIC_API_KEY and x-api-key authentication. Preserves bearer authentication for the Z.AI Claude protocol and distinct provider identity. Depends on PR #460. Local exact-head checks passed: 1264/1264 deterministic tests, 16/16 benchmark deterministic, 15/15 deep experiment, runtime/load/CLI, diff check, and prolog-verify check. Native Anthropic streaming and live account conformance remain open; no ANTHROPIC_API_KEY is available in this environment.
feat: add official Claude Messages API provider
Some checks failed
CI / REAL OpenRouter integration (pull_request) Has been skipped
CI / Deterministic unit and load checks (pull_request) Failing after 1m44s
Clean SWI pack install / Install and load copied pack (pull_request) Successful in 53s
Paid OpenRouter / Pinned paid OpenRouter integration (pull_request) Has been skipped
Nix flake / Flake package and clean runtime load (pull_request) Successful in 5m53s
Tree-sitter FFI / Direct SWI-Prolog Tree-sitter FFI (pull_request) Successful in 6m42s
6f444b71c6
Some checks failed
CI / REAL OpenRouter integration (pull_request) Has been skipped
CI / Deterministic unit and load checks (pull_request) Failing after 1m44s
Clean SWI pack install / Install and load copied pack (pull_request) Successful in 53s
Paid OpenRouter / Pinned paid OpenRouter integration (pull_request) Has been skipped
Nix flake / Flake package and clean runtime load (pull_request) Successful in 5m53s
Tree-sitter FFI / Direct SWI-Prolog Tree-sitter FFI (pull_request) Successful in 6m42s
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin codex/claude-api-provider:codex/claude-api-provider
git switch codex/claude-api-provider

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch feat/zai-provider-protocols
git merge --no-ff codex/claude-api-provider
git switch codex/claude-api-provider
git rebase feat/zai-provider-protocols
git switch feat/zai-provider-protocols
git merge --ff-only codex/claude-api-provider
git switch codex/claude-api-provider
git rebase feat/zai-provider-protocols
git switch feat/zai-provider-protocols
git merge --no-ff codex/claude-api-provider
git switch feat/zai-provider-protocols
git merge --squash codex/claude-api-provider
git switch feat/zai-provider-protocols
git merge --ff-only codex/claude-api-provider
git switch feat/zai-provider-protocols
git merge codex/claude-api-provider
git push origin feat/zai-provider-protocols
Sign in to join this conversation.
No description provided.