openagentry

LLM · Error

E_AIGATEWAY_AUTH

Vercel AI Gateway key missing or rejected.

Package
@openagentry/adapter-llm-aigateway
Category
llm

— · Resolution

How to recover

Set AI_GATEWAY_API_KEY (or use Vercel OIDC token in production).

— · The shape

What an instance looks like

throw new AgentryError({
  code: 'E_AIGATEWAY_AUTH',
  phase: 'init',
  message: '…contextual message…',
  context: { /* adapter-specific */ },
  suggestedFix: 'Set AI_GATEWAY_API_KEY (or use Vercel OIDC token in production).',
  docs: 'https://openagentry.dev/errors/E_AIGATEWAY_AUTH',
});

The context field carries adapter-specific detail (HTTP status, missing env-var names, validation issues). It never contains secret values.


— · See also

Related codes from @openagentry/adapter-llm-aigateway