-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.mainnet.example
More file actions
98 lines (80 loc) · 3.91 KB
/
.env.mainnet.example
File metadata and controls
98 lines (80 loc) · 3.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# =============================================================================
# corvid-agent — Mainnet Configuration Template
# v1.0.0 Production Environment
#
# Copy to .env and fill in ALL required values before deploying.
# Every uncommented line is REQUIRED for mainnet operation.
# =============================================================================
# --- Network (REQUIRED) ------------------------------------------------------
ALGORAND_NETWORK=mainnet
# Agent network is typically localnet even in production deployments.
AGENT_NETWORK=localnet
# --- Server (REQUIRED) -------------------------------------------------------
PORT=3000
# MUST bind to 0.0.0.0 for production — API_KEY enforced below.
BIND_HOST=0.0.0.0
# Strong random API key — required when BIND_HOST is not localhost.
API_KEY=CHANGE_ME_GENERATE_RANDOM_KEY
# Separate admin key for elevated operations.
ADMIN_API_KEY=CHANGE_ME_GENERATE_RANDOM_ADMIN_KEY
# Restrict CORS to your production domain(s).
ALLOWED_ORIGINS=https://yourdomain.com
# Public URL for device auth callbacks and agent card.
PUBLIC_URL=https://yourdomain.com
# --- Logging ------------------------------------------------------------------
LOG_LEVEL=info
LOG_FORMAT=json
# --- AI Provider (REQUIRED — at least one) ------------------------------------
# For cloud: set API key. For local-only: set ENABLED_PROVIDERS=ollama.
# ANTHROPIC_API_KEY=sk-ant-...
ENABLED_PROVIDERS=ollama
# --- Ollama (required if ENABLED_PROVIDERS includes ollama) -------------------
OLLAMA_HOST=http://localhost:11434
OLLAMA_MAX_PARALLEL=1
OLLAMA_NUM_CTX=16384
# --- Algorand / AlgoChat (REQUIRED) ------------------------------------------
# 25-word mnemonic for the mainnet wallet. KEEP SECRET.
ALGOCHAT_MNEMONIC=CHANGE_ME_25_WORD_MNEMONIC
# Comma-separated owner addresses for admin commands.
ALGOCHAT_OWNER_ADDRESSES=CHANGE_ME_OWNER_ADDRESS
# Mainnet indexer for on-chain reputation verification.
ALGORAND_INDEXER_URL=https://mainnet-idx.algonode.cloud
# Pre-shared key for encrypted AlgoChat channels (optional but recommended).
# ALGOCHAT_PSK_URI=algochat-psk://v1?addr=...&psk=...
# --- Wallet Security (REQUIRED) ----------------------------------------------
# AES-256 encryption key for agent sub-wallets. Generate a strong random key.
WALLET_ENCRYPTION_KEY=CHANGE_ME_GENERATE_256_BIT_KEY
WALLET_KEYSTORE_PATH=./wallet-keystore.json
# --- Spending Limits (REQUIRED — conservative defaults) -----------------------
# 2 ALGO/day initial cap (2,000,000 microALGOs). Increase gradually.
DAILY_ALGO_LIMIT_MICRO=2000000
# --- Rate Limiting (recommended defaults) ------------------------------------
RATE_LIMIT_GET=600
RATE_LIMIT_MUTATION=60
# --- USDC (mainnet ASA ID) ---------------------------------------------------
# Mainnet USDC ASA ID — required for payment flows.
# USDC_ASA_ID=31566704
# --- GitHub Integration -------------------------------------------------------
# Required for work tasks, PRs, and webhooks.
# GH_TOKEN=ghp_...
# GITHUB_WEBHOOK_SECRET=CHANGE_ME_WEBHOOK_SECRET
# --- Work Tasks ---------------------------------------------------------------
WORK_MAX_ITERATIONS=3
WORK_TASK_MAX_PER_DAY=100
# --- Container Sandbox (recommended for production) --------------------------
SANDBOX_ENABLED=true
# --- Database Backups (REQUIRED) ----------------------------------------------
BACKUP_DIR=./backups
BACKUP_MAX_KEEP=30
# --- Multi-Tenant (optional) -------------------------------------------------
# MULTI_TENANT=false
# --- Notifications (optional, configure at least one) -------------------------
# DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/...
# TELEGRAM_BOT_TOKEN=...
# TELEGRAM_CHAT_ID=...
# --- Observability (recommended) ----------------------------------------------
# OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
# OTEL_SERVICE_NAME=corvid-agent
# --- Billing (optional) ------------------------------------------------------
# STRIPE_SECRET_KEY=sk_...
# STRIPE_WEBHOOK_SECRET=whsec_...