Repository avatar
AI Tools
v0.1.1
active

marmalade

io.github.AlexjComeau/marmalade

Track which brands AI engines name and cite for your buyers' questions.

Documentation

Marmalade: find out which brands AI recommends to your buyers.

English  ·  简体中文  ·  日本語  ·  Español  ·  Português  ·  Deutsch  ·  Français

Built by Alex Comeau

Tests MIT license Python 3.12 or newer No dependencies Answers graded by Jev 1.14 Marmalade on Glama

Demo report  ·   Docs  ·   Compare  ·   Changelog  ·   Discussions

https://github.com/user-attachments/assets/89be7be2-8307-465d-964a-f535dbd8c31f

Stop paying hundreds for AEO / GEO.

Marmalade asks ChatGPT, Gemini, Perplexity and four other AI engines the questions your buyers ask, and shows you which brands they recommend. Then it gives you a ranked plan of pages to write or fix, so they name you too.

How to set it up in Claude Code, start to finish (1:37):

https://github.com/user-attachments/assets/80189378-9026-47c6-b2e4-c12914fc2c3f

For AEO (answer engine optimization), it is an open source alternative to Profound, Peec AI and Jam. It runs on your machine and keeps every answer. You pay only for the API calls: about $4.80 a month for 50 questions on six engines every week. Jam's entry plan lists the same tracking at $144 a month (every plan compared).

Every answer is graded by Jev, a decision model made by TypeSafe, for about $0.0001 an answer. Jev decides which brands an answer really means, so a common word, or another company with your name, is not counted as yours. It also grades how the answer describes each brand, which one it recommends, and whether it gets your facts right. Jev returns labels and probabilities, never text of its own.

One command builds a sample project, then the report opens: scores, a trend line and a leaderboard

See it before you install: the demo report, or a real report on PostHog (its files), which took 118 answers from five engines and cost 20 cents. There are also cards showing who AI names for product analytics, CRMs and email marketing.

Get started

Setting up with an AI agent? Give it this repo's link. AGENTS.md has the steps it follows.

pipx install marmalade-ai    # Python 3.12 or newer, no other dependencies

New to pipx? Install it first. With uv instead: uv tool install marmalade-ai. Upgrade later with pipx upgrade marmalade-ai, and remove it with pipx uninstall marmalade-ai. Windows notes are in the FAQ.

  1. Audit your site for free. marmalade audit yoursite.com checks whether AI bots can read your site. It needs no key and no project.

  2. Get a Treg key. Marmalade reaches every engine through Treg, a service that gives you one key and one bill for all of them. You sign up and pay there, per answer. There is no Marmalade account. On 26 November 2026, a new verified Treg account came with $1.00 of free credit, enough for about twenty first looks.

  3. Set up and take a first look. marmalade start yoursite.com asks for your key with the typing hidden and saves it in the project's .env file. After you say yes, it drafts your competitors and about 25 questions from your home page, for under a cent. Then it offers a first look: 10 questions on ChatGPT, Google AI Overviews and Perplexity, for about 5 cents. It asks before each paid step, and it opens your report at the end.

  4. Check the draft, then scan everything. start makes a project folder, marmalade-yoursite-com. Read its marmalade.toml, the file that lists your brand, competitors and questions. Fix any competitor it got wrong, and cut the questions no buyer would ask. Then:

    cd marmalade-yoursite-com
    marmalade run       # every question on every engine, then the plan and the report
    

    marmalade run prints its price and asks before it spends. marmalade schedule puts it on a timer: a cron line, a macOS launchd job, a Windows scheduled task, or a GitHub Actions workflow that runs while your computer is off. Add a Slack, Discord or Teams webhook to .env and every run posts the headline numbers there (two minutes of setup).

The five steps and their commands: set up (init, doctor), scan, read (report, changes), fix (plan, why, verify), repeat (run, schedule, slack).

No key yet? marmalade demo --open builds a made-up project and opens its report. In a project, plain marmalade tells you where things stand and what to run next. Your first ten minutes walks through every step, including how to do each one by hand. The product's own words, such as first look, the plan and brief, are defined in the glossary.

How it works

Your questions go through Treg to seven AI engines. Every answer is stored on your machine. From the answers you get the report, the plan and an MCP server for your agent.

Marmalade sends each question through Treg and stores the full answer on your machine. Everything else, from the scores to the plan, is worked out from those stored answers. Each answer is graded once by Jev, through the same Treg key, and the model's version is stored with the grade (what Jev is asked, word for word).

What you get

The marmalade report on demo data: a one-sentence summary, the first three actions, visibility, citation share, average position, a trend line and a leaderboard

Three numbers

NumberWhat it means
VisibilityThe share of answers that name you
Citation shareThe share of answers that link to your site
Average positionWhere you come among the brands you track, when you are named

A visibility of 40% means 40 of every 100 counted answers named you. Answers vary from one scan to the next, so each figure carries a noise band, and a move smaller than the band is marked "within noise". Questions that already name you or a competitor are asked but left out of the scores, so the numbers come from questions any brand could win. Each number is worked out from answers like this one (how, in detail):

One made-up AI answer to 'best crm for a small agency' naming three brands with Lumen second, citing a link on Lumen's own site and graded for tone, and how it adds to Visibility, Citation share and Average position.

Who gets named, and how

  • A leaderboard against the competitors you pick, with each brand's share of voice, a trend line and breakdowns by engine, topic, question, buyer stage, who is asking and audience.
  • A competitor map from the first report. It shows who the answers name in each topic, including names you do not track yet. marmalade discover lists those names, and marmalade add-competitor tracks one by re-reading the answers you already have, so nothing is asked again.
  • How AI describes you. The newest sentence each engine wrote about you, side by side, with the tone of every mention. Answers that name you are checked against your facts.md, and a wrong price, a wrong plan or a description of a different product is flagged.
  • Your niche and the rest. Set niche, or let Marmalade spot it in your questions, and the report splits your numbers between the questions that name it and the rest.
  • The answers themselves. Open any question in the report to read what each engine said, with every tracked brand marked, and the pages it cited, grouped by kind: your site, competitors' sites, review sites, community and docs.

What to fix

marmalade analyse turns the answers into the plan: ranked actions of five kinds.

KindWhen it appears
Write a pageA question with three or more answers names you in 34% of them or fewer, whether competitors win it or none is named yet
Fix a pageYour page is cited but the answer does not name you; an answer gets a fact wrong; a page of yours the engines cite returns 404, says noindex or names another page as its canonical; or a review or GitHub page cited in answers about you should be checked against your facts
Site setuprobots.txt or your CDN turns AI bots away; or there is no llms.txt, no sitemap, no structured data, no text or prices without JavaScript, no Markdown docs for coding agents, or there are pages with almost no text of their own
Get listedA third-party page carries your competitors into answers you are missing from
Join a threadA thread the engines quote names your competitors and not you

Each action says how many answers are behind it and comes with instructions you can hand to your own AI agent. marmalade next says what is worth doing now. marmalade brief ID writes a page brief from the answers and the pages the engines cite: who is named in your place, what those pages have that yours lacks, an outline, and the facts you may use. Your agent or a writer drafts the page, or marmalade draft ID writes a first draft from the brief and your facts, through Treg or through a coding agent on your machine. The draft check, marmalade check draft.md --for ID, holds any draft against the brief and lists every figure that is not in your facts file.

The loop: scan, decide with marmalade next, get a brief, your agent writes the page, check the draft, verify on the next scan.

marmalade why ID reads the pages the engines cite for a question and lists how they differ from yours, such as a comparison table, a FAQ, prices, a date or structured data. It shows what those pages have; it cannot say why an engine chose them. When the page is live, mark it with marmalade action ID --status shipped --url https://..., keep scanning, and marmalade verify tells you whether the answers moved or the new page got cited. The whole loop, step by step: docs/next-steps.md.

Alerts, data and extras

  • Alerts. A question lost on three engines, a wrong fact or an engine that is down leads the report, the digest and the message in Slack, Discord or Teams. marmalade changes prints what moved since the last scan.
  • Demand. marmalade volume estimates how often people ask AI tools about each topic and brand you track, for about a cent. Busier topics move their actions up the plan.
  • AI bots on your site. marmalade traffic access.log reads your own server logs: which AI bots read which pages, where they hit errors, and how many people arrived from AI answers. It is free and sends nothing anywhere (how to get the logs).
  • A card to share. marmalade card draws a "who AI names" image from your answers, with your brand in orange. It is free.
  • A badge for your README. marmalade badge writes a badge that says in how many AI answers you are named, and the scheduled scan keeps it current. It is free.
  • Your own coding agents as engines. Add claude_code, codex or gemini_cli to engines and the same questions go to that agent on your machine, so a developer tool can see whether coding agents recommend it. Each uses your own plan, not Treg.
  • Your data as files. marmalade export writes the numbers, the plan and every stored answer as CSV, and marmalade report --md writes a short Markdown version for a pull request or a wiki.
  • Your existing questions. marmalade add-prompt --from export.csv imports a list from another tracker or a spreadsheet. marmalade suggest --from calls.txt hands sales call notes or support tickets to your agent, which pulls out the questions your buyers ask in their own words.

Use it from your agent

marmalade init connects your AI agents as it sets up a project. It writes the MCP settings that Claude Code, Cursor and VS Code read when they open the folder (MCP is the standard way an agent calls a tool), and an AGENTS.md that tells any agent which commands cost money. marmalade connect does the same for an existing project, and every command an agent needs prints JSON with --json. For another MCP client, add the server yourself:

claude mcp add marmalade -- marmalade -C /path/to/project mcp

The server is listed in the official MCP Registry as io.github.AlexjComeau/marmalade, and on Glama.

The plugin adds the same tools plus four commands, /marmalade:setup, /marmalade:report, /marmalade:next-action and /marmalade:build-page. Each one needs Marmalade installed first.

AgentInstall
Claude Code/plugin marketplace add AlexjComeau/marmalade, then /plugin install marmalade@marmalade
Codexcodex plugin marketplace add AlexjComeau/marmalade, then install Marmalade from /plugins
CursorCopy the plugin folder to ~/.cursor/plugins/local/marmalade, then run Developer: Reload Window. The button below adds the MCP server alone.
Other agentsnpx skills add AlexjComeau/marmalade installs the four skills below (it needs Node.js 22.20 or newer)

Add Marmalade's MCP server to Cursor

Skills for your agent

SkillWhat your agent can do with it
ai-visibility-trackingSet up tracking, price a first scan, run it with your yes, read the report
ai-crawler-checkCheck whether AI bots can read your site, and fix what blocks them. Free
ai-bot-trafficRead which AI bots visit and who arrives from AI answers, from your logs. Free
ai-answer-to-pageTurn a question you lose into a brief, a page and a checked draft

No Node.js 22? Copy the folders in plugin/skills into your agent's skills folder, for example .claude/skills/ in your project for Claude Code.

The tools set up a project, read the stored answers, work the plan, write briefs and check drafts. /marmalade:build-page writes the page, and puts it up as a pull request only when you say so. No MCP tool spends money. A paid command reaches your agent marked as paid, and the agent runs it only after it tells you the price and you say yes. Setup for other clients and the full list of tools: docs/agent.md.

What it costs

You pay Treg for the calls and nothing else. These are the estimates per answer that the setup check (marmalade doctor) and --dry-run use:

EnginePer answer
Google AI Mode, Google AI Overviews$0.00015
Gemini$0.0024
ChatGPT$0.0028
Perplexity$0.002
Copilot (Bing)$0.015
Claude$0.065

Fifty questions on the first six engines make 300 answers, about $1.12 a scan. Weekly, that is about $4.80 a month; daily, about $34. Claude is off by default, because one Claude answer costs more than the other six engines together. Treg reports the real cost of each call, and Marmalade stores it with each answer. max_cost in marmalade.toml caps one scan: a call starts only if its estimate still fits under the cap. The measured prices, from real calls on 26 November 2026, and each engine's Treg tool are in docs/engines.md.

Four commands spend money, and each one says what it costs before it calls anything:

scan, run, volume and init --site are paid through Treg and say what they cost first; every other command and every MCP tool is free, and max_cost caps every scan.

Claude is the engine the paid trackers charge most for. Jam sells it as an add-on. At every size its calculator showed on 26 November 2026, Marmalade's bill for all seven engines came to less than that add-on alone:

Monthly cost of asking every question every other day on seven engines. 50 questions: Jam $282, Marmalade $66. 200 questions: Jam $591, Marmalade $262. 400 questions: Jam $1,003, Marmalade $525. In each case Marmalade's whole bill is less than Jam's Claude add-on alone.

Next to the hosted trackers

This is what Jam, Peec AI, OtterlyAI and Profound list on their own sites, read on 26 November 2026, set against Marmalade. Every plan and feature, with each product named, is in docs/compare.md.

MarmaladeThe hosted trackers
PriceThe API calls: about $4.80 a month for 50 questions a week on six enginesA subscription: €29 to $974 a month on the plans they list, or by quote
Your dataEvery answer, in full, in one SQLite file on your machineIn their cloud
ClaudeAt cost, about 6.5 cents an answerAn add-on, triple credits, or Enterprise only
AI bots on your siteFrom your own server logs, freeIncluded at Peec AI, OtterlyAI and Profound
Demand for a topicAI search volume, about a cent a refreshIncluded at Peec AI and Profound
Page workA brief, a first draft on request, a draft check, and your agent opens the pull requestJam and Profound draft pages for you
AgentsMCP server, four agent skills, Claude Code, Codex and Cursor plugins, --json output, AGENTS.mdMCP at all four
Team logins, AI shoppingNot builtLogins at all four; shopping at Peec AI and Profound
SourceOpen source, MITClosed

Why I built it

I'm a go-to-market engineer. Every week for months, I've asked all the major AI engines (ChatGPT, Claude, Gemini, Perplexity, Copilot and Google's AI) the questions a buyer would ask, to see who they name, which pages they cite and where AI search traffic comes from. Every round taught me something, and I kept improving the method: better questions, a stricter test for what counts as a mention, and a clearer order for what to fix first.

Over the same months, more companies started selling this as a service, and in my opinion most of them are priced out of reach for a young company. Yet the work underneath is a set of API calls, and for a small setup those cost a few dollars a month, as the table above shows. So I built Marmalade to cost exactly that. It runs on your machine, keeps every answer in a file you can open, and turns the answers into a short, ranked list of what to fix. I made it for teams that can't justify an expensive AEO service but still want to do this work well. It is free and open source, and you pay only for the API calls.

If you build growth systems too, I'd like to hear what you track. You can find me on GitHub.

What leaves your machine

Marmalade has no server of its own, no account and no telemetry. It makes nine kinds of call, all through Treg's catalog with one key: the seven engines, grading and AI search volume.

  • Your questions, country and language go to Treg, which passes them to each engine.
  • Grading sends the question, the answer, the brand names and your facts file to Jev, through Treg.
  • init --site reads your home page, volume sends your topics and brand names, and Slack, Discord or Teams get a message only if you set a webhook.
  • draft sends the page brief and your facts file to Claude through Treg, or to a coding agent on your machine, only when you run it.

Everything else stays in the project folder. The full list is in SECURITY.md.

Your questions reach seven AI answer engines only through Treg, and the answers come back into a local database. Grading, volume and init --site send a little more, Slack, public web pages and server logs are optional, and there is no Marmalade server, account or telemetry.

More about Treg:

FAQ

Is there a free, open source alternative to the paid AI visibility trackers? Yes. Marmalade is MIT licensed and runs on your machine with no subscription. You pay only for the API calls.

How does the cost compare at a larger scale? The gap narrows as volume grows. At 1,000 questions a day, the API bill is real money. Every plan, the method, and what the paid trackers' prices buy that Marmalade does not do are in docs/compare.md.

Can I trust the numbers when AI answers change every time? Read them with their noise band. Every visibility figure carries one, and a move inside it is chance.

More questions, including Windows: docs/faq.md. When something goes wrong: docs/troubleshooting.md.

Documentation

Start hereRun it for realReference
Your first ten minutesA report in Slack, Discord or Teams every dayEvery command
From an answer to a pageRun it on a scheduleEvery config key
FAQ and the glossaryUse it from your agentHow the numbers are computed
TroubleshootingWhat the paid trackers costEngines and costs, how it is built
A real example report, who AI namesAI on your siteNotes for AI agents

Where Marmalade stops

Marmalade gives you the plan, the brief, the instructions for your agent, a first draft when you ask for one, and the draft check. You, a writer or your agent finishes the page, and your agent opens a pull request only when you say so. The report is a file you open, and the schedule is cron, launchd, Windows Task Scheduler or a GitHub Action.

The files in a project

marmalade.toml lists your brand, competitors, engines and questions; each question is a [[prompt]] entry. facts.md holds what is true about your product, so a wrong answer can be caught. marmalade.db keeps everything asked and answered, and marmalade export writes it out as CSV. Your Treg key lives in .env.

Quick start - Troubleshooting - Changelog - Contributing - Security - MIT licensed.

PYPI
marmalade-ai
Install Command
pip install marmalade-ai
Runtime: uvx