Govern GitHub Copilot and build APIs from GitHub¶
WSO2 API Platform works alongside the GitHub tools you already use. Route GitHub Copilot through AI Gateway, build API proxies from GitHub repositories, and design governed APIs with Copilot in VS Code.
End-to-end guides¶
A step-by-step guide for GitHub Copilot.
-
Configure GitHub Copilot with AI Gateway
Route GitHub Copilot CLI and Copilot Chat in VS Code through an App LLM Proxy.
Guide · GitHub Copilot · Hybrid
AI Gateway with GitHub Copilot¶
With the bring-your-own-key (BYOK) option, GitHub Copilot sends requests for your model to an LLM proxy on WSO2 AI Gateway. Requests for GitHub-hosted models still go directly to GitHub.
Copilot's model provider¶
The Copilot guide uses an OpenAI provider.
Routing, token limits, cost control, and the other AI Workspace policies work the same way for every provider. See the AI Workspace overview.
Routing, token limits, cost control, and the gateway's other policies work the same way for every provider. See the AI Gateway documentation.
GitHub repositories¶
Keep an API proxy's contract and configuration in a GitHub repository, then build and deploy the proxy from it.
Create an API proxy from source¶
Connect a repository that holds the API contract and a component.yaml file.
GitHub Copilot in VS Code¶
The API Designer extension for VS Code uses GitHub Copilot Chat to draft, edit, and fix OpenAPI specifications, and checks them against governance rules. It works the same way for every deployment.
Design and govern APIs¶
Draft a specification with Copilot, then review and fix governance findings.
Architecture and responsibility model¶
WSO2 API Platform and GitHub split the work like this:
| Scenario | WSO2 role | GitHub role | Runtime traffic |
|---|---|---|---|
| GitHub Copilot through AI Gateway | Authenticates developers and applies guardrails, rate limits, and analytics | Provides the Copilot clients | BYOK model requests go through WSO2 AI Gateway to the model provider |
| API proxy from a GitHub repository | Builds, deploys, and manages the API proxy | Hosts the source and configuration | API traffic goes through the WSO2 gateway, not through GitHub |
| API design with Copilot in VS Code | Provides the API Designer extension and governance rules | Provides Copilot Chat | Runs in the developer's editor, with no API traffic involved |
Learn more¶
Related pages in the GitHub documentation:
To browse every guide by goal, see the Guides overview.