Files
vibemake-pcb-studio/codex_pcb/.env.example
T
likang d3fa24ae7e
CI / typecheck + test + build (push) Waiting to run
Configure production PCB providers and document deployment
2026-11-25 15:06:02 +08:00

45 lines
1.8 KiB
Bash

# Local backend only. For online Compose, use .env.production.example instead.
# Copy to .env.local and inject with systemd
# EnvironmentFile, or uvicorn --env-file (requires python-dotenv).
# Never put a real key in this example or a VITE_* variable.
PCB_CODEX_AUTH=apikey
PCB_AI_PROVIDER=openai
PCB_ALLOWED_PROVIDERS=claude,deepseek,openai,doubao
OPENAI_API_KEY=
# Alternatively mount a secret file; leave OPENAI_API_KEY empty when using it.
# OPENAI_API_KEY_FILE=/run/secrets/openai_api_key
# Explicit API endpoint paired with that key. Use the provider's exact base URL;
# the service does not import your personal Codex configuration automatically.
PCB_OPENAI_BASE_URL=https://api.vip1129.cc
PCB_OPENAI_MODEL=gpt-6.1-sol
# Optional alternatives, selectable for new designs in the website.
DEEPSEEK_API_KEY=
# DEEPSEEK_API_KEY_FILE=/run/secrets/deepseek_api_key
PCB_DEEPSEEK_BASE_URL=https://api.deepseek.com
PCB_DEEPSEEK_MODEL=deepseek-flash
ARK_API_KEY=
# ARK_API_KEY_FILE=/run/secrets/ark_api_key
# DOUBAO_API_KEY / DOUBAO_API_KEY_FILE are accepted aliases.
PCB_DOUBAO_BASE_URL=https://ark.cn-beijing.volces.com/api/v3
PCB_DOUBAO_MODEL=doubao-seed-2-1-pro-260915
# Fail visibly if no native model progress arrives (heartbeats do not count).
PCB_CODEX_IDLE_TIMEOUT=300
# Container examples: set these to the actual installed/mounted paths.
PCB_SESSION_ROOT=/data
PCB_CODEX_HOME=/data/codex-home
PCB_CODEX_BIN=/usr/local/bin/codex
PCB_EDA_BIN=/opt/lceda-pro/lceda-pro
PCB_BLENDER_BIN=/usr/bin/blender
PCB_FREEROUTING_JAR=/opt/pcb-resources/freerouting.jar
# Use exact model IDs supported by each provider account; no model fallback.
# Legacy PCB_MODEL applies only to the default provider. Prefer the provider-
# specific settings above so changing PCB_AI_PROVIDER cannot reuse a wrong ID.
PCB_REASONING_EFFORT=high
DISPLAY=:99
XDG_RUNTIME_DIR=/tmp/pcb-xdg