Skip to content

Quickstart — first session in 60 seconds

From install to your first running agent session.

1. Pre-flight

Make sure you have git, tmux, and a provider CLI (e.g. Claude Code) installed, then:

Terminal window
ainb init --check # verify prerequisites without changing anything
ainb auth # set up authentication if needed

2. Launch

Terminal window
ainb

First launch runs onboarding. From the home screen, press s for Sessions or n to start a new session immediately.

3. Spawn a session (CLI)

You can also start a session straight from the shell. Isolate it in a worktree and attach in one step:

Terminal window
ainb run --repo . --worktree --attach

Useful variants:

Terminal window
ainb run --repo . # current directory, no worktree
ainb run --repo . --create-branch feat/new # new branch + worktree
ainb run --tool codex --repo . # use Codex instead of Claude
ainb run --remote-repo owner/repo # clone a GitHub repo first
ainb run --repo . -p "fix the failing tests" # send an initial prompt

4. Attach, detach, reattach

Terminal window
ainb list # see running sessions
ainb attach my-project # drop into the session's tmux

Detach with your tmux detach key (default Ctrl-b d) — the agent keeps running. Reattach any time with ainb attach <name>.

5. Kill a session safely

Terminal window
ainb kill my-project # prompts for confirmation
ainb kill my-project -f # force, no prompt

Where to go next