himitsu-ipc(5)
π¦ himitsu-ipc(5) β the himitsu IPC protocol, explained by your favorite unix bestie π¦
okay so this is himitsu-ipc, part of the File Formats Manual section, and it's literally the manual page for the IPC protocol that himitsud(1) speaks π
β¨ NAME β¨
himitsu-ipc β the IPC protocol implemented by himitsud(1) π
πΈ DESCRIPTION πΈ
okay so bestie, picture this: the Himitsu IPC protocol is a line-oriented text protocol. That means it's all text, one line at a time, using UTF-8 encoding and LF line endings. No cap. π«Ά
It gets transmitted over a Unix socket, and that socket lives at $XDG_RUNTIME_DIR/himitsu. Write that down. π
Interactions with this interface are command/reply oriented β commands are initiated by the client and replies are sent by the server. And here's the cute part: both commands and replies have the same semantic structure. They each begin with a command word (an alphanumeric string) which defines the operation requested. There may or may not be additional arguments provided. π₯
So like:
- if there are no additional arguments, the command word is immediately followed by LF.
- otherwise, after the command word comes a space, then a sequence of arbitrary printable UTF-8 characters until the line terminator is reached. The structure of that argument string depends on the command word. iykyk π«
this man page assumes knowledge of the KEY FORMAT and QUERY SYNTAX described inhimitsu(7). Also note that commands which accept flags process them in a manner compatible withgetopt(3). π
and ngl, one thing you need to know before you freak out about slow responses: all commands are subject to a significant delay before the reply while the user is prompted to provide consent or to unlock the keyring. That's not a bug, that's the vibe check. π
π COMMANDS π
The following commands are recognized by the server:
add key...β Adds a new key to the key store. The server will send a key reply echoing the new key (without secrets), followed by an end reply. β¨del [-s] query...β Removes keys from the key store which match the provided query. The user will be prompted to consent to this operation. The server will send a key reply for each deleted key (without secrets), followed by an end reply. The option-swill enable the strict query mode. ποΈpersist [-rs] queryβ Persists a query after user consent for the current connection. Private values that match the given query will be decrypted without user consent, if the store is unlocked. The server will answer with a persist reply.-r<remember options> β as a comma separated list that are send to the prompter. Allowed values are the stringssession,skip,refuse, or a timeout in section as an integer. Eg.:"-r session,3600,300,refuse". The first value is the default value and should be preselected by the prompter. See theremembercommand inhimitsu-prompter(5)for a description of the options.-sβ will enable the strict query mode.
query [-drs] query...β Queries the key store for keys matching the provided query. Matching keys are returned via a series of key replies, terminated with an end reply to signal the end of the list. π-dβ the private values will be decrypted after requesting user consent.-r<remember options> β as a comma separated list similar to the same option of thepersistcommand. If the user agrees, the entries matched by given query will be remembered for the current connection.-sβ will enable the strict query mode.
update [-s] query...β Begins an transaction that will update all keys matching the provided query. The server will answer wit the update reply. Requires asetcommand next, to complete the update. There must be no other command in betweenupdateandset. β οΈ-sβ will enable the strict query mode.
set query...βsetmust directly follow theupdatecommand. It changes the key/value pairs of the keys that are matched by theupdatecommand according to the values provided by the query. If a key/value pair doesn't exist, it will be added. Otherwise the existing key will be updated with the new value. If there is a key without a value, then the matching key/value pair will be removed. π§ Updated keys are returned via a series of key replies, terminated with and end reply to signal the end of the list.statusβ Requests the secret store lock status. Responds with the status reply. πlock [-s]β Locks the keyring clearing all entries and removes the secret key from memory. The server will answer with the locked reply. π-sβ Soft lock: Only the secret key will be cleared. Entries without their secret values can still be accessed.
quitβ Requests that the daemon terminate itself. This command is only recognized ifhimitsud(1)was started with the-Dflag. No reply is sent. π
π REPLIES π
The following replies are sent to the client:
key key...β Provides a single key store entry to the user. πendβ Signals the end of a list of key replies. πpersist session|timeout <value>|skip|refuseβ Returns the selected remember option onpersist.lockedβ Indicates that thelockcommand was successful. πstatus unlocked|soft_locked|hard_lockedβ Current key store status as reply to thestatuscommand.updateβupdatecommand has been received without errors. β¨error message...β Indicates that a requested operation resulted in an error. The message is both human-friendly and consistent, such that it can be displayed to the user or matched against an internal database of semantic error strings in the client. π
β EXAMPLE SESSION β
An example session, with <= indicating messages from the server to the client, and => vice-versa. Any of the commands may be separated from their replies by several seconds while the user interacts with the prompter. (remember that delay? yeah. that one.) π«Ά
=> query proto=web
<= key proto=web host=a.example.org user=jdoe password!
<= key proto=web host=b.example.org user=jdoe password!
<= key proto=web host=c.example.org user=jdoe password!
<= key proto=web host=d.example.org user=jdoe password!
<= end
=> add proto=web host=e.example.org user=jdoe password!=hunter2
<= key proto=web host=e.example.org user=jdoe password!
<= end
=> query -d proto=web host=e.example.org
=> key proto=web host=e.example.org user=jdoe password!=hunter2
<= end
π SEE ALSO π
π AUTHORS π
Maintained by Drew DeVault <sir@cmpwn.com>, who is assisted by other contributors. Up-to-date source code can be found at https://git.sr.ht/~sircmpwn/himitsu, and bugs/patches can be submitted by email to ~sircmpwn/himitsu-devel@lists.sr.ht. π«‘
and that's the whole page bestie, mwah π this was himitsu-ipc(5) from the File Formats Manual, dated 2026-02-20 β go forth and speak fluent himitsu, you're gonna slay π₯π
π¦ where this page comes from
- alpine 3.24: himitsu-doc 0.10-r0 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms