klaudes-0.1.1 is not a library.
klaudes
CLI tool for managing multiple Anthropic API configurations
Features
- Manage multiple API configuration groups (name, API host, API key)
- Interactive mode for easy management
- Direct CLI commands for scripting and automation
- Secure configuration storage with restricted file permissions
- Environment variable activation for selected configurations
Usage
Interactive Mode
When you run klaudes account without subcommands or with the -i flag, you'll enter an interactive menu:
# Enter interactive mode
# Or explicitly request interactive mode
The interactive menu will show options like:
- Add a new configuration group
- Remove a configuration group (if groups exist)
- Edit a configuration group (if groups exist)
- List all configuration groups
- Exit
Direct CLI Commands
For scripting and automation, you can use direct commands:
# List all configuration groups
# Add a new configuration group (interactive prompts)
# Remove a configuration group
# Edit an existing configuration group
Main Command
Select and activate a configuration group:
# Interactive selection of available groups
Configuration
Configuration is stored in ~/.config/klaudes/config.toml with secure file permissions (0600).
Each configuration group contains:
api_host: The ANTHROPIC_BASE_URL valueapi_key: The ANTHROPIC_AUTH_TOKEN value
Environment Variables
When you select a configuration group, the following environment variables are set:
ANTHROPIC_BASE_URLANTHROPIC_AUTH_TOKEN
Build and Install
# Build
# Install locally
# Run from source
Examples
# Interactive account management
# Direct command to list configurations
# Direct command to add a new configuration
# Select and activate a configuration