# ============================================================= # MiroShark Configuration # ============================================================= # This fork runs on local Neo4j + Ollama — no cloud APIs required. # Copy this file to .env and adjust values for your setup. # ============================================================= # ===== LLM Configuration ===== # LLM_PROVIDER: "openai" (default, any OpenAI-compatible API) or "claude-code" (local CLI) LLM_PROVIDER=openai # --- OpenAI-compatible mode (default) --- # Points to local Ollama server. Any non-empty value for API key works. # For Docker: use service name "ollama" instead of "localhost" LLM_API_KEY=ollama LLM_BASE_URL=http://localhost:11434/v1 LLM_MODEL_NAME=qwen2.5:32b # Lighter model for development (less VRAM): # LLM_MODEL_NAME=qwen2.5:14b # # --- OpenRouter mode (recommended cloud option) --- # LLM_API_KEY=sk-or-v1-your-key # LLM_BASE_URL=https://openrouter.ai/api/v1 # LLM_MODEL_NAME=qwen/qwen3-235b-a22b-2507 # --- Claude Code mode --- # Set LLM_PROVIDER=claude-code to route all LLM calls through the local Claude Code CLI. # Requires `claude` installed and logged in. No API key needed (uses your subscription). # Optional: override model (default uses your Claude Code default) # CLAUDE_CODE_MODEL=claude-sonnet-4-20250514 # ===== Neo4j Configuration ===== # For Docker: use service name "neo4j" instead of "localhost" NEO4J_URI=bolt://localhost:7687 NEO4J_USER=neo4j NEO4J_PASSWORD=miroshark # ===== Embedding Configuration ===== # EMBEDDING_PROVIDER: "ollama" (uses /api/embed) or "openai" (uses /v1/embeddings) # "openai" mode works with OpenRouter, OpenAI, Azure, or any compatible API. EMBEDDING_PROVIDER=ollama EMBEDDING_MODEL=nomic-embed-text EMBEDDING_BASE_URL=http://localhost:11434 EMBEDDING_API_KEY= EMBEDDING_DIMENSIONS=768 # For Docker: EMBEDDING_BASE_URL=http://ollama:11434 # # --- Example: OpenRouter embeddings --- # EMBEDDING_PROVIDER=openai # EMBEDDING_MODEL=openai/text-embedding-3-small # EMBEDDING_BASE_URL=https://openrouter.ai/api # EMBEDDING_API_KEY=sk-or-v1-... # EMBEDDING_DIMENSIONS=768 # ===== Smart Model (optional) ===== # Use a stronger model for intelligence-sensitive workflows: # report generation, ontology extraction, graph reasoning. # When not set, these workflows use the default LLM config above. # # --- Example: Claude Code for reports, Ollama for everything else --- # SMART_PROVIDER=claude-code # SMART_MODEL_NAME=claude-sonnet-4-20250514 # # --- Example: OpenRouter premium model for reports --- # SMART_PROVIDER=openai # SMART_API_KEY=sk-or-v1-your-key # SMART_BASE_URL=https://openrouter.ai/api/v1 # SMART_MODEL_NAME=anthropic/claude-sonnet-4 # # --- Example: same provider, just a bigger model --- # SMART_MODEL_NAME=qwen/qwen3-235b-a22b-2507 # ===== OASIS / CAMEL-AI Configuration ===== # CAMEL-AI reads OPENAI_API_KEY and OPENAI_API_BASE_URL # Points to same local Ollama server OPENAI_API_KEY=ollama OPENAI_API_BASE_URL=http://localhost:11434/v1 # ===== Docker-mode overrides ===== # Uncomment these when running ALL services inside Docker # (backend container talks to neo4j/ollama containers by service name) # LLM_BASE_URL=http://ollama:11434/v1 # NEO4J_URI=bolt://neo4j:7687 # EMBEDDING_BASE_URL=http://ollama:11434 # OPENAI_API_BASE_URL=http://ollama:11434/v1