Skip to content

Configuration (.env)

How to configure

Ventana de terminal
cp .env.example .env
# Edit with your preferred editor

The .env file is in .gitignore — it never gets uploaded to the repository.

LLM Provider

VariableDefaultDescription
LLM_PROVIDERollamaLLM provider: ollama, openai, or anthropic
OLLAMA_MODELqwen3:14bOllama model — must support tool calling
OLLAMA_BASE_URLhttp://localhost:11434URL of Ollama server
OPENAI_MODELgpt-4oOpenAI model (if provider=openai)
OPENAI_API_KEYOpenAI API key
ANTHROPIC_MODELclaude-3-5-sonnet-20241022Anthropic model (if provider=anthropic)
ANTHROPIC_API_KEYAnthropic API key

OSINT API Keys

VariableServiceFree tier
VIRUSTOTAL_API_KEYVirusTotal500 req/day
ABUSEIPDB_API_KEYAbuseIPDB1,000 req/day
ALIENVAULT_OTX_API_KEYAlienVault OTXUnlimited
SHODAN_API_KEYShodan100 req/month
IPINFO_TOKENIPInfo50,000 req/month
URLSCAN_API_KEYURLScan.io5,000 req/day
FRED_API_KEYFRED (Federal Reserve)Free
EIA_API_KEYEIA (Energy)Free
CLOUDFLARE_API_TOKENCloudflare RadarFree
ACLED_ACCESS_TOKENACLEDFree (research)
ACLED_EMAILACLED (required with token)
AISSTREAM_API_KEYAISStream (maritime traffic)Free

OSINT Behavior

VariableDefaultDescription
CACHE_TTL_SECONDS86400Result cache duration (24 hours)
MAX_PIVOTS2Maximum depth of auto-pivot
THREAT_FEED_LIMIT10Maximum IOCs per feed fetch
BATCH_DELAY_SECONDS2Pause between IOCs in batch mode (rate limiting)

Server Ports

VariableDefaultDescription
MCP_TRANSPORTstdioMCP transport: stdio or streamable-http
MCP_HTTP_PORT8080HTTP port for MCP streamable-http
A2A_HOST0.0.0.0A2A server listening interface
A2A_PORT9000A2A server port

Investigations

VariableDefaultDescription
INVESTIGATION_DB_PATHdata/osint_ai.dbPath to investigations SQLite database
CHROMA_PATHdata/chromaChromaDB persistent storage
INVESTIGATIONS_DIRinvestigacionesRoot directory for investigation folders
EMBEDDING_MODELsentence-transformers/paraphrase-multilingual-MiniLM-L12-v2Embedding model for semantic search
ACTIVE_INVESTIGATIONS_LIMIT5Maximum active investigations simultaneously
MONTHLY_OPERATIONS_LIMIT100Monthly operations quota

OSINT Cache

VariableDefaultDescription
OSINT_CACHE_DB_PATHdata/osint_cache.dbPath to OSINT cache database

Complete .env example

Ventana de terminal
# === LLM ===
LLM_PROVIDER=ollama
OLLAMA_MODEL=qwen3:14b
OLLAMA_BASE_URL=http://localhost:11434
# === OSINT API Keys ===
VIRUSTOTAL_API_KEY=your_virustotal_key
ABUSEIPDB_API_KEY=your_abuseipdb_key
ALIENVAULT_OTX_API_KEY=your_alienvault_key
SHODAN_API_KEY=your_shodan_key
IPINFO_TOKEN=your_ipinfo_token
URLSCAN_API_KEY=your_urlscan_key
# === Optional ===
FRED_API_KEY=your_fred_key
EIA_API_KEY=your_eia_key
CLOUDFLARE_API_TOKEN=your_cloudflare_token
ACLED_ACCESS_TOKEN=your_acled_token
ACLED_EMAIL=your@email.com
AISSTREAM_API_KEY=your_aisstream_key
# === Behavior ===
CACHE_TTL_SECONDS=86400
MAX_PIVOTS=2
THREAT_FEED_LIMIT=10
BATCH_DELAY_SECONDS=2
# === Servers ===
MCP_TRANSPORT=stdio
MCP_HTTP_PORT=8080
A2A_HOST=0.0.0.0
A2A_PORT=9000
# === Investigations ===
INVESTIGATION_DB_PATH=data/osint_ai.db
CHROMA_PATH=data/chroma
INVESTIGATIONS_DIR=investigaciones
ACTIVE_INVESTIGATIONS_LIMIT=5
MONTHLY_OPERATIONS_LIMIT=100