Skip to content

Commit b1305be

Browse files
committed
docs: add bootstrap install script
curl-pipe-bash one-liner that installs the setup skill, picks your coding agent (Claude Code or Codex), and launches an interactive onboarding session. Only redirects stdin via /dev/tty when piped β€” keeps the inherited fd untouched for direct execution so TUI apps get proper terminal control.
1 parent 7d354f2 commit b1305be

2 files changed

Lines changed: 77 additions & 1 deletion

File tree

β€ŽREADME.mdβ€Ž

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ Running coding agents in tmux? remobi lets you monitor and control them from you
3434
- **Config-driven** β€” your buttons, your gestures, your layout. Or let an AI agent configure it for you
3535
- **Self-hosted** β€” local-first by default. Bring your own access layer (Tailscale, Cloudflare, ngrok)
3636

37+
## Install
38+
39+
```bash
40+
curl -fsSL https://raw.githubusercontent.com/connorads/remobi/refs/heads/main/install.sh | bash
41+
```
42+
43+
Installs the setup skill, picks your coding agent, and walks you through the full setup interactively.
44+
3745
## Requirements
3846

3947
- [Node.js](https://nodejs.org/) β‰₯ 22
@@ -42,7 +50,7 @@ Running coding agents in tmux? remobi lets you monitor and control them from you
4250

4351
remobi uses standard ttyd flags (`--writable`, `-t`, `-i`) and should work with any recent ttyd release.
4452

45-
## Quick start
53+
## Manual setup
4654

4755
```bash
4856
# 1. Install

β€Žinstall.shβ€Ž

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
# Redirect stdin to the terminal only when piped (e.g. curl | bash).
5+
# When run directly, keep the inherited fd β€” TUI apps like claude need it untouched.
6+
if [ ! -t 0 ]; then
7+
exec < /dev/tty
8+
fi
9+
10+
echo ""
11+
echo " remobi β€” your terminal, everywhere"
12+
echo " https://github.com/connorads/remobi"
13+
echo ""
14+
echo " This script will:"
15+
echo " 1. Install the remobi setup skill (via npx skills)"
16+
echo " 2. Ask which coding agent you use"
17+
echo " 3. Start an interactive agent session that walks you through setup"
18+
echo ""
19+
read -r -p "Press Enter to continue..."
20+
21+
# ── Install the remobi-setup skill ──────────────────────────────────────────
22+
23+
echo ""
24+
echo "Installing the remobi setup skill..."
25+
echo ""
26+
npx skills add connorads/remobi
27+
echo ""
28+
29+
# ── Pick a coding agent ─────────────────────────────────────────────────────
30+
31+
echo "Which coding agent do you use?"
32+
echo " 1) Claude Code"
33+
echo " 2) Codex"
34+
printf "Choose [1-2]: "
35+
read -r choice
36+
37+
case "$choice" in
38+
1) agent="claude" ;;
39+
2) agent="codex" ;;
40+
*)
41+
echo "Invalid choice. Exiting."
42+
exit 1
43+
;;
44+
esac
45+
46+
# ── Check the agent is installed ────────────────────────────────────────────
47+
48+
if ! command -v "$agent" > /dev/null 2>&1; then
49+
echo ""
50+
echo "Error: '$agent' is not installed."
51+
echo ""
52+
case "$agent" in
53+
claude) echo " curl -fsSL https://claude.ai/install.sh | bash" ;;
54+
codex) echo " npm install -g @openai/codex" ;;
55+
esac
56+
echo ""
57+
echo "Install it, then re-run this script."
58+
exit 1
59+
fi
60+
61+
# ── Launch interactive setup session ────────────────────────────────────────
62+
63+
echo ""
64+
echo "Starting $agent with the remobi-setup skill..."
65+
echo ""
66+
67+
# exec replaces this shell with the agent process, giving it full terminal control
68+
exec "$agent" "Use the remobi-setup skill to onboard me."

0 commit comments

Comments
Β (0)