Only prompt for login during wandb run when API key is unset
@@ -707,6 +707,8 @@ def run(ctx, program, args, id, resume, dir, configs, message, name, notes, show
environ[env.CONFIG_PATHS] = configs
if show:
environ[env.SHOW_RUN] = 'True'
+
+ if not run.api.api_key:
util.prompt_api_key(run.api)
try:
