Installation
How to install the Weco CLI
Prerequisites
The weco
CLI currently supports Python version 3.8 and above.
Installation
Install the weco
CLI using pip
:
Install from source:
Tip: We recommend using a virtual environment.
API Key Configuration
Weco requires API keys for the LLMs it uses internally. Choose your preferred provider and set the corresponding environment variable:
Create your OpenAI API key here.
Weco Account (Optional)
To associate your optimization runs with your Weco account and view them on the Weco dashboard, you can log in.
First-Time Device Login Process
- When you first run
weco run
, you'll be prompted if you want to log in/create an account (pressl
) or proceed anonymously (press Enter ors
). - If you choose to login, this saves a Weco-specific API key locally (typically at
~/.config/weco/credentials.json
). - If you choose to skip login,
weco
will still function using the environment variable LLM keys, but the run history will not be linked to a Weco account.
Logging Out
To log out and remove your saved Weco API key, use the following command:
Next Steps
Once you've installed Weco and configured your API keys, you're ready to start optimizing your code:
- Check out the Getting Started guide to learn how to use the Weco CLI
- Check out the Writing Good Evaluation Scripts guide to learn how to write a good evaluation script
- Check out the CLI Reference to learn more about the commands and options available
- Visit the FAQ for answers to common installation and usage questions
- Explore our Examples to see Weco in action