Set a setting
Writes one setting; value: null clears it. Daemon-wide keys take effect at once
(logging keys are re-applied immediately). A workspace key needs the workspace_dir of
a registered workspace.
hub_connect.sync and hub_connect.sync_logs (or hub_connect with an object) control
what the daemon sends to CliqHub; clearing one restores its default rather than
turning it off.
CliqHub can push settings too: with tx_id a repeated call returns the first reply and
the outcome is acknowledged to CliqHub. Keys that decide where the daemon sends its
credentials or listens (cliq.api_url, daemon.host, every hub. key) can only be
changed from this machine.
From the CLI: cliq settings set agents.claude-code.api_key <value>.
No credential is needed from this machine. From another host, send Authorization: Bearer with a dispatch token CliqHub signed for this daemon or a cliq_tok_… personal token of a user in the daemon’s realm; this only works once the daemon is connected to CliqHub. See Authentication.
Authorizations
Not needed from the same machine. From another host: a dispatch JWT CliqHub signed for this daemon, or a cliq_tok_… personal token whose user is in the daemon's realm.