From ceec45a6d8fad9d8750b8719b9bc3aa206a5ee9d Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Thu, 6 Mar 2025 13:55:06 +0100 Subject: Implement configuration management --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 3589867..07b2487 100644 --- a/README.md +++ b/README.md @@ -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 -- cgit v1.3.1