Environment Variables
This reference documents all environment variables used by projects-manager, preqstation-skill, and preqstation-openclaw.
projects-manager
Server-side variables for the main PREQSTATION web service.
| Variable | Required | Default | Purpose |
|---|---|---|---|
AUTH_SECRET | Yes | — | HMAC session secret (minimum 16 characters) |
OWNER_EMAIL | Yes | — | Single account email address |
OWNER_PASSWORD | Yes | — | Owner password (minimum 8 characters) |
DATABASE_URL | Yes | — | Neon PostgreSQL connection string |
ALLOWED_ORIGINS | No | — | CORS verification (comma-separated URLs) |
CRON_SECRET | No | — | Vercel cron job authentication secret |
Setup Example
AUTH_SECRET="your-secret-min-16-chars"OWNER_EMAIL="you@example.com"OWNER_PASSWORD="securepassword123"DATABASE_URL="postgresql://user:pass@host/dbname"ALLOWED_ORIGINS="https://yourdomain.com,https://www.yourdomain.com"CRON_SECRET="cron-secret-for-vercel"Database Setup
Get your Neon PostgreSQL connection string:
- Create project on Neon Console
- Copy connection string:
postgresql://[user]:[password]@[host]/[dbname] - Set as
DATABASE_URL
preqstation-skill
Agent-side variables for MCP server and shell helpers.
| Variable | Required | Default | Purpose |
|---|---|---|---|
PREQSTATION_API_URL | Yes | — | projects-manager API base URL (e.g., https://mypreqstation.vercel.app) |
PREQSTATION_TOKEN | Yes | — | Bearer token (format: preq_ prefix, from /api-keys page) |
PREQSTATION_ENGINE | No | codex | Fallback engine when client auto-detection unavailable |
Setup Example
# ~/.zshrc or ~/.bashrcexport PREQSTATION_API_URL="https://your-preqstation-domain.vercel.app"export PREQSTATION_TOKEN="preq_xxxxxxxxxxxxxxxxx"export PREQSTATION_ENGINE="claude-code" # optionalGetting a Token
- Deploy projects-manager
- Log into web UI
- Go to Settings → API Keys
- Click “New Token”
- Copy the generated token (starts with
preq_)
Engine Values
| Value | Meaning |
|---|---|
claude-code | Claude Code |
codex | Codex (OpenAI) |
gemini-cli | Gemini CLI |
preqstation-openclaw
Execution layer variables for OpenClaw skill and worktree management.
| Variable | Required | Default | Purpose |
|---|---|---|---|
OPENCLAW_WORKTREE_ROOT | No | /tmp/openclaw-worktrees | Root directory for isolated task worktrees |
Setup Example
# ~/.zshrc or ~/.bashrcexport OPENCLAW_WORKTREE_ROOT="/home/user/openclaw-worktrees"Worktree Root Considerations
Default: /tmp/openclaw-worktrees
- Temporary directory, cleaned on system reboot
- Fine for transient task execution
- Works with most CI/CD systems
Custom: /home/user/openclaw-worktrees
- Persistent across reboots
- Useful for debugging and inspection
- Requires manual cleanup of old worktrees
In CI/CD:
export OPENCLAW_WORKTREE_ROOT="/workspace/openclaw-worktrees"Complete Setup Checklist
# 1. Install projects-manager (optional for local testing)# Skip if using hosted instance
# 2. Set preqstation-skill variablesexport PREQSTATION_API_URL="https://your-hosted-domain.vercel.app"export PREQSTATION_TOKEN="preq_xxxxx" # from /api-keys pageexport PREQSTATION_ENGINE="claude-code"
# 3. Set preqstation-openclaw variables (optional)export OPENCLAW_WORKTREE_ROOT="$HOME/openclaw-worktrees"
# 4. Verify connectivitycurl -H "Authorization: Bearer $PREQSTATION_TOKEN" \ "$PREQSTATION_API_URL/api/health"# Should return: {"status":"ok"}# GitHub Actions exampleenv: PREQSTATION_API_URL: https://your-preqstation-domain.vercel.app PREQSTATION_TOKEN: ${{ secrets.PREQSTATION_TOKEN }} PREQSTATION_ENGINE: claude-code OPENCLAW_WORKTREE_ROOT: /workspace/openclaw-worktrees
steps: - name: Install preqstation-skill run: npm install -g sonim1/preqstation-skillFROM node:22-alpine
# projects-managerENV AUTH_SECRET=your-secretENV OWNER_EMAIL=you@example.comENV OWNER_PASSWORD=secureENV DATABASE_URL=postgresql://...
# preqstation-skillENV PREQSTATION_API_URL=https://your-domain.vercel.appENV PREQSTATION_TOKEN=preq_xxxxxENV PREQSTATION_ENGINE=claude-code
# preqstation-openclawENV OPENCLAW_WORKTREE_ROOT=/app/worktrees
WORKDIR /appRUN npm install -g sonim1/preqstation-skillEnvironment Variable Scope
| Layer | Variables | Scope |
|---|---|---|
| Web Service | AUTH_SECRET, OWNER_EMAIL, OWNER_PASSWORD, DATABASE_URL, ALLOWED_ORIGINS, CRON_SECRET | Server-side only, set during deployment |
| MCP Server | PREQSTATION_API_URL, PREQSTATION_TOKEN, PREQSTATION_ENGINE | Available to all MCP tools and shell helpers |
| Execution | OPENCLAW_WORKTREE_ROOT | Affects where worktrees are created during task execution |
Secrets Best Practices
- Never commit secrets — Use
.env.local(git-ignored) - Use secret managers — GitHub Secrets, Vercel Env, HashiCorp Vault
- Rotate tokens regularly — Revoke old tokens from
/api-keyspage - Scope tokens narrowly — Use separate tokens per environment
- Monitor token usage — Check audit logs for suspicious activity