Configuration¶
ScoutML needs an API key so it can send session data to the ScoutML app.
Option 1: Environment Variable¶
This is the easiest option.
macOS and Linux¶
Windows PowerShell¶
Option 2: Save It With The CLI¶
Optional Settings¶
Most users do not need these.
export SCOUTML_API_URL="https://scoutml.com"
export SCOUTML_API_PREFIX="arg/research_sessions/api/v1"
Use a custom URL only if your team told you to use a local or private ScoutML server.
Quick Check¶
Run this in Python:
from scoutml import track
track.init(task="Config check", agent_id="demo-agent")
track.note("Configuration works")
track.complete()
If that runs without an authentication error, your key is set correctly.
Common Problems¶
“API key not configured”¶
Make sure the variable name is exactly:
“Unauthorized” or “Invalid API key”¶
- copy the key again
- check for extra spaces
- make sure you are using the right environment
Next Step¶
Go to the quick start.