Let Supermarket use Hermes' Anthropic key and model

Hermes is already set up with an Anthropic key, so AI needn't be set up
twice. `supermarket hermes` asks once, then it and update.sh copy just
the key and model to hermes-ai.json in the data folder (0600). The app
uses them when it has no key of its own, re-reading the file on each use.

Generation still calls the model directly rather than through Hermes'
API: post writing feeds it text from the web, which must not reach an
agent with a terminal, a browser and write access to the CRM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-20 14:58:06 -07:00
co-authored by Claude Opus 5.5
parent 434a9093b0
commit 81a7d0596c
10 changed files with 175 additions and 5 deletions
+1
View File
@@ -18,6 +18,7 @@ running a Federated Core can install as a CoreDesktop sibling.
| Websites and components | The suite builds the company's **websites** from a reusable **component library** |
| Publishing | Sites are pushed to a **Gitea repository**. The user sets up the hooks that publish it to the Hugo server |
| Contact enrichment | Third-party services allowed, behind a pluggable interface (section 6) |
| AI for the app | Uses Hermes' Anthropic key and model when the user agrees (2026-11-20), copied to `hermes-ai.json` by `supermarket hermes` and `update.sh`. It calls the model directly, never through Hermes: post writing reads untrusted web text, which must not reach an agent with tools and CRM access |
| Suite shape | One repo, one app with modules (Content, Prospects, SEO, Metrics, Sites), plus an MCP endpoint for agents |
## 2. Requirements from the notes