-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
48 lines (39 loc) · 2.5 KB
/
Copy path.env.example
File metadata and controls
48 lines (39 loc) · 2.5 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
# ── mppRouter: MPP-paid private AI inference on Tempo ────────────────────────
# Network selection: "testnet" (Moderato, chain 42431, pathUSD) or
# "mainnet" (Allegro, chain 4217, USDC.e). Default: testnet.
NETWORK=testnet
# Required for MPP servers: binds payment challenges to their contents so the
# server can verify incoming credentials match challenges it issued.
MPP_SECRET_KEY=change-me-to-a-long-random-string
# Wallet that RECEIVES stablecoin payments (your earnings address on Tempo).
# Testnet: funded with pathUSD via faucet. Mainnet: funded with real USDC.e.
TEMPO_RECIPIENT=0x…
# Optional: the PAYEE's private key (address MUST equal TEMPO_RECIPIENT). When set, the
# server cooperatively CLOSES the channel on-chain as the payee (clean open+close ≈ 2 txs,
# paying the fee from its own balance) instead of letting the payer's deposit reclaim on
# channel timeout. Unset → close is best-effort. Must be a wallet whose key you hold.
TEMPO_RECIPIENT_PRIVATE_KEY=
# Pricing (decimal token units; TIP-20 stablecoins use 6 decimals).
PRICE_PER_CALL=0.01 # one-time `charge` per non-stream request
PRICE_PER_UNIT=0.0002 # `session` per-response-chunk price for streaming
# ── Upstream LLM (OpenAI-compatible). Leave UPSTREAM_URL empty to use the
# built-in MOCK streamer so the server runs fully offline for a demo. ───────
# Point this at SolRouter, OpenAI, OpenRouter, a local model, etc.
UPSTREAM_URL=
UPSTREAM_API_KEY=
UPSTREAM_MODEL=gpt-oss:20b
PORT=8402
# ── Client/agent side (src/agent.ts) ─────────────────────────────────────────
# Funded Tempo wallet key used by the paying agent.
# Testnet: get test pathUSD from the faucet at https://explore.testnet.tempo.xyz
# Mainnet: fund with real USDC.e via your Tempo wallet
AGENT_PRIVATE_KEY=
SERVER_URL=http://localhost:8402
# ── Mainnet notes ───────────────────────────────────────────────────────────
# To run on mainnet:
# 1. Set NETWORK=mainnet
# 2. Set TEMPO_RECIPIENT to your mainnet earnings address
# 3. Set TEMPO_RECIPIENT_PRIVATE_KEY (mainnet key for cooperative close)
# 4. Set AGENT_PRIVATE_KEY to a mainnet wallet funded with USDC.e
# 5. Currency automatically switches from pathUSD → USDC.e (chain 4217)
# 6. RPC automatically switches to https://rpc.tempo.xyz