Inference setup
ren inference setup points a coding tool on your computer at the models Ren offers, using one of your inference keys.
Before you start
- Install the CLI and sign in. Any member of the organization can run setup.
- Install the tool you want to set up.
Calls made with your key are billed to your organization. To run them on your organization’s Claude or ChatGPT subscription instead, an admin connects it in Settings → Providers; see Models.
Set up your tool
Setup asks Ren which changes your tool needs for your organization’s current models. It prints each file it would change, with the lines it adds (+) and removes (-), then asks you to type yes. Pick your tool:
ren inference setup claude-codeIt edits ~/.claude/settings.json. When it’s done, it tells you where the backup is and how to check the tool:
Set up claude-code.
Backed up to /Users/ada/.config/ren/inference-backups/2026-11-26T10-15-00-000Z. Undo with ren inference setup --undo.
Check it: claude -p 'which model are you?'ren inference setup codexIt edits ~/.codex/config.toml, and writes Ren’s own profile to ~/.codex/ren.config.toml and Ren’s model list to ~/.codex/ren-models.json. When it’s done, it tells you where the backup is and how to check the tool:
Set up codex.
Backed up to /Users/ada/.config/ren/inference-backups/2026-11-26T10-15-00-000Z. Undo with ren inference setup --undo.
Check it: codex --profile renThe model list has to match your Codex version, so setup looks for codex on your PATH. If it can’t find it, it skips the list and says so. Ren’s models still work by name; once Codex is on your PATH, run ren inference sync to add the list.
ren inference setup opencodeIt edits ~/.config/opencode/opencode.jsonc. When it’s done, it tells you where the backup is and how to check the tool:
Set up opencode.
Backed up to /Users/ada/.config/ren/inference-backups/2026-11-26T10-15-00-000Z. Undo with ren inference setup --undo.
Check it: opencode run --model ren/anthropic/claude-sonnet-5-5 'say hello'ren inference setup piIt edits ~/.pi/agent/models.json. When it’s done, it tells you where the backup is and how to check the tool:
Set up pi.
Backed up to /Users/ada/.config/ren/inference-backups/2026-11-26T10-15-00-000Z. Undo with ren inference setup --undo.
Check it: pi --provider ren --model anthropic/claude-sonnet-5-5 -p 'hello'ren inference setup hermesIt edits ~/.hermes/config.yaml, and puts the key in ~/.hermes/.env. When it’s done, it tells you where the backup is and how to check the tool:
Set up hermes.
Backed up to /Users/ada/.config/ren/inference-backups/2026-11-26T10-15-00-000Z. Undo with ren inference setup --undo.
Check it: hermes -z 'hello'Run that check command. Then confirm the call reached Ren:
ren inference key usage --period 7dIt lists the calls, tokens and charges of each key, by model. Settings → Providers → Inference keys shows the same in the app.
Setup touches only Ren’s entries, so your comments, key order and other providers stay as they are. It uses your newest active inference key, or creates one named ren on <your computer's name> that never expires. It writes the key into the tool’s files, makes those files readable only by you, and never prints the key. To list your keys without their values, run ren inference key list.
Options
| Option | What it does |
|---|---|
--dry-run | Shows the changes and writes nothing. It doesn’t create a key either, so you may see ${REN_INFERENCE_KEY} in place of one. |
--yes | Writes without asking. A script or coding agent needs this or --dry-run, because it can’t type yes. |
--with-optional | Also applies changes that replace one of the tool’s defaults, such as its model |
--key-env <VAR> | Names the variable that holds the key, for a tool that reads it from the environment |
--undo | Restores the files of the newest backup. See Undo. |
Sync
Ren’s model list changes now and then, such as after an admin connects a subscription. To bring your tools up to date:
ren inference syncSync repeats the setup of every tool you set up on this computer, with the options you used, and writes without asking. It remembers those tools in ~/.config/ren/inference.json.
Undo
ren inference setup --undoAfter you type yes, it restores each file from the newest backup and deletes each file that setup created.
Undo leaves two things in place:
- Your key. To revoke it, run
ren inference key revoke <key>with the ID fromren inference key list, or select Revoke in Settings → Providers → Inference keys. - The tool’s entry in
~/.config/ren/inference.json, soren inference syncwould set it up again. Remove the entry to stop that.