Skip to main content
The start command launches the Copilot API proxy server. It listens for incoming OpenAI-compatible and Anthropic-compatible requests, translates them into GitHub Copilot API calls, and streams responses back to your client. If you have not authenticated yet, start handles the GitHub OAuth device flow automatically before the server starts.

Usage

Options

Start command options

Global options

Pass global options before the subcommand using the --key=value form.
Global options must use --key=value syntax when placed before the subcommand. For example: npx @nick3/copilot-api@latest --oauth-app=opencode start.

Examples

If you use OpenCode, start with --oauth-app=opencode. This uses OpenCode’s OAuth credentials rather than the default device flow, which is identical to OpenCode’s built-in Copilot provider and carries no additional Terms of Service risk.