This add-on integrates GitHub Copilot into your DDEV project.
ddev add-on get tyler36/ddev-copilot
ddev restart
After installation, make sure to commit the .ddev directory to version control.
| Command | Description |
|---|---|
ddev copilot |
Start Copilot |
@See GitHub Copilot CLI for further information.
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.
You can also authenticate using a fine-grained PAT with the “Copilot Requests” permission enabled.
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.
Contributed and maintained by @tyler36