Skip to content

Support x-api-key credentials for custom LLMs - #5418

Merged
chrarnoldus merged 2 commits into
mainfrom
feat/custom-llm-x-api-key
Aug 21, 2026
Merged

Support x-api-key credentials for custom LLMs#5418
chrarnoldus merged 2 commits into
mainfrom
feat/custom-llm-x-api-key

Conversation

@chrarnoldus

Copy link
Copy Markdown
Contributor

Summary

  • show API key credential JSON guidance when custom LLM credentials are hidden or empty
  • add an x-api-key credential type that sends the key in the x-api-key header instead of bearer authorization
  • redact x-api-key values in shared header diagnostics

Testing

  • CI only, as requested

Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
@chrarnoldus chrarnoldus self-assigned this Aug 21, 2026
@kilo-code-bot

kilo-code-bot Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (9 files)
  • apps/web/src/app/api/openrouter/[...path]/route.test.ts
  • apps/web/src/lib/ai-gateway/experiments/build-direct-provider.test.ts
  • apps/web/src/lib/ai-gateway/experiments/build-direct-provider.ts
  • apps/web/src/lib/ai-gateway/providers/apply-provider-specific-logic.test.ts
  • apps/web/src/lib/ai-gateway/providers/get-provider.ts
  • apps/web/src/lib/ai-gateway/providers/partner/providers.ts
  • apps/web/src/lib/ai-gateway/providers/provider-definitions.ts
  • apps/web/src/lib/ai-gateway/providers/types.ts
  • apps/web/src/lib/ai-gateway/providers/upstream-request.generation.test.ts
Previous Review Summary (commit c0b902d)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit c0b902d)

Status: No Issues Found | Recommendation: Merge

Files Reviewed (10 files)
  • apps/web/src/app/admin/custom-llms/CustomLlmsContent.tsx
  • apps/web/src/lib/ai-gateway/custom-llm/google-service-account.test.ts
  • apps/web/src/lib/ai-gateway/experiments/build-direct-provider.ts
  • apps/web/src/lib/ai-gateway/providers/get-provider.ts
  • apps/web/src/lib/ai-gateway/providers/types.ts
  • apps/web/src/lib/ai-gateway/providers/upstream-request.ts
  • apps/web/src/tests/openrouterApi.timeout.test.ts
  • packages/db/src/schema-types.ts
  • packages/worker-utils/src/redact-headers.test.ts
  • packages/worker-utils/src/redact-headers.ts

Reviewed by grok-4.6 · Input: 162.8K · Output: 5.5K · Cached: 197.2K

Review guidance: REVIEW.md from base branch main

Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
@chrarnoldus
chrarnoldus merged commit 3daafbb into main Aug 21, 2026
43 checks passed
@chrarnoldus
chrarnoldus deleted the feat/custom-llm-x-api-key branch August 21, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants