Skip to content

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

export SCOUTML_API_KEY="your-api-key"

Windows PowerShell

$env:SCOUTML_API_KEY="your-api-key"

Option 2: Save It With The CLI

scoutml configure --api-key your-api-key

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:

SCOUTML_API_KEY

“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.