Skip to main content

SessionConfig

You can configure many behaviors with the SessionConfig class. Use it with Copilot::run(prompt: '...', config: $config) or Copilot::start(function (CopilotSession $session) { ... }, config: $config). If you only need simple options like a model ID, you can pass an array instead of using SessionConfig: Copilot::run(prompt: '...', config: ['model' => 'auto']).
When resuming a session, use ResumeSessionConfig. It is almost the same as SessionConfig, but has small differences. In ResumeSessionConfig, specify only the options you want to change. All other settings are inherited from the original session start. For cloud execution, see Cloud Sessions; for plugin directories, see Plugin Directories.
For the latest updates, see the GitHub repository.
Last modified on June 2, 2026