GitHub
Connect GitHub to list and clone repositories, push a branch, open a pull request and run tasks in the cloud.
Connecting GitHub is optional. It lets you list and clone your repositories, push a branch and open a pull request. The token comes from, in this order, GITHUB_TOKEN or GH_TOKEN, the system keychain, or the GitHub CLI's own sign-in (gh auth token).
- App: Settings, GitHub (also in the command palette): Sign in with GitHub in the browser where the release offers it, Use the GitHub CLI's sign-in, or A token of your own.
- CLI:
sylphyx github loginasks for a token and keeps it in the keychain; make one at github.com/settings/personal-access-tokens, limited to the repositories you want, with Contents and Pull requests set to read and write.
sylphyx githubShows who you are connected as and which GitHub repository this folder is.
sylphyx github clone OWNER/NAMEsylphyx github pr "Fix the date picker at the end of the month"pr pushes the commits of this branch and opens a pull request against the default branch. On the default branch itself, it first moves to a new branch named sylphyx/… after the title. Only commits are pushed, so commit the work first, for example with /commit MESSAGE. Git gets the token for one command at a time, never in the repository's configuration.
The app's GitHub page can run a task on GitHub's machines with GitHub Actions, while your computer is off; what changed comes back as a pull request. Set up writes the workflow .github/workflows/sylphyx.yml into the repository's default branch. Each run installs the Sylphyx CLI for Linux from the latest release of the Sylphyx service (https://sylphyx.com, or the one named in the cloud_cli_url setting), checks the download against its SHA-256 sum, runs the task in full auto and commits what changed to a new branch.
The run reads these repository secrets (on GitHub: Settings, Secrets and variables, Actions):
SYLPHYX_TOKEN, a session for your Sylphyx account, made withsylphyx account token(see In CI).- The key of the model's provider, under its variable's name:
ANTHROPIC_API_KEY,OPENAI_API_KEY,OPENROUTER_API_KEY,GEMINI_API_KEY,XAI_API_KEY,DEEPSEEK_API_KEY,MISTRAL_API_KEYorGROQ_API_KEY. A ChatGPT plan works only on your own computer.
GitHub lets a workflow open a pull request only where the repository allows it: Settings, Actions, General, Allow GitHub Actions to create and approve pull requests. Without it, the run pushes the branch and prints a link to open the pull request yourself.