forked from clevercon-protocol/clevercon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
148 lines (120 loc) · 7.21 KB
/
Copy path.env.example
File metadata and controls
148 lines (120 loc) · 7.21 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# CleverCon — environment variables
#
# Copy this file to .env, then follow the setup steps below (or in
# docs/development.md for a more detailed walkthrough).
#
# Quick setup order:
# 1. Set ANTHROPIC_API_KEY (get from https://console.anthropic.com)
# 2. Run: npx tsx scripts/setup-wallets.ts
# → copy the printed *_SECRET_KEY lines into this file
# 3. Run: npx tsx scripts/add-usdc-trustlines.ts
# 4. Run: npx tsx scripts/fund-testnet-usdc.ts
# → swaps XLM → USDC via testnet DEX (no browser needed)
# → fallback: https://faucet.circle.com → Stellar Testnet → paste ORCHESTRATOR key
# 5. Run: npx tsx scripts/distribute-usdc.ts
# 6. (Optional) Deploy CleverVault: cd contracts/agent-vault && ./deploy.sh
# → writes AGENT_VAULT_CONTRACT_ID to .env automatically
# ── AI ────────────────────────────────────────────────────────────────────────
# Required unless LLM_PROVIDER=mock. Used by orchestrator (planning, feasibility,
# rating) and web-intel agents (optional Claude summarisation). Get yours at
# console.anthropic.com.
ANTHROPIC_API_KEY=sk-ant-...
# LLM provider for the orchestrator. Leave unset (or "anthropic") to call the
# real Anthropic API. Set to "mock" to skip all LLM calls and return
# deterministic stubs — lets contributors run the full pipeline without an
# ANTHROPIC_API_KEY while working on the executor, payments, registry, or vault.
# LLM_PROVIDER=mock
# Anthropic model strings. Each call site resolves its model as:
# LLM_<PURPOSE>_MODEL ?? LLM_MODEL ?? built-in default
# so LLM_MODEL is a global override for every service, and the per-purpose
# vars below override it for a single call site. All are ignored when
# LLM_PROVIDER=mock. Leave unset to keep the built-in defaults.
#
# Global default for every Anthropic call (orchestrator + agents):
# LLM_MODEL=
#
# Orchestrator (defaults shown):
# LLM_PLANNER_MODEL=claude-sonnet-4-5
# LLM_RATER_MODEL=claude-haiku-4-5-20251001
# LLM_FEASIBILITY_MODEL=claude-haiku-4-5-20251001
#
# Agent services (defaults shown):
# LLM_ANALYSIS_MODEL=claude-haiku-4-5-20251001
# LLM_REPORTER_MODEL=claude-haiku-4-5-20251001
# LLM_WEBINTEL_MODEL=claude-haiku-4-5-20251001
# ── Stellar wallet keys ───────────────────────────────────────────────────────
# Required. Each service uses its own Stellar keypair for payment transactions.
# Run `npx tsx scripts/setup-wallets.ts` — it prints these lines to stdout.
# Copy the output here; the script also writes wallets.json (gitignored).
ORCHESTRATOR_SECRET_KEY=S...
STELLAR_ORACLE_SECRET_KEY=S...
WEB_INTEL_SECRET_KEY=S...
WEB_INTEL_V2_SECRET_KEY=S...
ANALYSIS_AGENT_SECRET_KEY=S...
REPORT_AGENT_SECRET_KEY=S...
# ── CleverVault contract ──────────────────────────────────────────────────────
# Optional. Written automatically to .env by `contracts/agent-vault/deploy.sh`.
# If unset or left as a placeholder, the vault client detects VAULT_ACTIVE=false
# and all vault calls become safe no-ops — useful for non-vault development.
# The deployed testnet contract is:
# CDFLEJ2HFPK3WKFTWB4CKP2JHEYNAUWKXGEJRYW4YMMGDSQSQ7D4LRTE
AGENT_VAULT_CONTRACT_ID=C...
# ── Stellar network ───────────────────────────────────────────────────────────
# All three have correct testnet defaults — change only when targeting mainnet.
# Network identifier consumed by @stellar/mpp (format: "network:slug").
STELLAR_NETWORK=stellar:testnet
# Soroban RPC endpoint — used by the vault contract client.
STELLAR_RPC_URL=https://soroban-testnet.stellar.org
# Horizon REST API — used by the orchestrator for USDC balance checks and
# by the stellar-oracle agent for live Stellar network data.
HORIZON_URL=https://horizon-testnet.stellar.org
# Stellar-oracle in-memory cache TTLs (milliseconds). Defaults shown:
# - Price/orderbook lookups: 10s
# - Asset metadata: 60s
# - Account info: 30s
ORACLE_PRICE_CACHE_TTL_MS=10000
ORACLE_ASSET_CACHE_TTL_MS=60000
ORACLE_ACCOUNT_CACHE_TTL_MS=30000
# ── Payment protocols ─────────────────────────────────────────────────────────
# Both have production defaults and do not normally need to be changed.
# x402 payment facilitator — used by every agent that accepts x402 payments.
# Primary (Coinbase): https://www.x402.org/facilitator
# Backup (OpenZeppelin testnet): https://channels.openzeppelin.com/x402/testnet
X402_FACILITATOR_URL=https://www.x402.org/facilitator
# X402_FACILITATOR_API_KEY= # only needed for the OpenZeppelin backup facilitator
# xlm402.com base URL — used by stellar-oracle (external price data) and
# web-intel agents (news, scraping). Defaults to https://xlm402.com.
XLM402_BASE_URL=https://xlm402.com
# ── Registry & orchestrator ───────────────────────────────────────────────────
# URL of the registry service. Locally this is always http://localhost:4000.
# Update to the *.onrender.com URL when deploying to Render.
REGISTRY_URL=http://localhost:4000
# Default task budget in USDC when the client does not specify one.
DEFAULT_BUDGET=1.0
# How long (ms) to wait for the user to approve a generated plan before
# the orchestrator auto-approves it and proceeds. Default is 60 seconds.
PLAN_APPROVAL_TIMEOUT_MS=60000
# URL of the Stellar Sponsored Agent Account service — used by the orchestrator
# to provision new agent wallets without exposing secret keys to the service.
SPONSOR_SERVICE_URL=https://stellar-sponsored-agent-account.onrender.com
# ── Ports ─────────────────────────────────────────────────────────────────────
# Each service also accepts the generic PORT env var (set by Render).
# Leave these as-is for local development; omit entirely on Render.
ORCHESTRATOR_PORT=3000
REGISTRY_PORT=4000
STELLAR_ORACLE_PORT=4001
WEB_INTEL_PORT=4002
WEB_INTEL_V2_PORT=4003
ANALYSIS_AGENT_PORT=4004
REPORT_AGENT_PORT=4005
# ── Self URLs ─────────────────────────────────────────────────────────────────
# Used when an agent or orchestrator registers itself with the registry.
# Locally the services fall back to http://localhost:<PORT> automatically,
# so these are optional for local development.
# For Render deployment, set each to the assigned *.onrender.com URL.
ORCHESTRATOR_SELF_URL=http://localhost:3000
STELLAR_ORACLE_SELF_URL=http://localhost:4001
WEB_INTEL_SELF_URL=http://localhost:4002
WEB_INTEL_V2_SELF_URL=http://localhost:4003
ANALYSIS_AGENT_SELF_URL=http://localhost:4004
REPORT_AGENT_SELF_URL=http://localhost:4005