# X_AI_KEY_MISSING

## Means

the provider API key is not set

## Typical cause

`ANTHROPIC_API_KEY` / `EMBEDDINGS_API_KEY` unset and no `apiKey` passed

## Fix

`export ANTHROPIC_API_KEY=<key>`, or pass `{ apiKey }` to the provider

[MCP and AI](/error-codes#mcp-and-ai)
