copilot-sdk - GitHub Copilot SDK
Build applications that interact programmatically with GitHub Copilot through the Copilot CLI using sessions, tools, hooks, MCP servers, and streaming.
Tags
Updated: 2026-09-30Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Create Copilot sessions
- Send prompts
- Stream responses
- Define custom tools
- Configure lifecycle hooks
- Connect MCP servers
- Configure authentication
- Resume sessions
- Use BYOK providers
Inputs
- User prompts
- Model configuration
- Custom tool definitions
- Hook handlers
- MCP server configuration
- Authentication credentials
- Session IDs
Outputs
- Assistant responses
- Streaming response events
- Tool results
- Session events
Requirements
- GitHub Copilot CLI
- Authenticated Copilot CLI
- Copilot subscription or BYOK
- Supported runtime
