2025-10-30 21:07:53 -05:00
|
|
|
# ============================================================================
|
|
|
|
|
# Authentication (Optional - Leave empty to disable auth)
|
|
|
|
|
# ============================================================================
|
|
|
|
|
|
|
|
|
|
# Login email (required to enable auth)
|
|
|
|
|
CLAUDE_OS_EMAIL=admin@example.com
|
|
|
|
|
|
|
|
|
|
# Option 1: Plain password (development only - auto-hashed)
|
|
|
|
|
CLAUDE_OS_PASSWORD=your_secure_password_here
|
|
|
|
|
|
|
|
|
|
# Option 2: Pre-hashed password (production - recommended)
|
|
|
|
|
# Generate: python3 -c "from passlib.context import CryptContext; print(CryptContext(schemes=['bcrypt']).hash('your_password'))"
|
|
|
|
|
# CLAUDE_OS_PASSWORD_HASH=$2b$12$xyz...
|
|
|
|
|
|
|
|
|
|
# JWT secret key (auto-generated if not set)
|
|
|
|
|
# Generate: python3 -c "import secrets; print(secrets.token_urlsafe(32))"
|
|
|
|
|
# CLAUDE_OS_SECRET_KEY=your-super-secret-key-min-32-chars
|
|
|
|
|
|
|
|
|
|
# ============================================================================
|
2025-10-22 13:29:28 -05:00
|
|
|
# Ollama Configuration
|
2025-10-30 21:07:53 -05:00
|
|
|
# ============================================================================
|
|
|
|
|
|
2025-10-27 17:41:44 -05:00
|
|
|
OLLAMA_HOST=http://localhost:11434
|
|
|
|
|
OLLAMA_MODEL=llama3.1:latest
|
2025-10-22 13:29:28 -05:00
|
|
|
OLLAMA_EMBED_MODEL=nomic-embed-text
|
|
|
|
|
|
2025-10-27 17:41:44 -05:00
|
|
|
# SQLite Database
|
|
|
|
|
SQLITE_DB_PATH=data/claude-os.db
|
2025-10-22 13:29:28 -05:00
|
|
|
|
|
|
|
|
# MCP Server Configuration
|
|
|
|
|
MCP_SERVER_HOST=0.0.0.0
|
|
|
|
|
MCP_SERVER_PORT=8051
|
|
|
|
|
|
|
|
|
|
# RAG Configuration
|
2025-10-27 17:41:44 -05:00
|
|
|
CHUNK_SIZE=1536
|
|
|
|
|
CHUNK_OVERLAP=256
|
|
|
|
|
TOP_K_RETRIEVAL=20
|
2025-11-04 19:15:54 +00:00
|
|
|
|
|
|
|
|
# Reranking (improves search relevance but slower)
|
|
|
|
|
ENABLE_RERANKER=false
|
|
|
|
|
RERANK_MODEL=cross-encoder/mmarco-mMiniLMv2-L12-H384
|
|
|
|
|
RERANK_TOP_K=10
|
2025-10-22 13:29:28 -05:00
|
|
|
|
2025-10-23 19:23:05 -05:00
|
|
|
# KB Type Configuration
|
|
|
|
|
# Default type for new knowledge bases: generic, code, documentation, agent-os
|
|
|
|
|
DEFAULT_KB_TYPE=generic
|
|
|
|
|
|
2025-11-04 19:15:54 +00:00
|
|
|
# ============================================================================
|
|
|
|
|
# Security Configuration
|
|
|
|
|
# ============================================================================
|
|
|
|
|
|
|
|
|
|
# CORS - Allowed origins (comma-separated)
|
|
|
|
|
# Development default: localhost on ports 5173 (frontend) and 8051 (MCP)
|
|
|
|
|
# Production: Set to your specific domain(s)
|
|
|
|
|
# Example: ALLOWED_ORIGINS=https://yourdomain.com,https://api.yourdomain.com
|
|
|
|
|
ALLOWED_ORIGINS=http://localhost:5173,http://localhost:8051,http://127.0.0.1:5173,http://127.0.0.1:8051
|
|
|
|
|
|