# Starter CLAUDE.md and AGENTS.md

Source: https://help.ruuster.com/idx/ai-starter-files

> The starter CLAUDE.md and AGENTS.md instructions files, which point your AI coding assistant at START_HERE.md and RUUSTER_IDX.md and name your environment variables.

Your AI coding assistant (Claude Code, Codex, Cursor or similar) reads an instructions file at the
start of every session: `CLAUDE.md` (Claude Code) or `AGENTS.md` (Codex and most others). A few lines
in either file make the assistant read [RUUSTER_IDX.md](https://help.ruuster.com/idx/RUUSTER_IDX.md)
before it touches a listing page, and pick up your setup where you stopped, from the checklist file
that [START_HERE.md](https://help.ruuster.com/idx/START_HERE.md) keeps. The list of environment
variables tells it which names to use. The files hold names only, never key values.

If you started with the starter prompt on
[Build it with your AI coding assistant](https://help.ruuster.com/idx/build-with-ai), ask the assistant
to add these lines for you.

## CLAUDE.md

Save this at the root of your project, or add it to the `CLAUDE.md` you already have:

<p class="code-title"><code>CLAUDE.md</code></p>

```markdown
Listings come from the Ruuster Listings API. Read RUUSTER_IDX.md before touching any listing page, and follow its MUST and NEVER rules.
Setup follows START_HERE.md, step by step. Read LISTINGS_SETUP.md at the start of every session, continue from the first step that is not done, and update it after each step.
The key is in .env.local: IDX_SECRET_KEY (server only). Never print, log or commit it. No key goes in any page: pages call the /api/idx route made with @ruuster/idx/route (or, with no server, the widgets with no key from the approved website address).

Environment variables this site uses: IDX_SECRET_KEY, NEXT_PUBLIC_IDX_KEY (not used: leave it unset), IDX_BASE_URL (leave it unset), SITE_ORIGIN, SITE_NAME, SITE_AGENT_NAME, SITE_AGENT_PHOTO_URL, SITE_AGENT_PHONE, SITE_AGENT_EMAIL, SITE_AGENT_LICENSE, NEXT_PUBLIC_GOOGLE_MAPS_KEY, NEXT_PUBLIC_GOOGLE_MAP_ID, NEXT_PUBLIC_GTM_ID, RUUSTER_WEBHOOK_SECRET, and the CRM settings FUB_API_KEY, FUB_SYSTEM, FUB_SYSTEM_KEY, FUB_COOKIE_SECRET, SIERRA_API_KEY and SURESEND_API_KEY.
```

## AGENTS.md

The same text, for assistants that read `AGENTS.md`:

<p class="code-title"><code>AGENTS.md</code></p>

```markdown
Listings come from the Ruuster Listings API. Read RUUSTER_IDX.md before touching any listing page, and follow its MUST and NEVER rules.
Setup follows START_HERE.md, step by step. Read LISTINGS_SETUP.md at the start of every session, continue from the first step that is not done, and update it after each step.
The key is in .env.local: IDX_SECRET_KEY (server only). Never print, log or commit it. No key goes in any page: pages call the /api/idx route made with @ruuster/idx/route (or, with no server, the widgets with no key from the approved website address).

Environment variables this site uses: IDX_SECRET_KEY, NEXT_PUBLIC_IDX_KEY (not used: leave it unset), IDX_BASE_URL (leave it unset), SITE_ORIGIN, SITE_NAME, SITE_AGENT_NAME, SITE_AGENT_PHOTO_URL, SITE_AGENT_PHONE, SITE_AGENT_EMAIL, SITE_AGENT_LICENSE, NEXT_PUBLIC_GOOGLE_MAPS_KEY, NEXT_PUBLIC_GOOGLE_MAP_ID, NEXT_PUBLIC_GTM_ID, RUUSTER_WEBHOOK_SECRET, and the CRM settings FUB_API_KEY, FUB_SYSTEM, FUB_SYSTEM_KEY, FUB_COOKIE_SECRET, SIERRA_API_KEY and SURESEND_API_KEY.
```

## Then

1. Save `START_HERE.md` and `RUUSTER_IDX.md` beside the file. Download `RUUSTER_IDX.md` again after
   each release: the version line at its top says which release it describes.
2. Put your keys in `.env.local` and keep `.env.local` out of git (Next.js projects ignore it already).
3. Paste a prompt from the [prompt library](https://help.ruuster.com/idx/build-with-ai).

Never paste a secret key into a chat. The assistant reads the variable names from these files and
never needs the values.
