Methods
There are three methods for storing and managing keys (details on each below):1
Manage keys from your Expected Parrot account (recommended)
2
Store keys in a local file on your computer
3
Set keys in your code (not recommended)
1. Manage keys from your account
This method provides a secure way to store your keys and the most flexibility in choosing how to use them. It requires an Expected Parrot account (log in/sign up here) and works with remote-inference. If you are only running surveys locally, see method 2. below for instructions on storing keys on your computer. To use this method, go to your Settings page and enable the Run surveys remotely toggle under Remote Execution:

2. Store keys in a local file
This method allows you to store keys in a private file on your computer and make them available for any surveys that you run, locally or remotely. It also allows you to post local content to Expected Parrot. To use this method:1
Navigate to your EDSL working directory: $ cd /path/to/edsl (replace with your actual path)
2
Create a file named .env
3
Add your keys to the file in the following format (omit any keys that you do not have or do not want to use):

3. Set keys in your code
To use this method, store any keys that you want to use as strings in your code in the following format:Note that your keys will not persist across sessions and you will need to provide your keys each time you start a new session.
Credits
When you use your Expected Parrot key to access models your account is charged for the costs of API calls to models. (When you use your own keys, service providers will bill you directly.) Please see the model pricing page for information on available models and prices and the credits section for information on purchasing credits and calculating costs.Troubleshooting
In order to use local inference, you must also have credits available on your account with a service provider in order to run surveys with some models. If you are using remote inference, simply ensure that you have credits on your Expected Parrot account to access all available models. When you run a survey, EDSL checks whether you are using remote or local inference and then checks for the requisite API keys for the models that you have specified to use with the survey. If you do not specify a model to use for a survey, EDSL will attempt to run it with the default model. You can check the current default model by running the following command:
To check all available models:
- Discord channel: https://discord.com/invite/mxAYkjfy9m
- Email: [email protected]
