Skip to main content

GitHub guides

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.

Show resources for

You run the gateways, on their own or with your own control plane.

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:

ScenarioWSO2 roleGitHub roleRuntime traffic
GitHub Copilot through AI GatewayAuthenticates developers and applies guardrails, rate limits, and analyticsProvides the Copilot clientsBYOK model requests go through WSO2 AI Gateway to the model provider
API proxy from a GitHub repositoryBuilds, deploys, and manages the API proxyHosts the source and configurationAPI traffic goes through the WSO2 gateway, not through GitHub
API design with Copilot in VS CodeProvides the API Designer extension and governance rulesProvides Copilot ChatRuns 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.

Was this page helpful?