RemiDocs

Configure the CLI

How to make the Remi CLI fit the way you and your project work, from where its settings live to trusted folders, permission rules, project instructions, your own commands and skills, MCP servers, plugins, editors and scripts.

Early access

Remi CLI is out and in early access, which means the people who asked for it are using it while we fix what they find. If you'd like to try it too, write to the Remi team and we'll get you set up.

The Remi CLI works well with no setup at all, so everything on this page is optional. It's here for when you'd like Remi to know how your project works, to stop asking about things you always allow, or to have tools and shortcuts of your own. Each section stands alone, so read the ones you need.

If your project is already set up for another coding agent, you're most of the way there. Remi reads the files those tools leave behind, so a CLAUDE.md, the commands, skills and agents under .claude/, an .mcp.json and plugins all work as they are, with nothing to convert.

Here's what you can set up, and where on this page to read about it:

ToWriteSection
Tell Remi how your project worksAGENTS.mdTell Remi about your project
Keep a prompt you can run as /name.remi/commands/<name>.mdMake your own commands
Teach Remi a task it picks up when it fits.remi/skills/<name>/SKILL.mdTeach Remi a skill
Hand big searches to a read-only helper.remi/agents/<name>.mdHand big searches to a subtask
Run a script at set momentshooks in .remi/settings.jsonRun your scripts at set moments
Give Remi another service's tools.mcp.jsonAdd MCP servers
Bring several of these in one folder.remi/plugins/<name>/Add plugins

Where your settings live

Remi keeps its settings in small JSON files, and there are three places one can live, depending on who it's for. Your own settings apply to you everywhere. A project's settings apply to everyone who works on it, so they're committed with the code. And a project's local settings are for you alone in that project, which is where Remi saves your "don't ask again" answers.

FileApplies toCommit it?
~/.remi/settings.jsonYou, in every folderNo
.remi/settings.jsonThis project, for everyoneYes
.remi/settings.local.jsonThis project, for you alone. "Don't ask again" answers are saved here.No, add it to .gitignore

If two of these files disagree about a single value, such as which model to use, the one lower in the table wins, so a project's local settings beat the project's, which beat yours. Lists, such as permission rules, aren't overridden but added together.

Here's what a settings file looks like:

{
  "model": "Remi Auto",
  "permissions": {
    "defaultMode": "default",
    "allow": ["Bash(npm test:*)", "Bash(git diff:*)", "Edit(src/**)"],
    "deny": ["Read(secrets/**)"],
    "ask": ["Bash(git push:*)"]
  },
  "notifications": "bell",
  "theme": "light"
}

A few settings you might want to know about:

  • notifications is bell to begin with, which rings your terminal's bell when Remi is waiting for you and when a long piece of work finishes. Set it to off if you'd rather it stayed quiet.
  • theme is dark or light. If you leave it out, Remi asks your terminal which it's using.
  • host set to { "enabled": false } stops this folder taking messages from your phone or the web. Carry on from your phone or the web explains what that's for.
  • accessibility holds screenReader, lessMotion and highContrast, each true or false, which /accessibility switches for you. REMI_SCREEN_READER=1, REMI_REDUCED_MOTION=1 and REMI_HIGH_CONTRAST=1 in your environment do the same for a run.
  • desk is side, which puts the Desk beside the message box in a wide terminal while Sorties work, or top to keep it above the box always.
  • sandbox can hold allowWrite, a list of folders outside the project that Autopilot's commands may write to, read only from your own settings or a trusted folder's local settings, and keepGuardedChanges, which keeps a command's change to a file that runs later outside the sandbox, such as a git hook, instead of putting it back when nobody is there to ask.
  • usageReports set to false stops Remi counting how its own commands end, which is all it reports. REMI_NO_USAGE_REPORTS=1 or DO_NOT_TRACK=1 does the same.

Trust a folder

The first time you run remi in a folder, it asks whether you trust the folder. This is a safety question. A project can contain files that start programs on your computer, that give Remi tools without you asking, or that loosen Remi's rules, and anyone who can commit to a repo can add one. So Remi doesn't act on a folder's own files of that kind until you've said the folder is yours, or from people you trust.

If you say no, Remi quits. If you say yes, your answer is saved, and trusting a folder trusts everything inside it too. This is what changes when you trust a folder:

The folder's ownNot trustedTrusted
AGENTS.md and CLAUDE.mdSentSent
MCP servers (.mcp.json, and mcpServers in its settings)Not startedStarted
Hooks and the status lineNot runRun
Skills, agents and / commandsNot loadedLoaded
Plugins in .remi/plugins/, with their hooks and serversNot loadedLoaded
Allow rules, defaultMode and extra foldersIgnoredApplied
Deny and ask rulesAppliedApplied

Your own files in ~/.remi/ always count, trusted folder or not. And trusting a folder is a separate thing from letting Remi change files or run commands without asking. Your mode and your rules decide that, and the next section explains them.

When you run remi -p for a single answer, Remi never asks this question. In a folder you haven't trusted, it behaves as the "Not trusted" column says. If you need it to trust the folder for one run, in a CI job for example, set REMI_TRUST_FOLDER=1.

Choose what runs without asking

Remi asks before it does anything you might not want, such as changing a file or running a command. How often it asks is up to you, and there are two ways to decide: a mode, which sets the general level, and rules, which say what to do about particular commands and files.

Modes

A mode is the quickest way to say how much freedom Remi has. To change it, press Shift+Tab while Remi is running, add --mode when you start Remi for one run, or set permissions.defaultMode in your settings to make it permanent.

When you pick Ask first, Edit freely or Autopilot while Remi is running, Remi keeps your choice as mode in your own ~/.remi/settings.json, and the next start begins there. --mode and permissions.defaultMode come first. A folder's settings can't set mode, so a project you open can never start you on Autopilot. remi -p and your editor don't use it.

ModeWith --modeIn settingsWhat Remi does without asking
Ask firstask-firstdefaultReads and searches. Asks before edits and commands.
Edit freelyedit-freelyaccept_editsEdits files. Asks before commands.
Plan onlyplan-onlyplanOnly reads.
AutopilotautopilotautoEdits files, and runs commands in a sandbox. Asks before what the sandbox can't contain.
BypassbypassbypassNever asks. Use it only where nothing can go wrong.

How the Autopilot sandbox keeps you safe. In Autopilot, Remi runs commands without asking, so it runs them inside a sandbox, which is a fenced-off space with limits on what a command can touch. On macOS, and on Linux with bwrap installed or a kernel that has Landlock, a command in the sandbox can read anything but can only write inside the project, temporary folders and tool caches, and it can't reach the internet. There's one exception: installs into the project from the usual registry, such as npm install, bun add, pip install, bundle install, cargo add or go get, run with the internet on, so that Remi can set a project up and run its tests. That holds even after Remi has read a web page in the same turn. On a Mac, brew install, brew upgrade and brew reinstall of Homebrew's own formulas run outside the sandbox, because Homebrew unpacks each one in a sandbox of its own and macOS won't start a sandbox inside another. Even in Autopilot, Remi still asks you before:

  • spending money, or sending anything other people see, such as a push to a shared branch, a pull request or publishing a package;
  • deleting what can't be brought back: anything outside the project and the folders you allowed, anything in a folder /undo doesn't cover that can't be kept first, and git commands that lose work. Something in temp space, and folders your tools build again such as node_modules, dist or .next, are deleted without asking;
  • deleting or wiping anything on a connected phone, such as adb uninstall, which asks every time, whatever your rules say;
  • installing for the whole computer, such as npm -g, cargo install or a Homebrew cask, installing from a link, a file or anywhere other than the usual registry, and running a script straight from the web, such as curl … | sh;
  • using a file that may hold secrets in a way that could let them leave, or one outside the project, as Files that may hold secrets explains;
  • changing what runs later, such as git hooks or .mcp.json, or changing one of your Remi settings;
  • running as another user, or working on another machine, such as with sudo or ssh. A command over ssh that only reads on a machine you've said yes to runs without asking, as Rules explains;
  • a command Remi can't read in full, such as one built with $(…), in a folder /undo doesn't cover. Where /undo does cover the folder, a command like that runs without the network instead.

If you'd like the sandbox to have the internet all the time, set "sandbox": { "network": true } in your settings. On Windows, and on Linux with neither bwrap nor Landlock, there's no sandbox to keep a command in, so Autopilot runs each command as it is. It still asks before everything in the list above, and also before anything that changes or deletes something outside the project folder. remi doctor tells you whether this computer has a sandbox.

The risk check is a second safety net, and it's on to begin with while it's in early access. Before Autopilot runs a command, Remi takes another look at it, and if it seems risky, Remi asks you first rather than going ahead. A command that only reads skips it. remi doctor shows whether it's on. If you'd rather not have it, set "autopilot": { "riskCheck": false } in your own settings or the folder's local settings, never in a repo's shared settings.

The sandbox on a Mac and on Linux keeps Autopilot's commands inside the folder and off the network. On Linux it's bubblewrap where that's installed, and otherwise Landlock, which the kernel provides from version 5.13 and WSL2 has too. Files that run later outside the sandbox, such as git hooks, git's config, .remi/ and .mcp.json, are checked before and after each command, and if a command changed one, Remi asks Keep the change? before keeping it. On Windows there is no sandbox, so Autopilot asks before each command.

Rules

Rules are for the particular cases a mode doesn't cover. A rule names a command, a file or a tool, and says whether Remi may use it without asking (allow), must always ask first (ask) or must never use it (deny). They're written the same way as Claude Code's rules, so any you already have will work:

RuleMatches
Bash(git status)Exactly that command
Bash(npm test *)That command, alone or with anything after it
Bash(npm test:*)The same, as older rules write it
BashEvery command
Edit(src/**)Edits and new files under src/
Read(.env)Reading .env, in any folder
mcp__githubEvery tool of the github MCP server
mcp__github__create_issueThat one tool
SshHost(deploy@gate.example:2222)Commands over ssh that only read on that machine, as that login and port

The easiest way to see your rules and change them is /allow while Remi is running. It shows the mode, every allow, ask and deny rule with where it's kept (this project, the project's shared settings, or your own settings), and the folders outside this one Remi may use. /permissions does the same.

You don't have to edit a file to add a rule. While Remi is running, /allow allow, deny or ask followed by a rule adds one:

/allow allow Bash(npm test *)

The rule is saved in .remi/settings.local.json, so it's yours alone, and it applies straight away. /allow remove followed by the rule takes it out again.

How rules are applied:

  • For a && b to run without asking, every part has to be allowed. A deny rule on any part blocks the whole command.
  • Commands that only look, such as ls, cat, grep, find, which, command -v, git status, git log and git diff, never ask in your project, alone or in pipes and chains such as ls -la 2>&1 | tail -80. Where there's a sandbox, they run in one that can't write or reach the network. On Autopilot they don't ask anywhere on your computer. In Ask first and Edit freely, the first time one reads a folder outside this one, Remi asks for that folder, as Work in more than one folder explains. Files that may hold secrets still ask.
  • When Autopilot stops at a command, such as a pull request, a force push or a delete outside the project, the card offers Always allow with the rule it would keep. For a pull request or a package publish, that's every one of that kind, such as Bash(gh pr create *). For anything else, it's that exact command. A rule covers one of these only if its own words name the risk, so Bash(gh *) or Bash(git *) never lets through a pull request or a force push. Rules in the project's shared .remi/settings.json don't cover them either.
  • On a card for a command that only reads on another machine over ssh, Yes lets such commands on that machine run for the rest of the session, and Yes, and don't ask again for this host saves SshHost(user@host:port) in .remi/settings.local.json. Another login or port counts as another machine. Anything that changes something there, forwards a port, or has ssh run a program on your computer still asks, and so does every ssh after Remi read a web page in the same turn.
  • A command with a password, token or key written into it, such as PGPASSWORD=…, --password … or an Authorization header, shows it as •••• on the card, and a yes saves no rule for it, so the password never goes into your settings.
  • Edits to files that run things later, such as the settings, hooks and plugins in .remi/ and .claude/, .mcp.json, .git/hooks/ and .vscode/, always ask, unless a rule names them. Skills, slash commands, agents, plans and the goal in .remi/ and .claude/ are instructions, so Edit freely and Autopilot write them without asking.
  • When you allow a command from a question card, Remi saves its family, such as Bash(npm test:*), except for a delete. A yes for rm -rf dist saves Bash(rm -rf dist) and nothing wider, so a different delete still asks. A delete with * or ? in it saves nothing at all, because a rule would read those as wildcards.
  • Yes, and allow … for this session on a card adds the same rules for this session only. They're kept in memory and saved nowhere, so they end when you quit.

Files that may hold secrets

Some files are likely to contain passwords, keys or tokens. On Autopilot, reading one in your project only to look, with the file tool or a command such as cat .env or grep PORT .env, runs without asking, without the internet, and Remi sees the names with every value that may be a secret hidden, on your screen too: DB_PASSWORD=[redacted secret], PORT=3000. A command that copies it, hands it to a script or sends it asks, and so does reading it in Ask first and Edit freely. For a file in your project, such as .env, it asks once: Yes, and don't ask again for .env in this folder allows that file from then on, while .env.local would still ask. A sign-in file outside the project, such as one in ~/.ssh, asks every time, however a command names it: directly, by a pattern such as ~/.ssh/*, through a link, or after cd into its folder. A search through every file of a folder that holds one, such as grep -r, doesn't count as only reading, so Remi treats it as it does any other command. An allow rule that names a file works too. The files are: .env and .env.* (but not templates such as .env.example), .envrc, .dev.vars, *.pem, *.key, *.p12, *.pfx, SSH keys, .git/config, .npmrc, .netrc, .pypirc, *.tfvars and credentials*.json. An @ mention never attaches one, and searches skip them.

Remi also looks through the output of every command before it's sent, and replaces anything that looks like a key, a token or a password with [redacted] and what kind of thing it was, such as [redacted api key]. Your own terminal still shows you the real output. A password written into a command is masked the same way wherever the command is shown, on the card, on your phone and the web, and in what remi -p prints: PGPASSWORD=••••.

Work in more than one folder

Remi works in the folder you started it in. When it needs to change a file somewhere else, it asks you once for that folder, in every mode, and you can answer Allow once, allow the folder for this project, or allow it everywhere. In Ask first and Edit freely, the first time Remi reads a folder outside this one, it asks too, and you can allow that folder to read only, or to read and change. On Autopilot, reading doesn't ask. Remi never offers your whole home folder, the disk, or folders where sign-ins and settings are kept, so those are Allow once only.

A folder you allow for the project is saved in .remi/settings.local.json, and one you allow everywhere in ~/.remi/settings.json. From then on the file tools and Autopilot's commands use it without asking, and your rules apply there as they do in the project. Temporary folders never ask, and neither do Remi's own folders in ~/.remi: skills, commands, agents, output-styles, plans and memory. That's where a skill goes when you want it in every project, and Remi is told so.

You can also add a folder yourself:

/allow folder ~/Documents/reports
/allow folder ~/Documents/reports --everywhere
/allow folder ~/Documents/archive --read
/allow remove ~/Documents/reports

/allow lists the folders with what Remi may do there and where each is kept. You can still start Remi with --add-dir ../shared, use /add-dir while it's running, or set "permissions": { "additionalDirectories": ["../shared"] } for a folder to read and change, and "readDirectories": [...] for one to read only.

Tell Remi about your project

Remi can read your code, but it can't know the things that aren't written down anywhere: how to build and test the project, the conventions your team follows, and the corners nobody should touch. An AGENTS.md file in your project is where you tell it. Remi reads the file with every message you send, so whatever you write there is always in mind.

# AGENTS.md
- Run `npm run check` before saying you're done. It runs the types, lint and tests.
- API types stay snake_case, as the server sends them.
- Don't edit files under `generated/`. Run `npm run codegen` instead.
  • Where Remi looks: for an AGENTS.md, a REMI.md or a CLAUDE.md in the project, and in each folder between the repo's root and the folder you started in. For notes that should apply to every project you work on, write them in ~/.remi/AGENTS.md.
  • If you'd like a head start: run /init while Remi is running, and it writes a first version for you by looking at the project.
  • To add a line quickly: type a message that starts with #, such as # always use pnpm, and Remi adds it to the file.
  • To edit the file: /memory edit opens the project's file in your editor, and /memory edit ~ opens your own. Remi reads it again with your next message.
  • To see what Remi is working from: /context shows how full the conversation is, which instruction files, skills, agents and tools Remi has, and, if it left a file out, why.

An instruction file has to be a Markdown file inside the project's own folder. If it links to a file somewhere else, or to a file that may hold secrets, Remi leaves that link alone.

Make your own commands

If you find yourself typing the same request to Remi again and again, turn it into a command. A command is a prompt you keep in a file and run by name, with a / in front. For example, save this as .remi/commands/fix-issue.md:

---
description: Fix a GitHub issue
argument-hint: <issue number>
---
Fix issue #$1. Read the issue, find the cause, fix it, and run the tests.

From then on, typing /fix-issue 42 while Remi is running, or remi -p "/fix-issue 42" from your shell, sends that prompt with 42 in place of $1.

  • Where Remi finds them: your own commands live in ~/.remi/commands/, and a project's in .remi/commands/ or .claude/commands/. A file in a subfolder gets the folder's name in front, as /folder:name.
  • Passing in details: $ARGUMENTS stands for everything you typed after the command, and $1 to $9 for the words one by one. If a command uses neither, whatever you typed is added at the end of the prompt.
  • A project's commands load only once you've trusted the folder.

Teach Remi a skill

A skill is a bit like a command, with one difference: you don't have to remember to run it. You describe a task and how to do it well, and Remi picks the skill up by itself whenever a request matches. A skill is a folder with a SKILL.md in it, written the same way as Claude Code's skills, plus any files the instructions refer to. For example, save this as .claude/skills/release-notes/SKILL.md, next to a template.md:

---
name: release-notes
description: Write release notes from the changes merged since the last release
---
List the pull requests merged since the last tag, then write the notes in template.md's shape.

Now, when you ask Remi for release notes, it reads the skill before it starts. You can also run it yourself as /release-notes.

  • Where Remi finds them: your own skills live in ~/.remi/skills/, and a project's in .claude/skills/ or .remi/skills/.
  • Asking Remi to write one: Remi saves it in the project's .remi/skills/, or in ~/.remi/skills/ if you want it in every project, without stopping to ask. Only Plan only leaves skills alone.
  • What a skill can include: the instructions, and any files in the skill's folder, such as template.md. Remi never follows a skill to a file outside its folder, or to a file that may hold secrets.
  • Who decides when it runs: add disable-model-invocation: true to the front matter if you'd like a skill to run only when you type /name, or user-invocable: false if only Remi should decide.
  • A project's skills load only once you've trusted the folder, and /skills and /context list the skills Remi currently has. Your account's skills, made on the web, are copied to ~/.remi/account-skills/ when a session starts, so they work here too, offline included. Skills explains the three kinds.

Hand big searches to a subtask

Some questions can only be answered by reading a great many files, such as "find every script that reads the branch sales exports". If Remi did all that reading in your conversation, the conversation would fill up with the contents of files you never asked to see. So instead, Remi can hand the job to a subtask: a second Remi that can only read, does the searching in a chat of its own, and brings back only what it found. Remi decides when a subtask makes sense, and you can also ask for one: "use a subtask to find every place that reads branch-sales.csv".

A subtask can only read, never change anything. Your deny rules apply inside it, so do the rules about files that may hold secrets, and anything that would normally ask you for permission is refused instead. A subtask stops after 15 minutes, and it counts towards your plan like any other turn. If you'd rather Remi never used one, add Task to permissions.deny.

Custom agents let you set up a subtask in advance, with a name, its own instructions and a smaller set of tools, in the same format as Claude Code's agents. For example, save this as .claude/agents/code-finder.md:

---
name: code-finder
description: Finds where something is implemented and explains how the pieces fit
tools: Read, Grep, Glob
---
Search the code for what you're asked about. Answer with the files and lines that matter, and a short explanation of how they connect.

Remi uses the agent that fits the question, or the one you ask for by name: "ask code-finder where retries are handled". Your own agents live in ~/.remi/agents/, and a project's in .claude/agents/ or .remi/agents/. Because a subtask can only read, the tools: line can only name read-only tools: Read, Grep, Glob, LS and Skill.

Run your scripts at set moments

Hooks let you run a script of your own at set moments while Remi works, such as formatting a file every time Remi edits one, or checking a command before it runs. They're written the same way as Claude Code's hooks, so any you already have work as they are. Add them to your settings:

{
  "hooks": {
    "PostToolUse": [
      { "matcher": "Edit|Write", "hooks": [{ "type": "command", "command": "npx prettier --write ." }] }
    ]
  }
}
  • The moments you can hook into are SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, Notification, Stop and SessionEnd.
  • What your script receives: a description of the event, as JSON on standard input.
  • What your script can do: exit with 0 and Remi carries on. On SessionStart and UserPromptSubmit, anything the script prints is passed to Remi to read, which is a handy way to add context. Exit with 2 to stop what was about to happen: the tool doesn't run, or the message isn't sent, and Remi is told why.
  • Where scripts run: in sh on macOS and Linux, and in Git Bash on Windows when it's installed.

A project's hooks run only once you've trusted the folder.

Add MCP servers

MCP is a standard way for an AI tool to use another service, such as your issue tracker, your database or your company's internal systems. An MCP server is the piece that speaks for that service, and once Remi knows about one, it can use the service's tools in its answers. There are two places to add a server, depending on where you'd like it to work.

In your Remi account, for every app

remi mcp add https://mcp.example.com/mcp

The address is the server's MCP address, which you'll find in that service's own documentation. Added this way, the server belongs to your Remi account rather than this computer, so it works in every Remi app: on the web, on your phone, in Remi Desktop and in the CLI. If the service needs you to sign in, your browser opens for that, and Remi keeps the sign-in on its side rather than on this computer.

remi mcp list from your shell, or /mcp while Remi is running, shows your servers, and remi mcp remove takes one out.

On this computer only

For a server that belongs with one project, Remi reads an .mcp.json file in the project folder, which is the same file Claude Code uses:

{
  "mcpServers": {
    "github": {
      "type": "http",
      "url": "https://api.githubcopilot.com/mcp/",
      "headers": { "Authorization": "Bearer ${GITHUB_TOKEN}" }
    }
  }
}

Anything written as ${VAR} is filled in from your environment when Remi starts, so you never have to put a key in the file itself. You can also add a server from the command line:

remi mcp add --scope user --transport http github https://api.githubcopilot.com/mcp/

With --scope user, the server is saved in ~/.remi/mcp-servers.json and available in every project on this computer, and Remi Desktop reads that file too. If a server needs a sign-in, remi mcp list says "needs a sign-in" next to it, and remi mcp login followed by the server's name takes you through it.

Remi asks you before using an MCP tool, unless the server says the tool only reads, or one of your rules allows it. A project's own servers start only once you've trusted the folder.

The servers you set up for Claude Code

If you've already added MCP servers to Claude Code, Remi uses them too, with nothing to copy across. It reads Claude Code's own file, ~/.claude.json, or the one under CLAUDE_CONFIG_DIR if you've set that, and starts your servers and the ones added for this folder, leaving out any that Claude Code has turned off. If a server of the same name is in Remi's own files, Remi's wins. remi mcp list and remi doctor show these servers with "Claude Code" as their source. If you'd rather Remi left them alone, set "mcp": { "claudeCode": false } in your settings.

When you have more tools than fit

Each turn has room for a limited number of tools, and a few busy servers can bring more than that. Remi no longer drops the extra ones. Whole servers go in while they fit, smallest first, and the rest are kept within reach: Remi can search them by what it wants to do and run the one it finds. A tool used this way asks you for permission exactly as it would have otherwise. The line Remi prints when it starts says which servers are "on demand".

Add plugins

A plugin is a way to share a whole set-up at once. It bundles skills, commands, agents, hooks and MCP servers in one folder, in the same format as Claude Code's plugins, so a team can keep everything Remi needs for a kind of work in one place:

deploy-tools/
├── .claude-plugin/plugin.json
├── commands/status.md
├── skills/deploy/SKILL.md
├── agents/reviewer.md
├── hooks/hooks.json
└── .mcp.json

To try a plugin for a single run, point Remi at its folder:

remi --plugin-dir ./deploy-tools

To keep it, put the folder in ~/.remi/plugins/. Everything the plugin adds carries its name, so its status command becomes /deploy-tools:status. While Remi is running, /plugin lists what's loaded and anything that was left out, with the reason.

Remi only loads plugins from folders on your computer, not from online marketplaces. A project's own plugins, in .remi/plugins/, load only once you've trusted the folder.

Change the status line

The line under the input box shows you where you are and what Remi is doing. If you'd like it to show something else, such as your git branch or the time, your own command can draw it, in the same way as in Claude Code:

{ "statusLine": { "type": "command", "command": "~/.remi/statusline.sh" } }

Your command receives a description of the session as JSON on standard input, and the first line it prints is shown in place of Remi's.

Connect your editor

If you'd rather work with Remi inside your editor than in a terminal, Zed, the JetBrains IDEs, Neovim and Emacs can all run Remi as their AI agent. Your editor shows the chat, the changes Remi proposes and its requests for permission, and Remi works in whichever project the editor has open. Under the hood this uses remi acp, which speaks the Agent Client Protocol your editor understands.

Before you set up your editor, sign in from a terminal once:

remi login

If your editor says it can't find remi, run which remi in a terminal and use the full path it prints in place of remi below.

Open Zed's settings with the zed: open settings file command, and add:

{
  "agent_servers": {
    "Remi": {
      "type": "custom",
      "command": "remi",
      "args": ["acp"],
      "env": {}
    }
  }
}

Open the Agent Panel, select + and pick Remi.

In Emacs, agent-shell can run Remi through an agent config whose client runs remi acp, defined the way agent-shell defines its built-in agents.

Once connected, the modes, the model picker, the / commands and /undo all work as they do in the terminal. Where your editor allows it, Remi edits the files you have open and runs commands in the editor's own terminal.

Use Remi from another agent

It also works the other way round. If you use another AI tool, such as Claude Code or Codex, it can ask Remi things, with your connected apps, your documents and web search behind the answers. remi mcp serve makes Remi available as an MCP server, and you add it the way that tool adds any other server:

claude mcp add --transport stdio remi -- remi mcp serve

Use Remi in scripts and CI

Remi doesn't have to be interactive. remi -p followed by a question answers once and exits, which suits a script, and Ask once, from a script covers the options. The one thing a script can't do is open a browser to sign in, so where nobody is there to do that, such as a CI job, you give Remi a token instead:

Create a token

On your own computer, signed in:

remi token create --name ci

You'll need two-factor authentication turned on. Before Remi makes the token, it asks for a code from your authenticator app or a recovery code, or, if you sign in through your company, opens your company's sign-in in the browser. Copy the token it prints, because Remi only shows it this once. Later, remi token list shows the tokens you've made, and remi token revoke followed by a token's id stops it working.

A token made this way can do through the Remi API what you can, which is what the CLI needs. It's the same as choosing Everything, as you when you make one on the web, under Settings › Sign-in and security. The other two kinds, made with --no-workspace or --workspace, are for another app that uses Remi as its AI, and they don't work with the CLI. Remi as the AI in your own app covers those.

Set it where Remi runs

Store the token as a secret in your CI system, the way you would any other key, and make it available to the job as the REMI_TOKEN environment variable. Remi uses it in place of a sign-in.

Trust the folder for the run

A CI job checks the project out into a new folder every time, so Remi would see an untrusted folder on every run. If the run needs the project's own skills, hooks or MCP servers, set REMI_TRUST_FOLDER=1 to trust it for that run.

Environment variables

These are the environment variables the Remi CLI looks at. You'll mostly need them in scripts and CI.

VariableWhat it does
REMI_TOKENUse this token instead of a sign-in, for CI and scripts.
REMI_TRUST_FOLDER=1Trust the folder for this run.
REMI_HOMEWhere settings and sessions live. The default is ~/.remi.
REMI_CREDENTIALS_STORE=keychainKeep your sign-in in your computer's keychain instead of the file in ~/.remi that Remi uses otherwise.
REMI_NO_UPDATE_CHECK=1Don't check for a new version when the app starts. It checks at most once a day, and never in CI.
REMI_LANGThe language Remi speaks in the terminal, such as REMI_LANG=de. Without it, Remi speaks your account's language, or your terminal's when you're not signed in. It has English, Spanish, Lithuanian, Swahili, German, French, Dutch, Polish and Turkish.

And these change what the installer does when you first set Remi up:

VariableWhat it does
REMI_VERSIONInstall this version instead of the latest.
REMI_CHANNEL=betaInstall from the beta channel.
REMI_INSTALL_DIRInstall somewhere other than ~/.remi/bin.
REMI_NO_MODIFY_PATH=1Don't add Remi to your PATH in your shell's profile.

Put them in front of the install command, like this:

curl -fsSL https://remiapp.ai/install.sh | REMI_INSTALL_DIR=~/bin sh

On this page