16 views
-/https://github.com/berriai/litellm/issues/23777
GitHub · issue

#23777 Feature request: support multiple ChatGPT OAuth accounts in a single LiteLLM instance

  • State: open
  • Author: @ningfeemic-dev

## Summary

LiteLLM's current ChatGPT OAuth support appears to be effectively single-account per proxy process because the authenticator only reads one global `CHATGPT_TOKEN_DIR` / `CHATGPT_AUTH_FILE` pair.

This makes it difficult to run multiple ChatGPT subscription accounts in a single LiteLLM instance, even when users want to expose them as separate model groups / aliases.

## What I tried

I deployed LiteLLM database/admin mode and attempted to configure two ChatGPT-backed model groups in one instance, conceptually like:

- `gpt1/*` -> ChatGPT account A - `gpt2/*` -> ChatGPT account B

At the container / config level, I mounted two auth directories, e.g.

- `/app/chatgpt-auth-gpt1` - `/app/chatgpt-auth-gpt2`

and defined separate model groups in `config.yaml`.

However, after inspecting the running container, the ChatGPT auth path still seems globally bound by env vars:

- `CHATGPT_TOKEN_DIR` - `CHATGPT_AUTH_FILE`

and the current implementation in `litellm/llms/chatgpt/authenticator.py` appears to initialize a single auth file path for the whole process.

## Why this is a problem

For operators using ChatGPT subscription auth as an upstream, there are practical cases where mu…

GitHub resolver

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

Refresh page
vote history (1 events)
#0 of 0 · 31d18h6m37s ago — entered · #import:https:::github.com:berriai:litellm post #2955
The left requires cross-cutting runtime architecture, isolation, configuration, lifecycle handling, and broad testing; the right is a localized data correction with limited validation.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search