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

# CLI Configuration

> Configure API keys and output defaults for the eigi CLI

## Overview

Use `eigi config` commands to store the CLI settings you want to reuse across sessions.

## Required configuration

Set your API key first:

```bash theme={null}
eigi config set-key <YOUR_API_KEY>
```

## Fixed API endpoint

The CLI always uses the production API endpoint:

```text theme={null}
https://api.eigi.ai
```

Show the active local configuration at any time:

```bash theme={null}
eigi config show
```

## Environment variables

Environment variables override saved config values where supported.

```bash theme={null}
export EIGI_API_KEY=<YOUR_API_KEY>
```

Use environment variables when you do not want to persist secrets locally or when CI needs to inject configuration dynamically.

## Suggested setup sequence

```bash theme={null}
eigi config set-key <YOUR_API_KEY>
eigi workflow list
eigi workflow agent-create
```

## Related commands

| Command                              | Purpose                             |
| ------------------------------------ | ----------------------------------- |
| `eigi config set-key <YOUR_API_KEY>` | Save your API key                   |
| `eigi config set-format json`        | Make JSON the default output format |
| `eigi config show`                   | Show the active configuration       |

## Next steps

After configuration, continue with:

* [CLI Overview](/cli/introduction)
* [Get Prompt](/api-reference/public/prompt-get)
* [Create Agent](/api-reference/public/agent-create)
