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

# config

> Manage API keys, coding agent preferences, and loop settings.

```bash theme={null}
wiggum config set <key> <value>
```

Manages API keys and loop settings. Values are saved to `.ralph/.env.local` (for API keys) or `ralph.config.cjs` (for loop settings).

## API key management

Set API keys for optional services that enhance wiggum's analysis:

```bash theme={null}
wiggum config set tavily <api-key>      # Web search during scan
wiggum config set context7 <api-key>    # Documentation lookup
wiggum config set braintrust <api-key>  # Tracing and observability
```

## Coding agent preferences

Set which CLI agent runs your loops:

```bash theme={null}
wiggum config set cli claude        # Use Claude Code for implementation
wiggum config set cli codex         # Use Codex CLI for implementation
wiggum config set review-cli claude # Use Claude Code for review phase
wiggum config set review-cli codex  # Use Codex CLI for review phase
```

You can mix agents — e.g. Codex for implementation and Claude Code for review:

```bash theme={null}
wiggum config set cli codex
wiggum config set review-cli claude
```

## Examples

<CodeGroup>
  ```bash Interactive TUI theme={null}
  wiggum
  # then type /config set cli codex
  ```

  ```bash Headless theme={null}
  wiggum config set tavily tvly-...
  wiggum config set cli claude
  ```
</CodeGroup>

<Note>
  API keys are stored in `.ralph/.env.local`, which is gitignored by default. Loop settings update `ralph.config.cjs`.
</Note>
