Getting Started

This guide shows the shortest path from install to a working local agent session.

If you are using Codex or Claude Code, start with Onboarding With The AgentInbox Skill. That is the preferred first-run path.

Prerequisites

Install AgentInbox globally:

npm install -g @holon-run/agentinbox

Or run it directly:

npx @holon-run/agentinbox --help

Daemon

AgentInbox runs as a local daemon and stores state in ~/.agentinbox by default.

Start it explicitly:

agentinbox daemon start

Inspect it:

agentinbox daemon status

Most CLI commands can auto-start the daemon if it is not already running.

Default paths:

Register The Current Session

Register the current terminal session as an agent:

agentinbox agent register
agentinbox agent register --agent-id agent-alpha

This detects the current runtime and terminal context, assigns or restores an agentId, creates the agent inbox, and attaches a terminal activation target.

If you already use gh for GitHub authentication, import it into uxc before adding GitHub-backed sources:

uxc auth credential import github --from gh

Local Event Flow

The shortest end-to-end flow is a local source:

agentinbox source add local_event local-demo
agentinbox subscription add <agent_id> <source_id>
agentinbox source event <source_id> \
  --native-id demo-1 \
  --event local.demo \
  --metadata-json '{"channel":"engineering"}' \
  --payload-json '{"text":"hello from a local producer"}'
agentinbox inbox read <agent_id>

GitHub Repo CI Example

agentinbox source add github_repo_ci holon-run/agentinbox \
  --config-json '{"owner":"holon-run","repo":"agentinbox","uxcAuth":"github-default","pollIntervalSecs":30}'
agentinbox subscription add <agent_id> <source_id> \
  --match-json '{"status":"completed","conclusion":"failure","headBranch":"main"}'
agentinbox source poll <source_id>

Terminal Support

Upgrade Expectations

AgentInbox is still early beta software.