copilot-sdk - Build Applications with the GitHub Copilot SDK
Build programmatic GitHub Copilot integrations with session management, custom tools, streaming, hooks, MCP servers, BYOK providers, persistence, and custom agents.
Tags
Updated: 2026-09-29Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Create Copilot clients
- Manage Copilot sessions
- Send prompts
- Stream responses
- Define custom tools
- Configure lifecycle hooks
- Connect MCP servers
- Configure BYOK providers
- Resume persisted sessions
- Configure custom agents
Inputs
- User prompts
- Session configuration
- Custom tool definitions
- MCP server configurations
- Authentication credentials
- Provider API keys
- Session identifiers
Outputs
- Assistant responses
- Streaming response events
- Tool execution results
- Session lifecycle events
Requirements
- GitHub Copilot CLI installed and authenticated
- GitHub Copilot subscription unless using BYOK
- Node.js 18+ or Python 3.8+ or Go 1.21+ or .NET 8.0+
