Skip to content
CookDex docs

Getting started with CookDex

This starts where Install ends, with the container running.

  1. Open https://localhost:4820/cookdex and accept the self-signed certificate warning.

  2. Create your owner account. On first visit, the setup screen asks for one. Enter the setup code from the CookDex log (see Setup code below), then choose a sign-in name and a strong password (at least 8 characters, mixed case, with a digit). As the owner, you can change settings, add people, and approve changes CookDex makes on its own.

    The CookDex setup screen: the CookDex logo and a short welcome on the left, and a Create your account form on the right with setup code, sign-in name, password and password confirmation fields and a Create account button.

  3. In Mealie, create an API token from your user profile under API Tokens. Copy the token when Mealie shows it; it is only shown once. Make the token as a user with Mealie’s “can organize” permission: without it, Mealie refuses changes to foods and tags, and from Mealie 3.30 also to units, tools and labels.

  4. Back in CookDex, setup asks Where is your Mealie? Enter:

    • Mealie address: the address you open Mealie at, such as http://mealie:9000. CookDex adds /api for you.
    • Mealie API token: the token from step 3.

    Then click Connect.

    The Connect Mealie step of setup, between Account and First scan: the Mealie address set to http://mealie, the API token entered and hidden, and a Connect button.

  5. Once CookDex connects, it offers to scan your library. Click Scan my library, or Not now to scan later from the Library page.

If you click Skip setup for now, the Library page has a Set up button that brings it back. To change the connection later, open Settings → Mealie and click Test Mealie to check it. If you change the Mealie address, enter the token again: CookDex only sends a saved token to the address it was saved with, and forgets it when the address changes. Settings refuses a value jobs can’t use, such as an address that doesn’t start with http:// or https://, and says why; see Runtime settings.

Settings with the Mealie section open: the Mealie address set to http://mealie/api, the API token saved, and Test Mealie reporting a connection to Mealie v3.31.0.

The setup code proves that whoever creates the owner account can see the server CookDex runs on, so nobody else on your network, or the internet, can claim it first. It looks like K7QM-3XRP-9WTD.

When CookDex starts with no accounts, it prints the code in a box in its log, under First-time setup. Opening the setup page prints it again at the bottom of the log. Find it here:

  • Docker Desktop: open Containers, click the CookDex container, then the Logs tab.
  • Portainer: open Containers, then the Logs icon next to the CookDex container.
  • Unraid: on the Docker tab, click the CookDex icon, then Logs.
  • Terminal: run docker compose logs cookdex in the folder with your compose file.

Upper or lower case and the dashes don’t matter. The code changes each time CookDex restarts, so if the setup page says it isn’t right, copy the newest one from the bottom of the log. Once the owner account exists, there’s no code.

The first scan only looks; nothing in Mealie changes. It runs on the Library page, whether you started it from setup or with Scan my library there:

The Library page for 12,194 recipes: a score of 96, In great shape, with bars for categorized, tagged, ingredients linked and servings set, a link to 18 recipes left as is beside the Needs attention heading, and the first finding, 375 recipes with no category, with See which and Suggest buttons.

  1. Check the score and the Needs attention list.
  2. Click Review on a finding to see each change, untick anything you want to keep, and edit new names if you like. Select all and Select none beside each list tick or untick the whole list.
  3. Click the apply button when the list looks right. Back up Mealie first (recommended) is ticked, so a Mealie backup is made first, and only the items you selected change.

The review for Clean up the recipe list: 7 names to clean up, each old name, such as sheet-pan-fajitas-recipe, with an arrow to an editable new name and a Leave as is button. Select none and Leave all 7 as is sit beside the heading, and Back up Mealie first is ticked beside a Rename 7 recipes button.

Some findings point you to Mealie instead of offering a button. “…recipes are missing servings”, for example, means those recipes’ pages didn’t say how many they make, so CookDex can’t fill it in. Click See recipes to list them, with a link to each one in Mealie, and set servings there to let it scale them. The findings for recipes with no category and for ingredients that aren’t linked to foods have the same list under See which, next to their Suggest and Parse buttons. Others ask you to decide: “…entries might not be recipes” lists pages the junk filter isn’t sure about, and a stronger setting on Clean up the recipe list removes the clearest ones for you. “…cleaned-up names would match another recipe” lists new names another recipe already has, often the same dish imported twice.

Some findings can’t be fixed from CookDex: a page Mealie won’t delete, or a name that can’t be cleaned up without matching another recipe. In the review, Leave as is on a recipe, or Leave all as is for the whole list, tells CookDex to stop flagging it. The Library stops listing it, and cleanups skip it, scheduled ones included. A review that’s left empty closes itself.

N recipes left as is, beside Needs attention, lists those recipes. Check again on one brings it back, and the next scan checks it. A recipe that changes in Mealie is checked again on its own, since the edit may have fixed the problem or made a new one.

To try a single job instead, open Tools, pick a job such as Link ingredients, and click Preview. A preview shows what would change and changes nothing; you can apply it from its run details.

The sidebar has six places:

  • Library scores your library and lists what needs attention, each with a way to fix it. Its Recently deleted tab keeps every recipe the cleanup deleted for 30 days, so you can restore any of them.
  • Organize edits tags, categories, tools, cookbooks, foods, units and food labels directly in Mealie, finds unused entries and suggested merges, adds starter sets, and imports or exports them as JSON. Changes that could lose something offer a backup first, which you can skip if you’ve just made one. See Organize.
  • Discover imports new recipes from sources you switch on (see Recipe Dredger).
  • Automations runs backups, weekly checks and imports on a schedule (see Scheduling and automations).
  • Tools has every job, each with a preview first (see the Task reference). Classic tools, linked at the bottom, shows every job with all its options and the raw log on one screen.
  • Settings holds the Mealie connection, the optional AI helper and database connection, recipe sources, and update and run settings. Owners also manage who can sign in under People.

Help, at the bottom of the sidebar, links to these docs and can make a problem report. Next to it, the theme button cycles System, Light and Dark. System, the default, follows your device’s light or dark setting and switches when the device does. Your choice is remembered in this browser.