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.
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
- Open Microsoft Word, open the SquarePact add-in, and sign in.
- Choose OpenClaw Agent. If you do not see that prompt, select OpenClaw Agent from the dropdown above the chat message box.
- On the OpenClaw Setup tab, set the address (by default, this is usually
ws://127.0.0.1:18789). - Run
openclaw dashboardin Terminal or PowerShell. In the browser dashboard, find Gateway Access, reveal the Gateway Token, copy it, paste it into SquarePact, and click Save. - 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.
- 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
The token is rejected
openclaw dashboard, copy the current Gateway Token again, paste it into SquarePact, and click Save.SquarePact cannot reach the OpenClaw agent
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.