Back to Skills

okx-audit-log

Use this skill when the user asks to export audit logs, find audit log location, view command history, 导出日志, 查看日志, 日志路径, 操作记录, 调用记录, 命令历史. Do NOT use for wallet balance, token search, swap, or any other on-chain operation — use the corresponding skill instead.

251stars49forksUpdated 5/12/2026

Security Assessment

Safe(100/100)
Security Score100/100

About okx-audit-log

The okx-audit-log skill provides a structured mechanism for developers and system administrators to access and manage audit logs generated by the Onchain OS environment. It addresses the common challenge of monitoring and troubleshooting command execution histories without requiring real-time file inspection. By exposing the location and structure of audit logs, it enables users to perform offline analysis, ensuring a secure and organized way to track command invocations, system interactions, and potential errors across the Onchain OS platform.

This skill offers several key capabilities. It provides the precise file path of the audit log, typically located at `~/.onchainos/audit.jsonl` or `$ONCHAINOS_HOME/audit.jsonl` if an environment variable is set. Logs are maintained in JSON Lines format, allowing each entry to be a standalone JSON object for easy parsing and automation. The first line captures device-specific metadata such as OS, architecture, and CLI version. Each subsequent entry records critical details including timestamp, command source, execution success, duration, redacted arguments, and any errors. Logs are rotated automatically once they reach 10,000 lines, retaining the device header and the most recent 5,000 entries, which ensures that log files remain manageable while preserving relevant history.

Targeted at developers, auditors, and IT professionals working within the Onchain OS ecosystem, this skill is particularly useful for offline troubleshooting, auditing command history, and understanding system behavior. It is suitable for users who need to analyze past operations without directly exposing sensitive information stored in the log entries. The skill is explicitly designed to avoid operations related to wallet balances, token searches, swaps, or any on-chain transactions, focusing solely on command and audit log management.

FAQ

How do I locate the audit log file on my system?

The audit log is typically located at `~/.onchainos/audit.jsonl`. If the environment variable `$ONCHAINOS_HOME` is set, the log can be found at `$ONCHAINOS_HOME/audit.jsonl`.

What format is used for the audit log entries?

The audit log uses JSON Lines format, where each line is a separate JSON object. The first line contains device metadata, and subsequent lines include timestamp, source, command, execution status, duration, redacted arguments, and error information.

Can I use this skill to view wallet balances or perform token operations?

No, this skill is specifically for audit logs and command history. Wallet balances, token searches, swaps, and other on-chain operations require the corresponding skills designed for those purposes.

How does log rotation work for the audit log?

Logs rotate automatically when they reach 10,000 lines. During rotation, the device header is preserved, and the most recent 5,000 entries are kept to ensure continuity and manageability.

Who is the intended user for this skill?

This skill is intended for developers, auditors, and IT professionals who need to troubleshoot, audit, or analyze command execution history within the Onchain OS environment.

Install okx-audit-log

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill