Skip to content

Use OpenAI models

Run Crysk reviews in GitHub Actions with OpenAI models and an API key, through OpenCode.

View as Markdownllms.txt

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.

  • The Crysk workflow in .github/workflows/crysk.yml, created by npx -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.

Paste the key when gh asks for it:

Terminal window
gh secret set CRYSK_OPENCODE_OPENAI_API_KEY

2. Pass the key to the workflow and choose the profile

Section titled “2. Pass the key to the workflow and choose the profile”
Terminal window
gh variable set CRYSK_OPENCODE_PROVIDERS --body '["OPENAI"]'
gh variable set CRYSK_PROFILE --body openai

gh 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.

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.

Every review bills your OpenAI account, so the size limits for per-token runs apply by default.