docs: document GitHub Copilot bring-your-own-token setup#51
Merged
Conversation
Copilot's chat endpoint is OpenAI-compatible, so it works with OpenAiCompatProvider given the right base URL, integration headers, and a valid Copilot token as the API key. Documented under the OpenAI-compat provider with a prominent terms-of-service caveat and a note that the short-lived Copilot token must be refreshed by the caller (no built-in credential refresh). No code changes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documents how to use GitHub Copilot models via the existing
OpenAiCompatProvider. Copilot's chat endpoint is OpenAI Chat Completions–shaped, so it works withModelConfig::openai_compatgiven the right base URL, integration headers, and a valid Copilot token as the API key.Docs-only — no code changes. Added a "GitHub Copilot (bring-your-own-token)" section to
docs/providers/openai-compat.mdcovering:api.githubcopilot.comis intended for official Copilot editor integrations; third-party use is against GitHub's terms. yoagent deliberately does not ship a first-class Copilot preset.openai_compatconfig plus requiredCopilot-Integration-Id/Editor-Versionheaders.Not added to the first-class provider lists in
overview.md/model-presets.md, since it is explicitly unsupported.Context
Follow-up to a review of whether yoagent can support Copilot models. Conclusion: technically feasible via bring-your-own-token, but not worth first-class support given the ToS exposure to users.
🤖 Generated with Claude Code