Files
XCClaw/app/core/config.py

19 lines
433 B
Python
Raw Normal View History

2026-03-10 22:59:53 +08:00
from pydantic_settings import BaseSettings, SettingsConfigDict
from pathlib import Path
class Settings(BaseSettings):
2026-03-10 22:59:53 +08:00
model_config = SettingsConfigDict(env_prefix="XCCLAW_")
opencode_host: str = "127.0.0.1"
opencode_port: int = 4096
opencode_password: str = ""
app_host: str = "0.0.0.0"
app_port: int = 3005
data_dir: Path = Path.home() / "Documents" / "XCDesktop" / "xcclaw"
settings = Settings()