AgentBell

Set up AgentBell

One command connects your computer and adds the Claude Code hooks. Other agents take one more line.

Last updated 9 November 2026 · by the AgentBell team at Surge Software

1. Install

You need Node.js 18 or newer. Run this in any terminal:

$npx -y https://agentbell.surgesoftware.co.in/agentbell.tgz setup

It does three things:

Only for one project? Run npx -y https://agentbell.surgesoftware.co.in/agentbell.tgz install --project inside it. The hooks then go to .claude/settings.local.json.

2. Turn on phone alerts

Claude Code

The hooks report these events:

Claude Code eventAgentBell shows
SessionStart, UserPromptSubmit, PreToolUseWorking
Notification (permission or question)Needs you, and your phone buzzes
StopFinished, with cost, tokens and changed files
StopFailure, PostToolUseFailureFailed, or a failure on the timeline
SessionEndClosed

Approve from your phone (Pro, Team, trial)

OpenAI Codex CLI

Add this line to ~/.codex/config.toml (use your home folder path):

notify = ["node", "/Users/you/.agentbell/agentbell.mjs", "codex"]

Codex reports when each turn finishes. AgentBell shows it as Finished and alerts you.

Cursor

Run npx -y https://agentbell.surgesoftware.co.in/agentbell.tgz install-cursor. It adds sessionStart, beforeSubmitPrompt, stop and sessionEnd hooks to ~/.cursor/hooks.json.

Any other agent or long command

agentbell run --name "nightly e2e" -- npm run e2e

You get Working while it runs, then Finished or Failed with the exit code and run time.

Private mode

agentbell private on sends only the status, project folder name, branch, and token and cost totals. No task line, no file names, no tool details. See Security for every field.

All commands

setup [--approvals]Connect, add hooks, send a test
login [--server URL]Connect this computer only
install [--project] [--approvals]Add Claude Code hooks
uninstall [--project]Remove AgentBell hooks. Your other hooks stay.
install-cursorAdd Cursor hooks
run [--name X] -- cmdWrap any command
status, testCheck the connection, send a test push
private on|offPrivate mode

Will it ever break my agent?

No. Each event has a 2-second limit. While you are offline, events wait in ~/.agentbell/queue.jsonl and are sent with the next event. The hook always exits cleanly. The only hook that waits is the opt-in approval hook, and it waits at most 90 seconds before handing back to the terminal.