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

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
# Write logs to file <TRUE, FALSE>. Defaults to TRUE
AGENTOPS_LOGGING_TO_FILE=TRUE
# Whether to opt out of recording environment data. <FALSE, TRUE>. Defaults to FALSE
AGENTOPS_ENV_DATA_OPT_OUT=FALSE