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

# profclaw security

> Manage security policies, review audit logs, and approve or deny pending tool execution requests.

## Synopsis

```bash theme={null}
profclaw security <subcommand> [flags]
```

## Description

`security` manages profClaw's security enforcement layer. Three policy levels control how strictly tool execution is governed. In `standard` and `strict` modes, certain tool calls require explicit approval before they run. This command lets you view the current policy, change it, review the audit log, and approve or deny pending requests.

## Subcommands

| Subcommand | Description |
| - | - |
| `status` | Show current policy level and pending approval count |
| `set-policy <level>` | Set the security policy to `permissive`, `standard`, or `strict` |
| `audit` | View the security audit log |
| `approve <id>` | Approve a pending tool execution request |
| `deny <id>` | Deny a pending tool execution request |

## Security Policy Levels

| Level | Description |
| - | - |
| `permissive` | All tools run without approval |
| `standard` | Moderate and dangerous tools require approval |
| `strict` | All non-safe tools require explicit approval |

## `security status`

**--json** `boolean`

Output as JSON with policy level, pending approval count, and last audit time.

## `security set-policy <level>`

**level** `string` *required*

One of `permissive`, `standard`, or `strict`.

**--json** `boolean`

Output the updated status as JSON.

## `security audit`

**-l, --limit** `string` (default: 20)

Maximum number of entries to show.

**--pending** `boolean`

Show only entries with `pending` result status (awaiting approval).

**--json** `boolean`

Output as JSON array.

## `security approve <id>` / `security deny <id>`

**id** `string` *required*

Audit entry ID to approve or deny.

**--reason** `string`

Reason for denial (only for `deny` subcommand).

**--json** `boolean`

Output result as JSON.

## Examples

```bash Check security status theme={null}
profclaw security status
```

```bash Set to strict mode theme={null}
profclaw security set-policy strict
```

```bash Set to permissive (development) theme={null}
profclaw security set-policy permissive
```

```bash View audit log theme={null}
profclaw security audit
```

```bash Show only pending approvals theme={null}
profclaw security audit --pending
```

```bash Approve a pending request theme={null}
profclaw security approve abc12345
```

```bash Deny a pending request with reason theme={null}
profclaw security deny abc12345 --reason "File write outside allowed directories"
```

## Related

* [`profclaw audit`](https://docs.profclaw.ai/cli/audit) - Detailed audit log viewer
* [`profclaw auth`](https://docs.profclaw.ai/cli/auth) - User and authentication management
* [`profclaw device`](https://docs.profclaw.ai/cli/device) - Device pairing and trust
* [Security Guide](https://docs.profclaw.ai/security) - Security architecture and configuration


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