初始化提交
Some checks failed
CI / Check / macos-latest (push) Has been cancelled
CI / Check / ubuntu-latest (push) Has been cancelled
CI / Check / windows-latest (push) Has been cancelled
CI / Test / macos-latest (push) Has been cancelled
CI / Test / ubuntu-latest (push) Has been cancelled
CI / Test / windows-latest (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Security Audit (push) Has been cancelled
CI / Secrets Scan (push) Has been cancelled
CI / Install Script Smoke Test (push) Has been cancelled
Some checks failed
CI / Check / macos-latest (push) Has been cancelled
CI / Check / ubuntu-latest (push) Has been cancelled
CI / Check / windows-latest (push) Has been cancelled
CI / Test / macos-latest (push) Has been cancelled
CI / Test / ubuntu-latest (push) Has been cancelled
CI / Test / windows-latest (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Security Audit (push) Has been cancelled
CI / Secrets Scan (push) Has been cancelled
CI / Install Script Smoke Test (push) Has been cancelled
This commit is contained in:
89
.env.example
Normal file
89
.env.example
Normal file
@@ -0,0 +1,89 @@
|
||||
# OpenFang Environment Variables
|
||||
# Copy this file to .env and fill in your values.
|
||||
# Only set the providers you plan to use.
|
||||
|
||||
# ─── LLM Provider API Keys ───────────────────────────────────────────
|
||||
|
||||
# Anthropic (Claude models)
|
||||
# ANTHROPIC_API_KEY=sk-ant-...
|
||||
|
||||
# Google Gemini
|
||||
# GEMINI_API_KEY=AIza...
|
||||
# GOOGLE_API_KEY=AIza... # Alternative to GEMINI_API_KEY
|
||||
|
||||
# OpenAI
|
||||
# OPENAI_API_KEY=sk-...
|
||||
|
||||
# Groq (fast inference)
|
||||
# GROQ_API_KEY=gsk_...
|
||||
|
||||
# DeepSeek
|
||||
# DEEPSEEK_API_KEY=sk-...
|
||||
|
||||
# OpenRouter (multi-provider gateway)
|
||||
# OPENROUTER_API_KEY=sk-or-...
|
||||
|
||||
# Together AI
|
||||
# TOGETHER_API_KEY=...
|
||||
|
||||
# Mistral AI
|
||||
# MISTRAL_API_KEY=...
|
||||
|
||||
# Fireworks AI
|
||||
# FIREWORKS_API_KEY=...
|
||||
|
||||
# ─── Local LLM Providers (no API key needed) ─────────────────────────
|
||||
|
||||
# Ollama (default: http://localhost:11434)
|
||||
# OLLAMA_BASE_URL=http://localhost:11434
|
||||
|
||||
# vLLM (default: http://localhost:8000)
|
||||
# VLLM_BASE_URL=http://localhost:8000
|
||||
|
||||
# LM Studio (default: http://localhost:1234)
|
||||
# LMSTUDIO_BASE_URL=http://localhost:1234
|
||||
|
||||
# ─── Channel Tokens ──────────────────────────────────────────────────
|
||||
|
||||
# Telegram
|
||||
# TELEGRAM_BOT_TOKEN=123456:ABC-...
|
||||
|
||||
# Discord
|
||||
# DISCORD_BOT_TOKEN=...
|
||||
|
||||
# Slack
|
||||
# SLACK_BOT_TOKEN=xoxb-...
|
||||
# SLACK_APP_TOKEN=xapp-...
|
||||
|
||||
# WhatsApp (via Cloud API)
|
||||
# WHATSAPP_TOKEN=...
|
||||
# WHATSAPP_PHONE_ID=...
|
||||
|
||||
# Signal
|
||||
# SIGNAL_CLI_PATH=/usr/local/bin/signal-cli
|
||||
# SIGNAL_PHONE_NUMBER=+1...
|
||||
|
||||
# Matrix
|
||||
# MATRIX_HOMESERVER=https://matrix.org
|
||||
# MATRIX_ACCESS_TOKEN=...
|
||||
|
||||
# Email (IMAP/SMTP)
|
||||
# EMAIL_IMAP_HOST=imap.gmail.com
|
||||
# EMAIL_SMTP_HOST=smtp.gmail.com
|
||||
# EMAIL_USERNAME=...
|
||||
# EMAIL_PASSWORD=...
|
||||
|
||||
# ─── OpenFang Configuration ──────────────────────────────────────────
|
||||
|
||||
# API server bind address (default: 127.0.0.1:3000)
|
||||
# OPENFANG_LISTEN=127.0.0.1:3000
|
||||
|
||||
# API key for HTTP authentication (leave empty for localhost-only access)
|
||||
# OPENFANG_API_KEY=
|
||||
|
||||
# Home directory (default: ~/.openfang)
|
||||
# OPENFANG_HOME=~/.openfang
|
||||
|
||||
# Log level (default: info)
|
||||
# RUST_LOG=info
|
||||
# RUST_LOG=openfang=debug # Debug OpenFang only
|
||||
Reference in New Issue
Block a user