# CLI Policy Audit

> ---

- Skill: `jaccen/cli-policy-audit` (Agent Skill)
- Install (CLI): `npx skillmds@latest add jaccen/cli-policy-audit`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jaccen/cli-policy-audit/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: jaccen (https://skillmd.com/u/jaccen)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/jaccen/cli-policy-audit

---

﻿---
name: cli-policy-audit
description: Inspect audit logs, manage access policies, view telemetry data, and review request history from the CLI. Filter by event type, user, or time range for compliance workflows.
---
<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->

## Overview

Inspect audit logs, manage access policies, view telemetry data, and review request history from the CLI. Filter by event type, user, or time range for compliance workflows.

## Quick install

```bash
npm install -g AIRoute   # or: npx AIRoute
AIRoute --version
```

## Subcommands

### `audit`

**Example:**

```bash
AIRoute audit
```

### `audit tail`

**Flags:**

- `--source <s>`
- `--follow`
- `--limit <n>`

**Example:**

```bash
AIRoute audit tail
```

### `audit search <query>`

**Flags:**

- `--source <s>`
- `--since <ts>`
- `--until <ts>`
- `--limit <n>`
- `--actor <id>`
- `--action <a>`

**Example:**

```bash
AIRoute audit search <query>
```

### `audit export <file>`

**Flags:**

- `--source <s>`
- `--format <f>`
- `--since <ts>`
- `--until <ts>`

**Example:**

```bash
AIRoute audit export <file>
```

### `audit stats`

**Flags:**

- `--source <s>`
- `--period <p>`

**Example:**

```bash
AIRoute audit stats
```

### `audit get <id>`

**Flags:**

- `--source <s>`

**Example:**

```bash
AIRoute audit get <id>
```

### `logs`

**Flags:**

- `--follow`
- `--filter <level>`
- `--lines <n>`
- `--timeout <ms>`
- `--base-url <url>`
- `--request-id <id>`
- `--api-key <key>`
- `--combo <name>`
- `--status <code>`
- `--duration-min <ms>`
- `--duration-max <ms>`
- `--export <path>`

**Example:**

```bash
AIRoute logs
```

### `policy`

**Example:**

```bash
AIRoute policy
```

### `policy list`

**Flags:**

- `--kind <k>`
- `--scope <s>`

**Example:**

```bash
AIRoute policy list
```

### `policy get <id>`

**Example:**

```bash
AIRoute policy get <id>
```

### `policy create`

**Example:**

```bash
AIRoute policy create
```

### `policy update <id>`

**Example:**

```bash
AIRoute policy update <id>
```

### `policy delete <id>`

**Flags:**

- `--yes`

**Example:**

```bash
AIRoute policy delete <id>
```

### `policy evaluate`

**Flags:**

- `--resource <r>`
- `--context <json>`

**Example:**

```bash
AIRoute policy evaluate
```

### `policy export <file>`

**Example:**

```bash
AIRoute policy export <file>
```

### `policy import <file>`

**Flags:**

- `--overwrite`

**Example:**

```bash
AIRoute policy import <file>
```

### `telemetry`

**Example:**

```bash
AIRoute telemetry
```

### `telemetry summary`

**Flags:**

- `--period <p>`
- `--compare-to <p>`

**Example:**

```bash
AIRoute telemetry summary
```

### `telemetry export`

**Flags:**

- `--out <path>`
- `--period <p>`

**Example:**

```bash
AIRoute telemetry export
```

