Config Command
The config
command allows you to manage your noidea configuration, including API keys and application settings.
Usage
Description
The config command provides several functions: - View your current configuration - Create or update configuration settings - Manage API keys for AI providers - Validate your configuration
By default, noidea stores configuration in ~/.noidea/config.toml
.
Base Options
Flag | Short | Default | Description |
---|---|---|---|
--show |
-s |
false |
Show current configuration |
--init |
-i |
false |
Initialize a new config file interactively |
--validate |
-v |
false |
Validate the current configuration |
--path |
-p |
Path to config file (default: ~/.noidea/config.toml) |
Subcommands
API Key Management
Command | Description |
---|---|
apikey |
Set up an API key and store it securely |
apikey-status |
Check API key storage status and validity |
apikey-remove |
Remove a stored API key |
clean-env |
Generate commands to clean environment variables |
Examples
Basic Usage
# View current configuration
noidea config --show
# Create/update configuration interactively
noidea config --init
# Validate configuration
noidea config --validate
API Key Management
# Set up and securely store an API key
noidea config apikey
# Check if API key is valid and properly stored
noidea config apikey-status
# Remove a stored API key
noidea config apikey-remove
# Generate commands to clean API key environment variables
noidea config clean-env
Interactive Configuration
When you run noidea config --init
, you'll be guided through an interactive setup that lets you configure:
- LLM Settings
- Enable/disable AI integration
- Choose AI provider (xai, openai, deepseek)
- Set up API key
-
Select model and temperature
-
Moai Settings
- Enable/disable linting feedback
-
Choose faces mode (random, sequential, mood)
-
Personality Settings
- Choose from several built-in personalities
- Professional with Sass
- Snarky Code Reviewer
- Supportive Mentor
- Git Expert
- Motivational Speaker
API Key Security
noidea securely stores API keys using your system's native keyring/keychain when available:
- macOS: Uses the Keychain
- Windows: Uses the Windows Credential Manager
- Linux: Uses the Secret Service API (requires libsecret)
If the system keyring is unavailable, a fallback encrypted storage is used in ~/.noidea/secure/
.
For more details on API key management, see the API Key Management guide.