Using your own LLM models in GitHub Copilot CLI - GitHub Docs
Use a model from an external provider of your choice in Copilot by supplying your own API key.