Authenticate with the Python SDK
Option 1: Environment variable (recommended for scripts and agents)
export ROBOFLOW_API_KEY=rf_xxxxximport roboflow
rf = roboflow.Roboflow() # picks up ROBOFLOW_API_KEYOption 2: Pass the key explicitly
import roboflow
rf = roboflow.Roboflow(api_key="rf_xxxxx")Option 3: Interactive login
import roboflow
roboflow.login()Where to find your API key
Override the config location
Last updated
Was this helpful?