cc-haha/.env.example
程序员阿江(Relakkes) 3c705f491b docs: add third-party model integration guide (OpenAI/DeepSeek/Ollama via LiteLLM)
Add comprehensive documentation for using non-Anthropic models through
protocol translation proxies like LiteLLM. Also document ~/.claude/settings.json
env configuration as an alternative to .env files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 00:45:06 +08:00

51 lines
2.1 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ============================================================
# MiniMax直连 Anthropic 兼容接口)
# ============================================================
# ANTHROPIC_AUTH_TOKEN=your_token_here
# ANTHROPIC_BASE_URL=https://api.minimaxi.com/anthropic
# ANTHROPIC_MODEL=MiniMax-M2.7-highspeed
# ANTHROPIC_DEFAULT_SONNET_MODEL=MiniMax-M2.7-highspeed
# ANTHROPIC_DEFAULT_HAIKU_MODEL=MiniMax-M2.7-highspeed
# ANTHROPIC_DEFAULT_OPUS_MODEL=MiniMax-M2.7-highspeed
# API_TIMEOUT_MS=3000000
# ============================================================
# OpenAI通过 LiteLLM 代理)
# 先启动: litellm --config litellm_config.yaml --port 4000
# ============================================================
# ANTHROPIC_AUTH_TOKEN=sk-anything
# ANTHROPIC_BASE_URL=http://localhost:4000
# ANTHROPIC_MODEL=gpt-4o
# ANTHROPIC_DEFAULT_SONNET_MODEL=gpt-4o
# ANTHROPIC_DEFAULT_HAIKU_MODEL=gpt-4o
# ANTHROPIC_DEFAULT_OPUS_MODEL=gpt-4o
# API_TIMEOUT_MS=3000000
# ============================================================
# DeepSeek通过 LiteLLM 代理)
# 先启动: litellm --config litellm_config.yaml --port 4000
# ============================================================
# ANTHROPIC_AUTH_TOKEN=sk-anything
# ANTHROPIC_BASE_URL=http://localhost:4000
# ANTHROPIC_MODEL=deepseek-chat
# ANTHROPIC_DEFAULT_SONNET_MODEL=deepseek-chat
# ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-chat
# ANTHROPIC_DEFAULT_OPUS_MODEL=deepseek-chat
# API_TIMEOUT_MS=3000000
# ============================================================
# OpenRouter直连 Anthropic 兼容接口)
# ============================================================
# ANTHROPIC_AUTH_TOKEN=sk-or-v1-xxx
# ANTHROPIC_BASE_URL=https://openrouter.ai/api/v1
# ANTHROPIC_MODEL=openai/gpt-4o
# ANTHROPIC_DEFAULT_SONNET_MODEL=openai/gpt-4o
# ANTHROPIC_DEFAULT_HAIKU_MODEL=openai/gpt-4o-mini
# ANTHROPIC_DEFAULT_OPUS_MODEL=openai/gpt-4o
# ============================================================
# 通用设置(建议始终开启)
# ============================================================
DISABLE_TELEMETRY=1
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1