| Variable | Default | Description |
|---|
PORT | 3000 | HTTP/WebSocket server port |
HOST | 0.0.0.0 | Bind address |
ORCHESTRATOR_URL | http://localhost:3000 | Backend API URL — used by MCP server for streaming endpoints |
PORTAL_URL | http://localhost:3001 | Portal frontend URL — used for sign-in redirect |
NEXT_PUBLIC_ORCHESTRATOR_URL | http://localhost:3000 | Client-side orchestrator URL for cross-app links |
NEXT_PUBLIC_PORTAL_URL | http://localhost:3001 | Client-side portal URL for cross-app links |
| Variable | Default | Description |
|---|
GITHUB_TOKEN | (none) | GitHub PAT — increases rate limit from 60 to 5,000 req/hr |
AZURE_DEVOPS_PAT | (none) | Azure DevOps personal access token for ticket fetching |
| Variable | Agent | Description |
|---|
ANTHROPIC_API_KEY | Claude Code | Anthropic API key (or authenticate via Claude OAuth token in the dashboard) |
OPENAI_API_KEY | Codex | OpenAI API key |
COPILOT_GITHUB_TOKEN | GitHub Copilot | Copilot authentication token |
GH_TOKEN | GitHub Copilot | GitHub token for CLI operations |
| Variable | Default | Description |
|---|
ORCHESTRATOR_WS_URL | ws://localhost:3000/ws/worker | WebSocket URL the agent connects to |
WORKER_NAME | (system hostname) | Override the worker’s display name |
AGENT_MODE | byom | Worker mode — byom (bring-your-own-machine) or fleet |
AGENT_CONFIG | (none) | Override YAML config file path (fleet mode) |
DATA_DIR | /data | Data directory for volume isolation (fleet mode) |
PODMAN_PATH | (auto-detected) | Override the Podman binary path |
SECURITY_FLOOR | (none) | Enforced minimum security profile for containers |
The CLI stores configuration in ~/.cropscode/config.json. The only user-configurable key is WORKER_NAME. Use cropscode config set to manage it.
See CLI: config for details.