By hand
MarkdownOpen in ClaudeOpen in ChatGPT
At the end, the runner is set up from files you wrote yourself, with the same result as the portal's line and the runner's page. Use it to see every setting, or when your company wants each line reviewed.
At a glance
Time: 20 minutes.
What you need:
- A Linux box with Docker (Any Linux computer with Docker says what kind)
- Your Loopgate sign-in as an owner or admin of your org
Steps:
- Download the files
- Write
runner.env - Start the runner and sign it in
- Engines, GitHub and a workspace from the terminal
- A permanent address
- Slack from
slack.env
Run every command in the loopgate folder. A line in a file always wins over the runner's page.
Steps
Make the folder and download the kit's files.
mkdir -p ~/loopgate && cd ~/loopgate curl -fsSLO "https://loopgate.dev/runner/{compose.yaml,runner.env.example,slack.env.example}" cp runner.env.example runner.env && chmod 600 runner.envFill in
runner.env(nano runner.env; save and leave with Ctrl+O, Enter, Ctrl+X):LOOPGATE_CONTROL_PLANE: keephttps://app.loopgate.dev.LOOPGATE_INSTALL_TOKEN: delete the line to sign in with a device code in step 4, or paste a token from the portal's Devices → Add a runner and skip step 4.LOOPGATE_RUNNER_NAME: the name on the portal's Devices page. Set it; otherwise the page shows the container's id.LOOPGATE_RUNNER_URL: a permanent address (step 7). Leave it out for the temporary one.OPENAI_API_KEY,ANTHROPIC_API_KEYorCLAUDE_CODE_OAUTH_TOKEN: an API key instead of signing in to a subscription.GH_TOKEN, the threeGIT_CONFIG_lines and theGIT_AUTHOR_/GIT_COMMITTER_names and emails: a GitHub token and the identity commits carry, instead of Settings → GitHub.
Start it.
docker compose up -dYou should see: the image download (about 170 MB the first time), then each container
Started.Sign the runner in to your org.
docker compose exec runner loopgate login --no-openYou should see:
Open <address>,Code: …andWaiting for confirmation in your browser.Open the address on your laptop, sign in as an owner or admin and enter the code; the box then saysSigned in as <your email>.Install and sign in to engines from the terminal. Codex and Claude Code print an address and a code to open on your laptop; pi opens its own screen, where you choose Trust (this session only), type
/login openai-codex(choose Device code login) or/login anthropic, then/quit.docker compose exec runner loopgate engines install codex docker compose exec -it runner loopgate engines login codex docker compose exec runner loopgate engines install claude-code docker compose exec -it runner loopgate engines login claude-code docker compose exec -it runner piIn pi,
/modelsets the model a step on pi runs when nobody picked one. The copilot picks GPT-6 Luna by itself.After a change to
runner.env, restart the runner.docker compose up -d runnerFor a permanent address, follow Cloudflare Tunnel steps 1 to 7 (its token goes in
tunnel.env) or Tailscale steps 1 to 5, then put the address on theLOOPGATE_RUNNER_URLline, with no slash at the end, and restart (step 6).For Slack from a file, create the app as in Connect Slack steps 2 to 4, then
cp slack.env.example slack.env && chmod 600 slack.envand fill it in:SLACK_APP_TOKENandSLACK_BOT_TOKEN: thexapp-andxoxb-tokens.LOOPGATE_SLACK_WORKSPACE_ID: theT…id in your Slack workspace's web address.LOOPGATE_SLACK_MEMBERS:<Slack id>:<member id>pairs separated by commas.docker compose exec runner loopgate teamlists the member ids; a Slack id is under Copy member ID on a person's profile.LOOPGATE_SLACK_REPO: the workspace every task works in, by name or as/repos/<name>.LOOPGATE_SLACK_MAX_COST_USDandLOOPGATE_SLACK_MAX_HOURS: the most one task may spend.LOOPGATE_RUNNER_URL: the runner's address, for the thread's links.
Then
docker compose up -d slack. Aslack.envwithSLACK_APP_TOKENwins over Settings → Slack.
Check
docker compose exec runner loopgate whoami
docker compose logs runner slackYou should see: Signed in as <your email> with your org, Runner ready at https://…, and with a slack.env, Loopgate Slack worker is connected for T….
Next
Open the runner from the portal's Devices page. Anything you left out of the files, the runner's page still sets: Engines, GitHub and your repository.
If something is off
<NAME> is required.or<NAME> must be a positive number.A line inslack.envis empty or wrong. Fix it, thendocker compose up -d slack.LOOPGATE_SLACK_MEMBERS must read U0123:mem_abc,U0456:mem_def.The people line has a typo.Ignoring Slack events from workspace T….The app is installed in another Slack workspace thanLOOPGATE_SLACK_WORKSPACE_ID.- Anything else. Update, back up, fix says what each line means.