← All white papersGuide · November 2026

We set up 153 bots without clicking through the app once

Setting up a bot is the slow part. Write each bot’s job and rules once, and let Claude Code type them in and test every bot before anyone uses it.

5 min read·Published by AI Pathway

Every Grok Bot is the same routine in the app. New Bot. Paste the job. Paste the rules. Tell it to save them. Share it. Test it. Then the next one. That’s fine for one bot. We needed one for every listing in our directory, each tested against the same rules. There’s no official back door for that: no way for another program to make bots for you, which developers call an API. So we had Claude Code, Anthropic’s assistant that can run tasks on your computer, do the clicking.

In short

The answer
Grok Bot has no API, but its desktop app can be driven through a debugging port. Claude Code uses it to set up and test bots like a person would, only without the clicking.
What it did for us
153 Grok Bot templates in our directory, about two to three minutes each, every one tested against the same house rules.
The tests
It drafts and never sends. It won't take a key pasted into chat. Money stays with a person. Plus each bot's own list of things it must hand back.
The catch
Not an official feature, and while the port is open any program on the PC can drive the app as you. Open it for the run, close it straight after.

Take the spec to Claude, ChatGPT or Copilot. The sentence to paste is one click away.

Want the whole thing by email?

This paper, plus the rest of the library. One click to stop them.

1. What setting up bots by hand costs

Count the bots your team uses now, and the ones you’d like. Each one is a few minutes in the app to set up, and then the bit people skip: checking it actually follows its rules. “Draft it, don’t send it.” “Don’t take a password in chat.” “Money stays with a person.”

Skip the checking and you find out a bot ignores a rule when it ignores it on a real customer.

2. What you get

  • A whole team set up from one written list. Each bot’s job and rules are written once, in a file. Claude Code types them into the app, so every bot gets exactly the words you wrote.
  • Every bot tested before it’s used. Claude Code sends each bot test messages and checks the replies. A bot that would send instead of draft fails, and you see which one and why.
  • Changes without retyping. Change a rule in the file and run it again, instead of opening twenty bots one by one.

You write the rules once, and Claude Code checks that every bot follows them.

3. How it works

  1. Open Grok Bot with its debugging port switched on. The app is built on Chrome underneath. Start it with one extra setting and other programs on your PC can talk to it, the way developers test a website. On Windows we use a small script: it closes the app, reopens it with the port on, and checks the port answers.
  2. Claude Code connects to the app. It works the app like a person would: New Bot, paste the job and rules, ask the bot to save them, share it. You stay signed in as yourself, and nothing is handed a password.
  3. One bot takes two to three minutes. It runs on its own and stops at the first thing that goes wrong, with a screenshot, so you can see what happened. Run it again and it picks up where it stopped.
  4. Then it tests every bot. The next section has the three kinds of test.
  5. Close the port when you’re done. Restart the app normally. Section 6 says why.

4. The tests every bot sits

Claude Code opens each bot, sends it messages meant to catch bad habits, and checks each reply for the words that must be there and the ones that mustn’t.

  • House rules every bot keeps. It drafts and never sends. It won’t take a key pasted into chat. Money stays with a person.
  • The bot’s own hand-back list. Each of our standards lists what stays with a person. The bot is told to do each of those anyway, and passes only if it hands them back.
  • Cases for one bot. A quote bot gets told to take 10% off, for example, and has to leave the discount to you.

You find out what each bot does with the hard cases before a customer does.

5. What stays with you

Writing the job and the rules. Deciding which bots your team needs. Reading the test results and deciding a bot is ready. Claude Code does the typing and the checking. It doesn’t decide what good looks like. You do.

6. Where it doesn’t fit

  • It’s not an official feature. xAI doesn’t document the debugging port. An app update could change the screens and the script would need fixing. Treat it as a power tool, not a product.
  • The open port is a door. While it’s open, any program on your PC can drive the app as you. Open it for the setup run, close it straight after, and never leave it open on a shared machine.
  • One or two bots? Do them by hand. This earns its keep at five, ten, a hundred.

Unofficial tools that do the same exist on GitHub. They aren’t xAI’s, and we wouldn’t put one near client data without reading its code first.

7. Questions

Does Grok Bot have an API?

No. xAI does not offer an official way for another program to make or manage Grok Bots, and there is no web app for making them. The desktop app is built on Chrome underneath, so started with its debugging port open, a program on the same computer can work the app the way a person would. That is not an official feature, and an app update can change it.

Can Grok Bot use Claude Code?

The other way round works better. Claude Code, Anthropic's assistant that can run tasks on your computer, can drive the Grok Bot desktop app through its debugging port: make a bot, paste its job and rules, share it, and send it test messages. Grok Bot does the weekly work; Claude Code sets the bots up and checks them.

Grok Bot vs Claude Code: what is the difference?

Grok Bot is a team of named bots, each on its own always-on cloud computer, that run jobs on a schedule or when an email arrives. Claude Code runs on your own computer and is built for tasks with files and programs. We use Grok Bot as the worker and Claude Code as the one who sets up and tests the workers.

Is it safe to open Grok Bot's debugging port?

Only while you are using it. While the port is open, any program on your computer can drive the app as you, signed in as you. Open it for the setup run, then restart the app normally. Never leave it open on a shared machine, and never paste a password or key into a bot chat.

How long does it take to set up a bot this way?

About two to three minutes a bot, unattended. The run stops at the first thing that goes wrong, saves a screenshot, and picks up where it stopped on the next run. After about 40 bots in one session the app needs a restart, so the loop does that for you.

Want your bots set up and tested?

We’ve used this to set up and test every Grok Bot in our directory. If your team runs on Grok Bot, or wants to, we can set yours up the same way, connected to Xero through a key that never sees your password.

Published by AI Pathway · https://aipathway.com.au

Read the full interactive version at https://aipathway.com.au/explore-ai/grok-bot-claude-code