Skip to article
CogniTech.Docs

Environment configuration

Server credentials, browser-safe overrides and documented defaults.

On this page

Local setup

Use Node.js 20.19 or later. Install the locked dependencies and configure a local server environment. Never paste real secrets into this documentation or expose them through NEXT_PUBLIC variables.

bash
npm ci
node --env-file=.env db/migrate.mjs
npm run dev
bash
DATABASE_URL=
AUTH_SESSION_SECRET=
ANTHROPIC_API_KEY=
ANTHROPIC_MODEL=
COINGECKO_DEMO_API_KEY=
NEXT_PUBLIC_ELYSIUM_RPC_URL=
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=
DOCS_SITE_URL=

Variables

NameVisibility and role
DATABASE_URLServer-only Neon Postgres connection string, required for server-backed history, authentication and Strategies
AUTH_SESSION_SECRETServer-only random string of at least 32 characters for challenge and session digests
ANTHROPIC_API_KEYServer-only credential for Claude capabilities
ANTHROPIC_MODELOptional server model ID; app default claude-sonnet-5-5
COINGECKO_DEMO_API_KEYOptional server demo-tier credential for the market adapter
NEXT_PUBLIC_ELYSIUM_RPC_URLOptional browser-visible Elysium RPC override; use a public endpoint without secrets
NEXT_PUBLIC_WALLETCONNECT_PROJECT_IDOptional browser-visible WalletConnect project ID
DOCS_SITE_URLOptional server-side public HTTP(S) origin for canonical docs URLs, Open Graph URLs and sitemap entries; use the actual deployment origin

Agent tuning

Optional integer overrides are ANTHROPIC_MAX_OUTPUT_TOKENS (default 4096), ANTHROPIC_MAX_WEB_SEARCHES (5), ANTHROPIC_MAX_WEB_FETCHES (3), AGENT_MAX_TOOL_ROUNDS (6), AGENT_MAX_MESSAGE_LENGTH (6000), AGENT_MAX_CONTEXT_CHARS (24000), AGENT_MAX_CONCURRENT_REQUESTS (2), and AGENT_MAX_REQUESTS_PER_MINUTE (10). Out-of-range settings fall back to bounded implementation defaults. The chat stream needs a host that supports its 120-second declared route budget.

See Claude configuration and internal API.