mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-02-12 17:22:50 +00:00
* feat: upgrade claude-agent-sdk to 0.2.38 and adapt to new SDK types - Bump @anthropic-ai/claude-agent-sdk from 0.1.x to 0.2.38 (both root and mcp-server) - Bump zod from 3.x to 4.x (SDK peer dependency) - Add allowDangerouslySkipPermissions to query options (required for bypassPermissions) - Suppress new SDK message types (tool_progress, tool_use_summary, auth_status) - Use structured error field on assistant messages instead of text-sniffing - Add stop_reason to result message handling for diagnostics - Add SDKAssistantMessageError type matching SDK's string literal union * chore: remove CLAUDE_CODE_MAX_OUTPUT_TOKENS from all config and docs
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
# Shannon Environment Configuration
|
|
# Copy this file to .env and fill in your credentials
|
|
|
|
# =============================================================================
|
|
# OPTION 1: Direct Anthropic (default, no router)
|
|
# =============================================================================
|
|
ANTHROPIC_API_KEY=your-api-key-here
|
|
|
|
# OR use OAuth token instead
|
|
# CLAUDE_CODE_OAUTH_TOKEN=your-oauth-token-here
|
|
|
|
# =============================================================================
|
|
# OPTION 2: Router Mode (use alternative providers)
|
|
# =============================================================================
|
|
# Enable router mode by running: ./shannon start ... ROUTER=true
|
|
# Then configure ONE of the providers below:
|
|
|
|
# --- OpenAI ---
|
|
# OPENAI_API_KEY=sk-your-openai-key
|
|
# ROUTER_DEFAULT=openai,gpt-5.2
|
|
|
|
# --- OpenRouter (access Gemini 3 models via single API) ---
|
|
# OPENROUTER_API_KEY=sk-or-your-openrouter-key
|
|
# ROUTER_DEFAULT=openrouter,google/gemini-3-flash-preview
|
|
|
|
# =============================================================================
|
|
# Available Models
|
|
# =============================================================================
|
|
# OpenAI: gpt-5.2, gpt-5-mini
|
|
# OpenRouter: google/gemini-3-flash-preview
|