Skip to main content

Configuration Commands

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

nut config set-key

Set an API key for a provider.
nut config set-key [options]
This command prompts you to enter an API key for AI providers like OpenAI, Anthropic, or others. Example:
nut config set-key
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.

nut config list-keys

List all configured API keys.
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:
nut config list-keys

nut config remove-key

Remove an API key for a specific provider.
nut config remove-key <provider>
nut config rm <provider>
Aliases: remove-key, rm Arguments:
  • provider - The provider name (e.g., openai, anthropic)
Example:
nut config remove-key openai
nut config rm anthropic

nut config setup

Show setup guide for getting API keys.
nut config setup [options]
This command displays helpful information about where to obtain API keys from various providers. Example:
nut config setup

nut config set-default

Set default configuration values.
nut config set-default <key> <value>
Arguments:
  • key - Configuration key to set
  • value - Value to assign
Example:
nut config set-default model gpt-4
nut config set-default temperature 0.7

nut config set-profile

Set Coconut profile information.
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:
nut config set-profile

nut config show

Show current configuration.
nut config show
This displays all current configuration settings, including defaults and profile information. Example:
nut config show
API keys are never displayed in plain text. Only provider names are shown.