|
| 1 | +# Hornet agent configuration schema |
| 2 | +# See CONFIGURATION.md for details on each variable. |
| 3 | +# |
| 4 | +# Secrets live at ~/.config/.env (600 perms, never committed). |
| 5 | +# This schema is deployed to ~/.config/.env.schema alongside the .env file. |
| 6 | +# |
| 7 | +# @defaultSensitive=true |
| 8 | +# @defaultRequired=false |
| 9 | +# --- |
| 10 | + |
| 11 | +# ── LLM Access ─────────────────────────────────────────────────────────────── |
| 12 | + |
| 13 | +# API key for the LLM provider (Anthropic, OpenAI, or a proxy) |
| 14 | +# @required @type=string |
| 15 | +# @docs(https://docs.anthropic.com/en/api/getting-started) |
| 16 | +OPENCODE_ZEN_API_KEY= |
| 17 | + |
| 18 | +# ── GitHub ─────────────────────────────────────────────────────────────────── |
| 19 | + |
| 20 | +# GitHub Personal Access Token (fine-grained, scoped to agent repos) |
| 21 | +# @required @type=string(startsWith=ghp_) |
| 22 | +# @docs(https://github.com/settings/tokens) |
| 23 | +GITHUB_TOKEN= |
| 24 | + |
| 25 | +# ── Slack ──────────────────────────────────────────────────────────────────── |
| 26 | + |
| 27 | +# Slack bot OAuth token |
| 28 | +# @required @type=string(startsWith=xoxb-) |
| 29 | +# @docs("Create a Slack app", https://api.slack.com/apps) |
| 30 | +SLACK_BOT_TOKEN= |
| 31 | + |
| 32 | +# Slack app-level token (Socket Mode) |
| 33 | +# @required @type=string(startsWith=xapp-) |
| 34 | +SLACK_APP_TOKEN= |
| 35 | + |
| 36 | +# Comma-separated Slack user IDs allowed to interact with the agent |
| 37 | +# Bridge refuses to start without at least one user ID. |
| 38 | +# @required @sensitive=false @type=string |
| 39 | +# @example="U01ABCDEF,U02GHIJKL" |
| 40 | +SLACK_ALLOWED_USERS= |
| 41 | + |
| 42 | +# ── Email Monitor ──────────────────────────────────────────────────────────── |
| 43 | + |
| 44 | +# AgentMail API key |
| 45 | +# @type=string |
| 46 | +# @docs(https://app.agentmail.to) |
| 47 | +AGENTMAIL_API_KEY= |
| 48 | + |
| 49 | +# Agent's monitored email address |
| 50 | +# @sensitive=false @type=email |
| 51 | +HORNET_EMAIL= |
| 52 | + |
| 53 | +# Shared secret for email sender authentication |
| 54 | +# @type=string |
| 55 | +HORNET_SECRET= |
| 56 | + |
| 57 | +# Comma-separated sender email allowlist |
| 58 | +# @sensitive=false @type=string |
| 59 | +# @example="you@example.com,teammate@example.com" |
| 60 | +HORNET_ALLOWED_EMAILS= |
| 61 | + |
| 62 | +# ── Sentry (optional) ─────────────────────────────────────────────────────── |
| 63 | + |
| 64 | +# Sentry API bearer token |
| 65 | +# @type=string |
| 66 | +# @docs(https://sentry.io/settings/account/api/auth-tokens/) |
| 67 | +SENTRY_AUTH_TOKEN= |
| 68 | + |
| 69 | +# Sentry organization slug |
| 70 | +# @sensitive=false @type=string |
| 71 | +SENTRY_ORG= |
| 72 | + |
| 73 | +# Slack channel ID for Sentry alerts |
| 74 | +# @sensitive=false @type=string(startsWith=C) |
| 75 | +SENTRY_CHANNEL_ID= |
| 76 | + |
| 77 | +# ── Slack Channels (optional) ─────────────────────────────────────────────── |
| 78 | + |
| 79 | +# Additional monitored channel (responds to all messages, not just @mentions) |
| 80 | +# @sensitive=false @type=string(startsWith=C) |
| 81 | +SLACK_CHANNEL_ID= |
| 82 | + |
| 83 | +# ── Kernel (optional) ─────────────────────────────────────────────────────── |
| 84 | + |
| 85 | +# Kernel cloud browser API key |
| 86 | +# @type=string |
| 87 | +# @docs(https://kernel.computer) |
| 88 | +KERNEL_API_KEY= |
| 89 | + |
| 90 | +# ── Tool Guard ─────────────────────────────────────────────────────────────── |
| 91 | + |
| 92 | +# Unix username of the agent |
| 93 | +# @sensitive=false @type=string |
| 94 | +HORNET_AGENT_USER=hornet_agent |
| 95 | + |
| 96 | +# Agent's home directory |
| 97 | +# @sensitive=false @type=string |
| 98 | +HORNET_AGENT_HOME=/home/hornet_agent |
| 99 | + |
| 100 | +# Path to admin-owned source repo (enables source repo write protection) |
| 101 | +# @sensitive=false @type=string |
| 102 | +HORNET_SOURCE_DIR= |
| 103 | + |
| 104 | +# ── Bridge ─────────────────────────────────────────────────────────────────── |
| 105 | + |
| 106 | +# Local HTTP API port for outbound Slack messages |
| 107 | +# @sensitive=false @type=port |
| 108 | +BRIDGE_API_PORT=7890 |
| 109 | + |
| 110 | +# Target pi session ID (auto-detects control-agent if unset) |
| 111 | +# @sensitive=false @type=string |
| 112 | +PI_SESSION_ID= |
0 commit comments