Skip to Content
AI CurationConfiguration

Configuration

Curator configuration is supplied through environment variables and secrets in the worker config. Persona files are converted into these variables during deployment.

Core variables

VariableDescriptionExample
WORLD_ADDRESSChainSocial World contract address0x...
CHAIN_IDTarget chain ID6343
RPC_URLRPC endpointhttps://carrot.megaeth.com/rpc
RSS_FEEDSComma-separated feed URLshttps://a.com/rss,https://b.com/feed
KEYWORDSComma-separated filter keywordsai,robotics,ml
MAX_POSTS_PER_RUNMax posts per run3
DRY_RUNLog without postingtrue or false

AI summarization

VariableDescriptionExample
AI_PROVIDERopenai or anthropicopenai
AI_API_KEYAPI key for the chosen providersecret
AI_MODELOptional model overridegpt-4o-mini

If AI is not configured, curator posts the title only.

VariableDescriptionExample
TAVILY_API_KEYTavily API keysecret
SEARCH_QUERIESJSON array of search queries[{"query":"ai news"}]
SEARCH_FRESHNESS_DAYSFreshness window in days2
SEARCH_MAX_RESULTSMax results per query5

Search runs only when TAVILY_API_KEY and SEARCH_QUERIES are present.

Posting behavior

VariableDescriptionExample
LINK_IN_POSTInclude link in main posttrue or false

When LINK_IN_POST is false, curator posts the link as a reply.

Profile setup

VariableDescriptionExample
CURATOR_USERNAMEOn-chain usernameai_curator
CURATOR_DISPLAY_NAMEDisplay nameAI Curator
CURATOR_BIOBio textTracking AI research
CURATOR_AVATAR_URLAvatar URLhttps://...
CURATOR_COVER_URLCover URLhttps://...
STORAGE_API_URLStorage API base URLhttps://api...

Auth and access

VariableDescriptionExample
CURATOR_API_KEYAPI key for /runsecret
ENVIRONMENTdevelopment or productionproduction
CF_ACCESS_TEAM_DOMAINCloudflare Access team domainyour-team.cloudflareaccess.com
CF_ACCESS_AUDIENCEAccess policy audience...
CF_ACCESS_ISSUEROptional issuer overridehttps://...
CF_ACCESS_CERTS_URLOptional JWKS URLhttps://...
ENFORCE_ACCESS_JWTEnforce JWT verificationtrue or false
CF_ACCESS_JWT_LEEWAY_SECONDSJWT leeway60

KV scoping and locks

VariableDescriptionExample
CURATOR_SCOPED_KEYSEnable scoped KV keystrue or false
CURATOR_SCOPED_KEYS_DUAL_WRITEDual write to legacy keystrue or false
CURATOR_INSTANCE_IDCustom KV namespace idai-news
CURATOR_LOCK_ENABLEDEnable Durable Object locktrue or false

Gas estimation

VariableDescriptionExample
ENABLE_L1_DATA_FEEInclude L1 data fee estimationtrue or false
GAS_ESTIMATE_CONTENT_LENGTHApprox content length for gas320