OpenClaw Agent Setup

Use OpenClaw with SquarePact

SquarePact can use an OpenClaw agent instead of the cloud SquarePact Agent. OpenClaw connects the Word add-in to an AI model running on your computer or via API key, while SquarePact still gives the agent access to the add-in's document tools.

Time needed About 5 minutes, assuming you already have OpenClaw set up.

1. Install OpenClaw

OpenClaw manages the AI on the backend. OpenClaw communicates with the LLM of your choice, whether a paid API like Claude or a local LLM. Follow instructions at OpenClaw's website to set up.

With freedom comes responsibility. We do not claim responsibility for the accuracy or privacy of your OpenClaw agent or the LLMs it uses. If you prefer not to control this yourself, then you can just use the SquarePact agent that comes with the add-in.

2. Connect SquarePact to OpenClaw

  1. Open Microsoft Word, open the SquarePact add-in, and sign in.
  2. Choose OpenClaw Agent. If you do not see that prompt, select OpenClaw Agent from the dropdown above the chat message box.
  3. On the OpenClaw Setup tab, set the address (by default, this is usually ws://127.0.0.1:18789).
  4. Run openclaw dashboard in Terminal or PowerShell. In the browser dashboard, find Gateway Access, reveal the Gateway Token, copy it, paste it into SquarePact, and click Save.
  5. In SquarePact, copy the "allow this add-in" command, paste it into Terminal or PowerShell, and press Enter. Then copy and run the restart command shown below it.
  6. Return to the Chat tab, keep OpenClaw Agent selected from the dropdown, open a document, and ask something like What is this document about?

If something does not work

OpenClaw does not allow this add-in yet
Run the allow command from the SquarePact OpenClaw Setup tab again, then run the restart command and try a new chat.
The token is rejected
Run openclaw dashboard, copy the current Gateway Token again, paste it into SquarePact, and click Save.
SquarePact cannot reach the OpenClaw agent
Run openclaw gateway status. If it is not running, run openclaw gateway restart. If you are calling a local LLM, make sure that's working. If you're calling a remote API (like Claude), make sure it's not down.
Answers are too slow
The model may be too large for your computer. Download a smaller model, then select it in OpenClaw and restart the gateway.
You can switch back to the regular SquarePact Agent at any time with the dropdown above the message box. OpenClaw Agent and SquarePact Agent can stay set up side by side.