Skip to main content
Connects your CLI to your Synth account and saves API keys locally.

Usage

uvx synth-ai setup
Opens your browser to authenticate with Synth, then writes SYNTH_API_KEY and ENVIRONMENT_API_KEY to a .env file in your current directory. Other commands (serve, train, etc.) will automatically use these keys. Inputs:
  • Browser authentication (automatic)
Outputs:
  • .env file with API keys
  • Confirmation message showing where keys were saved
Run this once per project. If you move to a different directory or clone a new repo, run it again.
I