Skip to main content

Inference

VariableDefaultPurpose
OPENROUTER_API_KEYnoneRequired. The key used for both Hermes 4 405B and Nemotron through OpenRouter.

Stripe

VariableDefaultPurpose
STRIPE_SECRET_KEYnoneEnables deposits, earning, and the real money loop. Mode is inferred from the prefix (sk_test_, sk_live_).
NEXT_PUBLIC_APP_URLrequest originBase URL used to build Stripe Checkout success and cancel URLs.

Fly agent machines

VariableDefaultPurpose
FLY_API_TOKENnoneEnables per-agent Fly Machines. Without it, the sandbox falls back to Daytona.
HERMESCO_AGENTS_APPhermesco-agentsThe Fly app that holds agent bodies.
FLY_REGIONiadRegion for new agent machines.
FLY_ORG_SLUGpersonalFly organization slug.
HERMESCO_AGENT_IMAGEnikolaik/python-nodejs:python3.12-nodejs22The agent body image (Python 3.12, Node 22, git, bash).
HERMESCO_AGENT_CPU_KINDperformanceDedicated vCPUs by default, not the shared-cpu minimum.
HERMESCO_AGENT_CPUS2vCPU count (minimum 1).
HERMESCO_AGENT_MEMORY_MB4096Memory in MB (minimum 512).
HERMESCO_COMPUTE_USD_PER_MIN0.0016Labelled estimate of compute cost per running minute, shown as telemetry.

Daytona

VariableDefaultPurpose
DAYTONA_API_KEYnoneEnables the Daytona sandbox fallback for run_in_sandbox when Fly is not configured.

Persistence

VariableDefaultPurpose
NEXT_PUBLIC_CONVEX_URLnoneConvex deployment URL. When set, the Treasury persists to Convex. Otherwise an in-memory store is used.

Identity (optional Google sign-in)

The public Firebase web config is in src/lib/firebase.ts. Server-side verification uses the Firebase Admin credentials:
VariablePurpose
FIREBASE_PROJECT_IDAdmin SDK project id.
FIREBASE_CLIENT_EMAILAdmin SDK service account email.
FIREBASE_PRIVATE_KEYAdmin SDK private key. Never committed.
Never commit .env.local or any service account JSON. Secrets are set as Fly secrets in production and read from .env.local locally.

Scaling the agent body

To give agents more horsepower for heavy jobs, raise the spec:
flyctl secrets set HERMESCO_AGENT_CPUS=8 HERMESCO_AGENT_MEMORY_MB=16384 --app hermesco
New agent machines pick up the larger spec on their next provision.