Docs / Getting started
Install with GitHub Actions
You run diffox in your own repository, on GitHub's runner. No server, no account and no payment; all it needs is an API key (currently Anthropic).
Add your key as a secret
In the repository's settings, create a secret named ANTHROPIC_API_KEY. The key stays on GitHub and is used only on GitHub's runner during a review; it never reaches diffox.ai.
Settings›Secrets and variables›Actions
Add the workflow file
This file runs the review on every pull request and writes its comments under the changed lines.
.github/workflows/diffox.yml
name: diffoxon: pull_request:permissions: contents: read pull-requests: writejobs: review: runs-on: ubuntu-latest steps: - uses: diffoxai/diffox-action@v1 with: anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
Open a pull request
The review starts on its own. Each finding arrives as a comment under the line it is about.
Pull requests from forks
Forks get no secrets, so this job has no key for them and reviews nothing. Do not switch to pull_request_target to get around it: it would run with your secrets over code nobody has reviewed yet.