Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Client Architecture

ℹ️ This page is just a rough outline of what I want to cover.

  • foks agent - runs in the background

    • holds state, including secret key material for the "active" profile
    • listening on a UNIX socket
      • macOS: ${HOME}/Library/Caches/foks/foks.sock
      • Linux: ${XDG_RUNTIME_DIR:-${HOME}/.config}/foks/foks.sock
  • foks commands run in the foreground

    • communicates with agent using UNIX socket
      • ❓ document protocol over that UNIX socket
    • HTTP protocol - foks kv rest commands

Generated 2025-09-22 03:40:19
74d4feb 2025-09-22 03:38:41 +0000