> ## 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.

# Get Config • AI Agent SDK

> get_config: Get the global configuration.

# get\_config

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**loader**](../modules/loader) module.

Get the global configuration.

Loads config lazily on first access and caches it.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_config(reload: bool) -> PraisonConfig
```

## Parameters

<ParamField query="reload" type="bool" required={false} default="False">
  Force reload from file
</ParamField>

### Returns

<ResponseField name="Returns" type="PraisonConfig">
  PraisonConfig instance
</ResponseField>

## Used By

* [`get_plugins_config`](../functions/get_plugins_config)
* [`get_defaults_config`](../functions/get_defaults_config)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/config/loader.py#L286">
  `praisonaiagents/config/loader.py` at line 286
</Card>

***

## Related Documentation

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

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