Concepts

Keys

The two-key model — what each key proves, and the one mistake with a security cost rather than a debugging cost.

Secret key vs publishable key

Clivly issues two keys and they are not interchangeable. Getting this wrong is the one mistake with a security cost rather than a debugging cost.

  • CLIVLY_SECRET_KEY authenticates your server to Clivly. It must never reach the browser, a client bundle, or a VITE_/NEXT_PUBLIC_ variable.
  • CLIVLY_PUBLISHABLE_KEY identifies your org to the chat widget. It is designed to be public and is safe in client code.
  • CLIVLY_API_KEY is the former name of the secret key. It is still read as a fallback, but new setups should use CLIVLY_SECRET_KEY.
  • The dashboard Connect dialog emits both keys, already filled in — that is the shortest path to a working .env.