Skip to main content

Environment Variables

Required

VariableDescription
PRISMA_AIRS_API_KEYPrisma AIRS API key (x-pan-token). Used for authentication.

Optional

VariableDefaultDescription
PRISMA_AIRS_PROFILE_NAMECodex CLI - HooksAIRS security profile name for all scan directions
PRISMA_AIRS_API_ENDPOINThttps://service.api.aisecurity.paloaltonetworks.comRegional AIRS API base URL
PRISMA_AIRS_PROMPT_PROFILE(inherits PRISMA_AIRS_PROFILE_NAME)Override profile for prompt scanning
PRISMA_AIRS_RESPONSE_PROFILE(inherits PRISMA_AIRS_PROFILE_NAME)Override profile for response scanning
PRISMA_AIRS_TOOL_PROFILE(inherits PRISMA_AIRS_PROFILE_NAME)Override profile for MCP/tool scanning

User Identity Resolution

Every AIRS scan includes a metadata.app_user field that identifies the developer. This appears as the user_id in AIRS scan logs and the Strata Cloud Manager console, enabling per-user audit trails and policy enforcement.

The identity is resolved using the following fallback chain:

PrioritySourceExample
1git config user.email (shell exec)calvin@example.com
2$USER or $USERNAME env varcdot
3Hardcoded fallbackunknown

The resolved value is sent to AIRS as:

{
"metadata": {
"app_name": "codex-cli",
"app_user": "calvin@example.com"
}
}

Session Correlation

In addition to identity, every scan carries correlation IDs derived from the Codex hook input, so all scans from one Codex session group together in AIRS:

AIRS FieldSource
session_idCodex session_id (falls back to app_user:date)
tr_idturn_id:tool_use_id for tool scans; turn_id for prompt/response scans

Setting Variables

macOS / Linux (zsh)

# Add to ~/.zshrc or ~/.zsh.d/20-exports.zsh
export PRISMA_AIRS_API_KEY="your-key-here"
export PRISMA_AIRS_PROFILE_NAME="Codex CLI - Hooks"

macOS / Linux (bash)

# Add to ~/.bashrc or ~/.bash_profile
export PRISMA_AIRS_API_KEY="your-key-here"
Codex inherits your shell environment

Hook commands run with the session's working directory and your shell environment. After changing shell exports, start a new terminal (and a new Codex session) for the changes to take effect.