[PR #933] [CLOSED] Add support for LLM Gateway w/ Anthropic #9748

Closed
opened 2026-02-16 18:14:06 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/933
Author: @Karrq
Created: 7/12/2025
Status: Closed

Base: devHead: add-anthropic-llm-gateway-support


📝 Commits (10+)

  • c32b31c feat: add LLM Gateway support for Anthropic provider
  • c0c43b6 fix: add LLM Gateway env vars to Anthropic provider env list
  • 2d1adf5 fix: improve Anthropic LLM Gateway authentication handling
  • 6de6604 feat: add gateway-specific headers for LLM Gateway compatibility
  • f458314 feat: add comprehensive debugging for Anthropic LLM Gateway
  • 1659fcf fix: update authentication for claude-nexus-proxy compatibility
  • b0fb014 fix: properly handle Anthropic LLM Gateway with /v1 endpoint
  • dc4fb68 chore: remove debug logging from Anthropic LLM Gateway logic
  • 3c8ae17 chore: cleanup
  • 598caf3 fix: support both Authorization and x-api-key headers for Anthropic LLM Gateway

📊 Changes

1 file changed (+110 additions, -1 deletions)

View changed files

📝 packages/opencode/src/provider/provider.ts (+110 -1)

📄 Description

This PR adds support for LLM Gateways as described in anthropic docs https://docs.anthropic.com/en/docs/claude-code/llm-gateway


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/933 **Author:** [@Karrq](https://github.com/Karrq) **Created:** 7/12/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `add-anthropic-llm-gateway-support` --- ### 📝 Commits (10+) - [`c32b31c`](https://github.com/anomalyco/opencode/commit/c32b31c9d4288f81ddf35e276c29df5e32b1c99b) feat: add LLM Gateway support for Anthropic provider - [`c0c43b6`](https://github.com/anomalyco/opencode/commit/c0c43b66c5bd13556c64b9602f57fc5311112b81) fix: add LLM Gateway env vars to Anthropic provider env list - [`2d1adf5`](https://github.com/anomalyco/opencode/commit/2d1adf5bf123ec3073704405822ca54b85b631ae) fix: improve Anthropic LLM Gateway authentication handling - [`6de6604`](https://github.com/anomalyco/opencode/commit/6de6604f85f613fc48111e55eef8a3ed653d0cb8) feat: add gateway-specific headers for LLM Gateway compatibility - [`f458314`](https://github.com/anomalyco/opencode/commit/f458314680e39141630f655e42b5f0764b9c622a) feat: add comprehensive debugging for Anthropic LLM Gateway - [`1659fcf`](https://github.com/anomalyco/opencode/commit/1659fcf071c8abbe7c4edd0120fbb3184489dcbf) fix: update authentication for claude-nexus-proxy compatibility - [`b0fb014`](https://github.com/anomalyco/opencode/commit/b0fb0140bc61f01c7a4b804c7687f31c534cbdd5) fix: properly handle Anthropic LLM Gateway with /v1 endpoint - [`dc4fb68`](https://github.com/anomalyco/opencode/commit/dc4fb682442ba90088f39baafd7134ea5a79f44e) chore: remove debug logging from Anthropic LLM Gateway logic - [`3c8ae17`](https://github.com/anomalyco/opencode/commit/3c8ae171d2a8923441e9c8493facd8ad24ab726a) chore: cleanup - [`598caf3`](https://github.com/anomalyco/opencode/commit/598caf3375516d108ffecfe319d643fdc063df51) fix: support both Authorization and x-api-key headers for Anthropic LLM Gateway ### 📊 Changes **1 file changed** (+110 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/provider/provider.ts` (+110 -1) </details> ### 📄 Description This PR adds support for LLM Gateways as described in anthropic docs https://docs.anthropic.com/en/docs/claude-code/llm-gateway --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:06 -05:00
yindo closed this issue 2026-02-16 18:14:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9748