okx-audit-log

Exports Onchain OS audit logs to JSON Lines for offline troubleshooting.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/Okheer/SENTINX --skill okx-audit-log-okheer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: okx-audit-log
Source: https://github.com/Okheer/SENTINX/tree/main/agent/enclave/.agents/skills/okx-audit-log
Command: npx skills add https://github.com/Okheer/SENTINX --skill okx-audit-log-okheer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides the audit log file path for developers to troubleshoot issues offline.

Core Features & Use Cases

  • Audit log path discovery: Locate the audit log file used by Onchain OS for debugging.
  • Structured log format: Logs are JSON Lines with a device header, timestamps, and fields for traceability.
  • Use Case: When debugging wallet interactions, API usage, or command history across devices, export the logs for offline inspection.

Quick Start

Ask me to export the audit logs to the default path for offline troubleshooting.

Frequently Asked Questions about okx-audit-log

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export Onchain OS audit logs for offline troubleshooting?

To export Onchain OS audit logs for offline troubleshooting, trigger the export to generate a JSON Lines file at ~/.onchainos/audit.jsonl. This file captures your command history and system interactions for offline inspection.

What fields are included in the JSON Lines audit log format?

The JSON Lines audit log format includes a device header and fields for ts, source, command, ok, duration_ms, args, and error. This structure provides full traceability for debugging API usage and wallet interactions.

How does audit log rotation work when debugging command history?

Audit log rotation maintains the latest 5,000 entries during command history debugging. When the log reaches this limit, older entries are discarded to ensure the file retains only the most recent offline troubleshooting data.

When do I need to use an audit log for wallet interactions?

You need an audit log for wallet interactions when debugging unexpected API responses or tracking command history across multiple devices. Exporting these logs allows offline troubleshooting by inspecting error fields and execution durations.

What is the default file path for exporting Onchain OS logs?

The default file path for exporting Onchain OS logs is ~/.onchainos/audit.jsonl. This specific location stores the structured JSON Lines output needed for offline troubleshooting of wallet interactions and command history.