Skip to main content
The GitHub Copilot SDK for Laravel is a community SDK that lets you use the workflows of the official GitHub Copilot SDK from a Laravel application. You can call Copilot from a variety of Laravel execution contexts, including Artisan commands, controllers, and jobs.

Laravel-specific highlights

This package adds a Laravel-native feel on top of the SDK compatibility layer.
  • A facade-based API centered on Copilot::run() and Copilot::start().
  • Laravel-style configuration through config/copilot.php and .env.
  • Integration points for Laravel Prompts, queues, and console UX.
  • Testing utilities such as Copilot::fake() and prompt assertions.

Usage examples

Run a single prompt

Run multiple prompts in a single session

The copilot() helper

Start here

Getting started

Take your first steps with a Laravel app that uses Copilot.

Authentication

Configure GitHub sign-in, token authentication, and BYOK workflows.

SessionConfig

Control tools, models, MCP servers, and session behavior.

SessionEvent

Learn about Laravel-specific event helpers and lifecycle handling.

Permission requests

Learn about the permission flow for running tools with explicit approval.

Tools

Define custom tools that Copilot can call.

Streaming

Handle incremental output and live responses.

MCP

Connect MCP servers to extend Copilot’s capabilities.

Laravel Cloud

Run the SDK on Laravel Cloud.

Official SDK compatibility layer

Use the same bare API as the official SDK from Laravel.

Official repositories

Last modified on August 2, 2026