Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Alerts

Three kinds of alerts, all optional:
Where it runsNeeds a browser tab open?Set up in
Desktopthis browseryes (it can be in the background)the bell, or Settings → Alerts
Discordthe bot (server-side)noSettings → Alerts → Discord, or DISCORD_WEBHOOK_URL
Telegramthe bot (server-side)noTELEGRAM_BOT_TOKEN + TELEGRAM_CHAT_ID
Desktop and Discord share the same alert types, each with its own toggle.

Desktop alerts (browser)

Desktop alerts settings
Settings → Alerts: desktop notifications and the per-type list.
Turn them on with the bell in the header or Settings → Alerts → Turn on alerts, then Send a test. Settings are stored in this browser only. While the dashboard tab is open (even in the background) you get a notification and the tab title flashes; clicking a notification jumps to that position. Play a short beep is optional.

Alert types

GroupTypes (default on unless noted)
Entriesposition opened, position adopted / managing
Flipsflip landed, partial flip, flip failed / not sent (urgent)
Exitstake profit, stop loss after bounce (urgent), hard stop (urgent), out-of-range timer exit, manual close, other close, closed outside the bot, swapped to SOL, dust left in wallet (off)
Risk changesstop armed; take profit confirming, out of range below, out of range above, back in range (off). Sent once per change, never every check.
Compound, swaps, problems, botcompounded, compound skipped, warnings (stuck tx, RPC), errors (failed close…, urgent), bot started, bot stopped
Include simulated (shadow) events is off by default, because Shadow mode logs many "would flip / would close" lines.

Discord

The bot posts alerts to a Discord channel through a webhook, so they arrive with no browser open, in Shadow, watch-only and Live modes alike.
Discord settings
Settings → Alerts → Discord. The webhook URL is blurred here: treat it like a password.
  1. Create a webhook
    In Discord: channel settings → Integrations → Webhooks → New Webhook → Copy Webhook URL.
  2. Save it
    In Settings → Alerts → Discord, paste the URL and Save webhook. It's written to the env file as DISCORD_WEBHOOK_URL (owner-only permissions), shown only as "saved" afterwards, and never returned by /api/status or written to the logs.
  3. Test it
    Send test alert posts a clearly labelled TEST message and shows the Discord message id or the exact error (invalid webhook, rate limited, network). Send sample of each type posts one SAMPLE per alert type. A URL typed but not saved yet is tested instead of the saved one.
  4. Pick what to send
    Each alert type is its own toggle (same list as desktop), with Defaults · All · None. Send alerts to Discord switches them all off without forgetting the webhook. Click Save Discord settings.
Discord mention and test
Mention on urgent alerts, and the test buttons.
Mention on urgent alerts: an optional role <@&roleId>, user <@userId> or @here, added only to urgent alerts: stop loss, hard stop, failed flips and errors. Tests never ping.
Messages are embeds coloured by outcome (green: flip landed, profit close, compounded; red: stops, loss close, errors; amber: warnings; blue: opened / managing; grey: simulated). Close embeds include the reason, PnL % and SOL, value at close, hold time, flips and Solscan links. Sends are queued one at a time within Discord's limit (5 per 2 s), honour 429 retry_after, drop the oldest beyond 50 queued, and never hold up the bot. If Discord answers 401 / 403 / 404 the webhook is gone or wrong: alerts pause until you save a new URL or a test succeeds.

Environment variables

Everything above can also come from the environment (for example Railway Variables). A webhook saved in the dashboard wins.
KeyMeaningDefault
DISCORD_WEBHOOK_URLhttps://discord.com/api/webhooks/<id>/<token>. A secret.not set
DISCORD_MENTIONping on urgent alerts, e.g. <@&roleId>, <@userId>, @herenone
DISCORD_INCLUDE_SIMalso send simulated (shadow) eventsfalse
DISCORD_ALERTSfalse keeps the webhook saved but sends nothingtrue
DISCORD_AVATAR_URLoptional https image for the webhook avatar / embed authornone
Anyone with the webhook URL can post to that channel. Don't paste it in screenshots, issues or chats. If it leaks, delete the webhook in Discord and save a new one.

Telegram (optional)

Set TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID to receive send-only alerts in a Telegram chat. These work with no dashboard tab open. Risk-change alerts (out of range, back in range…) are not sent to Telegram.
On phones the bell is available, but browser notifications on mobile are limited; Discord or Telegram are more reliable there.