Skip to Content
GuidesUse casesLet ChatGPT run commands

Let ChatGPT run commands on your computer

ChatGPT runs a command on your own computer and answers from its real output: a build, a test run, a look at a log. You decide that it may, for this one agent, and you see every command after.

When to use this

You want an answer that depends on the computer itself, not on what you paste into the chat.

Steps

  1. Connect ChatGPT. A new agent can only read: it can list your machines, read files and see system facts, and it changes nothing.
  2. On your page, open All machines → Agents, pick ChatGPT and switch on exec (grant risk classes). A command can do anything your user account can, so switch on only what the task needs.
  3. Ask in the chat, for example: “Run git status in ~/project on my computer and tell me what changed.” ChatGPT calls exec_run and reads the exit code and the output.
  4. For anything longer than a couple of minutes, ask it to start a task instead (long jobs).

Check

Your page lists the call under ChatGPT with the tool, the machine, the result and the time (the record of calls).

If it fails

  • denied: exec is not on for this agent, or the machine’s ceiling does not allow it.
  • paused: the machine is paused; resume it at the computer.
  • timed_out: use a task for long work.

Revoke an agent · Run commands and tasks · Pause a machine