Authentication
Before using the SWE-bench CLI, you'll need to set up authentication using an API key.
Getting an API Key
- Generate a new API key using your email:
- The CLI will output your API key. Save this key somewhere safe - you'll need it for all future operations.
Setting Up Your API Key
There are two ways to use your API key:
1. Environment Setup (Recommended)
Set your API key as an environment variable:
For permanent setup, add this line to your shell's configuration file (.bashrc
, .zshrc
, etc.).
Note
You can test that your key is working with sb-cli get-quotas
2. Command Line Option
Alternatively, you can pass your API key directly with each command:
Verifying Your API Key
After receiving your API key, you'll get an email with a verification code. Verify your API key using: