Repository navigation
feat(aikit): add support for provider github-copilot - #34
Merged
Merged
Conversation
- Add composite provider routing Copilot's chat, responses, and anthropic messages endpoints per model - Implement GitHub OAuth device-flow login with editor credential reuse and plan-aware endpoint discovery - Wire github-copilot protocol through the model catalog, registry, options, thinking, and transform paths - Generate Copilot catalog entries with endpoint methods, thinking-level maps, and compatibility flags - Add aikit auth --github-copilot CLI with status, logout, enterprise domain, and enable-models support - Cover headers, request metadata, OAuth storage, device polling, routing, and streaming with tests and e2e
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
github-copilotprovider that composes the OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages adapters behind oneProviderV4, with per-model routing viaapi.methodauth --github-copilot) with GitHub Enterprise support,/copilot_internal/userentitlement checks, plan-specificendpoints.apidiscovery, and/modelscatalog fetch with optional--enable-modelspolicy enablementCOPILOT_GITHUB_TOKEN,GITHUB_TOKEN/GH_TOKEN, existing editorhosts.json/apps.json, or~/.codework/aikit/auth.json; OAuth tokens are used directly as Bearer credentialsx-initiator,Copilot-Vision-Request,X-Interaction-Id, adaptiveanthropic-betafiltering) through a shared fetch wrapperstore:false+ encrypted-reasoning provider optionsgithub-copilot-namespaced reasoning signature replayTest plan
vp check— format, lint, types cleanvp run typecheck— cleanvp test— 480 unit tests pass (headers, auth resolution, device flow, storage, routing, thinking options, transforms, CLI)gpt-4.1on Copilot Free)