diff options
| author | Yuval Adam <_@yuv.al> | 2025-03-06 13:58:42 +0100 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2025-03-06 13:58:42 +0100 |
| commit | 3a448eea3b01d2a4f3f0e703fae396a93fcbf243 (patch) | |
| tree | c7f9fc8b10a4c6bac8ba6239adb3a8f2922ecfbd /README.md | |
| parent | ceec45a6d8fad9d8750b8719b9bc3aa206a5ee9d (diff) | |
Use anthropic api key from config
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 26 |
1 files changed, 20 insertions, 6 deletions
@@ -32,10 +32,10 @@ uvx strangeloop process FILE_PATH [--output OUTPUT_PATH] 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 set anthropic_api_key "your-api-key" +uvx strangeloop config get anthropic_api_key uvx strangeloop config list -uvx strangeloop config delete api_key +uvx strangeloop config delete anthropic_api_key uvx strangeloop config path ``` @@ -49,11 +49,19 @@ strangeloop info strangeloop ask "What is the meaning of life?" --max-tokens 2048 --temperature 0.8 ``` -## Environment Variables +## API Keys and Configuration -The following environment variables are required: +To use the Claude Sonnet 3.7 integration, you need to provide your Anthropic API key in one of these ways (in order of precedence): -- `ANTHROPIC_API_KEY`: Your Anthropic API key for accessing Claude Sonnet 3.7 +1. Set in configuration: + ```bash + strangeloop config set anthropic_api_key "your-api-key" + ``` + +2. Set as environment variable: + ```bash + export ANTHROPIC_API_KEY="your-api-key" + ``` ## Configuration @@ -79,3 +87,9 @@ strangeloop config delete model # Show the configuration file path strangeloop config path +``` + +### Common Configuration Options + +- `anthropic_api_key`: Your Anthropic API key +- `model`: The Claude model to use (default: "claude-3-sonnet-20240229") |
