indexgap integrations

command

Which external services are connected, and do the keys work.

Lists every outside service the package can use — each cite provider (taken from the code, so a new provider shows up by itself), Brave Search, Claude, Baidu link push, the Yandex Webmaster API, the Bing Webmaster API, Cloudflare and IndexNow — with what it is for, the environment variable it reads, whether that variable is set, where to get a key and what stops working without it, then how many of them are connected. Key values are never printed, not even in part, and without a flag nothing touches the network. --send makes one free request per configured service, such as listing models or verifying a token, and reports OK, key rejected (401/403), no network or an unexpected answer with advice; where no free request exists it spends nothing and prints the one-question cite command that would check it. --json prints the same for scripts and scheduled runs, with where each key comes from (environment, project file or key store) and never its value. integrations setup asks for the keys step by step, grouped by goal (measure AI answers, index faster, logs and CDN, markets), with what each unlocks, free or paid, and where to get it; input is hidden, Enter skips, and with --send each entered key gets the same free check (without it nothing touches the network). integrations set NAME reads a key from stdin for scripts (--send checks it), unset NAME removes it, where lists the source of every key. A cite provider whose URL is changed in indexgap.json (another region or a workspace, such as Qwen on dashscope.aliyuncs.com) is checked on that host. The services, groups, prices, key pages and free endpoints live in indexgap/data/integrations.json. The list ends with a Connectors (MCP) block — which connector supplies data for which IndexGap step — and --connectors prints only the connector table (with --json, only its JSON): see below.

Where keys come from

Every command that needs a key asks one resolver, in this order:

  1. the real environment (export OPENAI_API_KEY=…, CI secrets); an empty variable counts as unset;
  2. a project key file, only when you opt in: "env_file": ".env" in indexgap.json or --env-file .env (before any command, or after cite, indexnow, doctor and integrations). A .env in the directory is never read on its own. Add it to .gitignore before you use it;
  3. the key store ~/.config/indexgap/keys.env ($XDG_CONFIG_HOME/indexgap/keys.env; %APPDATA%\indexgap\keys.env on Windows).

The store is written only by integrations setup and integrations set, with mode 0600 in a 0700 directory. A store readable by the group or by everyone gets a warning with the chmod 600 to run. A store path inside a git working tree (a dotfiles repository, say) is refused without --force. Values are never printed: the list, where, the JSON and error messages show the variable name and its source only, and known values are masked in any error text.

indexgap integrations setup                 # step by step, hidden input
indexgap integrations setup --group index   # only the indexing keys
printf %s "$KEY" | indexgap integrations set OPENAI_API_KEY --send
indexgap integrations unset OPENAI_API_KEY
indexgap integrations where                 # env / project file / key store per key

indexnow push takes the IndexNow key from INDEXNOW_KEY when --key is not given.

CI: secrets to the environment

In CI nothing needs to be on disk. Put the keys in the repository's secrets and map them to the step's environment:

- name: Notify
  env:
    INDEXNOW_KEY: ${{ secrets.INDEXNOW_KEY }}
    YANDEX_WEBMASTER_TOKEN: ${{ secrets.YANDEX_WEBMASTER_TOKEN }}
  run: indexgap indexnow push --source manifest --send --yandex-recrawl

For new integrations

A new service registers its variable in indexgap/data/integrations.json (env, group, cost, docs_url) and reads it with keys.get(NAME), or keys.environ() where code takes an env mapping. setup, set, where and the list pick it up with no other change.

Connectors (MCP)

IndexGap never installs, starts or calls an MCP server. The agent pulls data through the connector, saves it as a file, and an IndexGap command reads the file offline. indexgap integrations --connectors prints, for each service, its MCP status (official remote, official local, unofficial only, none needed, not confirmed), the address or package, how to connect it, which command reads its output and in which format, what is not supported yet and what was verified and how. The registry, with its source and date, is indexgap/data/connectors.json.

An unofficial server receives the user's API key: read its code before running it.

Usage

usage: indexgap integrations [-h] [--send] [--online]
                             [--group {ai,index,cdn,markets,other}] [--force]
                             [--connectors] [--json]
                             [{list,setup,set,unset,where}] [name]

positional arguments:
  {list,setup,set,unset,where}
                        list — the list (default); setup — enter keys step by
                        step; set NAME — save a key from stdin; unset NAME —
                        remove it; where — where each key comes from
  name                  for set and unset: a variable (OPENAI_API_KEY) or an
                        integration (openai)

options:
  -h, --help            show this help message and exit
  --send                check each configured key with one free request; skip
                        where there is no free one. Uses the network. With set
                        and setup, checks the saved key
  --online              turn on every network read of this command: --send.
                        Writes nothing to outside services — only --send does
                        that
  --group {ai,index,cdn,markets,other}
                        for setup: one group only — ai (AI answers), index
                        (indexing), cdn (logs and CDN), markets
  --force               write the key store even if its path is inside a git
                        working tree
  --connectors          only the connectors (MCP) table: which service for
                        which IndexGap step and in which format. No network
  --json                print the result as JSON — for scripts and agents

The rest of the pipeline

← ctr-gap · timeline →