Skip to content

Commit c47b449

Browse files
authored
chore(ci): Use openrouter keys for claude in ci (#22381)
Switches our ci workflows to use openrouter. Key is already added.
1 parent 326fbc9 commit c47b449

4 files changed

Lines changed: 15 additions & 5 deletions

File tree

‎.github/workflows/auto-fix-issue.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ jobs:
7878
- name: Try to fix the issue with Claude
7979
id: triage
8080
uses: anthropics/claude-code-action@fad22eb3fa582b7357fc0ea48af6645851b884fd # v1
81+
env:
82+
ANTHROPIC_BASE_URL: https://openrouter.ai/api
8183
with:
82-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
84+
anthropic_api_key: ${{ secrets.OPENROUTER_API_KEY }}
8385
github_token: ${{ secrets.GITHUB_TOKEN }}
8486
allowed_non_write_users: '*'
8587
show_full_output: ${{ github.event.inputs.show_full_output || 'false' }}

‎.github/workflows/dependabot-auto-triage.yml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,10 @@ jobs:
159159
160160
- name: Open batched runtime fix PR via skill
161161
uses: anthropics/claude-code-action@fad22eb3fa582b7357fc0ea48af6645851b884fd # v1
162+
env:
163+
ANTHROPIC_BASE_URL: https://openrouter.ai/api
162164
with:
163-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
165+
anthropic_api_key: ${{ secrets.OPENROUTER_API_KEY }}
164166
github_token: ${{ steps.app-token.outputs.token }}
165167
settings: |
166168
{
@@ -234,8 +236,10 @@ jobs:
234236
235237
- name: Open batched dev fix PR via skill
236238
uses: anthropics/claude-code-action@fad22eb3fa582b7357fc0ea48af6645851b884fd # v1
239+
env:
240+
ANTHROPIC_BASE_URL: https://openrouter.ai/api
237241
with:
238-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
242+
anthropic_api_key: ${{ secrets.OPENROUTER_API_KEY }}
239243
github_token: ${{ steps.app-token.outputs.token }}
240244
settings: |
241245
{

‎.github/workflows/track-framework-updates.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ jobs:
4444
- name: Run Claude digest
4545
id: digest
4646
uses: anthropics/claude-code-action@fad22eb3fa582b7357fc0ea48af6645851b884fd # v1
47+
env:
48+
ANTHROPIC_BASE_URL: https://openrouter.ai/api
4749
with:
48-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
50+
anthropic_api_key: ${{ secrets.OPENROUTER_API_KEY }}
4951
github_token: ${{ secrets.GITHUB_TOKEN }}
5052
allowed_non_write_users: '*'
5153
prompt: |

‎.github/workflows/triage-issue.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ jobs:
5555
- name: Run Claude triage
5656
id: triage
5757
uses: anthropics/claude-code-action@fad22eb3fa582b7357fc0ea48af6645851b884fd # v1
58+
env:
59+
ANTHROPIC_BASE_URL: https://openrouter.ai/api
5860
with:
59-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
61+
anthropic_api_key: ${{ secrets.OPENROUTER_API_KEY }}
6062
github_token: ${{ secrets.GITHUB_TOKEN }}
6163
allowed_non_write_users: '*'
6264
settings: |

0 commit comments

Comments
 (0)