# CloudCLI UI Environment Configuration
# Only includes variables that are actually used in the code
#
# TIP: Run 'cloudcli status' to see where this file should be located
#      and to view your current configuration.
#
# Available CLI commands:
#   claude-code-ui    - Start the server (default)
#   cloudcli start    - Start the server
#   cloudcli status   - Show configuration and data locations
#   cloudcli help     - Show help information
#   cloudcli version  - Show version information

# =============================================================================
# SERVER CONFIGURATION
# =============================================================================

# Backend server port (Express API + WebSocket server)
#API server
SERVER_PORT=3002
#Frontend port
VITE_PORT=5173

# Host/IP to bind servers to (default: 0.0.0.0 for all interfaces)
# Use 127.0.0.1 to restrict to localhost only
HOST=0.0.0.0

# Uncomment the following line if you have a custom claude cli path other than the default "claude"
# CLAUDE_CLI_PATH=claude

# =============================================================================
# SUB-PATH HOSTING (optional)
# =============================================================================
# Host the app under a URL sub-path instead of the root. Useful behind a
# reverse proxy that doesn't strip the prefix, or when sharing a domain with
# other apps. Frontend and backend are configured independently so they can
# be deployed separately or moved between proxies.
#
# Both values:
#   - must start with "/"
#   - must NOT end with "/"
#   - leave unset (or empty) to host at root "/"
#
# Backend prefix — applied to /api/*, /health, /ws, /shell, static files,
# and the SPA fallback. Example: SERVER_BASE_PATH=/cc
SERVER_BASE_PATH=/cc
#
# Frontend prefix — Vite `base`, embedded into the built HTML, used as the
# React Router basename, and (by default) used to call the backend. Example:
VITE_BASE_PATH=/cc
# VITE_BASE_PATH=
#
# Override only if the backend lives at a different prefix than the frontend
# (uncommon — most deployments share a prefix). Defaults to VITE_BASE_PATH.
VITE_API_BASE_PATH=/cc
# =============================================================================
# DATABASE CONFIGURATION
# =============================================================================

# Path to the authentication database file
# This is where user credentials, API keys, and tokens are stored.
#
# To use a custom location:
# DATABASE_PATH=/path/to/your/custom/auth.db
#
# Claude Code context window size (maximum tokens per session)
VITE_CONTEXT_WINDOW=160000
CONTEXT_WINDOW=160000


