diff options
| author | Yuval Adam <_@yuv.al> | 2025-03-06 13:55:06 +0100 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2025-03-06 13:55:06 +0100 |
| commit | ceec45a6d8fad9d8750b8719b9bc3aa206a5ee9d (patch) | |
| tree | 8d65b0800a395fa94a496ddb6890adbe2c4538cf /README.md | |
| parent | 510bafb2a53743b4199b59e3f9c8a8f23be130dc (diff) | |
Implement configuration management
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -30,6 +30,13 @@ uvx strangeloop process FILE_PATH [--output OUTPUT_PATH] # Ask Claude Sonnet 3.7 a question uvx strangeloop ask "What is recursive self-improvement in AI?" + +# Configuration management +uvx strangeloop config set api_key "your-api-key" +uvx strangeloop config get api_key +uvx strangeloop config list +uvx strangeloop config delete api_key +uvx strangeloop config path ``` If you've installed the package: @@ -47,3 +54,28 @@ strangeloop ask "What is the meaning of life?" --max-tokens 2048 --temperature 0 The following environment variables are required: - `ANTHROPIC_API_KEY`: Your Anthropic API key for accessing Claude Sonnet 3.7 + +## Configuration + +Strangeloop uses the XDG Base Directory Specification for storing configuration. The configuration file is stored at: + +- Linux/macOS: `~/.config/strangeloop/config.json` (or `$XDG_CONFIG_HOME/strangeloop/config.json` if set) +- Windows: `%APPDATA%\strangeloop\config.json` + +You can manage configuration using the `config` command: + +```bash +# Set a configuration value +strangeloop config set model "claude-3-opus-20240229" + +# Get a configuration value +strangeloop config get model + +# List all configuration values +strangeloop config list + +# Delete a configuration value +strangeloop config delete model + +# Show the configuration file path +strangeloop config path |
