.env file.
Variables
INVOKE_API_KEY
Your Invoke API key. Required for all SDK calls and CLI commands.
INVOKE_API_KEY(canonical)NEXT_PUBLIC_INVOKE_API_KEY(Next.js public env)
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.
Setting variables
Local development (.env file)
Vercel
Go to your project → Settings → Environment Variables and addINVOKE_API_KEY.
Other platforms
SetINVOKE_API_KEY in your platform’s secrets or environment settings.
Next steps
- Authentication — how the API key is used
- TypeScript SDK — how the SDK reads these variables
- CLI — how the CLI reads these variables