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

# Run Custom Rules by Default

> Check your custom rules on every validation that doesn't name a model, including the Claude and ChatGPT plugins, by running those checks on Anchor 3.0 Max.

By default, a validation that doesn't name a `model_engine` runs on Flagship (`anchor_3_0`) and checks your active managed rules only. Your custom rules aren't checked unless you ask for Max.

Turn on **Run custom rules by default** to change that for the whole workspace. A validation that names no `model_engine` then runs on **Max** (`anchor_3_0_max`) and checks every active rule, custom rules included. The Claude and ChatGPT plugins follow the setting too, so their checks cover your custom rules without any change on your side.

## Turn it on

> [tab] In Command
>
> 1. Open **Guard** in ZeroDrift Command.
> 2. Under **Custom rules**, turn on **Run custom rules by default**.
>
> Owners and admins can change the switch. Other roles see it, but can't change it.

> [tab] With the API
>
> Send `enabled: true` with a full-access API key:
>
> ```bash theme={null}
> curl -X PUT https://api.zerodrift.ai/api/policies/custom-rules-enforcement \
>   -H "x-api-key: YOUR_API_KEY" \
>   -H "Content-Type: application/json" \
>   -d '{"enabled": true}'
> ```
>
> Read it back with [Get Custom Rules Default](https://docs.zerodrift.com/api-reference/custom-policies/get-custom-rules-enforcement.md). See [Set Custom Rules Default](https://docs.zerodrift.com/api-reference/custom-policies/set-custom-rules-enforcement.md) for the errors.

If the switch can't be turned on, or the API returns `409`, rule activation isn't enforced for your workspace, so the setting would have no effect. Contact support to change that.

## What changes

A validation moves to Max only when all of these are true:

* The setting is on.
* At least one custom rule is active. With none, the request stays on Flagship, because Max would check the same rules at a higher price.
* The request names no `model_engine`.

| You send | Setting off | Setting on, a custom rule active |
| - | - | - |
| No `model_engine` | Flagship. Managed rules only. | **Max.** Managed and custom rules. `engine_upgrade_reason: "workspace_setting"`. |
| `model_engine: "anchor_3_0"` | Flagship | Flagship. Naming an engine always wins. |
| `model_engine: "anchor_3_0_max"` | Max | Max |
| A `cust_*` rule in `validation_scope.rules` | Max (`custom_rules`) | Max (`custom_rules`) |

The response shows what happened: `model_engine` is `anchor_3_0_max` and `engine_upgrade_reason` is `"workspace_setting"`. See [Enforce Content](https://docs.zerodrift.com/api-reference/validate/validate-content.md).

### What doesn't change

These always run on Flagship, whatever the setting:

* Batches and audits, including audits started in Command or from Slack.
* Live monitoring in Slack.
* The Gmail audit.

Requests that name a `model_engine` are unaffected by this setting and keep their existing routing, including upgrades for explicitly named custom rules.

## Cost

A validation the setting moves to Max is billed at the **Max** rate: $0.05 per message of up to 2,000 tokens, instead of $0.01 on Flagship. Custom rules add one validation for each further group of 10 rules, at the same rate. See [Pricing](https://docs.zerodrift.com/pricing.md#custom-rules).

> [!TIP]
>
> To keep one integration on Flagship while the rest of the workspace runs custom rules, send `model_engine: "anchor_3_0"` from that integration.

## When a check can't finish

Max takes longer than Flagship, and a custom rule it can't score makes the check fail rather than pass. With the setting on:

* **API:** a validation the setting moved to Max fails, rather than passing, when Max can't score one of your custom rules. Treat a failed job as unchecked.
* **Claude and ChatGPT plugins:** if a pre-send check that the setting moved to Max fails or doesn't finish in time, the send is **blocked** with "Do not send: this workspace requires a completed check." It's not let through.
* Problems with signing in or reaching ZeroDrift are unchanged: those checks report **Not checked**, as described on each plugin's page.

Run `/zerodrift:status` in Claude, or ask the assistant for ZeroDrift's status, to see whether the setting is on. The status line ends with "Run custom rules by default: on" or "off".

## Related

* [Choose a model](https://docs.zerodrift.com/models.md)
* [Import a Policy](https://docs.zerodrift.com/guides/import-a-policy.md) and [Create Custom Rule](https://docs.zerodrift.com/api-reference/custom-policies/create-rule.md)
* [Claude Plugin](https://docs.zerodrift.com/claude-plugin.md) and [ChatGPT and Codex Plugin](https://docs.zerodrift.com/codex-plugin.md)


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