[PR #152] [MERGED] fix: pass router env vars to SDK subprocess #147

Closed
opened 2026-02-27 08:09:27 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/KeygraphHQ/shannon/pull/152
Author: @ezl-keygraph
Created: 2/20/2026
Status: Merged
Merged: 2/20/2026
Merged by: @ezl-keygraph

Base: mainHead: fix/router-env-passthrough


📝 Commits (1)

  • 2f62429 fix: pass router env vars to SDK subprocess

📊 Changes

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

View changed files

📝 src/ai/claude-executor.ts (+6 -0)

📄 Description

Closes #148
Closes #150

Summary

  • Forward ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN to the SDK subprocess environment in claude-executor.ts
  • Without these, router mode fails with "Authentication failed: Invalid API key" because the subprocess hits Anthropic directly with the placeholder key instead of routing through claude-code-router

🔄 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/KeygraphHQ/shannon/pull/152 **Author:** [@ezl-keygraph](https://github.com/ezl-keygraph) **Created:** 2/20/2026 **Status:** ✅ Merged **Merged:** 2/20/2026 **Merged by:** [@ezl-keygraph](https://github.com/ezl-keygraph) **Base:** `main` ← **Head:** `fix/router-env-passthrough` --- ### 📝 Commits (1) - [`2f62429`](https://github.com/KeygraphHQ/shannon/commit/2f624292e2d86ae6f8fdb3386aa1ec9c254b590b) fix: pass router env vars to SDK subprocess ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/ai/claude-executor.ts` (+6 -0) </details> ### 📄 Description Closes #148 Closes #150 ## Summary - Forward `ANTHROPIC_BASE_URL` and `ANTHROPIC_AUTH_TOKEN` to the SDK subprocess environment in `claude-executor.ts` - Without these, router mode fails with "Authentication failed: Invalid API key" because the subprocess hits Anthropic directly with the placeholder key instead of routing through claude-code-router --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 08:09:27 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shannon-KeygraphHQ#147
No description provided.