-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.env.example
More file actions
103 lines (85 loc) · 4.16 KB
/
.env.example
File metadata and controls
103 lines (85 loc) · 4.16 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
99
100
101
102
103
# Regen Compute - Environment Configuration
# Copy this file to .env and fill in your values
# Regen Network Indexer GraphQL endpoint
REGEN_INDEXER_URL=https://api.regen.network/indexer/v1/graphql
# Regen Ledger REST endpoint
REGEN_LCD_URL=https://lcd-regen.keplr.app
# Regen Marketplace base URL (for purchase links)
REGEN_MARKETPLACE_URL=https://app.regen.network
# --- Direct On-Chain Retirement (optional) ---
# When configured, retire_credits executes purchases and retirements directly
# on-chain instead of returning marketplace links.
# 24-word BIP39 mnemonic for the Regen wallet that will sign transactions.
# IMPORTANT: This wallet must be funded with REGEN/USDC to pay for credits.
# REGEN_WALLET_MNEMONIC=word1 word2 ... word24
# Regen Network RPC endpoint (for signing and broadcasting transactions)
REGEN_RPC_URL=http://mainnet.regen.network:26657
# Regen chain ID (regen-1 for mainnet, regen-redwood-1 for testnet)
REGEN_CHAIN_ID=regen-1
# Payment provider: "crypto" (wallet balance) or "stripe" (coming soon)
REGEN_PAYMENT_PROVIDER=crypto
# Default retirement jurisdiction (ISO 3166-1 alpha-2, e.g., US, DE, BR)
REGEN_DEFAULT_JURISDICTION=US
# Authentication (OAuth - for user identity on retirement certificates)
# OAUTH_CLIENT_ID=
# OAUTH_CLIENT_SECRET=
# Optional: Stripe (future - requires Regen team integration)
# STRIPE_SECRET_KEY=
# STRIPE_WEBHOOK_SECRET=
# --- Prepaid Balance (credit card top-up via Stripe) ---
# When configured, retire_credits checks your prepaid balance before executing
# and debits it after a successful on-chain retirement. No need to leave Claude.
#
# Get your API key at: https://your-server.com/checkout-page
# REGEN_API_KEY=rfa_your_api_key_here
# REGEN_BALANCE_URL=https://your-server.com
# --- Payment Server (for hosting the balance/checkout service) ---
# These are only needed if you're RUNNING the payment server (npx regen-compute serve)
# STRIPE_SECRET_KEY=sk_test_...
# STRIPE_WEBHOOK_SECRET=whsec_...
# REGEN_SERVER_PORT=3141
# REGEN_SERVER_URL=https://your-public-domain.com
# REGEN_DB_PATH=data/regen-compute.db
#
# Stripe Price IDs — Monthly (for programmatic Checkout Sessions — run scripts/stripe-setup.ts)
# STRIPE_PRICE_ID_SEEDLING=price_...
# STRIPE_PRICE_ID_GROVE=price_...
# STRIPE_PRICE_ID_FOREST=price_...
#
# Stripe Price IDs — Yearly (10 months for 12 = 17% discount)
# STRIPE_PRICE_ID_SEEDLING_YEARLY=price_...
# STRIPE_PRICE_ID_GROVE_YEARLY=price_...
# STRIPE_PRICE_ID_FOREST_YEARLY=price_...
#
# Stripe Payment Links (fallback for no-JS users — created in Stripe Dashboard)
# STRIPE_PAYMENT_LINK_SEEDLING=https://buy.stripe.com/...
# STRIPE_PAYMENT_LINK_GROVE=https://buy.stripe.com/...
# STRIPE_PAYMENT_LINK_FOREST=https://buy.stripe.com/...
# --- Monthly Email (Postmark) ---
# Sends monthly impact emails to subscribers after each pool retirement.
# Sign up at https://postmarkapp.com — free tier: 100 emails/month.
# POSTMARK_SERVER_TOKEN=your-server-token-here
# EMAIL_FROM_ADDRESS=impact@compute.regen.network
# EMAIL_REPLY_TO_ADDRESS=christian@regen.network
# EMAIL_ENABLED=true
# --- ecoBridge Integration ---
# Enable cross-chain token acceptance via bridge.eco
# When enabled, users can pay for credit retirement with USDC, USDT, ETH, etc.
# across Ethereum, Polygon, Arbitrum, Base, Celo, Optimism, Solana, and more.
ECOBRIDGE_API_URL=https://api.bridge.eco
ECOBRIDGE_ENABLED=true
ECOBRIDGE_CACHE_TTL_MS=60000
# 24-word BIP39 mnemonic for EVM wallet (Base, Ethereum, Polygon, etc.)
# Used by retire_via_ecobridge to send USDC to project wallets.
# If not set, ecoBridge tools will show project info but can't execute transactions.
# ECOBRIDGE_EVM_MNEMONIC=word1 word2 ... word24
# BIP44 derivation path for the EVM wallet (default: standard Ethereum path)
# ECOBRIDGE_EVM_DERIVATION_PATH=m/44'/60'/0'/0/0
# --- x402 Payment Protocol ---
# Standards-compliant HTTP 402 payment flow for AI agents.
# When enabled, unauthenticated API requests receive x402 402 responses
# with USDC payment requirements on Base. Agents pay per-request via
# Coinbase facilitator, then receive an API key for subsequent calls.
# Existing API key auth continues to work alongside x402.
# X402_ENABLED=false
# X402_FACILITATOR_URL=https://x402.org/facilitator