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()andCopilot::start(). - Laravel-style configuration through
config/copilot.phpand.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
- Laravel package: invokable/laravel-copilot-sdk
- Official SDK: github/copilot-sdk