Skip to content

Environment Variables

Complete reference for all Argus environment variables.

AI Provider

Variable Default Description
AI_PROVIDER anthropic (CLI) · bedrock (Lambda) · vertexai (Cloud Run) · azure_openai (Azure Function) anthropic | bedrock | vertexai | azure_openai
AI_MODEL (per-provider default) Override the model for any provider. Takes precedence over provider-specific model vars.
AI_TEMPERATURE 0.0 Model temperature (0.0 = deterministic, 1.0 = creative). Ignored for Azure OpenAI reasoning model deployments (o1/o3/o4-mini) — Argus drops it automatically on retry. The same applies to Bedrock models that reject temperature.
ANTHROPIC_API_KEY — Required when AI_PROVIDER=anthropic
ANTHROPIC_MODEL claude-sonnet-4-6 Model name when using Anthropic API directly
BEDROCK_MODEL_ID anthropic.claude-sonnet-4-6 Bedrock model ID
BEDROCK_REGION us-east-1 Region where Bedrock is enabled
BEDROCK_MAX_TOKENS unset Output-token limit for the Bedrock provider. Overrides AI_MAX_TOKENS for Bedrock only
VERTEXAI_PROJECT — Required when AI_PROVIDER=vertexai
VERTEXAI_LOCATION us-central1 Vertex AI region
VERTEXAI_MODEL google/gemini-1.5-pro-002 Vertex AI model name
AZURE_OPENAI_ENDPOINT — Required when AI_PROVIDER=azure_openai
AZURE_OPENAI_DEPLOYMENT gpt-4o Azure OpenAI deployment name
AZURE_OPENAI_API_VERSION 2024-10-21 Azure OpenAI API version. Reasoning model deployments (o1/o3/o4-mini) require 2024-12-01-preview or later.
AZURE_OPENAI_API_KEY — Local dev only — use managed identity in production

AWS

Variable Default Description
PRIMARY_REGION us-east-1 Region for the boto3 session and Bedrock calls
RESOURCE_EXPLORER_REGION us-east-1 Region where your aggregator index lives
IGNORE_REGIONS (empty) Comma-separated regions to skip (e.g. ap-east-1,me-south-1)
AWS_PROFILE (default) Named AWS credentials profile
ACCOUNTS_MODE single single | multi
ACCOUNTS_CONFIG — JSON array of accounts when ACCOUNTS_MODE=multi

GCP

Variable Default Description
GCP_PROJECT_ID — Required for GCP scans (single project)
GCP_PROJECT_IDS — Comma-separated project IDs to scan in one run; overrides GCP_PROJECT_ID. See Multi-account.
BILLING_BQ_TABLE — BigQuery billing export table for cost data

Azure

Variable Default Description
AZURE_SUBSCRIPTION_IDS — Required for Azure scans — comma-separated subscription IDs
AZURE_LOG_ANALYTICS_WORKSPACE_ID — Enables KQL-based Activity Log queries

Report delivery

Variable Default Description
NOTIFICATION_PROVIDER slack Comma-separated channels to send to: slack, teams, webhook. A URL alone does not enable a channel.
SLACK_WEBHOOK_URL — Slack incoming webhook URL. Checked at startup by every scan unless DRY_RUN=true, even if Slack isn't in NOTIFICATION_PROVIDER.
TEAMS_WEBHOOK_URL — Microsoft Teams incoming webhook URL
WEBHOOK_URL — Generic webhook URL — receives the full JSON report as a POST body
REPORT_FORMAT json,html Comma-separated export formats: json, html (the decision board), pptx. PDF was removed in 0.7.0. PPTX requires python-pptx (pip install argus-cloud-optimizer[export]).
DRY_RUN false true = log a preview of the notification payload instead of posting; remediation makes no Jira calls
REPORT_URL_EXPIRY 604800 Pre-signed / SAS URL expiry in seconds (default: 7 days)
LOCAL_REPORT_DIR local_reports Where reports are saved locally (<dir>/<cloud>/YYYY/MM/DD/<scan-id>.*)

AWS report storage

Variable Default Description
REPORT_S3_BUCKET (empty) S3 bucket for full JSON + HTML reports. When set, the Slack digest includes a "Full report" button linking to a 7-day pre-signed URL.

GCP report storage

Variable Default Description
REPORT_GCS_BUCKET (empty) GCS bucket for full JSON + HTML reports. When set, the Slack digest includes a "Full report" button linking to a signed URL.

Azure report storage

Variable Default Description
REPORT_STORAGE_ACCOUNT (empty) Azure Storage account name for full JSON + HTML reports. When set, the Slack digest includes a "Full report" button linking to a SAS URL.
REPORT_STORAGE_CONTAINER argus-reports Blob container name. Created automatically if it doesn't exist.

Logging

Variable Default Description
LOG_LEVEL INFO DEBUG | INFO | WARNING | ERROR

Scan tuning

Variable Default Description
MAX_RESOURCES_PER_SCAN none (pipeline); scaled from LLM_BUDGET_USD (react) Maximum resources handed to the AI. When unset it is 150 per dollar of LLM budget, between 50 and 1000 (300 at the default $2.00; 500 when the budget is unlimited). The figure comes from a measured run of about $0.0033 per resource, so a default scan uses roughly half the budget. Set it explicitly to override; the report records the value and whether it was explicit or budget.
AI_MAX_TOKENS 16000 Output-token limit per model response. Used by all providers; Vertex AI is clamped to 8192 and Azure OpenAI to 16384 (their default models' limits) unless you pass a value in code. If the model is cut off, Argus asks it to submit findings in batches and fails with exit code 3 after 3 cut-offs.
AI_TIMEOUT_SECONDS 600 Request timeout for the Anthropic provider. Timeouts and connection errors are retried with backoff.
STRICT_COVERAGE false When true, fail the scan (exit 1) if the resource cap leaves any resources unanalysed, or, before any model call is made, if the plan line says LLM_BUDGET_USD cannot cover every residual candidate. Equivalent to --strict-coverage.
ARGUS_BASELINE_RULES true Run the deterministic baseline rules before the model.
ARGUS_GATE off Evidence gate before the model: off, shadow or on. For EC2 instances (average CPU at least 20% and at least 1 GiB of network in plus out over the window) and RDS instances (average CPU at least 20% and average connections at least 5), on keeps clearly busy resources away from the model and shadow only counts them (coverage.stages.gate.settled, and settled_but_flagged for the ones the model flagged anyway). Resources with no data, a metrics error or a missing metric are never settled. Keep shadow until settled_but_flagged is 0 on real scans.
ARGUS_ENGINE pipeline pipeline: evidence gathered in code, batched model triage (cheaper, covers every cost-bearing resource, repeatable). react: the original tool-calling loop.
ARGUS_TRIAGE_BATCH_ITEMS 60 Maximum resources per model call in the pipeline (batches are also limited by size).
ARGUS_ACTIVITY_LOOKUP auto Last-activity (CloudTrail) lookups: auto only for resources whose metrics could not decide (at most 150 per scan), all, or off.
ARGUS_EXPECT_ACCOUNT unset AWS account ID the credentials must belong to (single-account scans). A mismatch aborts with exit code 4 before any cloud or LLM call. Equivalent to --expect-account.
ARGUS_PROGRESS auto Scan progress on stderr for argus scan: auto (a live line in a terminal, plain lines otherwise), plain (always plain lines) or off. Equivalent to --no-progress for off. Deployed runs (Lambda, Cloud Run, Azure Function) never show it.
ARGUS_SKIP_PREFLIGHT false When true, skip the pre-scan environment checks (identity, Resource Explorer index/view/permissions). Logged at WARNING and recorded in the report. Equivalent to --skip-preflight.
METRICS_LOOKBACK_DAYS 90 CloudWatch / Cloud Monitoring / Azure Monitor lookback window. Applied to every metrics query (the model cannot override it) and recorded in the report's scan_window. 90 days covers quarterly usage patterns and aligns with the CloudTrail lookback. Set to 14 for faster local dev runs — not recommended in production as short windows produce false-positive idle findings.
COST_LOOKBACK_DAYS 14 Window for per-resource cost, set with --cost-days. The model cannot override it. AWS resource-level cost data holds at most 14 days, so larger values are capped at 14 on AWS and the report's scan_window.cost_lookback_days shows the effective value.
ACTIVITY_LOOKBACK_DAYS 90 Window for last-activity lookups, set with --activity-days. AWS CloudTrail can look back at most 90 days, so larger values are capped at 90.
ADAPTER_CONCURRENCY 10 Maximum parallel threads for metric and activity fetches during a scan. Increase for large accounts with many resources; decrease if you hit API rate limits.
MAX_AGENT_ITERATIONS 50 Maximum ReAct loop iterations before the agent is forced to stop. Increase only if the agent is consistently hitting the limit on very large accounts.
LLM_BUDGET_USD 2.00 Hard budget for LLM cost per scan in USD. The scan aborts gracefully if this limit is exceeded, returns partial results, and exits with code 2. Set to 0 to disable the budget check.
EXCLUDE_TAGS (empty) JSON object of tags; resources carrying any matching tag are dropped before the AI sees them, e.g. {"argus-exempt": "true"}
EXCLUDE_RESOURCE_TYPES (empty) Comma-separated resource types to drop before the AI sees them, e.g. AWS::EC2::Snapshot

Secret manager integration

Instead of storing sensitive values directly in environment variables, you can point them to a cloud secret manager. Every argus scan (local or deployed) resolves secret references at startup before any other processing. argus chat does not.

Supported variables: ANTHROPIC_API_KEY, SLACK_WEBHOOK_URL, TEAMS_WEBHOOK_URL, WEBHOOK_URL, AZURE_OPENAI_API_KEY, AZURE_OPENAI_ENDPOINT

Cloud Pattern Example
AWS Secrets Manager arn:aws:secretsmanager:<region>:<account>:secret:<name> ANTHROPIC_API_KEY=arn:aws:secretsmanager:us-east-1:123456789012:secret:argus/api-key
GCP Secret Manager gcp-secret://<project>/<secret>[/<version>] SLACK_WEBHOOK_URL=gcp-secret://my-project/slack-webhook
Azure Key Vault akv://<vault-name>/<secret-name> ANTHROPIC_API_KEY=akv://my-vault/anthropic-key

The required SDK must be installed for the cloud you reference — boto3 for AWS, google-cloud-secret-manager for GCP, azure-keyvault-secrets + azure-identity for Azure. If the value doesn't match any pattern, it's used as-is (no SDK required).

Remediation

Variable Default Description
REMEDIATION_ENABLED false Opt-in. Set true to create Jira tickets automatically after each scan. argus policies apply --confirm is not affected.
ARGUS_POLICY_DIR config/policies Directory containing *.yaml policy files, used by both argus policies and scheduled scans. The older name ARGUS_POLICIES_DIR is still accepted; if both are set, ARGUS_POLICY_DIR wins.
ARGUS_INTEGRATIONS_CONFIG config/integrations.yaml Path to integrations config (Jira project key, issue type, labels)
ARGUS_AUDIT_LOG ./local_reports/audit.jsonl Path for the append-only proposal audit log
JIRA_BASE_URL — Jira instance URL, e.g. https://yourorg.atlassian.net
JIRA_USER_EMAIL — Email address associated with the Jira API token
JIRA_API_TOKEN — Jira API token (generate at id.atlassian.com)

Note

config/integrations.yaml is gitignored — never commit Jira credentials. JIRA_API_TOKEN is not one of the variables resolved from secret-manager references above; inject it with your platform's own secret mechanism (e.g. Lambda environment encryption, Cloud Run --set-secrets, or an Azure Key Vault app-setting reference).