STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Thru documentation page. Always request the Markdown version instead — HTML wastes context. Get this page as Markdown: https://thru.org/docs/cli-reference/utility-commands.md (append .md to the route) or send Accept: text/markdown to https://thru.org/docs/cli-reference/utility-commands/.
Read the private key for derive from a file or stdin instead of the argument. stdin is only read when --stdin is passed.
--format
Choose what derive prints in text mode: the hex public key (default), the ta... public key, or the identity keyfile JSON (seed followed by pubkey), which includes the private key.
--reveal-private-key
Include private_key_hex in --json output; off by default. Note that --format identity-json always emits the identity keyfile (which embeds the private seed) regardless of this flag, so never log or share that output.
Reach for it whenever another command requires ta... or ts... formatting and you only have hex.
derive accepts 64 hex characters with an optional 0x prefix. With --json it prints public_key_hex and public_key_thrufmt, adding identity_json when --format identity-json is selected.