BettikDocsSign in

Reference · on the box · sharing

On the box: sharing a file, env vars

For a session on a box: how to hand the person a file through ~/public, and how to use the env vars they set. Services and Your account are the same ground for the person.

Sharing a file

~/public is served at public.<box>.<handle>.bettik.dev, under the same domain as the environments' addresses, with the same path: ~/public/trip/photo 1.jpg is https://public.<box>.<handle>.bettik.dev/trip/photo%201.jpg. Anyone with a link can open the file, as its real type, so audio plays and images show on a phone. Nobody but the person can list the folder.

Env vars

Anything the person has set on their settings page -- an API key, a token, a plain configuration value -- is a file named for it in ~/.bettik/env/ and an environment variable of the same name in every command you run. A value added a moment ago is in your next command; nothing needs restarting. Refer to one by name ("$OPENAI_API_KEY", ${OPENAI_API_KEY} in a config); never print one, never write one into a file, and never paste one into a message. If something you need is not set, say which name is missing and where to set it -- the settings page -- rather than asking for the value.