In AgentOps fashion, you only need to add one line of β€œcode” to your .env file 😊

.env
AGENTOPS_API_KEY=<YOUR API KEY>

Find your AgentOps API Key in your Settings > Projects & API Keys page.

Optional settings:

.env
# Secondary API Key for simultaneously recording to a second project
AGENTOPS_PARENT_KEY=<YOUR PARENT KEY>
# The AgentOps API endpoint. Defaults to https://api.agentops.ai
AGENTOPS_API_ENDPOINT=https://api.agentops.ai
# Logging level. <DEBUG, INFO, CRITICAL>. Defaults to INFO
AGENTOPS_LOGGING_LEVEL=INFO
# Whether to opt out of recording environment data. <FALSE, TRUE>. Defaults to FALSE
AGENTOPS_ENV_DATA_OPT_OUT=FALSE