# Copy to .env on server0 and fill in; never commit .env. # chmod 600 .env CONFIG__GIT_PROVIDER=gitea # The API is reached over the Docker network; links in comments use the # public URL instead. GITEA__URL=http://gitea:3000 GITEA__WEB_URL=https://git.noelsabia.dev # Bot user pr-agent, scoped token (read:repository, write:issue, read:user). # Not the admin account and not a workflow secret. GITEA__PERSONAL_ACCESS_TOKEN= # Secret configured on the Gitea webhook. Required: the server rejects # unsigned webhooks with HTTP 403. GITEA__WEBHOOK_SECRET= # OpenCode Go exposes an OpenAI-compatible chat-completions endpoint, so # PR-Agent reaches it through its openai provider with a custom base URL. CONFIG__MODEL=openai/glm-5.3-flash CONFIG__FALLBACK_MODELS=["openai/glm-5.3"] CONFIG__CUSTOM_MODEL_MAX_TOKENS=128000 OPENAI__API_BASE=https://opencode.ai/inference/go/openai/v1 OPENAI__KEY= # OpenCode Go requires a session id header; a stable id is enough here. LITELLM__EXTRA_HEADERS={"x-opencode-session":"pr-agent"}