How do I give an AI-built app its API keys without pasting them in the chat?
Paste each secret yourself in the project’s Variables in the Galon console: your functions read it from their environment when they are deployed. A secret never passes through the agent: Galon refuses a value that looks like one and sends the agent back to you.
Updated on
In practice
- In the console, open the project’s Variables and add the value: public or secret, for test or live.
- In your function, read it as
env.NAME; deploy again after a change. - Let the agent set ordinary settings only: a name or value that looks like a secret is refused with
project_secret_human_onlyand a link to the Variables screen. - Never write a secret or a database address in the source code.
Prices
- Requests$0.0253per million
- CPU time$0.011528per million milliseconds
Every price is on the pricing page.
Frequently asked questions
Can I read a secret again?
No. A secret is encrypted and never shown again; replace it if needed.
What about browser code?
Keep keys on the server: call Galon from a server only, never from browser code or a mobile app.
How does a function read my database?
Through its data API: a person reveals the server key in the console and saves it as a secret variable, which the function reads from its environment.
Good to know
- Galon Functions
Serverless functions and APIs, isolated per container, with logs
- Galon Functions
Usage only: requests and CPU time, no plan
Other guides
- How do I deploy an app built with Lovable or Bolt?
- How do I deploy a website with Claude Code?
- How can my AI agent show me a site before it goes live?
- Can I host an AI-built app for free?
- What happens when my AI agent runs out of balance?
- Can an AI agent buy a domain name for me?
- My editor says the MCP server has too many tools: which Galon address should I use?
- Which cloud should I use to deploy what my AI agent built (Claude, ChatGPT, Cursor)?
- Host an AI-built website on your own domain name
- Which database for an AI-generated app?
- How do I send emails from an agent-built app?
- Connect Galon to Claude or ChatGPT with MCP
- How do I limit what an AI agent spends on the cloud?