start-entrabot.sh¶
Platforms: macOS, Linux.
Purpose¶
start-entrabot.sh starts your agent. It is in the Entrabot folder. It starts
Claude Code in that folder with the Entrabot channel switched on, so the agent
hears Teams messages as they arrive. It is the macOS and Linux counterpart of
start-entrabot.cmd.
Setup's last screen names it. At a terminal, when everything needed to start is in place, setup also asks "Start your agent now, in this terminal?" and, on a yes, finishes and runs this script in its place.
Requirements¶
setup.shhas been run in this folder.- Claude Code is installed. Setup does not install it on macOS or Linux; see https://code.claude.com/docs/en/setup. The project's safety checks need Claude Code 2.1.295 or later, which setup checks.
bash. The hooks Claude Code runs for this project use thebashon yourPATH.- The account's key store (the macOS Keychain or the Linux keyring) unlocked in
the session you start it from: the agent reads its sign-in key there. Over SSH
on a Mac, run
security unlock-keychainfirst.
Usage¶
From a terminal in the Entrabot folder:
Anything after the script name is passed on to Claude Code. The script changes
to its own folder first, so it can also be started from anywhere by its full
path, for example ~/entrabot/start-entrabot.sh.
Effects¶
- Changes to its own folder.
- Checks that
.venv/bin/entrabot-mcpis there and executable, and that.mcp.jsonexists. If not, it says to run./scripts/setup.shfirst and stops. - Finds Claude Code:
claudeonPATH, otherwise~/.local/bin/claude, then~/.claude/local/claude, where Claude Code's own installer puts it. If none exists, it says where to install it from and stops. - Says what Claude Code asks the first time, in the terminal where the
questions appear: whether to trust this folder, whether to use the
entrabotMCP server, and whether to load a development channel. Answer yes to each, then say Who are you? - Starts, in its own place:
It changes nothing on disk.
Exit behavior¶
- The exit code of Claude Code: the script hands its process over to it.
1— setup has not been run in this folder, or Claude Code is not installed.
Common failures¶
- "Entrabot is not set up in this folder yet" — run
./scripts/setup.sh. - "Claude Code is not installed" — install it from
https://code.claude.com/docs/en/setup, then run this again. A terminal that
was open before the install may not have it on
PATHyet; the script also looks in~/.local/binand~/.claude/local. Permission denied— the copy of the folder lost the files' executable bits (some ZIP tools do this). Runchmod +x start-entrabot.sh scripts/*.shor start it withbash start-entrabot.sh.- The agent cannot sign in when started over SSH — the key store is locked in that session. See macOS and Linux troubleshooting.
- "another entrabot-mcp instance is already running" — another assistant on this computer already has the Entrabot server open. Close it first.
- Claude Code asks about the folder, the
entrabotserver or a development channel — that is its first start in this folder. Answer yes to each: the folder is the one setup set up, the server is your agent, and the channel is how Teams messages reach it.
Related commands¶
- Script reference — Setup
setup.sh— run this once first.start-entrabot.cmd— the Windows counterpart.- macOS and Linux installation.