The AI key is readable by every user
ChartDB's optional AI features take OPENAI_API_KEY, or OPENAI_API_ENDPOINT plus LLM_MODEL_NAME for an inference server of your own; the README says to use one option, not both. How the image passes these on matters. Its nginx configuration answers requests for /config.js with a short script that sets window.env, the API key included, in clear, because the only component able to use the key is the front end running in each user's browser. Basic auth narrows the audience to your team; it does not hide the key from anyone on it. The request carrying your schema also goes from the user's browser straight to the provider, so the location of the VPS makes no difference to that traffic.
Our advice is to leave OPENAI_API_KEY unset on any instance more than one person can reach. If you want AI-assisted export without sending schemas to a US provider, run an OpenAI-compatible model server of your own in ALP1 and point OPENAI_API_ENDPOINT at it. It must be reachable from your users' browsers and accept cross-origin requests from the ChartDB address, and the dedicated server it needs costs many times what ChartDB does.
