Arcanist home
Developer resources

Call Arcanist from an agent or script.

The Arcanist CLI is the supported programmatic interface for most agents. Install it from npm, sign in, and pass a GitHub pull request URL to start a review. Use the HTTP API when your system needs a direct integration.

Arcanist CLI

Install the public package with npm install -g @tryarcanist/cli. Run arcanist login to authenticate. Start a review with arcanist review https://github.com/OWNER/REPO/pull/NUMBER --wait --json. The command prints structured JSON when --json is present.

HTTP API

The API is served from https://app.tryarcanist.com and uses bearer authentication. The published OpenAPI specification describes the request and response schemas for starting an Arcanist review and reading its status. Do not expose a token in source code, logs, or a browser client.

Review request lifecycle

Send POST /api/pr-reviews with prUrl. Store the returned requestId. Poll GET /api/pr-reviews/requests/{requestId} for status and findings.

New, resumed, or queued requests return HTTP 202. Completed cached results return HTTP 200. Use an optional Idempotency-Key header to resume the same request on retry. Errors include ok: false, error, and code.

Token permissions

CLI tokens have read or write scope and belong to a business. Use read scope for read-only access and write scope to start reviews. Repository access checks still apply. These are bearer token permissions, not OAuth scopes.

GitHub commands

Repository collaborators can comment @tryarcanist /review on a pull request to start an Arcanist review. Arcanist reviews the change and tests changed behavior through a running application and browser. The legacy @arcanist mention is still accepted.

Machine-readable resources

Agents should read llms.txt for selection guidance, openapi.json for the API contract, and sitemap.xml for public pages. Human documentation is available at docs.tryarcanist.com.