The /apikey command allows you to set or update your API key configuration for ScryCLI.
Usage
Overview
The API key command provides an interface for managing authentication credentials needed to access AI model providers.
How It Works
When you enter /apikey, the command opens the model selection interface, which is used for configuring API access.
Enter the command
Type /apikey in the chat prompt and press Enter.
Configure settings
Follow the prompts to configure your API key and related settings.
Save configuration
Your settings are saved to ~/.scrycli/config.json.
Navigation
- Arrow keys: Navigate between options
- Enter: Confirm selection
- Esc: Cancel and return to chat
Configuration Storage
API configuration is stored in:
This file is automatically created in your home directory when you first run ScryCLI.
Security
API keys are stored locally on your machine. Ensure your configuration file has appropriate permissions and is not shared publicly.
Example Flow
> /apikey
[Esc] to go back
# Configuration interface appears
- /model - Select AI model to use
- /logout - Clear all configuration including API keys
Troubleshooting
If you encounter authentication errors:
- Verify your API key is correct
- Check that the configuration file exists at
~/.scrycli/config.json
- Ensure the API key has necessary permissions
- Try re-entering the API key using
/apikey