diff --git a/.env.example b/.env.example index 35e22d4..f560588 100644 --- a/.env.example +++ b/.env.example @@ -1,11 +1,18 @@ # LLM Provider Configuration -# Support Anthropic API or compatible providers (e.g. OpenRouter) +# Support Anthropic API or compatible providers (e.g. OpenRouter, OrcaRouter) ANTHROPIC_API_KEY=sk-ant-xxxxx MODEL_ID=claude-sonnet-4-20250514 # Optional: custom base URL for API-compatible providers # ANTHROPIC_BASE_URL=https://openrouter.ai/api/v1 +# OrcaRouter: OpenAI-compatible AI gateway (models + agents), with adaptive +# routing, failover, observability, guardrails and agent-tool governance. +# Works with the Anthropic SDK via base_url; use a namespaced model id: +# ANTHROPIC_API_KEY= +# ANTHROPIC_BASE_URL=https://api.orcarouter.ai +# MODEL_ID=orcarouter/auto + # Telegram (optional, for s04_channels.py) # TELEGRAM_BOT_TOKEN=123456:ABC-DEF diff --git a/README.ja.md b/README.ja.md index 457aef3..aee80e1 100644 --- a/README.ja.md +++ b/README.ja.md @@ -81,6 +81,10 @@ pip install -r requirements.txt # 3. 設定 cp .env.example .env # .env を編集: ANTHROPIC_API_KEY と MODEL_ID を設定 +# 互換性のある API ゲートウェイを名前付きプロバイダーとして使うこともできます (例: OrcaRouter): +# ANTHROPIC_API_KEY=<あなたの OrcaRouter キー> +# ANTHROPIC_BASE_URL=https://api.orcarouter.ai +# MODEL_ID=orcarouter/auto # 4. 任意のセクションを実行 (言語を選択) python sessions/ja/s01_agent_loop.py # 日本語 diff --git a/README.md b/README.md index 29adea6..8318fff 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,10 @@ pip install -r requirements.txt # 3. Configure cp .env.example .env # Edit .env: set ANTHROPIC_API_KEY and MODEL_ID +# Or use any API-compatible gateway as a named provider, e.g. OrcaRouter: +# ANTHROPIC_API_KEY= +# ANTHROPIC_BASE_URL=https://api.orcarouter.ai +# MODEL_ID=orcarouter/auto # 4. Run any section (pick your language) python sessions/en/s01_agent_loop.py # English diff --git a/README.zh.md b/README.zh.md index 3db3a5c..632a6a0 100644 --- a/README.zh.md +++ b/README.zh.md @@ -81,6 +81,10 @@ pip install -r requirements.txt # 3. 配置 cp .env.example .env # 编辑 .env: 填入 ANTHROPIC_API_KEY 和 MODEL_ID +# 也可使用任意 API 兼容网关作为命名服务商, 例如 OrcaRouter: +# ANTHROPIC_API_KEY=<你的 OrcaRouter key> +# ANTHROPIC_BASE_URL=https://api.orcarouter.ai +# MODEL_ID=orcarouter/auto # 4. 运行任意章节 (选择你的语言) python sessions/zh/s01_agent_loop.py # 中文