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

# nut config

> Manage Coconut configuration and API keys

# Configuration Commands

Manage global configuration, API keys, and settings for your Coconut installation.

## `nut config set-key`

Set an API key for a provider.

```bash theme={null}
nut config set-key [options]
```

This command prompts you to enter an API key for AI providers like OpenAI, Anthropic, or others.

**Example:**

```bash theme={null}
nut config set-key
```

<Tip>
  You'll be prompted to select a provider and enter the API key securely. The key is stored locally and never sent to Coconut servers.
</Tip>

***

## `nut config list-keys`

List all configured API keys.

```bash theme={null}
nut config list-keys
nut config ls
```

**Aliases:** `list-keys`, `ls`

This displays which providers have API keys configured (without revealing the actual keys).

**Example:**

```bash theme={null}
nut config list-keys
```

***

## `nut config remove-key`

Remove an API key for a specific provider.

```bash theme={null}
nut config remove-key <provider>
nut config rm <provider>
```

**Aliases:** `remove-key`, `rm`

**Arguments:**

* `provider` - The provider name (e.g., `openai`, `anthropic`)

**Example:**

```bash theme={null}
nut config remove-key openai
nut config rm anthropic
```

***

## `nut config setup`

Show setup guide for getting API keys.

```bash theme={null}
nut config setup [options]
```

This command displays helpful information about where to obtain API keys from various providers.

**Example:**

```bash theme={null}
nut config setup
```

***

## `nut config set-default`

Set default configuration values.

```bash theme={null}
nut config set-default <key> <value>
```

**Arguments:**

* `key` - Configuration key to set
* `value` - Value to assign

**Example:**

```bash theme={null}
nut config set-default model gpt-4
nut config set-default temperature 0.7
```

***

## `nut config set-profile`

Set Coconut profile information.

```bash theme={null}
nut config set-profile [options]
nut config profile [options]
```

**Aliases:** `set-profile`, `profile`

Configure your profile settings for Coconut, including display name and preferences.

**Example:**

```bash theme={null}
nut config set-profile
```

***

## `nut config show`

Show current configuration.

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

This displays all current configuration settings, including defaults and profile information.

**Example:**

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

<Note>
  API keys are never displayed in plain text. Only provider names are shown.
</Note>
