copilot-sdk

Copilot SDK

Welcome to the GitHub Copilot SDK docs. Whether you’re building your first Copilot-powered app or deploying to production, you’ll find what you need here.

Where to start

I want to… Go to
Build my first app Getting Started—end-to-end tutorial with streaming & custom tools
Set up for production Setup Guides—architecture, deployment patterns, scaling
Configure authentication Authentication—GitHub OAuth, server-to-server authentication, environment variables, BYOK
Add features to my app Features—hooks, custom agents, MCP, skills, and more
Debug an issue Troubleshooting—common problems and solutions

Documentation map

Getting Started

Step-by-step tutorial that takes you from zero to a working Copilot app with streaming responses and custom tools.

Setup

How to configure and deploy the SDK for your use case.

Authentication

Configuring how users and services authenticate with Copilot.

Features

Guides for building with the SDK’s capabilities.

Hooks Reference

Detailed API reference for each session hook.

Troubleshooting

Observability

Integrations

Guides for using the SDK with other platforms and frameworks.