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

# Workflow limits

> Set workspace-wide and per-workflow spending limits to govern AI model costs across workflows.

<Info>
  Workflow settings are available to workspace administrators. These controls help you manage costs across all workflows in your workspace.
</Info>

Spend limits help you control costs across all workflows in your workspace. These settings work alongside individual workflow limits to provide organization-wide cost governance.

## Accessing Workflow Settings

<Steps>
  <Step title="Open Workspace Settings">
    Navigate to your [workspace settings](https://app.langdock.com/settings/workspace) from the main menu.
  </Step>

  <Step title="Go to Workflows Section">
    Select the **Workflows** section to view security and spending controls.
  </Step>
</Steps>

## Workspace Spend Limit

Set a spending cap for all workflow AI model usage across the entire workspace.

| Setting | Range | Default |
| - | - | - |
| Workspace spend limit | 0 - 100,000 EUR | 500 EUR |

**How it works:**

* Tracks cumulative AI model costs across all workflows
* Notifies workspace admins by email and in-app notification at 50%, 90%, and 100% of the limit
* When the limit is reached, workflow executions that require AI models will stop

<Note>
  On dedicated deployments, the emails are only sent if the deployment is configured for email delivery.
</Note>

**Usage period by plan:**

| Plan | Period used to enforce the limit | Label shown in settings |
| - | - | - |
| Trial | All workflow AI model usage during the trial. This period does not reset. | **Lifetime usage** |
| All other plans | Usage in the current calendar month. This period resets on the first day of each month. | **Billing month** with the billing period's start and end dates |

<Info>
  Cost figures in workflow analytics are based on the date range you select there. They can differ from the usage total shown for the spend limit. For plans other than Trial, the **Billing month** dates in settings can follow your workspace billing cycle and differ from the calendar month used to enforce the limit.
</Info>

<Tip>
  Set this limit based on your expected workflow volume. Monitor usage during the first few weeks to establish a baseline, then adjust accordingly.
</Tip>

## Default Monthly Limit per Workflow

Set the default spending limit applied to new workflows when they are created.

| Setting | Range | Default |
| - | - | - |
| Default monthly limit | 1 - 10,000 USD | 25 USD |

**How it works:**

* Every new workflow is created with this limit
* Workflow owners can adjust their individual limits up to the maximum allowed
* Prevents runaway costs from newly created workflows
* New runs are blocked when workflows reach their own monthly limit

## Maximum Monthly Limit per Workflow

Set the ceiling for individual workflow spending limits. This prevents any single workflow from exceeding a certain cost threshold.

| Setting | Range | Default |
| - | - | - |
| Maximum monthly limit | 1 - 10,000 USD | No limit |

**How it works:**

* Workflow owners cannot set limits higher than this value
* Existing workflows with limits above this threshold are automatically adjusted down
* Admin-set override limits are not affected by this cap

<Info>
  When you lower the maximum limit, all non-admin-overridden workflow limits that exceed the new maximum are automatically reduced to match. The system provides a summary of affected workflows.
</Info>

## Execution Step Limit

Each workflow execution is limited to a maximum of **2,000 steps**. This prevents runaway workflows from consuming excessive resources.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.