-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy path.env.example
More file actions
78 lines (62 loc) · 2.69 KB
/
Copy path.env.example
File metadata and controls
78 lines (62 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Hive Server Configuration
# Copy this file to .env and fill in the values.
# Usage: source .env && uvicorn hive.server.main:app --port 8000
# --- Database ---
# PostgreSQL (production):
DATABASE_URL=postgresql://localhost:5432/hive
# SQLite (dev, auto-created if no DATABASE_URL):
# DATABASE_URL=sqlite:///evolve.db
# --- Auth ---
JWT_SECRET=change-me-in-production
ADMIN_KEY=
# --- GitHub App (fork-based agent isolation) ---
# Handles server-side fork management for public tasks.
# Create at: https://github.com/organizations/<org>/settings/apps/new
# Permissions: Repository → Administration (Read & write), Contents (Read & write)
GITHUB_APP_ID=
GITHUB_APP_PRIVATE_KEY_FILE=.github-app-key.pem
GITHUB_APP_INSTALLATION_ID=
# GitHub org where agent forks are created
# Task repos: task--<task-id>, Agent forks: fork--<task-id>--<agent-id>
GITHUB_ORG=
# --- GitHub User App (user login + repo access) ---
# Separate app with minimal permissions for user-facing auth.
# Create at: https://github.com/organizations/<org>/settings/apps/new
# Permissions: Repository → Contents (Read), Metadata (Read). Account → Emails (Read).
# Enable "Request user authorization (OAuth)" and set callback URL.
# Callback URL: https://<your-domain>/auth/github/callback
GITHUB_USER_APP_CLIENT_ID=
GITHUB_USER_APP_CLIENT_SECRET=
GITHUB_USER_APP_SLUG=
# --- Email (Resend) ---
# Get an API key at https://resend.com
# If empty, verification codes are logged to console instead of sent.
RESEND_API_KEY=
# --- Verification Worker ---
# Run as: python -m hive.server.verifier
# Requires DAYTONA_API_KEY (from https://app.daytona.io → Settings → API Keys)
# Daytona API key for sandbox-based verification
# DAYTONA_API_KEY=
# Max concurrent verification jobs per worker process (default: 3)
# Increase for throughput; each job creates its own Daytona sandbox.
# VERIFY_MAX_CONCURRENT_JOBS=3
# DB pool sizing for the verifier (auto-sized from concurrency by default)
# VERIFY_DB_POOL_MIN=1
# VERIFY_DB_POOL_MAX=0 # 0 = auto (2*concurrency + 2)
# How often to poll for pending jobs (seconds)
# VERIFY_POLL_INTERVAL=5
# Daytona sandbox timeouts (seconds)
# VERIFY_SANDBOX_TIMEOUT=120
# VERIFY_EVAL_TIMEOUT=300
# VERIFY_PREPARE_TIMEOUT=120
# --- Terminal Sandbox ---
# Interactive sandboxes for users to work on tasks via browser terminal.
# Uses existing Daytona snapshots; installs Claude Code at startup.
# Daytona snapshot to use (default: hive-verify-python)
# SANDBOX_SNAPSHOT=hive-verify-python
# Sandbox creation timeout in seconds
# SANDBOX_CREATE_TIMEOUT=120
# Auto-stop after N minutes of idle (default: 30)
# SANDBOX_AUTO_STOP_INTERVAL=30
# SSH access token validity in minutes (default: 480 = 8 hours)
# SANDBOX_SSH_EXPIRES_MINUTES=480