[PR #613] [MERGED] Changed handling of OpenRouter requests to add some custom headers so that it can see the app #9660

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/613
Author: @CiaranMcAleer
Created: 7/2/2025
Status: Merged
Merged: 7/2/2025
Merged by: @thdxr

Base: devHead: dev


📝 Commits (3)

  • 8af5a46 Changed handling of OpenRouter requests
  • 47c50b8 Removed Key check as per code review
  • c0def67 use built in headers field

📊 Changes

1 file changed (+11 additions, -0 deletions)

View changed files

📝 packages/opencode/src/provider/provider.ts (+11 -0)

📄 Description

Should now correctly show up in the OpenRouter Activity with the opencode url and name rather than unknown. This means that opencode will show up in the charts for models and it will be generally easier to tack usage of a key.


🔄 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/613 **Author:** [@CiaranMcAleer](https://github.com/CiaranMcAleer) **Created:** 7/2/2025 **Status:** ✅ Merged **Merged:** 7/2/2025 **Merged by:** [@thdxr](https://github.com/thdxr) **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (3) - [`8af5a46`](https://github.com/anomalyco/opencode/commit/8af5a464d773e35455fe42ba82d2e5b635fdcb74) Changed handling of OpenRouter requests - [`47c50b8`](https://github.com/anomalyco/opencode/commit/47c50b8847cfe9c2f5441e1f4fe90123ddf4f17c) Removed Key check as per code review - [`c0def67`](https://github.com/anomalyco/opencode/commit/c0def6725d1f2d1569f5e0cd267920b22a6b120f) use built in headers field ### 📊 Changes **1 file changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/provider/provider.ts` (+11 -0) </details> ### 📄 Description Should now correctly show up in the OpenRouter Activity with the opencode url and name rather than unknown. This means that opencode will show up in the charts for models and it will be generally easier to tack usage of a key. --- <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:13:56 -05:00
yindo closed this issue 2026-02-16 18:13:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9660