copilot-sdk - Build applications with the GitHub Copilot SDK
Programmatically interact with GitHub Copilot through JSON-RPC with sessions, tools, hooks, MCP servers, and streaming.
Tags
Updated: 2026-09-29Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Create Copilot clients
- Manage Copilot sessions
- Send prompts
- Stream response events
- Define custom tools
- Configure lifecycle hooks
- Connect MCP servers
- Resume sessions
- Use external model providers
Inputs
- User prompts
- Session configuration
- Custom tool definitions
- Hook handlers
- MCP server configuration
- Authentication credentials
- Model provider configuration
- Session identifiers
Outputs
- Assistant messages
- Streaming response events
- Tool calls
- Session state
- Session identifiers
- Hook decisions
- Tool results
Requirements
- GitHub Copilot CLI
- Authenticated Copilot CLI
- GitHub Copilot subscription or BYOK
- Node.js 18+ or Python 3.8+ or Go 1.21+ or .NET 8.0+
- Supported SDK package
- Model provider credentials when required
