Skip to content

Environment variables

Revue needs no environment variables. These are for running a second copy alongside your own, scripting the command line, and trying other AI models. Set them in the shell that starts Revue or runs revue. An app opened from Finder or the Dock doesn’t see them.

VariableWhat it does
REVUE_DATA_DIRRevue’s data folder, ~/.revue unless you set it. Drafts, windows and caches then go in native-state and cache folders inside it, instead of Application Support and Caches.
REVUE_NATIVE_DATA_DIRA folder for everything the app keeps, as development builds use. The data folder is its backend folder, drafts and windows go in state and caches in cache.
REVUE_NATIVE_STATE_DIRWhere drafts, viewed marks, windows and tabs go, ahead of either variable above.

The agent commands, revue hooks and the developer commands read only REVUE_DATA_DIR. To point them at a copy of Revue started with REVUE_NATIVE_DATA_DIR=<dir>, set REVUE_DATA_DIR=<dir>/backend. Files and folders lists what each folder holds.

These are read by the developer commands.

VariableWhat it does
REVUE_BINDThe address revue serve listens on, 127.0.0.1:8787 unless you set it.
REVUE_UI_TOKENIn a release build, the server answers only requests carrying this value in a revue_token cookie.
REVUE_SYNC_STATEWhich pull requests revue serve syncs: open, the default, or all.
REVUE_GITHUB_API_BASE, REVUE_GITHUB_GRAPHQL_URLAnother GitHub API to talk to, such as a test server.

These override Settings › AI review for AI review and Ask AI. A variable you set wins over the setting.

VariableWhat it does
REVUE_CLAUDE_BINThe claude command to run, instead of the one on your PATH.
REVUE_CODEX_BINThe codex command to run, when Settings › AI review uses Codex.
REVUE_FINDER_MODELThe Claude model that looks for problems. sonnet by default.
REVUE_VERIFIER_MODELThe Claude model that checks each problem found. opus by default.
REVUE_SYNTHESIZER_MODELThe Claude model that writes up the review. opus by default.
REVUE_ASK_MODELThe Claude model Ask AI answers with. opus by default.

Claude Code’s plugin sets two more for its own use. REVUE_AGENT_SESSION names the session in each command Claude runs, so a reply is credited to it. REVUE_BIN names the revue the plugin runs, if you need to point it somewhere else.

VariableWhat it does
REVUE_CACHE_BUDGET_MBThe diff cache limit in megabytes, in place of Settings › Storage › Diff cache limit. Past it, the diffs read longest ago are removed first.