---
url: https://docs.mochiexec.io/reference/cli/mochi_trust_default.md
description: Show or set the trust of workspaces without their own
---

# mochi trust default

Show or set the trust of workspaces without their own

## Synopsis

Defaults apply to a workspace whose own trust is not set.

worktrees: 'inherit' (the default) gives a git worktree its main checkout's trust and rules; 'off' treats it like any other workspace.
unregistered: the state of a workspace registered nowhere that inherits nothing. 'unknown' (the default) refuses agent runs there until it is trusted.

```shell
mochi trust default [worktrees inherit|off | unregistered unknown|trusted|restricted] [flags]
```

## Examples

```shell
mochi trust default
mochi trust default worktrees off
mochi trust default unregistered restricted
```

## Options

| Flag | Type | Description |
|------|------|-------------|
| `-h, --help` |  | help for default |
| `-o, --output` | `string` | Output format: text or json (default "text") |

## Options inherited from parent commands

| Flag | Type | Description |
|------|------|-------------|
| `-L, --log-level` | `string` | Log verbosity level (debug, info, fatal) (default "info") |
| `--sync` |  | Sync the executable cache first, pulling git-sourced workspaces from their remotes |

## See also

* [mochi trust](mochi_trust.md) — Manage which workspaces can run tasks without asking
