Command line and data

The supermarket command, where Supermarket keeps its data, and how AI agents connect to it.

The supermarket command

CommandWhat it does
supermarketOpens Supermarket in your browser, starting it if needed
supermarket statusShows whether it’s running
supermarket logsShows its log
supermarket restartRestarts it
supermarket stopStops it
supermarket hermesSets up Hermes’ connection again. Add --reconfigure to change the MCP hub it uses.
supermarket tokenShows the token AI agents use for its MCP endpoint

Where your data is

Everything is in ~/.local/share/supermarket/:

FileHolds
app.dbYour profile, inventory, drafts, and posts
secrets.jsonYour API keys, readable only by you
mcp-tokenThe token for Supermarket’s MCP endpoint

To back up Supermarket, back up that folder.

Connecting AI agents

Hermes reaches Supermarket through a socket in the same folder, so it needs no token.

Other agents, such as Claude Code, connect to http://localhost:8470/mcp with the token from supermarket token as a bearer token. Treat that token like a password: anything that has it can use Supermarket as you.

Security

  • Supermarket listens only on your own computer (127.0.0.1), and refuses requests from web pages on other sites.
  • Its container runs with a read-only file system and no extra Linux privileges.
  • Its MCP endpoint and API need a key.