Skip to content
AnchrasDocumentation
Browse documentation

Integrations / User guide

Developer tools

Preview

Open Code Review

Run Open Code Review through the Anchras AI gateway and track GitHub pull-request review runs.

On this page

Before you begin

This integration is in preview. Connect GitHub, configure a gateway model and create a dedicated gateway application key. Have a repository workflow that can execute Open Code Review.

Connect to Anchras

  1. Open the integration and obtain the setup snippet for your repository.
  2. Set OCR_LLM_URL to your Anchras API origin plus /v1/chat/completions, OCR_LLM_TOKEN to the gateway application key and OCR_LLM_MODEL to a configured routed model. Keep Anthropic mode disabled for this compatible endpoint.
  3. Use the generated workflow contract for platform dispatch and bind the repository to the intended workflow.
  4. When enabling platform orchestration, remove the standalone pull_request_target trigger and keep workflow_dispatch to avoid duplicate reviews.

Verify the connection

Open a test pull request. Confirm a correlated review run, the intended commit and any posted findings. Check gateway usage under the dedicated application key.

Availability and limits

Review prompts and diffs are sent to the configured model route. Preview orchestration depends on GitHub permissions and the workflow contract; enabling a binding does not create those permissions. Reviews do not automatically apply fixes.

Troubleshooting

For missing runs, check App webhook permissions, repository binding and workflow dispatch. For duplicate comments, check overlapping standalone and platform triggers. Gateway failures require checking key scope, model routing and budget policy.