My AI builder says it needs an API key to connect our business software. Where should I put it if I cannot judge whether the code is secure?
Use the platform's designated secret-management feature, not an ordinary chat message, source file, or field in the app's settings screen. If you cannot identify where secrets are stored and how they are protected, pause the connection and get technical help.
An API key can grant access to another system. Depending on its permissions, someone holding it may be able to read records, change information, or incur charges.
Vibe Coding: The Future of Programming by Addy Osmani describes the "70% problem": AI can handle much routine implementation while harder engineering decisions remain. Treat credential handling as one of those decisions, not as a detail that a working demo proves safe.
Ask the builder:
- Use a separate test credential while we build.
- Request only the permissions this workflow needs.
- Keep secret credentials on the server, outside browser-delivered code.
- Exclude secrets from logs, error messages, and exported project files.
- Document how we revoke and replace the credential.
A useful instruction is: "Explain how this connection authenticates without displaying the secret. Identify where the credential is stored, which permissions it needs, and how we can disable access."
Some services use public identifiers alongside secret credentials. Do not guess which one you have; check the provider's documentation.
If a secret has already appeared in chat, shared code, or a screenshot, treat it as exposed. Revoke or rotate it, check relevant access logs, and remove exposed copies where possible. Deleting the message alone does not invalidate the key.
Category: Vibe Coding for Non-Developers