Skip to main content
All Agora402 configuration lives in a single .env file at the repository root. The repository ships an .env.example that lists every variable with safe placeholder values and inline comments — copy it to .env and fill in the values that apply to your setup. You never need to edit source files or pass environment variables on the command line; the setup scripts and runtime packages read everything from .env automatically. Start by copying the example file:
Then open .env in your editor and work through the sections below. The only values you must fill in by hand before running any scripts are SELLER_ACCOUNT_ID and SELLER_PRIVATE_KEY. Everything else is either set by the setup scripts or has a working default.
Never commit .env to version control. It contains private keys. Add .env to your .gitignore immediately after creating it and verify it is listed before your first git add.

Network

Seller Account

These two variables are the only ones you must supply manually. Obtain them from portal.hedera.com as described in the Accounts guide.

Buyer Account

Do not fill these in by hand. Run npm run setup:buyer and the script writes both values to .env automatically.

Facilitator

HCS Topics

These are written by npm run setup:topics. Leave them empty until you run that script.

HTS Token (Optional)

Seller Service

LLM Provider

Use LLM_PROVIDER=mock while you are setting up accounts, topics, and the payment flow. The mock provider returns a canned response instantly, so you can verify the full discover → quote → pay → receipt cycle without consuming any inference credits or needing an API key.

Buyer Dashboard

Complete .env.example Reference

The snippet below shows the complete .env.example for reference. Copy it, then fill in SELLER_ACCOUNT_ID, SELLER_PRIVATE_KEY, and your chosen LLM_PROVIDER key to get started.
.env.example