start-entrabot.cmd¶
Platforms: Windows.
Purpose¶
start-entrabot.cmd starts your agent. It is in the Entrabot folder, and it is
the file to double-click after setup. It starts Claude Code in that folder with
the Entrabot channel switched on, so the agent hears Teams messages as they
arrive.
Requirements¶
setup-windows.cmdhas been run in this folder.- Claude Code is installed, and Git for Windows is installed (Claude Code runs
this project's hooks through Git Bash). The setup wizard offers to install
both; so does
prereqs-windows.ps1 -WithGit -WithClaudeCode.
Usage¶
Double-click the file, or from a terminal in the Entrabot folder:
Anything after the file name is passed on to Claude Code.
Effects¶
- Changes to its own folder.
- Checks that
.venv\Scripts\entrabot-mcp.exeand.mcp.jsonexist. If not, it says to runscripts\setup-windows.cmdfirst and stops. - Finds Claude Code:
claudeonPATH, otherwise%USERPROFILE%\.local\bin\claude.exe, where Claude Code's own installer puts it. If neither exists, it prints the command that installs it and stops. - If
CLAUDE_CODE_GIT_BASH_PATHis not set, and Git Bash is installed for your account (%LOCALAPPDATA%\Programs\Git) but not under%ProgramFiles%\Git, it sets that variable for this window so Claude Code finds it. - Says what Claude Code asks the first time, in the window 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? - Runs:
It changes nothing on disk. When the window was opened just to run this file and something went wrong, it waits for a key press so the message stays on screen.
Exit behavior¶
- The exit code of Claude Code.
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-windows.cmd. - "Claude Code is not installed" — run the command it prints.
- Claude Code blocks every edit or Teams message — Git for Windows is missing. See Windows troubleshooting.
- "another instance is already running" — another assistant on this PC 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-windows.cmd— run this once first.prereqs-windows.ps1— installs Claude Code and Git for Windows.start-entrabot.sh— the macOS and Linux counterpart.- Windows installation.