Claude Code or Codex is not connected

Castle says your agent is not connected, or did not find Claude Code or Codex. How to check, connect again, restart the agent and read the result.

You see Claude Code is not connected or Codex is not connected, or Castle says No agent found on this Mac, with the line “Install one in your Terminal. Castle looks again by itself until it appears.” Or your agent acts as if it has never heard of Castle.

Check in Castle

  1. Open Settings › Agents. It lists the agent apps Castle found, and whether each is connected.
  2. If an app says Found, choose Add…. If it says Update ready, choose Update. If it was connected and has gone quiet, choose Reconnect.
  3. If Castle says No agent found on this Mac, install the agent app in your Terminal. Castle looks again by itself until it appears.
  4. If it is Not signed in, sign in to the agent app first. Castle shows the command to run in Terminal.

See Connect your agent for the steps.

Restart the agent

After you connect, restart the agent app if it was open. It reads Castle’s entry when it starts.

Check from a terminal

castle integrate
castle agents

castle integrate says what is connected. castle agents says whether agents are allowed for all of Castle and for each device. If it says agents are off, see Agents are off.

If your terminal says castle: command not found, run castle integrate terminal, then open a new terminal window.

Other agent apps

For an agent app Castle doesn’t set up, Settings › Agents has a Use any other agent app row. Its Copy the Prompt button gives you a prompt to paste to that agent.

Still stuck

Get support. Say which agent app you use, and copy what castle integrate printed.

Last updated

View as Markdown