Skip to content

Self-improving AI Employees for everyone

1.2 KB
Raw Blame
# Dev-mode env overrides — layered on top of ``.env.template`` and
# ``.env`` by ``company dev`` (only). The ``company start`` /
# ``company daemon`` paths never load this file, so production-style
# runs keep the ``.env.template`` defaults (DATA_DIR=~/.opencompany).
#
# Loaded by ``cli.config.load_dev_overrides`` via ``os.environ.setdefault``
# so an explicit shell override (``DATA_DIR=/foo company dev``) still
# wins. Committed to git as the canonical dev convention — every
# checkout's ``company dev`` lands state in the same place.

# Per-checkout state under <repo>/.opencompany/ (resolved as a relative
# path under ``project_root()`` by ``core.paths.opencompany_root``).
# Multiple worktrees on the same machine each get their own clean
# DB / workspaces / temporal history; ``rm -rf`` of the worktree
# wipes the runtime state alongside the source.
DATA_DIR=.opencompany

# Dev port split: the app URL stays the canonical :5678 (Vite dev
# server, which proxies /api /ws /webhook /health /mcp onward), and the
# backend moves behind it. Production runs have no Vite — uvicorn
# itself binds 5678 — so this override is dev-only by design.
PYTHON_BACKEND_PORT=5679
PORT=5679