> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getmillwork.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Cookbook

> Copy practical examples for common Millwork tasks.

Each recipe explains the goal, the expected result, and what to do if it fails.

Using a coding assistant? Give it the recipe with **Copy page** and tell it your
goal. Keep secrets out of the chat and require approval before any paid request
or credential change. See [Use a coding assistant](/get-started/use-with-an-assistant).

New to Millwork? Start with [Check your setup](/get-started/first-api-call),
then [Run a model](/get-started/builder).

## Choose a recipe

| I need to…                      | Recipe                                                                  | Why it matters                                        |
| ------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------- |
| Retry after a network problem   | [Retry without starting work twice](/cookbook/retry-without-duplicates) | Avoid starting and paying for the same work twice.    |
| Stop work that is still running | [Stop a run](/cookbook/stop-a-run)                                      | End work you no longer need.                          |
| Replace a Millwork API key      | [Replace an organization key](/cookbook/replace-an-organization-key)    | Test the replacement before revoking the old key.     |
| Replace a provider credential   | [Replace a provider key](/cookbook/replace-a-provider-key)              | Keep the working credential if the replacement fails. |
| Save run records                | [Save recent receipts](/cookbook/save-recent-receipts)                  | Keep a content-free record of recent activity.        |

<Note>
  These recipes use the REST API. A public SDK and execution MCP are not
  available yet.
</Note>
