Follow these steps to securely store your LLM provider API keys:
On the NavBar of the Compiler Dashboard, click on “API Keys”.
Click on the “Select Provider” menu, and select from one of the available providers.
Paste the API key from the provider (in our example we are pasting a key from OpenAI) and click “Save API Key”.
After saving/encrypting your key, you’ll see a new section “Saved API Keys:” that lists all the keys you have stored securely with Compiler.
Note: Because the keys are encrypted, we will not show you the key. If the key seems to not work, it’s most likely a copy and paste error. You’ll need to delete the key and try again.
That’s it! Now you can make calls to your LLM providers protected with Compiler Auth with no exposure of your keys 🎉
In order to use Compiler Function Calling, you’ll need to generate an API key.
Give your key a name.
Click the “Generate” button.
A modal dialog will appear with your API key. You can click the button on the right to copy it.
When you click the “I’ve Saved My API key” button, we also copy the key to your clipboard in case you are moving fast!
You can only see your API key once, before it is encrypted and stored. If you are using Compiler Auth to make your function calls, you won’t really need it. However, when you want to test your function calls with the “Try the API” feature on the dashboard, you’ll need your key for that. If you lose your key or forgot to copy/paste it, you can just regenerate or make a new one.
Your Compiler keys will appear below the Key name input, and you’ll also be able to regenerate the key (note: this makes a new key) or delete the key here.