Skip to main content

Configuration

Configure Argus through environment variables.

Environment Variables

Create a .env file in the project root:

# Database
DATABASE_URL=postgresql://user:password@localhost:5432/argus

# Near AI (for briefings)
NEAR_AI_API_KEY=your_near_ai_key
NEAR_AI_MODEL=nearai/deepseek-ai/DeepSeek-V3.1

# Telegram Delivery (optional)
TELEGRAM_BOT_TOKEN=your_bot_token
TELEGRAM_CHAT_ID=your_chat_id

# Server
PORT=3000
NODE_ENV=production

Required Variables

VariableDescription
DATABASE_URLPostgreSQL connection string

Optional Variables

VariableDescriptionDefault
NEAR_AI_API_KEYAPI key for briefing generation-
NEAR_AI_MODELLLM model for briefingsdeepseek-ai/DeepSeek-V3.1
TELEGRAM_BOT_TOKENBot token for delivery-
TELEGRAM_CHAT_IDChat ID for delivery-
PORTServer port3000
NODE_ENVEnvironmentdevelopment

Near AI Setup

  1. Create an account at near.ai
  2. Generate an API key in settings
  3. Add to your .env file

Telegram Setup

  1. Create a bot via @BotFather
  2. Get your chat ID by messaging the bot and checking /getUpdates
  3. Add both values to your .env file

Briefings will be delivered automatically at configured times.