Skip to main content
EnvironmentFrontendAPIPurpose
Localhttp://localhost:3000http://localhost:8000/api/v1Development
Testhttps://test.earthcare.networkhttps://test.earthcare.network/api/v1Integration / QA (real AI + data)
Productionhttps://earthcare.networkhttps://earthcare.network/api/v1Live

Deployment mode

ECN_DEPLOYMENT_MODE selects how the platform behaves:
  • hosted — the managed product. Provider keys are ECN-managed, usage is metered in credits, and there is no customer BYOK.
  • self-host / Community — you run ECN and configure your own provider keys via environment variables, paying providers directly. See BYOK & self-host.

Key environment variables

VariableWhat it controls
ECN_DEPLOYMENT_MODEHosted vs self-host behavior
DATABASE_URLPostgres (with pgvector) connection
OPENROUTER_API_KEYManaged LLM access
APIFY_API_TOKENManaged paid-data (buying-signal) access
AI_MOCK_MODE1 to stub AI in tests/CI
ECN_CREDIT_USD_VALUECredit peg (default 0.10)
MANAGED_AI_MARGIN_PCTCost-plus markup percentage
Postgres must have the pgvector extension — embeddings (1536-dim) are stored on Business, ContextPack, ContextDocument, and RecruitRole.