AI Chat Mode

Launch the interactive AI assistant by running chainalert with no arguments (or chainalert chat). The REPL uses gpt-5-mini with 25 registered tools that map to the ChainAlert API. Write operations (create, update, delete, test) require explicit y confirmation before executing.

Interactive Session

terminal — ai chat

$ chainalert

chainalert> show me my active detections on ethereum

[calling list_detections...]

You have 3 active detections on Ethereum Mainnet:

1. USDC Whale Monitor (large-transfer)

2. Treasury Drain Alert (fund-drainage)

3. Proxy Upgrade Watch (proxy-upgrade-slot)

chainalert> delete the proxy upgrade watch

[calling get_detection...]

Deleting detection det_x7y8z9

Proceed? [y/N] y

[calling delete_detection...]

Done — "Proxy Upgrade Watch" has been deleted.

Slash Commands

CommandAction
/quit or /exitExit the REPL
/clearReset conversation history
/helpShow available commands and example queries
/historyShow message count in current conversation

OpenAI Key Options

Proxied (default) — AI calls route through ChainAlert's API at /ai/v1. No OpenAI account needed.

BYOK — set your own OpenAI key with chainalert config set openai-key sk-... to call OpenAI directly.

Conversation Limits

Each chat session supports up to 50 messages. Use /history to check your current count and /clear to reset the conversation when needed.