# Installing Supermarket

> Install Supermarket on a CoreDesktop computer, set it up, and keep it up to date.

- Web page: https://documentation.federated.computer/superapps/supermarket/installing/

## What you need

- A computer running **CoreDesktop**.
- A Core with [EspoCRM](https://documentation.federated.computer/core/espocrm/) and email, for the modules that use them.
- An AI model for drafting: an Anthropic API key, the key Hermes already uses, or a local model server such as Ollama.
- Accounts on X and LinkedIn, if you want Supermarket to publish for you.

## Install it

Supermarket is installed as a CoreDesktop sibling project. In a terminal, run:

```
sibling add https://gitea.federated.computer/Federated_Computer/supermarket.git
```

The installer:

- builds and starts Supermarket in a container,
- adds it to the app grid,
- connects Hermes to your Core's MCP hub, and
- offers to give Claude Code access to it.

CoreDesktop's `update` keeps Supermarket up to date.

## Set it up

Open Supermarket from the app grid, or run `supermarket` in a terminal. Then:

1. **Settings → AI.** Choose the model Supermarket drafts with.
2. **Settings → Profile.** Enter your website and select **Draft**. Supermarket reads your site and drafts a profile of your business. Check it and correct anything that's wrong: everything it writes starts from this.
3. **Inventory.** Add your partners and competitors.
4. **Settings → Social accounts.** Connect X and LinkedIn.

## Server and multi-team editions

To share Supermarket with a team, install it on a server with Docker instead. From a copy of the repository, run:

```
./install-server.sh
```

The server edition uses PostgreSQL and serves HTTPS, with a certificate from Let's Encrypt or your own certificate authority. The multi-team edition runs many teams on one server, each in its own database schema.

> **Keep the secret key**
>
> The server installer creates `SUPERMARKET_SECRET_KEY`, which encrypts the API keys Supermarket stores. Keep a copy somewhere safe: without it, a restored backup can't use them.
