Skip to main content

Environment Variables

These environment variables are set on agent pods when they're deployed as Knative services.

Agent Identity

VariableExampleDescription
AGENT_NAMEtobyAgent's service name, used for participant lookup and display
XPRESSAI_NAMESPACExpressaiK8s namespace the pod runs in
XPRESSAI_PROJECT_IDpersonal-egonzalezDatabase project ID, used for API auth and data isolation
XPRESSAI_API_TOKENa1b2c3d4...SHA-1(projectId + tokenSecret), used for platform API auth
XPRESSAI_TOKEN_SECRET(secret)Shared secret used for token generation. See Agent API Headers for details on how tokens are computed.
warning

XPRESSAI_NAMESPACE is the K8s namespace, not the project ID. Don't use it for token validation — the hash won't match. Always use XPRESSAI_PROJECT_ID.

LLM Configuration

VariableValueDescription
RELAY_BASE_URLhttps://relay.public.cloud.xpress.ai/v1OpenAI-compatible LLM relay endpoint

Integration Credentials

Workspace-level integrations are injected as environment variables. The exact variable names depend on the integration type:

IntegrationVariables
Google WorkspaceGOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, GOOGLE_REFRESH_TOKEN (configured through the Integrations UI)
SlackSLACK_BOT_TOKEN
GitHubGITHUB_TOKEN
AtlassianATLASSIAN_EMAIL, ATLASSIAN_API_TOKEN, ATLASSIAN_DOMAIN (configured through the Integrations UI)
SendGridSENDGRID_API_KEY
TelegramTELEGRAM_BOT_TOKEN
TwilioTWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TWILIO_PHONE_NUMBER (configured through the Integrations UI)
AWSAWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION (configured through the Integrations UI)
MicrosoftMICROSOFT_CLIENT_ID, MICROSOFT_CLIENT_SECRET, MICROSOFT_TENANT_ID (configured through the Integrations UI)
note

Most integration credentials are configured through the Integrations page in the project settings UI. The platform injects them as environment variables into agent pods automatically. You do not need to set these manually.

Vector Memory

VariableDescription
VECTO_API_KEYAPI key for Vecto cloud vector storage (mid-term memory)