Raised: $0
0% of monthly goal Help us cross the finish line!
Goal: $12,000
Raised: $0 Goal: $12,000
0% of monthly goal Help us cross the finish line!
Sponsor DDEV

add-on registry tests last commit release

DDEV Copilot

Overview

This add-on integrates GitHub Copilot into your DDEV project.

Installation

ddev add-on get tyler36/ddev-copilot
ddev restart

After installation, make sure to commit the .ddev directory to version control.

Usage

Command Description
ddev copilot Start Copilot

@See GitHub Copilot CLI for further information.

Authorization

If you’re not currently logged in to GitHub, you’ll be prompted to use the /login slash command. Enter this command and follow the on-screen instructions to authenticate.

Authenticate with a Personal Access Token (PAT)

You can also authenticate using a fine-grained PAT with the “Copilot Requests” permission enabled.

  1. Visit https://github.com/settings/personal-access-tokens/new
  2. Under “Permissions,” click “add permissions” and select “Copilot Requests”
  3. Generate your token
  4. Add the token to your environment via the environment variable GH_TOKEN or GITHUB_TOKEN (in order of precedence). For example:

     # .ddev/.env
     GH_TOKEN=super-secret-github-pat
    

Caution

.ddev/.env and your PAT are considered sensitive information. Do NOT commit these values to your repository.

Credits

Contributed and maintained by @tyler36