Skip to content

docs(providers): document per-user GitHub OAuth for GitHub Copilot - #2228

Merged
yassin-berriai merged 12 commits into
mainfrom
litellm_docs_github_copilot_per_user_oauth
Oct 10, 2026
Merged

yassin-berriai merged 12 commits into
mainfrom
litellm_docs_github_copilot_per_user_oauth

Conversation

@yassin-berriai

@yassin-berriai yassin-berriai commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR rewrites docs/providers/github_copilot.md against current litellm main. The main fix is that the page used to say the proxy cannot run GitHub's device flow, which has been false since per-user OAuth shipped

Per-user GitHub OAuth is now the first, recommended proxy setup. The admin creates a credential with Auth Type Per-user GitHub OAuth and attaches it to a model. Each user then opens LLM Credentials, finds the credential under Your connections, clicks Connect, and completes GitHub's device flow in the dashboard, with no GitHub CLI involved. The page covers encrypted storage, the 60s Redis cache, in-memory Copilot token caching (expires_at - 60s), disconnect and reconnect behavior, and the githubcopilot.com API host check

Shared device login stays as a second option. It is labeled as one GitHub account for every caller and keeps only the steps it still needs: the token file, a writable directory for api-key.json, and a note that the credential's API Key field does not replace the file. The release-history text is gone

Other fixes: a paid plan is no longer stated as required, since model access depends on the plan. The examples now use current catalog models (claude-sonnet-5.5, gpt-5.3-codex, gpt-5.5, text-embedding-3-small). The endpoint table, env vars, defaults and headers match current code. The page also says Claude Code and Claude Desktop need model names starting with claude- or anth-

Link to Devin session: https://app.devin.ai/sessions/453c40b054f240f1bf0e4512da9a9aae
Open in Devin Desktop: https://app.devin.ai/desktop/session/453c40b054f240f1bf0e4512da9a9aae?variant=devin
Requested by: @yassin-berriai

@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@vercel

vercel Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
litellm Ready Ready Preview Oct 10, 2026 12:20am UTC

Request Review

@yassin-berriai
yassin-berriai merged commit e865ba4 into main Oct 10, 2026
5 checks passed
@yassin-berriai
yassin-berriai deleted the litellm_docs_github_copilot_per_user_oauth branch October 10, 2026 00:21

This branch was successfully deployed

1 active deployment
Preview — 5e681a2b Deployed Oct 10, 2026 by vercel[bot]
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.

1 participant