Command line and data
The supermarket command, where Supermarket keeps its data, and how AI agents connect to it.
The supermarket command
| Command | What it does |
|---|---|
supermarket | Opens Supermarket in your browser, starting it if needed |
supermarket status | Shows whether it’s running |
supermarket logs | Shows its log |
supermarket restart | Restarts it |
supermarket stop | Stops it |
supermarket hermes | Sets up Hermes’ connection again. Add --reconfigure to change the MCP hub it uses. |
supermarket token | Shows the token AI agents use for its MCP endpoint |
Where your data is
Everything is in ~/.local/share/supermarket/:
| File | Holds |
|---|---|
app.db | Your profile, inventory, drafts, and posts |
secrets.json | Your API keys, readable only by you |
mcp-token | The 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.