mirror of
https://github.com/HKUDS/OpenSpace.git
synced 2026-09-24 00:55:36 +00:00
50 lines
1.6 KiB
Text
50 lines
1.6 KiB
Text
# OpenSpace Docker Environment Configuration
|
|
# Copy this file to .env and customize your settings
|
|
|
|
# ==================== Required ====================
|
|
# Generate a secure random key for your OpenSpace instance
|
|
# You can generate one with: openssl rand -base64 32
|
|
OPENSPACE_API_KEY=your_openpspace_api_key_here
|
|
|
|
# ==================== LLM Providers ====================
|
|
# Choose ONE provider configuration below
|
|
|
|
# Option 1: OpenAI (GPT-4, GPT-3.5, etc.)
|
|
# OPENAI_API_KEY=sk-...
|
|
|
|
# Option 2: Anthropic (Claude)
|
|
# ANTHROPIC_API_KEY=sk-ant-...
|
|
|
|
# Option 3: StepFun (Step models via OpenRouter)
|
|
# Note: Using OpenRouter as the API gateway
|
|
OPENSPACE_MODEL=stepfun/step-3.5-flash:free
|
|
OPENSPACE_LLM_API_KEY=sk-or-v1-...
|
|
OPENSPACE_LLM_API_BASE=https://openrouter.ai/api/v1
|
|
|
|
# Option 4: Custom provider (Local LLM, Together, etc.)
|
|
# OPENSPACE_LLM_API_KEY=your_api_key
|
|
# OPENSPACE_LLM_API_BASE=https://your-llm-provider.com/v1
|
|
# OPENSPACE_MODEL=your-model-name
|
|
|
|
# ==================== Optional ====================
|
|
# Default model to use when not specified in queries
|
|
# OPENSPACE_MODEL=claude-3-7-sonnet-latest
|
|
|
|
# Enable debug logging (set to 1)
|
|
# OPENSPACE_DEBUG=0
|
|
|
|
# ==================== Docker Compose Configuration ====================
|
|
# Override default host port (default: 9001)
|
|
# HOST_PORT=9001
|
|
|
|
# Volume type: "named" (Docker-managed) or "bind" (host directory)
|
|
# VOLUME_TYPE=named
|
|
|
|
# When VOLUME_TYPE=named, these named volumes are used:
|
|
# VOLUME_DATA=openspace-data
|
|
# VOLUME_SKILLS=openspace-skills
|
|
|
|
# When VOLUME_TYPE=bind, create local directories:
|
|
# (not set via env, edit docker-compose.yml directly)
|
|
# - ./data:/app/.openspace
|
|
# - ./skills:/app/skills
|