# scorpiox code configuration # Place this file alongside scorpiox binaries or in ~/.scorpiox/ # Provider: scorpiox (router) or claude_code (native OAuth) PROVIDER=claude_code # Claude Code token source (only used when PROVIDER=claude_code) # local = Read from ~/.claude/.credentials.json # remote = Fetch from scorpiox.net token endpoint CLAUDE_CODE_TOKEN_SOURCE=remote # Router URL (only used when PROVIDER=scorpiox) ROUTER_URL=http://scorpiox.net:5176 # ============================================================================= # Anthropic Provider Settings (only used when PROVIDER=anthropic) # ============================================================================= # Authentication Provider # official = Direct Anthropic API (api.anthropic.com) # antigravity = Antigravity proxy (custom model names) # zai = Z.AI proxy # custom = Custom endpoint (set ANTHROPIC_API_URL) ANTHROPIC_AUTH_PROVIDER=official # API Key for Official/Custom (also used as fallback) # Get from: https://console.anthropic.com/settings/keys ANTHROPIC_API_KEY= # Custom API URL (only when ANTHROPIC_AUTH_PROVIDER=custom) # Default: https://api.anthropic.com/v1/messages ANTHROPIC_API_URL=https://api.anthropic.com/v1/messages # Antigravity API Key ANTHROPIC_ANTIGRAVITY_KEY=sk-6088a10dc3c1473cac567069b0e557f6 # Antigravity API URL (default: http://192.168.1.5:8045/v1/messages) ANTHROPIC_ANTIGRAVITY_URL=http://192.168.1.5:8045/v1/messages # Z.AI API Key ANTHROPIC_ZAI_KEY=9c6fba5db3f84613aaf8700b05990835.ue19jY48d9GmddqX # Z.AI API URL (default: https://api.z.ai/api/anthropic/v1/messages) ANTHROPIC_ZAI_URL=https://api.z.ai/api/anthropic/v1/messages # API Backend (only used when PROVIDER=scorpiox) # Options: claude, gemini, gemini-internal, glm # claude -> /claude/v1/messages (Claude Code internal API) # gemini -> /google/gemini/public/v1/messages (Gemini public API) # gemini-internal -> /google/gemini/internal/v1/messages (Gemini CLI internal) # glm -> /glm/v1/messages (z.ai API) # llamacpp -> /llamacpp/v1/messages (z.ai API) API_BACKEND=gemini # Default Model (use short name: opus, sonnet, haiku) MODEL=opus # Streaming (SSE) mode (0=disabled, 1=enabled) # Default: 0 (non-streaming for simpler response handling) STREAMING=0 # Tools Master Switch (0=disabled, 1=enabled) TOOLS=1 # Individual Tool Settings (only applies when TOOLS=1) TOOL_BASH=1 TOOL_READIMAGE=1 TOOL_READDOCS=1 TOOL_WEBSEARCH=1 TOOL_TASKMANAGER=1 TOOL_PLANMODE=1 TOOL_ASKUSERQUESTION=1 TOOL_INVOKESKILL=1 # Timeout for interactive questions in seconds (0 = no timeout, default: 120) ASKUSER_TIMEOUT=120 # Auto-accept plan mode (0=disabled, 1=enabled) # When enabled, after agent exits plan mode with a plan file, # automatically approve and instruct agent to proceed with implementation AUTO_ACCEPT_PLAN=1 # System Prompt (base prompt for Claude) SYSTEM_PROMPT=You are Claude Code, Anthropic's official CLI for Claude. # Log Directory (for scorpiox-logger file logging) # Default: .scorpiox/logs (project-local) LOG_DIR=.scorpiox/logs # ============================================================================= # System Prompt Context Settings # ============================================================================= # Include current date/time in system prompt (1=enabled, 0=disabled) PROMPT_INCLUDE_DATETIME=1 # Include timezone in system prompt PROMPT_INCLUDE_TIMEZONE=1 # Include working directory in system prompt PROMPT_INCLUDE_CWD=1 # Include OS info in system prompt (default: disabled) PROMPT_INCLUDE_OS=0 # Include CLAUDE.md in system prompt (1=enabled, 0=disabled) # When disabled, CLAUDE.md from the working directory is NOT loaded into the system prompt # Default: 1 (enabled) PROMPT_INCLUDE_CLAUDEMD=1 # Use patch format for file edits (0=disabled, 1=enabled) # When enabled, instructs AI to edit files using unified diff format PATCH_EDIT=1 # Date/time format (strftime format) # Default: %Y-%m-%d %H:%M:%S %Z # Examples: # %Y-%m-%d -> 2025-01-24 # %A, %B %d, %Y -> Friday, January 24, 2025 # %Y-%m-%d %H:%M:%S -> 2025-01-24 14:30:45 # %Y-%m-%d %H:%M:%S %Z -> 2025-01-24 14:30:45 EST PROMPT_DATETIME_FORMAT=%Y-%m-%d %H:%M:%S %Z LOG_LEVEL=DEBUG THINKING=1 ENABLE_WELCOME=1 ENABLE_GRADIENT=0 ENABLE_TEXT_BG=0 # Prepend system-reminder to user messages (0=disabled, 1=enabled) # When enabled, CLAUDE.md content is injected into each user message for context reinforcement # Default: 0 (disabled - system prompt in separate field is sufficient) USER_SYSTEM_REMINDER=0 # Terminal Background Color (1=enabled, 0=disabled) # When enabled, sets terminal background to dark blue (#000050) # Disable if your terminal theme already has a preferred background ENABLE_TERM_BACKGROUND=0 # Background Bash Tools (for long-running commands) # These allow running commands in background without blocking the agentic loop TOOL_BACKGROUNDBASH=1 TOOL_READBGOUTPUT=1 TOOL_LISTBGTASKS=1 TOOL_KILLBGTASK=1 # ============================================================================= # Gemini Provider Settings (only used when PROVIDER=gemini) # ============================================================================= # Gemini API Key (required for PROVIDER=gemini) GEMINI_API_KEY=AIzaSyDsvlLnCdMFXnlCLxurMaAO5RKI8IQHVA8 # Gemini Base URL (optional, default: https://generativelanguage.googleapis.com/v1beta) #GEMINI_BASE_URL=https://generativelanguage.googleapis.com/v1beta # Gemini Model (optional, default: gemini-3-flash-preview) # Options: gemini-3-pro-preview, gemini-3-flash-preview # Short names also work: opus/pro -> gemini-3-pro-preview, sonnet/flash/haiku -> gemini-3-flash-preview #GEMINI_MODEL=gemini-3-flash-preview # ============================================================================= # OpenAI Provider Settings (only used when PROVIDER=openai) # Works with any OpenAI-compatible endpoint: llama.cpp, ollama, vllm, lm-studio # ============================================================================= # OpenAI API Key (optional for local servers, required for OpenAI cloud) OPENAI_API_KEY=xxx # OpenAI Base URL (default: http://192.168.1.8:8080) OPENAI_BASE_URL=http://192.168.1.8:8080 # OpenAI Model (passed through to server, server decides actual model) #OPENAI_MODEL= # ============================================================================= # Cache Keep-Alive Settings # ============================================================================= # Auto-ping to keep Claude prompt cache alive before 5min TTL expires # 0=disabled, 1=enabled CACHE_KEEPALIVE=1 # Seconds before cache expiry to trigger keep-alive ping # Default: 270 (4:30 of 5:00 TTL, giving 30s margin) CACHE_KEEPALIVE_TRIGGER=270 # Max consecutive cache misses before pausing keepalive # Default: 1 (pause after first miss — cache is already gone) CACHE_KEEPALIVE_MAX_TRIES=1 # Max total keepalive pings before auto-stop (0=unlimited) # Default: 12 (~54 minutes at 270s interval) CACHE_KEEPALIVE_MAX_PINGS=2 # ============================================================================= # Context Window Management # ============================================================================= # Auto-compact threshold: compact conversation when cache_read >= N tokens # Default: 150000 (150K tokens) CONTEXT_CLEAR_THRESHOLD=150000 # Keep last N messages after auto-compact # Default: 4 CONTEXT_KEEP_MESSAGES=4 # scorpiox-tmux (Mission Control) TMUX_REMOTE_HOST=root@192.168.1.4 TMUX_REMOTE_BASE=/Volumes/GitHub TMUX_SMB_SHARE=//192.168.1.4/GitHub TMUX_DEFAULT_DISTRO=scorpiox-alpine # Launch mode: "unshare" or "podman" (default: unshare) TMUX_LAUNCH_MODE=podman # Podman container settings (used when TMUX_LAUNCH_MODE=podman or /new podman) TMUX_PODMAN_REGISTRY=registry.scorpiox.net TMUX_PODMAN_IMAGE=startauto:latest TMUX_PODMAN_TLS_VERIFY=false TMUX_PODMAN_SCORPIOX_URL=https://dist.scorpiox.net/scorpiox/sx/scorpiox_code.tar.gz TMUX_PODMAN_VOLUME_MOUNT=/Volumes/GitHub:/Volumes/GitHub TMUX_PODMAN_EXTRA_ARGS= # ============================================================================= # MCP (Model Context Protocol) Settings # ============================================================================= # MCP Master Switch (0=disabled, 1=enabled) # When enabled, MCP server tools are discovered and added alongside built-in tools MCP=0 # MCP Server definitions (semicolon-separated for multiple servers) # Format: name:command:arg1,arg2 # Examples: # MCP_SERVER=devkit:/root/.claude/devkit-linux-x64 # MCP_SERVER=devkit:/root/.claude/devkit-linux-x64;fs:npx:-y,@anthropic/mcp-filesystem,/home MCP_SERVER= # External MCP config file (standard mcp_servers.json format) # Leave empty to use MCP_SERVER definitions above # If both set, MCP_CONFIG takes precedence for server definitions MCP_CONFIG= # External .mcp file path (set by scorpiox-agent for agent tasks) # Leave empty for normal usage MCP_FILE= # MCP tool allow patterns (semicolon-separated, glob syntax) # Format: server:pattern1,pattern2 # If empty, all discovered tools are allowed # Examples: # MCP_ALLOW=devkit:mailing_tool_* # MCP_ALLOW=devkit:mailing_tool_*,git_smart_commit_*;fs:* MCP_ALLOW= # MCP tool deny patterns (overrides allow, semicolon-separated) # Format: server:pattern1,pattern2 # Examples: # MCP_DENY=devkit:*shutdown*,*delete* MCP_DENY= # ============================================================================= # Claude Code Token (SSH source) # ============================================================================= # SSH credentials for fetching Claude Code token from remote machine # Used when CLAUDE_CODE_TOKEN_SOURCE=ssh CLAUDE_CODE_SSH_HOST=192.168.1.6 CLAUDE_CODE_SSH_PORT=22223 CLAUDE_CODE_SSH_USER=root CLAUDE_CODE_SSH_PASS=xboxone # HTTP endpoint for fetching Claude Code token # Used when CLAUDE_CODE_TOKEN_SOURCE=remote CLAUDE_CODE_REMOTE_URL=http://scorpiox.net:5176/claude-token # ============================================================================= # Email Settings (SMTP) # ============================================================================= # SMTP server hostname (e.g. smtp.gmail.com, smtp.office365.com) SMTP_HOST= # SMTP port (587 = STARTTLS, 465 = SSL, 25 = plain) SMTP_PORT=587 # SMTP authentication credentials SMTP_USER= SMTP_PASS= # Sender address (From: header) SMTP_FROM= # Encryption: starttls, ssl, none SMTP_TLS=starttls # ============================================================================= # Container Image Distribution # ============================================================================= # Base URL for container images (used by scorpiox-unshare and scorpiox-wsl) IMAGE_BASE_URL=https://dist.scorpiox.net/container-images/ # Self-update URL for scorpiox-wsl UPDATE_URL=https://dist.scorpiox.net/executables/scorpiox-wsl.exe # Examples: # ============================================================================= # Podman Standalone (scorpiox-podman) # ============================================================================= # Container registry for scorpiox-podman SCORPIOX_REGISTRY=registry.scorpiox.net # Distribution tarball URL for scorpiox-podman SCORPIOX_DIST_URL=https://dist.scorpiox.net/scorpiox/sx/scorpiox_code.tar.gz # ============================================================================= # Usage Tracking Settings # ============================================================================= # Enable/disable token usage tracking (0=disabled, 1=enabled) # When enabled, scorpiox-usage posts token counts to the usage API after each API call USAGE_TRACKING=1 # Usage API endpoint (override default) # Default: https://gcp.scorpioplayer.com/api/platform/websites/codeusagesendapi USAGE_API_URL=https://gcp.scorpioplayer.com/api/platform/websites/codeusagesendapi # ============================================================================= # Event Hook System (scorpiox-hook) # ============================================================================= # Enable/disable hook execution (0=disabled, 1=enabled) # When enabled, scripts in .scorpiox/hooks// run on lifecycle events HOOKS_ENABLED=1 # Timeout for sync hooks in seconds (async hooks have no timeout) HOOKS_TIMEOUT=30 # ============================================================================= # WhatsApp Channel (scorpiox-whatsapp) # ============================================================================= # Bridge binary path override (auto-downloads from dist.scorpiox.net if empty) WA_BRIDGE_PATH= # Auto-update bridge binary: on-demand | always | off WA_BRIDGE_AUTO_UPDATE=on-demand # Auth directory for WhatsApp session WA_AUTH_DIR=.scorpiox/whatsapp/auth # Inbox directory for received messages WA_INBOX_DIR=.scorpiox/whatsapp/inbox # Default tmux session for listen mode WA_LISTEN_SESSION=