Terminal commands

Open an account’s Claude Code from any terminal with claude1 or claude2, and manage accounts with cm.

Feature overview

Once the terminal commands are installed, every account has a command of its own: claude1, claude2, and so on. Run one in a project folder, and Claude Code opens in that same folder as that account. There’s also cm, a management command that does most of what the app can do, right in the terminal.

The commands don’t need the app to be open. They keep working after you quit it.

Install

The first time you open the app, the setup screen asks you with Install terminal commands. You can also go to Settings › Terminal commands later:

  1. Click Install. The commands go in ~/.local/bin by default (Windows: %USERPROFILE%\.local\bin). To put them somewhere else, click Change… next to Location.
  2. If the screen says the folder isn’t in your PATH, click Add to PATH for me.
  3. Open a new terminal window. Windows that are already open don’t pick up the new PATH.

On a Mac, Add to PATH for me adds a block that can be removed to your shell’s startup file. It supports only zsh, bash, and fish; for any other shell, add the folder to your PATH yourself. On Windows, it adds the folder to your user PATH environment variable.

When a name is taken

Claude Manager never replaces files it didn’t create. If a command shows Name taken or Overridden, a file, alias, shell function, or other program with the same name was found first. Follow the instructions on screen to remove or rename it, then open a new terminal. If cm is already used by another program, the management command is renamed claude-manager.

If a command breaks or is moved, click Repair to create it again.

Open Claude Code with claudeN

cd ~/Projects/website
claude1

Here’s what happens when you run it:

  1. If the account isn’t running yet, it starts, and the terminal shows its progress.
  2. If the current folder isn’t shared with this account yet, you’re asked “Share … with claude1? [Y/n]”. Press Enter to share it. Where it can’t ask, such as in a script, the command stops and tells you which command to run to share the folder.
  3. Claude Code opens in the same folder in the sandbox. On a Mac, the path is exactly the same; on Windows, the folder is under /mnt/cm-host/<drive letter>/… in the sandbox.

Any arguments after claudeN go straight to Claude Code. For example:

Command What it does
claude1 Opens Claude Code in the current folder as the first account
claude2 --resume Continues an earlier conversation as the second account

When you need to sign in to Claude, the sign-in page opens in this account’s own browser; see Account browser.

Copying from the sandbox

When Claude Code copies text in the sandbox, it goes straight to this computer’s clipboard, as long as you’ve just been using that session. It only works one way: this computer’s clipboard is never passed into the sandbox. If you don’t want it, turn off Copy from the sandbox to the clipboard in Settings › General.

Fullscreen interface

Fullscreen interface, under Claude launch options in the account’s settings › General, makes claudeN fill the whole window when you run it in this computer’s terminal, so it isn’t mixed in with earlier commands, and the screen comes back as it was when you’re done. Scroll with the mouse wheel or PgUp / PgDn. Selecting text copies it automatically, and pressing Ctrl+O then / searches the conversation. The app’s terminal and conversation tabs aren’t affected.

The cm management command

Command What it does
cm status Shows the background service and account status at a glance
cm list Lists accounts
cm create Creates an account
cm edit Changes an account’s settings
cm delete Deletes an account and its sandbox files
cm start / cm stop / cm restart Starts, stops, or restarts an account; add --all to apply it to every account
cm shell Opens a shell in an account, or runs a command there
cm claude Runs Claude Code in an account, in the current folder
cm proxy Manages proxy servers
cm folder Manages shared folders
cm config Shows or changes settings
cm logs Shows the background service’s logs
cm shortcuts Installs or checks the terminal commands
cm backup Saves, inspects, or restores an encrypted settings backup
cm account-archive Moves a stopped account’s environment, without conversations
cm components Manages the components accounts need to download
cm guard Shows or restores what Claude Manager took out of shared git repositories
cm mcp Manages MCP servers on this computer that every account can use
cm port Forwards a local or local network TCP port to a service in the sandbox
cm ssh Lets this computer’s own ssh connect to an account
cm auth Shows who’s signed in to Claude Manager
cm doctor Checks everything an account needs and suggests fixes
cm completions Prints shell completion scripts

You can name an account by its name, number, or command, like cm shell 2, cm stop claude2, or cm shell Work. Add --help to any command for its help.

When something goes wrong, run cm doctor first. It checks each item in turn and writes out the commands that fix what it finds.

Shells in the app

In an account’s workspace in the app, click New shell or press ⌥⌘T (Windows: Ctrl+Shift+` ) to open a shell tab in the sandbox. It sits alongside your Claude conversation tabs.

Connect to an account with ssh

Settings › SSH Access lets other software on this computer, such as your editor, connect to an account’s sandbox with a command like ssh claude1.

  1. Under Accounts reachable over SSH, turn on the accounts you want to open up, or click Turn All On. They’re all off by default.
  2. Click Test to check.
  3. Use the copy button on screen to get the command, like ssh claude1.

Keep this in mind: An app that can use these commands fully controls that account’s sandbox, including its Claude sign-in. If the account is stopped, the connection fails, and the account doesn’t start on its own; an SSH connection also doesn’t keep an idle account from stopping. The settings are written as an Include block at the very top of ~/.ssh/config, which is removed once every account is turned off. If your SSH settings already have a host with the same name, Claude Manager doesn’t replace it.

Remove the commands

In Settings › Terminal commands, click Uninstall…, then Remove, or run cm shortcuts uninstall. Only the links Claude Manager created and the PATH settings it added are deleted; no other files are touched.

Differences between Mac and Windows

Item Mac Windows
Default install location ~/.local/bin %USERPROFILE%\.local\bin
Adding to PATH Shell startup file (zsh, bash, fish) User PATH environment variable
Shared folder path in the sandbox Same as on this computer /mnt/cm-host/<drive letter>/…
Name of the copy setting Copy from the sandbox to the clipboard Copy from the sandbox to the clipboard

Type a keyword, like “proxy” or “shared folder.”

Appearance and language

Appearance

Language

Claude is a trademark of Anthropic, PBC. Claude Manager is an independent tool and is not affiliated with Anthropic.