Citelog quickstart
Check whether AI answer engines can quote a page, in one command. No account, nothing sent to us.
Run it once
You need Node 22.12 or later. Give Citelog your site's address:
npx citelog yoursite.comIt first shows what AI crawlers see on your home page, as they fetch it, without running JavaScript: the words of text, the headline, an empty app root such as <div id="root">, FAQ data, and which AI crawlers robots.txt blocks. If your page's text only appears after JavaScript runs, add --render to count what people see. That uses a Chrome you already have, and nothing is sent to us.
What AI crawlers see on your home page
Words of text 0
Headline none
App root <div id="root"> is empty
robots.txt allows all main AI crawlers
FAIL ChatGPT, Perplexity and Claude get no text to quote.
People see text only after JavaScript runs.
Fix Render the main text on the server (SSR or a
static build) so it is in the HTML.Then come the page-by-page checks. npx citelog yoursite.com is short for check. Point check at a site, a sitemap, one page, or a folder of built HTML:
npx citelog check yoursite.com$ npx citelog check yoursite.com
citelog 0.1.0 · part of Morningdesk
Read sitemap.xml: 41 pages
Page Score Result
/learn/compound-interest 86 WARN 1
/learn/etf-vs-index-fund 88 WARN 1
/pricing 89 WARN 1
… 38 more (3 warn, 35 pass)
WARN /learn/compound-interest
Question-style subheadings
Fix: make one subheading a question.
Site score 89 Needs work (50–89)
41 pages · 0 fail · 6 warn (--verbose lists all)
llms.txt found (info, not scored)It reads up to 50 pages (change it with --max-pages), scores each page from 0 to 100, scores the site, and prints the fix for each failure. To check a build before you deploy it, pass the folder: npx citelog check ./dist.
Prompt checks use your own keys.
Add an engine key to see whether answers cite you. Citelog never sends your keys anywhere but that engine.
What it checks
Title and headings, a canonical that points to itself, structured data, crawler access for AI bots, and more: ten checks, the same ones the desk uses. Nine are scored; llms.txt is reported but not scored, because the evidence that engines use it is thin.
| Check | Why it matters |
|---|---|
| Page indexable (200, no noindex) | Engines leave out pages that don't load or ask not to be indexed. |
| robots.txt allows the main AI crawlers | AI answers can only cite pages their crawlers are allowed to read. |
| Content present without JavaScript | AI crawlers mostly read the HTML as sent and don't run JavaScript. |
| A short direct answer near the top | Engines quote a plain answer they can lift whole. |
| Valid JSON-LD | Structured data tells engines what the page is, who wrote it and when. |
| Canonical points to itself | A canonical tells engines which URL to cite when the same page has several addresses. |
| Title and meta description | Engines use the title and description to understand the page and label it in answers. |
| Question-style subheadings | Questions match how people ask AI. |
| Visible "updated" date matches structured data | When the dates disagree, engines may treat the page as stale. |
| llms.txt present | Not scored: evidence that engines use it is thin. |
Scores fall in three bands: Ready 90–100, Needs work 50–89, Not ready 0–49. When a run can't check anything (the site is down, say), there is no score.
Add your prompts
Prompts are the questions your customers ask AI. Citelog asks each engine whose key is set and marks each answer:
- cited: it linked a URL on your domain.
- named: it says your name or domain without a link. Links and link chips like "(your-site.com)" don't count.
- -: neither. Citelog also lists who was cited instead.
After the table it lists Considered, not cited: pages on your site the engine read for the answer but didn't link. Gemini reports the site only, so its rows read "a your-site.com page". When an engine doesn't say which sources it read, the line reads "Not collected for" that engine, never zero.
npx citelog init https://yoursite.comThat writes a starter citelog.config.json. Add your prompts to it:
{
"site": "https://yoursite.com",
"brandTerms": ["Your Product", "yoursite.com"],
"prompts": [
"best budgeting app for beginners",
{ "text": "your-product vs a-competitor", "topic": "Comparisons", "stage": "evaluation" }
],
"engines": ["openai", "anthropic", "perplexity", "gemini"],
"failUnder": 80,
"maxPages": 50
}A prompt is a string, or an object with text, an optional topic and an optional stage (discovery, evaluation or decision). Without a stage, a word rule picks one: "price", "cost", "sign up" or "worth it" means decision; "vs", "alternative", "review" or "compare" means evaluation; anything else is discovery. Only the text is sent to engines.
brandTerms lists up to 5 names that count as named (whole words, any case). Without it, Citelog uses your domain and, for a domain like yoursite.com, the name before the dot.
Set a key for each engine you want to ask, then run the prompts:
| Engine | Environment variable |
|---|---|
| ChatGPT | OPENAI_API_KEY |
| Claude | ANTHROPIC_API_KEY |
| Perplexity | PERPLEXITY_API_KEY |
| Gemini | GOOGLE_API_KEY (or GEMINI_API_KEY) |
npx citelog promptsEach run prints an estimated cost from token counts; your provider's bill is the source of truth. API answers can differ from what a person sees in ChatGPT and the other apps.
See the plan first
npx citelog prompts --plan--plan prints the prompts by topic and stage, the engines that would be asked and the estimated cost per engine, then exits. Nothing is sent to any engine, even with every key set. The estimate uses list prices for a typical answer, so treat it as rough.
Perception
npx citelog prompts --perception--perception asks a small model whether each answer that names or cites you is positive, neutral or negative, with a short reason. It uses Claude Haiku 5.5 on ANTHROPIC_API_KEY, else gpt-6-luna on OPENAI_API_KEY, and judges only answers about you. One answer costs about $0.00014; the run prints the total on its own line. Without either key it says so and costs nothing. The judge reads another engine's answer, so a ChatGPT answer goes to Anthropic when Claude is the judge. It is one model's reading, not a fact.
Read your server logs
npx citelog logs ./access.logCitelog reads nginx or Apache combined logs, Cloudflare Logpush JSON and Vercel log drain JSON, and prints AI crawler visits by bot and page. Each bot is marked verified or unverified against the vendor's published IP ranges, from a dated snapshot that ships inside Citelog: nothing is looked up at run time. See log sources.
Commands, options and exit codes
| Command | What it does |
|---|---|
check <url | sitemap.xml | ./dist> |
Readiness checks, up to 50 pages |
logs <file> |
AI crawler visits in an access log |
prompts |
Ask engines your prompts, with your keys |
init [site] |
Write a starter citelog.config.json |
| Option | What it does |
|---|---|
--json |
Machine-readable output |
--md |
Markdown, for pull requests and job summaries |
--fail-under <0-100> |
Exit 1 when the site score is below this |
--max-pages <n> |
Pages to read from a sitemap or folder (default 50) |
--format <name> |
Log format for logs: combined, cloudflare or vercel (default: detect) |
--site <domain> |
Site for prompts (default: site in citelog.config.json) |
--plan |
prompts: print the plan and the estimate; nothing is sent |
--perception |
prompts: judge answers that name or cite you, on your OpenAI or Anthropic key |
--config <file> |
Config file (default: citelog.config.json) |
--verbose |
List every page and every issue |
--no-color |
Plain output (also NO_COLOR=1) |
-h, --help |
Show help |
-v, --version |
Print the version |
Exit codes: 0 ok (warnings included), 1 the score is below --fail-under, 2 couldn't run (site unreachable, unknown log format, bad config).
Next: the Action
Run the same checks on every pull request, with one comment that says what to fix. Set it up in GitHub Action setup.