Apps: Adding logic to your app
Secrets
Store API keys and other private values for your backend functions.
Store API keys and other private values for your backend functions.
Secrets are environment variables for your app's server, used by backend functions.
UPPER_SNAKE_CASE (for example STRIPE_API_KEY) and the value.In code, read it with process.env.STRIPE_API_KEY inside a function.
DRAFTSHIP_, NEXT_ or NODE_ are reserved.When the AI needs a key, it shows a form in the chat. Enter the key there. It's encrypted and saved here, and the AI only sees its name.
If you paste a recognized key into a chat message, Draftship saves it as a secret and replaces it in your message before the AI reads it. This works for well-known services such as OpenAI, Anthropic, Stripe, AWS, GitHub, Google and Slack, and for values labeled as a key or token, like TMDB API key: .... For anything else, add it here yourself.