-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
76 lines (62 loc) · 3.97 KB
/
.env.example
File metadata and controls
76 lines (62 loc) · 3.97 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
# ── CreditBrain Configuration ──────────────────────────────────
# Copy this file to .env and fill in the values.
# Variables marked [REQUIRED] must be set for the service to start.
# Variables marked [SENSITIVE] contain private keys — never commit .env.
# ── API Keys [REQUIRED] ─────────────────────────────────────────
BAGS_API_KEY=<from bags.fm/developers>
HELIUS_API_KEY=<from helius.dev>
OPENROUTER_MANAGEMENT_KEY=<from openrouter.ai dashboard>
API_AUTH_TOKEN=<bearer token for CreditBrain API routes>
# ── BAGS API ────────────────────────────────────────────────────
# Override the default BAGS API base URL (rarely needed)
BAGS_API_BASE_URL=https://public-api-v2.bags.fm/api/v1
# ── Helius / Solana ─────────────────────────────────────────────
# Helius RPC URL is auto-generated from HELIUS_API_KEY. Override to
# point at a custom Solana RPC endpoint.
# HELIUS_RPC_URL=https://mainnet.helius-rpc.com/?api-key=<key>
SOLANA_NETWORK=mainnet-beta
# ── EVM / CCTP Bridge [SENSITIVE] ──────────────────────────────
# ⚠️ EVM private key — used for signing CCTP bridge transactions.
# ⚠️ NEVER commit this value. Store in a secrets manager in production.
EVM_PRIVATE_KEY=
EVM_CHAIN_ID=8453
# ── Solana Signer [SENSITIVE] ──────────────────────────────────
# ⚠️ Solana signer private key (base58 or JSON array) — used for
# ⚠️ signing swap and claim transactions. NEVER commit this value.
SIGNER_PRIVATE_KEY=
# ── Server ──────────────────────────────────────────────────────
PORT=3001
CORS_ORIGINS=
NODE_ENV=production
# ── Fee Configuration ──────────────────────────────────────────
FEE_THRESHOLD_SOL=5
FEE_SOURCE=CLAIMABLE_POSITIONS
SWAP_SLIPPAGE_BPS=50
# ── Key Management ─────────────────────────────────────────────
DEFAULT_KEY_LIMIT_USD=10
KEY_LIMIT_RESET=monthly
KEY_EXPIRY_DAYS=365
CREDIT_POOL_RESERVE_PCT=10
MAX_KEY_LIMIT_USD=100
KEY_ROTATION_DAYS=90
USAGE_POLL_INTERVAL_MIN=15
# ── Distribution ───────────────────────────────────────────────
DISTRIBUTION_MODE=TOP_N_HOLDERS
DISTRIBUTION_TOP_N=100
DISTRIBUTION_TOKEN_MINT=
# ── Scheduler / Execution ──────────────────────────────────────
CRON_EXPRESSION=0 */6 * * *
MIN_CRON_INTERVAL_HOURS=1
MAX_DAILY_RUNS=4
MAX_CLAIMABLE_SOL_PER_RUN=100
# ── Safety ─────────────────────────────────────────────────────
DRY_RUN=false
EXECUTION_KILL_SWITCH=false
# ── BAGS Agent ─────────────────────────────────────────────────
BAGS_AGENT_USERNAME=
BAGS_AGENT_JWT=
BAGS_AGENT_WALLET_ADDRESS=
# ── Database ───────────────────────────────────────────────────
DATABASE_PATH=./data/creditbrain.db
# ── Logging ────────────────────────────────────────────────────
LOG_LEVEL=info