openagentry

HOST · Error

E_CF_AUTH

Cloudflare API token / account ID missing or rejected.

Package
@openagentry/adapter-host-cloudflare
Category
host

— · Resolution

How to recover

Generate a token at https://dash.cloudflare.com/profile/api-tokens. Export CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID.

— · The shape

What an instance looks like

throw new AgentryError({
  code: 'E_CF_AUTH',
  phase: 'init',
  message: '…contextual message…',
  context: { /* adapter-specific */ },
  suggestedFix: 'Generate a token at https://dash.cloudflare.com/profile/api-tokens. Export CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID.',
  docs: 'https://openagentry.dev/errors/E_CF_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-host-cloudflare