Use OpenAI models
Run Crysk reviews in GitHub Actions with OpenAI models and an API key, through OpenCode.
Do it with your agent
Paste this prompt into Claude Code, Codex or another coding agent. It reads this page and does the steps for you.
Set up Crysk in this repository's GitHub Actions to review pull requests with OpenAI models and an API key. Follow https://crysk.dev/docs/github-actions/openai.md and run each step yourself.
At the end, the open-source GitHub Action reviews pull requests with OpenAI models, billed per token to your OpenAI account. This is Crysk’s own review, run through OpenCode. It is not OpenAI’s Codex code review.
Before you start
Section titled “Before you start”- The Crysk workflow in
.github/workflows/crysk.yml, created bynpx -y crysk setup --ci. - An OpenAI API key from platform.openai.com.
- The GitHub CLI, logged in, with admin or write access to the repository.
1. Store the key as a secret
Section titled “1. Store the key as a secret”Paste the key when gh asks for it:
gh secret set CRYSK_OPENCODE_OPENAI_API_KEY2. Pass the key to the workflow and choose the profile
Section titled “2. Pass the key to the workflow and choose the profile”gh variable set CRYSK_OPENCODE_PROVIDERS --body '["OPENAI"]'gh variable set CRYSK_PROFILE --body openaigh variable set replaces the list. If CRYSK_OPENCODE_PROVIDERS already has providers, include them too, for example '["DEEPSEEK","OPENAI"]'.
Open a pull request from a branch of the same repository and check that the crysk check finishes.
Models the profile uses
Section titled “Models the profile uses”| Step | Model |
|---|---|
| Hunters | gpt-6.1-terra, effort xhigh |
| Refuter | gpt-6.1-sol, effort high |
| Consolidation | gpt-6.1-terra, effort high |
| Summary | gpt-6-luna |
To change a step, set CRYSK_MODELS: see other model providers. A role you set there wins over the profile.
What it costs
Section titled “What it costs”Every review bills your OpenAI account, so the size limits for per-token runs apply by default.