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

# Configuration

# Configuration

<Badge text="development" color="orange" />

## 16.1 Environment Variables

```bash theme={null}
# LLM Configuration
export LEMONADE_BASE_URL="http://localhost:13305/api/v1"
# Required only when connecting to an authenticated remote Lemonade.
# See https://lemonade-server.ai/docs/guide/configuration/#api-key-and-security
export LEMONADE_API_KEY=""

# API server (gaia api). These are read as the literal string "1" —
# any other value (including "true") leaves the feature OFF.
export GAIA_API_DEBUG="1"      # debug logging + console output
export GAIA_API_STREAMING="1"  # stream LLM responses over the API

# API Keys (for cloud providers)
export ANTHROPIC_API_KEY="sk-ant-..."
export OPENAI_API_KEY="sk-..."
```

<Note>
  GAIA has no `GAIA_LOG_LEVEL` environment variable. Log levels are set
  programmatically through `gaia.logger` (`set_level(name, level)`); the default
  is `INFO`.
</Note>

***

## 16.2 Configuration in Code

```python theme={null}
import os

# Read configuration
base_url = os.getenv("LEMONADE_BASE_URL", "http://localhost:13305/api/v1")
debug = os.getenv("GAIA_API_DEBUG") == "1"  # matches how gaia api reads it

# Use in agent
agent = MyAgent(
    base_url=base_url,
    debug_prompts=debug
)
```

***

## Related Topics

* [Core Agent System](/docs/sdk/core/agent-system) - Agent configuration parameters
* [LLM Integration](/docs/sdk/sdks/llm) - Model and provider settings
* [Security](/docs/sdk/security) - Secure configuration practices
* [Developer Guide](/docs/reference/dev) - Development environment setup

***

<small style="color: #666;">
  **License**

  Copyright(C) 2024-2026 Advanced Micro Devices, Inc. All rights reserved.

  SPDX-License-Identifier: MIT
</small>
