HANIVVRA SUPPORT
Set up an AI agent for the CMS
An AI agent can build, clone, edit and check websites on the CMS for you. It works on your own computer, in a folder you choose: it reads the files there, runs commands, and talks to the CMS through its API. Nothing it does goes live by itself. Every change lands in staging, and a person reviews and publishes it in the admin UI.
Getting started takes four steps:
-
Get your API credentials, a small file called
credentials.json. - Make a folder for the agent and put the credentials in it.
- Install an agent: Claude, ChatGPT (Codex), Grok Build or Google Antigravity.
- Give it a first prompt.
1. Get your API credentials
The agent signs in to the CMS with an API key:
- Sign in to your site's admin, at your site's address followed by
/admin/. - Click API, then Manage.
- Type a name for the key, such as
website-agent, and click Create. - In the window that opens, click the download icon beside JSON. Your browser saves the key as
credentials.json.
See the admin quick start for pictures of each step. The file contains a short block of text like this:
{
"domain": "example.com",
"user": "Agent",
"key": "-----BEGIN PRIVATE KEY-----\r\nMC4CAQAwBQYDK2VwBCIEI...\r\n-----END PRIVATE KEY-----\r\n"
}
Save it right away: it is never shown again. If your browser did not download it, use the copy icon beside JSON instead, paste it into a plain text editor, and save it as credentials.json:
- Windows: in Notepad, choose File › Save as, set Save as type to All files, and type the name
credentials.json. Otherwise Notepad saves it ascredentials.json.txt. - macOS: in TextEdit, first choose Format › Make Plain Text, then save it as
credentials.json. If TextEdit offers to add.txt, choose Use .json.
Treat this file like a password. Anyone who has it can change your site's staging area. Do not email it, do not paste it into a chat, and keep it out of shared folders. If it leaks, or you lose it, go to API › Manage, hover over the key and click Regenerate key: the old key stops working, and you get a new credentials.json.
The format is described in full in the API reference, §1.
2. Make a folder for the agent
Every agent below works in one folder on your computer, and that folder is what it reads and writes. Make a new, empty folder for each website, for example Documents/my-site, and put these in it:
credentials.json, from step 1.-
jwtsign.exeon Windows, orjwtsignon Linux, if your system can run it. This small tool signs API requests, so the agent does not have to write code for that. Download jwtsign.zip for Windows or jwtsign.tar.gz for 64-bit Linux, and unpack it into the folder. The Linux version needs a reasonably current system, such as Ubuntu 18.04, Debian 10 or Fedora 26 or later; see the API reference, §7.1. There is no macOS version. It is optional: agents can sign requests without it.
Keep other private files out of this folder. The agent also saves its work here: drafts of pages, stylesheets, notes and plans.
3. Install an agent
Four companies make agents that work this way. Each one comes as a desktop app, which is the easiest way to start, and as a terminal (command line) tool for people who are comfortable typing commands. Pick one; they all follow the same prompts.
| Agent | Desktop app | Terminal tool | Account |
|---|---|---|---|
| Claude (Anthropic) | Claude, Code tab | claude |
A paid Claude plan: Pro, Max, Team or Enterprise |
| Codex (OpenAI) | ChatGPT, Codex mode | codex |
A ChatGPT account; limits depend on the plan |
| Grok Build (xAI) | None yet | grok |
A Grok account, or an xAI API key |
| Antigravity (Google) | Antigravity App | agy |
A Google account; free with weekly limits |
Plans and prices change often, so check each company's own pages, linked below, before you subscribe.
Desktop app or terminal?
A desktop app is a window like any other program: you pick your folder with a button and type in a chat box. The terminal tools do the same work in a text window, and they always use the folder you start them in.
To use a terminal tool, open a terminal in your folder:
- Windows 11: open the folder in File Explorer, right-click an empty spot in it, and choose Open in Terminal.
- macOS: open Terminal (in Applications › Utilities), type
cdand a space, drag the folder onto the Terminal window, and press Return. - Linux: most file managers have Open in Terminal on the right-click menu.
Then type the tool's name (claude, codex, grok or agy) and press Enter. The agent reads what is in that folder, including credentials.json, and asks before it runs commands or changes files.
Claude (Anthropic)
Desktop app. Claude Code is built into the Claude desktop app, for macOS, Windows and Linux (beta).
- Download and install Claude from the Claude Desktop quickstart, then sign in.
- Click the Code tab at the top of the sidebar.
- Under the prompt box, open the environment selector and choose the entry under Local, so Claude works on your computer.
- Click the project folder control next to it, choose Open folder…, and select your folder from step 2.
- Paste your first prompt and press Enter.
In Claude Code, the folder is the project: choose the same folder whenever you start a new session for that website. Do not use the Projects feature of the ordinary Claude chat for this. Chat projects keep uploaded files online and cannot run commands, so they cannot reach your CMS.
Claude asks before it edits a file or runs a command. The permission mode, next to the prompt box, sets how often it asks; Manual asks every time, and Accept edits lets it edit files in the folder without asking.
Terminal. Install it on macOS or Linux with:
curl -fsSL https://claude.ai/install.sh | bash
On Windows, in PowerShell:
irm https://claude.ai/install.ps1 | iex
Open a new terminal in your folder and run claude. The first time, it opens your browser to sign in. See Set up Claude Code and the Claude Code quickstart.
Codex (OpenAI)
Desktop app. Codex is part of the ChatGPT desktop app, for macOS, Windows and Linux.
- Download the ChatGPT desktop app from OpenAI's desktop app page (on Windows, it installs from the Microsoft Store), then sign in with your ChatGPT account.
- Choose Codex from the ChatGPT dropdown.
- In the Projects view, create a local project and choose your folder from step 2. For an existing project, open its menu, choose Edit project, then Add folder.
- Below the message box, set the permission mode to Ask for approval.
- Start a new chat in the project, paste your first prompt and send it.
See Projects and Permission modes in OpenAI's documentation.
Terminal. Install it on macOS or Linux with:
curl -fsSL https://chatgpt.com/codex/install.sh | sh
If you have Node.js, npm install -g @openai/codex works on any system. For other ways to install it on Windows, see the Codex CLI documentation. Then run codex in your folder and choose Sign in with ChatGPT.
Grok Build (xAI)
Terminal. Grok Build is xAI's coding agent. Install it on macOS or Linux with:
curl -fsSL https://x.ai/cli/install.sh | bash
On Windows, in PowerShell:
irm https://x.ai/cli/install.ps1 | iex
Open a new terminal in your folder and run grok. The first time, it opens your browser to sign in; you can also sign in with grok login. See the Grok Build documentation.
Desktop app. As of November 2026, xAI does not offer a desktop app that runs Grok Build in a folder; one has been reported to be in development. The Grok chat app and grok.com cannot work in a folder on your computer, so they cannot reach your CMS. Avoid unofficial "Grok desktop" apps: they would see your credentials. Use the terminal, or one of the other desktop apps.
Antigravity (Google)
Antigravity is Google's agent. It replaced Gemini CLI for free and personal Google accounts in June 2026. Google offers two desktop downloads; for this, use the Antigravity App, not the Antigravity IDE.
Desktop app.
- Download the Antigravity App from antigravity.google/download and install it.
- Click Sign in and sign in with your Google account. When asked what describes your work, any answer works; Knowledge Work keeps the layout simple.
- Click the New Project icon (a folder with a plus sign) in the left sidebar, click Add Folder, choose your folder from step 2, and click Create.
- Paste your first prompt and press Enter. If it asks for a mode, choose Local mode.
With the default permissions, the agent runs commands in a sandbox that has no internet access, and asks you before running a command that needs it. Talking to your CMS needs the internet, so expect it to ask, and approve requests to your site's address. See Getting started and Permissions in Google's documentation.
Terminal. Install the Antigravity CLI on macOS or Linux with:
curl -fsSL https://antigravity.google/cli/install.sh | bash
On Windows, in PowerShell:
irm https://antigravity.google/cli/install.ps1 | iex
Open a new terminal in your folder and run agy. It asks you to confirm that you trust the folder, then opens your browser to sign in.
4. Give the agent its first prompt
Start by checking that the agent can reach your site, before asking it to build anything. Paste this, with your site's address in place of https://example.com:
My CMS is at https://example.com. Its API is documented at https://hanivvra.com/support/api/ and my API credentials are in credentials.json. Read the API reference and the site building guide before doing anything, follow their conventions, and ask me if anything is unclear. Then: list the pages, headers, footers, stylesheets and scripts on my site, and tell me what you find. Do not change anything yet.
This is the first of the ready-made prompts in the AI prompt playbook. Once it works, use the playbook's builder to make a complete prompt for building a new site, cloning one, or redesigning one.
Every agent can also keep standing instructions in a file in your folder, which it reads at the start of every session: CLAUDE.md for Claude, and AGENTS.md for Codex, Grok Build and Antigravity. Putting the first two sentences of the prompt above in that file saves you from repeating them.
Working with an agent
- Read what it asks to do. Agents ask before running commands. Requests to your own site's address, and to
cmsdocs.cirqlive.comto read these docs, are expected. If something looks unrelated to your site, say no and ask why. - Answer its questions. Good prompts tell the agent to ask when something is unclear. A short answer now saves a redo later.
- Review before you publish. The agent's changes wait in staging. Look them over in the admin and publish when you are happy with them; see Reviewing and publishing.
- Keep the key private. The prompts tell the agent never to print or copy the key. If you ever see the key in the chat, regenerate it in the admin.
