Skip to Content

Traffic commands

apxy logs reads and manages captured traffic. apxy recording pauses and resumes capture. apxy audit shows what agents and users did through APXY.

To block until a request is captured and check it, use apxy mark and apxy wait. For a guide, see Wait & Verify.

apxy logs

Read and manage captured traffic records

Options

-h, --help help for logs

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

apxy logs ai-usage

Show LLM token usage and estimated cost from captured AI traffic

Synopsis

Show token usage and estimated USD cost for streamed LLM responses captured from Anthropic, OpenAI and Gemini, broken down by provider, model and client app.

—since takes a mark name (see “apxy mark”), an RFC3339 timestamp, a duration back from now such as 30m, or “all” for the full history. —until takes the same values except “all” and defaults to now. Without —since the window is the current UTC week, as on the dashboard.

Cost comes from built-in price tables copied from each provider’s pricing page; price_sources in the output names each table’s URL and date. A model with no price shows cost_usd null and counts in unpriced_records.

apxy logs ai-usage [flags]

Examples

apxy mark session # run your agent through the proxy apxy logs ai-usage --since session apxy logs ai-usage --since 2h --output agent

Options

--control-url string control API URL (default "http://127.0.0.1:8081") -h, --help help for ai-usage --since string start of the window: mark name, RFC3339 time, duration ago, or "all" (default: start of the current UTC week) --until string end of the window: mark name, RFC3339 time, or duration ago (default: now)

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy logs - Read and manage captured traffic records

apxy logs clear

Delete all captured traffic records

Synopsis

Delete ALL captured traffic records from the database.

WARNING: This action cannot be undone.

apxy logs clear [flags]

Examples

apxy logs clear

Options

--control-url string control API URL (default "http://127.0.0.1:8081") --dry-run preview what would happen without executing -h, --help help for clear

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy logs - Read and manage captured traffic records

apxy logs diff

Compare two captured traffic records

apxy logs diff [flags]

Options

-h, --help help for diff --id-a string first record ID --id-b string second record ID --scope string what to diff: request|response|both (default "both")

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy logs - Read and manage captured traffic records

apxy logs egress

Summarize captured traffic by host and check it against an allowlist

Synopsis

List every host the captured traffic reached: request count, first and last seen, captured body bytes up and down, status classes, client apps, and how many requests were inspected versus tunneled without decryption.

A tunneled request is one CONNECT the proxy passed through without decrypting it, so it has no app or byte counts. Add —mitm-all (or —ssl-domains) to apxy run or apxy start to inspect those hosts.

—since takes a mark name (see “apxy mark”), an RFC3339 timestamp, a duration back from now such as 10m, or “all” (default). —allowlist takes a file with one host pattern per line. "" matches any run of characters, so “.github.com” covers api.github.com but not github.com. Blank lines and text after ”#” are ignored. -q prints only the host names, one per line, as a draft allowlist.

In a workspace (see “apxy status”), only requests tagged with this workspace and untagged requests count, and —since names this workspace’s marks. —all-workspaces counts every workspace’s requests; —from-workspace counts another workspace’s requests and untagged ones.

Exit codes: 0 every host is allowed (or no —allowlist), 9 at least one host is outside the allowlist.

apxy logs egress [flags]

Examples

apxy mark agent-run apxy run -- ./agent-task.sh apxy logs egress --since agent-run apxy logs egress --since agent-run -q > egress.allow apxy logs egress --since agent-run --allowlist egress.allow

Options

--all-workspaces read the traffic of every workspace, not only this workspace's and untagged traffic --allowlist string file of allowed host patterns; hosts outside it exit 9 --from-workspace string read another workspace's traffic and untagged traffic, by its exact ID or name -h, --help help for egress -q, --quiet output only host names, one per line --since string only count requests at or after this mark name, RFC3339 time, or duration ago; "all" for the full history (default "all")

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy logs - Read and manage captured traffic records

apxy logs export-curl

Export one traffic record as a reusable client snippet

apxy logs export-curl [flags]

Options

--format string export format: curl|fetch|httpie|python (default "curl") -h, --help help for export-curl --id string traffic record ID --redact alias for --safe --safe redact sensitive values before exporting (always on in agent mode)

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy logs - Read and manage captured traffic records

apxy logs export-har

Export captured traffic as a HAR 1.2 file

apxy logs export-har [flags]

Options

--file string output file path (prints to stdout if omitted) -h, --help help for export-har --limit int max records to export (default 10000) --redact alias for --safe --safe redact sensitive values before exporting (always on in agent mode)

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy logs - Read and manage captured traffic records

apxy logs graphql

Search captured GraphQL requests

apxy logs graphql [flags]

Options

--format string output format: json|markdown|toon (default "json") -h, --help help for graphql --limit int max results (default 20) --operation-name string filter by operation name --operation-type string filter by type: query|mutation|subscription

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy logs - Read and manage captured traffic records

apxy logs import-har

Import traffic records from a HAR file

apxy logs import-har [flags]

Options

--file string HAR file to import -h, --help help for import-har

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy logs - Read and manage captured traffic records

apxy logs jsonpath

Extract JSON fields from captured traffic bodies

apxy logs jsonpath [flags]

Options

-h, --help help for jsonpath --id string traffic record ID --path string gjson path expression --scope string which body: request|response (default "response")

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy logs - Read and manage captured traffic records

apxy logs label

Add a label and comment to a traffic record

Synopsis

Add a color label and free-text comment to a captured traffic record for easy identification.

Flags: —id record ID (required) —color color label: red, green, blue, yellow, purple —comment free-text comment to attach

apxy logs label [flags]

Examples

apxy logs label --id abc123 --color red --comment "investigate this 500 error"

Options

--color string color label: red, green, blue, yellow, purple --comment string free-text comment --control-url string control API URL (default "http://127.0.0.1:8081") -h, --help help for label --id string record ID

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy logs - Read and manage captured traffic records

apxy logs list

List captured traffic records

Synopsis

List captured HTTP traffic records from the proxy database.

Flags: —limit number of records to return (default: 50) —offset pagination offset (default: 0) —format output format: json, markdown, or toon (default: json) In a workspace (see “apxy status”), only records tagged with this workspace and untagged records are shown. —all-workspaces shows every workspace’s records; —from-workspace shows another workspace’s records and untagged ones.

apxy logs list [flags]

Examples

apxy logs list apxy logs list --limit 10 --format markdown

Options

--all-workspaces read the traffic of every workspace, not only this workspace's and untagged traffic --format string output format: json|markdown|toon (default "json") --from-workspace string read another workspace's traffic and untagged traffic, by its exact ID or name -h, --help help for list --limit int number of records (default 50) --offset int pagination offset -q, --quiet output only IDs, one per line --raw show raw record values in JSON output

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy logs - Read and manage captured traffic records

apxy logs replay

Replay one captured request against the live upstream

apxy logs replay [flags]

Options

-h, --help help for replay --id string traffic record ID to replay --port int proxy port (default 8080)

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy logs - Read and manage captured traffic records

apxy logs search-bodies

Search request and response bodies in captured traffic

apxy logs search-bodies [flags]

Options

--format string output format: json|markdown|toon (default "json") -h, --help help for search-bodies --limit int max results (default 20) --pattern string text pattern to search --scope string search scope: request|response|both (default "both")

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy logs - Read and manage captured traffic records

Search captured traffic records

Synopsis

Search captured traffic records by URL, headers, or body content.

Flags: —query search query string —limit maximum number of results (default: 20) —format output format: json, markdown, or toon (default: json) In a workspace (see “apxy status”), only records tagged with this workspace and untagged records are shown. —all-workspaces shows every workspace’s records; —from-workspace shows another workspace’s records and untagged ones.

apxy logs search [flags]

Examples

apxy logs search --query "api.example.com" apxy logs search --query "error" --limit 5 --format markdown

Options

--all-workspaces read the traffic of every workspace, not only this workspace's and untagged traffic --format string output format: json|markdown|toon (default "json") --from-workspace string read another workspace's traffic and untagged traffic, by its exact ID or name -h, --help help for search --limit int max results (default 20) --query string search query -q, --quiet output only IDs, one per line --raw show raw record values in JSON output

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy logs - Read and manage captured traffic records

apxy logs show

Show one captured traffic record by ID

Synopsis

Show the full details of a single captured traffic record.

Flags: —id record ID (required) —format output format: json, markdown, or toon (default: json)

apxy logs show [flags]

Examples

apxy logs show --id abc123

Options

--format string output format: json|markdown|toon (default "json") -h, --help help for show --id string record ID --raw show raw record values in JSON output

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy logs - Read and manage captured traffic records

apxy logs sse-events

List parsed SSE events for a traffic record

apxy logs sse-events [flags]

Options

--format string output format: text or json (default "text") -h, --help help for sse-events --id string traffic record ID --limit int max events to return (default 100)

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy logs - Read and manage captured traffic records

apxy logs sse-merge

Merge AI streaming SSE events into a single response

apxy logs sse-merge [flags]

Options

--format string output format: text or json (default "text") -h, --help help for sse-merge --id string traffic record ID

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy logs - Read and manage captured traffic records

apxy logs stats

Show summary statistics for captured traffic

Synopsis

Show aggregate statistics for captured traffic, including request counts, status code distribution, and top domains.

apxy logs stats [flags]

Examples

apxy logs stats

Options

--control-url string control API URL (default "http://127.0.0.1:8081") -h, --help help for stats

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy logs - Read and manage captured traffic records

apxy logs tail

Live-tail traffic from a running apxy instance

Synopsis

Connects to a running apxy proxy’s SSE endpoint and prints traffic records in real-time.

apxy logs tail [flags]

Options

--format string output format: text or json (default "text") -h, --help help for tail --host string filter by host pattern --port int port of the running apxy web API (default: proxy port + 2) (default 8082) --sse show only SSE traffic and events

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy logs - Read and manage captured traffic records

apxy logs ws-frames

List WebSocket connections or inspect frames for one connection

Synopsis

Without —id: lists all captured WebSocket connections with frame counts. With —id: shows the captured frames for that specific connection.

apxy logs ws-frames [flags]

Examples

apxy logs ws-frames apxy logs ws-frames --quiet apxy logs ws-frames --id <RECORD_ID> apxy logs ws-frames --id <RECORD_ID> --raw

Options

-h, --help help for ws-frames --id string WebSocket record ID (omit to list all WS connections) --limit int max results (connections in list mode, frames in frames mode) (default 50) -q, --quiet output only IDs, one per line --raw show raw base64 payloads instead of decoded text (frames mode only)

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy logs - Read and manage captured traffic records

apxy recording

Start or stop traffic recording on the running proxy

Options

-h, --help help for recording

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

apxy recording start

Start capturing traffic on the running proxy

apxy recording start [flags]

Options

--control-url string control API URL (default "http://127.0.0.1:8081") -h, --help help for start

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy recording - Start or stop traffic recording on the running proxy

apxy recording stop

Stop capturing traffic on the running proxy

apxy recording stop [flags]

Options

--control-url string control API URL (default "http://127.0.0.1:8081") -h, --help help for stop

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy recording - Start or stop traffic recording on the running proxy

apxy mark

Record a point in time for apxy wait —since

Synopsis

Record the current time under a name (default “default”) so that “apxy wait —since <name>” only considers traffic captured after it.

Marks belong to the workspace the command runs in (see “apxy status”), so agents in parallel worktrees can each set “default” without moving each other’s. They live in the shared database, ~/.apxy/data/apxy.db. Setting a mark again overwrites it. The name “all” is reserved for “apxy wait —since all”.

apxy mark [name] [flags]

Examples

apxy mark apxy mark checkout-attempt-2 apxy wait --match "POST /checkout" --since checkout-attempt-2

Options

-h, --help help for mark

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy - Verify code changes against the HTTP requests they send

apxy wait

Block until a matching request is captured, then check expectations

Synopsis

Block until a captured request matches —match, then evaluate each —expect.

—match takes “METHOD /path” (method and path equal) or any match expression: host, path, url, method, status, header:<Name>, body.<gjson path>, req.body.<gjson path>; operators ==, !=, contains, startswith, endswith, matches, >, >=, <, <=, and the unary exists (header: and body fields only). Combine with && and ||. For a captured SSE response or WebSocket, —expect can also use sse.count, sse.event, sse.data, sse.data.<gjson path>, sse.last.event, sse.last.data[.<gjson path>], sse.text (event data merged into one text, with LLM deltas joined), ws.count, ws.client.count, ws.server.count, and ws.client.data / ws.server.data with optional .<gjson path> or .last forms. A field over many events or frames holds when any of them satisfies the condition; != holds when none of them equals the value. While the stream is open, wait keeps checking until every expectation passes, the stream ends, or the timeout passes.

—since takes a mark name (see “apxy mark”), an RFC3339 timestamp, a duration back from now such as 30s, or “all” for the full history. Without it, wait uses the “default” mark if one is set, else the time wait started, so traffic from earlier attempts never matches. The earliest matching request at or after —since is used. —timeout 0 checks captured traffic once without blocking.

In a workspace (see “apxy status”), wait sees only requests tagged with this workspace and untagged requests, and —since names this workspace’s marks. —all-workspaces sees every workspace’s requests; —from-workspace sees another workspace’s requests and untagged ones. When the match is untagged while other workspaces are active, the output carries a warning.

When nothing matched and no proxy is running, the output says so (proxy_running: false) and the next step: run the code under test through apxy run — <command>. A rules file of this workspace, or the global one, that does not parse or validate is named in rules_errors with its line or rule, since the proxy keeps the last valid rules.

Exit codes: 0 matched and every expectation passed, 7 matched but an expectation failed, 8 no matching request before the timeout.

apxy wait [flags]

Examples

apxy mark curl -x http://127.0.0.1:8080 http://localhost:3000/checkout -d '{}' apxy wait --match "POST /checkout" --since default --expect "status == 200" --expect "body.order.id exists" apxy wait --match 'host == "api.test" && status >= 500' --since 2m --timeout 0 apxy wait --match "POST /v1/chat/completions" --expect 'sse.data == "[DONE]"' --expect 'sse.text contains "Hello"' apxy wait --match "GET /ws" --expect 'ws.server.data.type == "order_created"' --timeout 60s

Options

--all-workspaces read the traffic of every workspace, not only this workspace's and untagged traffic --expect stringArray condition the matched request must satisfy (repeatable) --from-workspace string read another workspace's traffic and untagged traffic, by its exact ID or name -h, --help help for wait --match string request to wait for: "METHOD /path" or a match expression (required) --since string only consider requests at or after this mark name, RFC3339 time, or duration ago; "all" for full history (default: the "default" mark, else now) --timeout duration how long to wait; 0 checks once (default 30s)

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy - Verify code changes against the HTTP requests they send

apxy audit

Inspect and manage audit log entries

Options

-h, --help help for audit

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

apxy audit clear

Delete all audit log entries

Synopsis

Delete ALL audit log entries from the database.

WARNING: This action cannot be undone.

apxy audit clear [flags]

Examples

apxy audit clear apxy audit clear --dry-run

Options

--dry-run preview what would happen without executing -h, --help help for clear

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy audit - Inspect and manage audit log entries

apxy audit export

Export audit log entries as JSONL

Synopsis

Export all audit log entries as newline-delimited JSON (JSONL).

Flags: —output path to output file (default: stdout)

apxy audit export [flags]

Examples

apxy audit export apxy audit export --output audit.jsonl

Options

-h, --help help for export --output string output file path (default: stdout)

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --verbose enable verbose output

SEE ALSO

  • apxy audit - Inspect and manage audit log entries

apxy audit list

List audit log entries

Synopsis

List audit log entries from the local database.

Flags: —category filter by category —source filter by source (ui, cli, mcp, system) —limit number of entries to return (default: 50) —format output format: table or json (default: table)

apxy audit list [flags]

Examples

apxy audit list apxy audit list --category license --limit 20 apxy audit list --source cli --format json

Options

--category string filter by category --format string output format: table or json (default "table") -h, --help help for list --limit int number of entries to return (default 50) --source string filter by source (ui, cli, mcp, system)

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy audit - Inspect and manage audit log entries

apxy audit stats

Show audit log statistics

Synopsis

Show aggregate statistics for audit log entries, including total count, breakdown by category, and breakdown by source.

apxy audit stats [flags]

Examples

apxy audit stats

Options

-h, --help help for stats

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy audit - Inspect and manage audit log entries
Last updated on