> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Fatal Config Error • AI Agent SDK

> FatalConfigError: Raised on an unrecoverable gateway/bot configuration error.

# FatalConfigError

> Defined in the [**protocols**](../modules/protocols) module.

<Badge color="blue">AI Agent</Badge>

Raised on an unrecoverable gateway/bot configuration error.

Signals that restarting the process is pointless until an operator
fixes the configuration — e.g. two bots sharing one token, no
messaging platform configured, a malformed `gateway.yaml`, or an
invalid credential detected at startup. The wrapper entry point maps
this to :data:`GATEWAY_FATAL_CONFIG_EXIT_CODE` (78) so the supervisor
halts the crash-loop and the failure is terminal and visible.

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L4354">
  `praisonaiagents/gateway/protocols.py` at line 4354
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Configuration Overview" icon="gear" href="/docs/docs/configuration/index" />

  <Card title="Agent Config" icon="robot" href="/docs/docs/configuration/agent-config" />
</CardGroup>
