Play videoPlug Claude Code and Codex straight into Grok Bot for $0 extra

I just posted a short video about plugging Claude Code and Codex straight into Grok Bot. This is the written version, with the commands, the settings and the fine print that would not fit in under two minutes.

Here is the short version. I message one bot from my phone, it hands the heavy job to Claude Code or Codex on my Mac, and I never pay for a new subscription.

What Grok Bot is, in plain words

Grok Bot is a team of AI agents that work from their own computer in the cloud. It launched in August 2026, and its docs call it “your proactive AI teammate”. You message a bot the way you would message an employee, and it goes and does the work.

If you have heard of OpenClaw, the open-source assistant you set up and run yourself, think of Grok Bot as the non-technical version. And yes, OpenAI has dots inside ChatGPT, and Anthropic has Claude Duet, which is still a waitlisted research preview in a handful of countries.

But if you have used Grok Bot for your business, you can already feel the difference. I don’t have to repeat myself. It goes looking for things before I ask. And it finishes the job. I have dedicated bots running different parts of my business, they pass work to each other, and when one drafts an email I get a card I can edit and send right inside the chat.

The Grok Bot overview page in its official docs, with the heading An entire team of bots.
The Grok Bot overview page in its own docs.Select the image to view it full size.

Where the operator stops and the builders start

Grok Bot is my operator. It runs the routines. But when the job is heavy writing, coding or building a system, I still want Claude Code and Codex doing the heavy lifting. They are the builders.

For a business owner, a heavy job looks like one of these.

  • Turning a folder of invoices or receipts into one clean spreadsheet.
  • Writing a long proposal or a staff handbook from your own notes and files.
  • Building or fixing a small tool, like the quote calculator I built with Claude.

The usual way is to open Claude or Codex and dig through 50 random threads to find where you left off. I would rather tell one bot what I want and let it brief the right builder.

What headless means

Claude Code and Codex are normally tools you sit in front of. Both can also run with no window open. You give one instruction, it does the job, and it hands back the result. People call that running them headless. Anthropic and OpenAI both call it non-interactive mode.

Three frames from the reel. Claude Code and Codex sit inside a Mac under a Grok Bot cloud, with plan cards marked paid, a $0 extra sign and the word headless.
From my reel. Both tools run on my Mac, on the plans I already pay for, with no window open.Select the image to view it full size.

For Claude Code the command is claude -p with the job in quotes. For Codex it is codex exec.

Claude Code command
claude -p "Read the PDFs in my Downloads/invoices folder and save a table of client, amount and due date as invoices.csv" --allowedTools "Read,Write"

Codex command
codex exec "Check the contact form in my website project and list anything that looks broken"

The last part of the first command matters. A headless run cannot stop and ask you for permission, so you tell it up front which tools it may use. Skip that and any step that needs permission, like saving the file, gets denied.

Codex has two habits of its own. It starts these runs read-only, so it can look and report but not change anything until you add --sandbox workspace-write. And it only runs inside a project folder that uses Git, unless you add --skip-git-repo-check.

Two docs pages side by side. Anthropic's page Run Claude Code programmatically and OpenAI's page Non-interactive mode.
Anthropic’s and OpenAI’s own pages for running each tool with no window.Select the image to view it full size.

The setup

Grok Bot has no button for this. What it does have is a setting that lets a bot run a command on your own computer, and that is all you need.

  1. Install Claude Code and Codex on your Mac or PC and sign in to each with your own subscription. Run both commands above once by hand, from inside the folder you want them to work in, so you know they work.
  2. Install the Grok Bot desktop app on that same computer. The app is how a bot reaches your machine.
  3. In Grok Bot, open Settings, then Computer, then Your computer, and find Execution on this computer. The choices are Ask every time, Always allow and Never allow. Stay on Ask every time while you test. Each approval card shows the exact command before it runs.
  4. Teach your bot two shortcuts. Mine are CL for Claude Code and CX for Codex.

Grok Bot has no settings screen for this. You tell the bot the rule in chat and ask it to remember it. An instruction like this one is enough to start. Change the wording to fit how you work.

Remember this. When my message starts with CL, the rest is a job for Claude Code. Write a complete brief with the goal, the folder to work in and what done looks like. Run it on my computer in that folder with claude -p, and add --allowedTools “Read,Write,Edit” when the job saves or changes files. Send me the result. When my message starts with CX, do the same with codex exec, and add --sandbox workspace-write when the job changes files.

Memory belongs to the one bot you told. If you want every bot to know the shortcuts, ask it to save them as a skill instead.

Then send a small test, such as CL list the five largest files in my Downloads folder.

The brief is the part people skip. I type one lazy line, and Grok Bot writes the exact instructions before it hands them over. A builder with a clear brief does far better work than one with a single sentence.

A card titled My two shortcuts. CL calls Claude Code with the command claude -p, and CX calls Codex with the command codex exec.
My two shortcuts on one card.Select the image to view it full size.

Why this is huge for a business owner

Grok Bot runs in the cloud, in its own virtual machine. That is why it keeps working when my laptop is shut. But my browser with all its logins, my files and my downloads live on my Mac, and the cloud computer cannot touch them.

Claude Code and Codex can, because they run right there on the Mac.

Three frames from the reel. Grok Bot in its own computer in the cloud, Claude Code and Codex on my Mac beside the browser, files and downloads, and a job delegated from my phone.
From my reel. Grok Bot has its own computer in the cloud. Claude Code and Codex run on my Mac.Select the image to view it full size.

So while I am out and away from my desk, I message Grok Bot on my phone and it delegates local Mac work straight to Claude or Codex.

A cartoon of Kevin at a cafe table sending a message from his phone. A gold line runs to his home office, where two small robots work at his computer.
Cartoon me, made with Claude and Higgsfield. One message from a cafe, and the work happens on the Mac at home.Select the image to view it full size.

The Mac has to be on and awake for this, with the Grok Bot desktop app open. A sleeping computer runs nothing. And while you are on Ask every time, each command waits for your yes, so check that the approval card reaches your phone before you rely on this away from your desk.

One setting to check before you leave your desk

Claude Code has a feature called Remote Control. It lets you open a Claude Code session that is running on your computer from the Claude app on your phone. If it is off, that session does not show up on your phone at all.

You can turn it on for one session by typing /remote-control. To turn it on for every session, run /config and switch on Enable Remote Control for all sessions. In the Claude desktop app it is a switch in the session details.

Anthropic's docs page titled Continue local sessions from any device with Remote Control.
Anthropic’s docs page for Remote Control.Select the image to view it full size.

One honest note. The docs describe Remote Control for sessions you open and work in yourself. They do not say whether a headless run started by a bot shows up there, so test it on your own setup before you count on it. Either way, the answer from a headless run goes back to the bot that asked for it.

The fine print

Zero extra dollars means no new fee. It does not mean unlimited.

  • Headless runs draw from the same Claude and ChatGPT plan limits as your normal use. Anthropic says so for Claude Code, and OpenAI’s pricing page says local work shares your plan’s allowance. Heavy use will hit those limits sooner.
  • Grok Bot itself comes with the Premium, Super and Ultra plans, not Plus. Every message to a bot also spends its own weekly usage.
  • This is my own setup, not an official integration. No Grok Bot page mentions Claude Code or Codex. It works because a bot is allowed to run a command on your computer.
  • Sign in to Codex with your ChatGPT account. With an API key, those runs are billed at API prices instead.
  • You are letting an AI run commands on the computer that holds your files. Grok Bot’s own docs suggest Never allow unless a bot has a real reason to work on your computer. This is that reason, so turn it on knowingly and keep approvals on Ask every time until you trust what it sends.

If you don’t use Grok Bot

You can still try the core of this today. Open the terminal on your computer, type claude -p and one job in quotes, and watch it finish with no window open.

Then pick one heavy job you keep putting off, write it as one clear brief and hand it over.

Sources are the Grok Bot docs, Anthropic’s Claude Code docs and support article, OpenAI’s Codex docs and pricing page, the launch pages for dots and Claude Duet, and OpenClaw’s site, all linked above.

Join my AI Community👇

www.tengaischool.com

Share This Article