Skip to content

Modes & flags

operator

Every runtime mode, its env flag, its default, and what it takes to enable.

The mode matrix

Every runtime behavior is governed by an explicit flag with a safe default: everything dangerous is off, everything mock is on. The table below is the operator's map; GET /api/health reports the live values.

ModeEnv flagDefaultWhat it controls
Paper / mock (current public)NEXT_PUBLIC_ENABLE_MOCKS (mock AI + oracles)onDeterministic mock strategist and mock oracle prices. Everything simulated, zero keys required.
Registry-readonly— (always on)onThe canonical asset registry and validation rules apply in every mode; there is no flag to bypass them.
Bankr-enabled strategyAI_PROVIDER + BANKR_API_KEY (server-only)bankr_or_mock, no key → mockBankr answers whispers when a key is configured; graceful mock fallback otherwise. Planning only.
x402 mockNEXT_PUBLIC_ENABLE_X402off → free mock envelopesPaid endpoints answer for free, labeled cacheStatus "mock". The current public behavior.
x402 verifiedNEXT_PUBLIC_ENABLE_X402 + Bankr facilitator verificationnot yet availableReal settlement verification with replay protection. Not enabled anywhere until verification ships.
Live executionNEXT_PUBLIC_ENABLE_LIVE_ONCHAINoffOn-chain execution paths. Stays off until feed proxies are pinned and contracts are audited.
Vault depositsNEXT_PUBLIC_ENABLE_VAULTSoffERC-4626-style vault deposits (unaudited beta). Off in every public build.
MCP planning surfacesNEXT_PUBLIC_ENABLE_MCP_MODEonShows MCP export UI. Exports are text plans only; see MCP export docs.

The rule for dangerous flows

Nothing dangerous turns on by accident. Live execution, vault deposits, and verified x402 settlement each require an explicit flag flip and production credentials — and the flags alone are not sufficient: live valuation also needs pinned Chainlink feed proxies (currently none are pinned), and x402 verified mode needs Bankr facilitator settlement verification plus replay protection. Absent those, the flags degrade to safe behavior rather than half-enabled danger.

  • Flag aliases exist for convenience (NEXT_PUBLIC_ENABLE_LIVE_TRADING, NEXT_PUBLIC_ENABLE_VAULT_DEPOSITS, and the mock umbrella NEXT_PUBLIC_ENABLE_MOCKS); the first set value wins.
  • Mock switches can also be set individually: NEXT_PUBLIC_MOCK_AI and NEXT_PUBLIC_MOCK_ORACLES.
  • Server-only secrets (BANKR_API_KEY and friends) never use the NEXT_PUBLIC_ prefix — see Bankr integration.

$HISS is independent research software in paper mode — not investment advice, and not affiliated with Robinhood, Bankr, or Chainlink.