9 views
-/https://github.com/berriai/litellm/issues/35233
GitHub Ā· issue

#35233 [Feature]: Add optional strict authentication for Claude Code marketplace endpoint

  • State: open
  • Author: @madnight
  • Labels: proxy

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate

### The Feature

Add an opt-in strict authentication mode for `GET /claude-code/marketplace.json` that requires a valid LiteLLM key in the `Authorization` header

A possible configuration shape is:

```yaml general_settings: claude_code_marketplace_auth_required: true ```

When enabled, the expected behavior is:

- Missing `Authorization` header returns `401` with `WWW-Authenticate: Bearer` - Malformed or invalid LiteLLM credentials return `401` - A valid LiteLLM Virtual Key or master key returns `200` with the marketplace catalog - A valid key that is not authorized for the route returns `403` according to the normal LiteLLM authorization rules - Credentials supplied through `?key=` are not accepted in strict mode - Authentication failures must not fall back to the anonymous public catalog

The setting should default to `false` so existing installations retain the current public discovery behavior

The existing authenticated marketplace management endpoints should remain unchanged

### Current behavior

The current `GET /claude-code/marketplace.json` route has n…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 Ā· 31d18h18m28s ago — entered Ā· #import:https:::github.com:berriai:litellm post #2645
#34296 requires changes to core authorization semantics, careful handling of precedence and backward compatibility, and broad regression/security testing across keys, groups, teams, and model checks; #35233 is comparatively isolated to one opt-in route with standard authentication and configuration wiring.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search