Ren

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

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-code

It edits ~/.claude/settings.json. When it’s done, it tells you where the backup is and how to check the tool:

Output
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?'

Run that check command. Then confirm the call reached Ren:

ren inference key usage --period 7d

It 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

OptionWhat it does
--dry-runShows the changes and writes nothing. It doesn’t create a key either, so you may see ${REN_INFERENCE_KEY} in place of one.
--yesWrites without asking. A script or coding agent needs this or --dry-run, because it can’t type yes.
--with-optionalAlso 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
--undoRestores 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 sync

Sync 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 --undo

After 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 from ren inference key list, or select Revoke in Settings → Providers → Inference keys.
  • The tool’s entry in ~/.config/ren/inference.json, so ren inference sync would set it up again. Remove the entry to stop that.