-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
90 lines (75 loc) · 3.51 KB
/
.env.example
File metadata and controls
90 lines (75 loc) · 3.51 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
# PolicyEngine API v2 - Environment Variables
# Copy this to .env and configure for your environment
# =============================================================================
# SUPABASE (Database & Storage)
# =============================================================================
# For local development: run `supabase start` and use the local URLs
# For production: get these from Supabase Dashboard > Settings > API
# Supabase API URL (NOT the database URL)
SUPABASE_URL=http://127.0.0.1:54321
# Supabase anon/public key (safe to expose in client)
SUPABASE_KEY=your-anon-key
# Supabase secret key (server-side only, never expose)
SUPABASE_SECRET_KEY=your-secret-key
# PostgreSQL connection string for direct database access
# For production Supabase: use the "connection string" from Dashboard > Settings > Database
# Format: postgresql://postgres.[project-ref]:[password]@[host]:6543/postgres
SUPABASE_DB_URL=postgresql://postgres:postgres@127.0.0.1:54322/postgres
# =============================================================================
# STORAGE
# =============================================================================
# Supabase storage bucket name for datasets
STORAGE_BUCKET=datasets
# =============================================================================
# API CONFIGURATION
# =============================================================================
API_TITLE=PolicyEngine API
API_VERSION=0.1.0
API_PORT=8000
DEBUG=true
# =============================================================================
# LOGGING (Logfire)
# =============================================================================
# Get token from https://logfire.pydantic.dev
LOGFIRE_TOKEN=
LOGFIRE_ENVIRONMENT=local
# =============================================================================
# HUGGING FACE (for dataset downloads)
# =============================================================================
# Get token from https://huggingface.co/settings/tokens
HUGGING_FACE_TOKEN=hf_...
# =============================================================================
# AGENT (Claude Code)
# =============================================================================
# Anthropic API key for Claude
ANTHROPIC_API_KEY=sk-ant-...
# Whether to use Modal for agent compute (false = run locally)
AGENT_USE_MODAL=false
# PolicyEngine API URL that the agent will use
POLICYENGINE_API_URL=http://localhost:8000
# =============================================================================
# MODAL SERVERLESS COMPUTE
# =============================================================================
# Modal environment to use (main, staging, testing).
# Only relevant when AGENT_USE_MODAL=true.
# The Modal SDK authenticates via ~/.modal.toml (from `modal setup`).
# For production (Cloud Run), set MODAL_TOKEN_ID and MODAL_TOKEN_SECRET instead.
MODAL_ENVIRONMENT=main
# For production (Cloud Run) only:
# MODAL_TOKEN_ID=ak-...
# MODAL_TOKEN_SECRET=as-...
# =============================================================================
# MODAL SECRETS (managed via Modal CLI, not .env)
# =============================================================================
# 1. modal secret create policyengine-db [--env testing] \
# DATABASE_URL='postgresql://...' \
# SUPABASE_URL='https://...' \
# SUPABASE_KEY='...' \
# SUPABASE_SECRET_KEY='...' \
# STORAGE_BUCKET='datasets'
#
# 2. modal secret create anthropic-api-key \
# ANTHROPIC_API_KEY='sk-ant-...'
#
# 3. modal secret create policyengine-logfire \
# LOGFIRE_TOKEN='...'