Usage
SYNTH_API_KEY and ENVIRONMENT_API_KEY to ~/.synth/config. Other commands (deploy, train, eval, etc.) automatically use these keys.
What It Does
- Opens browser authentication - Connects to Synth platform for OAuth flow
- Fetches API keys - Retrieves your
SYNTH_API_KEYandENVIRONMENT_API_KEY - Saves credentials - Stores keys in
~/.synth/configfor future CLI use - Verifies Modal - Checks if Modal is authenticated (needed for cloud deployments)
Options
Examples
Where Keys Are Stored
Keys are saved to:~/.synth/config
This file is read automatically by all Synth AI commands. You can also use .env files in your project directory to override these values.
Troubleshooting
”Failed to fetch keys from frontend”
- You’ll be prompted to enter keys manually
- Get keys from: https://www.usesynth.ai/dashboard/settings
”Modal authentication required”
- Run:
modal token new - Then re-run:
uvx synth-ai setup
Browser doesn’t open
- Use
--localflag to skip browser authentication - Or check your default browser settings