Skip to main content
Invoke reads configuration from environment variables at startup. Set them in your deployment platform’s environment settings or in a local .env file.

Variables

INVOKE_API_KEY

Your Invoke API key. Required for all SDK calls and CLI commands.
INVOKE_API_KEY=your_api_key
The SDK also checks these fallback names in order:
  1. INVOKE_API_KEY (canonical)
  2. NEXT_PUBLIC_INVOKE_API_KEY (Next.js public env)
Always set INVOKE_API_KEY as the canonical variable. Use the fallback names only for incremental migration.

INVOKE_BASE_URL

Override the Invoke API base URL. Defaults to https://api.invokehq.run.
INVOKE_BASE_URL=https://api.invokehq.run
Only set this if you’re pointing to a custom or self-hosted Invoke endpoint.

Setting variables

Local development (.env file)

INVOKE_API_KEY=your_api_key

Vercel

Go to your project → Settings → Environment Variables and add INVOKE_API_KEY.

Other platforms

Set INVOKE_API_KEY in your platform’s secrets or environment settings.

Next steps