1. Installation
Run the following command to install the EDSL package:2. Create an account
Sign up for a free account with your email address. This allows you to run surveys at the Expected Parrot server and collaborate with other users at Coop. Your account comes with $25 in credits for API calls to any available models. Run the following code to log in to your account and store your Expected Parrot key:3. Choose where to run surveys
You can use EDSL to run surveys locally on your own machine or remotely at the Expected Parrot server. To activate remote inference, navigate to the Settings page of your account and toggle on remote inference:
4. Manage API keys for language models
API keys are required to run surveys with language models. EDSL works with many language models from popular service providers, including Anthropic, Azure, Bedrock, DeepInfra, DeepSeek, Google, Mistral, OpenAI, Perplexity, Together and Xai. Current model pricing and performance information is available here. When you run a survey you can choose whether to use your own keys from service providers and/or an Expected Parrot API key to access all available models at once. There are several ways to manage your keys:- Manage keys at your Coop account (recommended)
- Store keys in a .env file on your computer
- Store keys directly in your EDSL code (not recommended for security reasons)

Note:Note that if you use your own keys, you will be charged directly by the service provider for API calls. If you use your Expected Parrot API key, credits are deducted from your account based on the model and number of tokens used in the survey.