docs: refactor README into landing page + separate guide docs
README.md is now a concise landing page with badges, architecture,
highlights (linked titles), quick start, commands, roadmap, and
star history chart.
Detailed documentation moved to docs/guide/:
- getting-started.md: install, setup wizard, agent detection
- telegram-setup.md: bot setup, streaming, skill commands, topics
- usage.md: commands, sessions, workspaces, lazy resume
- configuration.md: full config reference, env vars, logging
- tunnel.md: providers, file/diff viewer, security, endpoints
- plugins.md: install/create channel adapters
- development.md: build, architecture, design decisions, paths
2026-03-20 15:35:59 +07:00
|
|
|
# Getting Started
|
|
|
|
|
|
|
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
|
|
- Node.js >= 20
|
|
|
|
|
- At least one ACP agent installed (e.g., `@zed-industries/claude-agent-acp`)
|
2026-03-23 14:53:16 +07:00
|
|
|
- A messaging platform — Telegram, Discord, or both:
|
|
|
|
|
- **Telegram**: A bot token from [@BotFather](https://t.me/BotFather) + a Supergroup with **Topics** enabled
|
|
|
|
|
- **Discord**: A bot from [Discord Developer Portal](https://discord.com/developers/applications) + a server with Manage Channels permissions
|
docs: refactor README into landing page + separate guide docs
README.md is now a concise landing page with badges, architecture,
highlights (linked titles), quick start, commands, roadmap, and
star history chart.
Detailed documentation moved to docs/guide/:
- getting-started.md: install, setup wizard, agent detection
- telegram-setup.md: bot setup, streaming, skill commands, topics
- usage.md: commands, sessions, workspaces, lazy resume
- configuration.md: full config reference, env vars, logging
- tunnel.md: providers, file/diff viewer, security, endpoints
- plugins.md: install/create channel adapters
- development.md: build, architecture, design decisions, paths
2026-03-20 15:35:59 +07:00
|
|
|
|
|
|
|
|
## Install
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
npm install -g @openacp/cli
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## First Run
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
openacp
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
On first run (no config file), an **interactive setup wizard** guides you through:
|
|
|
|
|
|
2026-03-23 14:53:16 +07:00
|
|
|
### Step 1: Choose Channel
|
docs: refactor README into landing page + separate guide docs
README.md is now a concise landing page with badges, architecture,
highlights (linked titles), quick start, commands, roadmap, and
star history chart.
Detailed documentation moved to docs/guide/:
- getting-started.md: install, setup wizard, agent detection
- telegram-setup.md: bot setup, streaming, skill commands, topics
- usage.md: commands, sessions, workspaces, lazy resume
- configuration.md: full config reference, env vars, logging
- tunnel.md: providers, file/diff viewer, security, endpoints
- plugins.md: install/create channel adapters
- development.md: build, architecture, design decisions, paths
2026-03-20 15:35:59 +07:00
|
|
|
|
2026-03-23 14:53:16 +07:00
|
|
|
- Pick your messaging platform: **Telegram**, **Discord**, or **Both**
|
docs: refactor README into landing page + separate guide docs
README.md is now a concise landing page with badges, architecture,
highlights (linked titles), quick start, commands, roadmap, and
star history chart.
Detailed documentation moved to docs/guide/:
- getting-started.md: install, setup wizard, agent detection
- telegram-setup.md: bot setup, streaming, skill commands, topics
- usage.md: commands, sessions, workspaces, lazy resume
- configuration.md: full config reference, env vars, logging
- tunnel.md: providers, file/diff viewer, security, endpoints
- plugins.md: install/create channel adapters
- development.md: build, architecture, design decisions, paths
2026-03-20 15:35:59 +07:00
|
|
|
|
2026-03-23 14:53:16 +07:00
|
|
|
### Step 2: Configure Channel(s)
|
docs: refactor README into landing page + separate guide docs
README.md is now a concise landing page with badges, architecture,
highlights (linked titles), quick start, commands, roadmap, and
star history chart.
Detailed documentation moved to docs/guide/:
- getting-started.md: install, setup wizard, agent detection
- telegram-setup.md: bot setup, streaming, skill commands, topics
- usage.md: commands, sessions, workspaces, lazy resume
- configuration.md: full config reference, env vars, logging
- tunnel.md: providers, file/diff viewer, security, endpoints
- plugins.md: install/create channel adapters
- development.md: build, architecture, design decisions, paths
2026-03-20 15:35:59 +07:00
|
|
|
|
2026-03-23 14:53:16 +07:00
|
|
|
**Telegram** (if selected):
|
|
|
|
|
- Enter your bot token from @BotFather
|
|
|
|
|
- Token is **validated** against the Telegram API — you'll see the bot name on success
|
docs: refactor README into landing page + separate guide docs
README.md is now a concise landing page with badges, architecture,
highlights (linked titles), quick start, commands, roadmap, and
star history chart.
Detailed documentation moved to docs/guide/:
- getting-started.md: install, setup wizard, agent detection
- telegram-setup.md: bot setup, streaming, skill commands, topics
- usage.md: commands, sessions, workspaces, lazy resume
- configuration.md: full config reference, env vars, logging
- tunnel.md: providers, file/diff viewer, security, endpoints
- plugins.md: install/create channel adapters
- development.md: build, architecture, design decisions, paths
2026-03-20 15:35:59 +07:00
|
|
|
- OpenACP **auto-detects** your supergroup by listening for messages (120s timeout)
|
2026-03-23 14:53:16 +07:00
|
|
|
- Send any message in your group while it's listening, or enter the chat ID manually
|
docs: refactor README into landing page + separate guide docs
README.md is now a concise landing page with badges, architecture,
highlights (linked titles), quick start, commands, roadmap, and
star history chart.
Detailed documentation moved to docs/guide/:
- getting-started.md: install, setup wizard, agent detection
- telegram-setup.md: bot setup, streaming, skill commands, topics
- usage.md: commands, sessions, workspaces, lazy resume
- configuration.md: full config reference, env vars, logging
- tunnel.md: providers, file/diff viewer, security, endpoints
- plugins.md: install/create channel adapters
- development.md: build, architecture, design decisions, paths
2026-03-20 15:35:59 +07:00
|
|
|
- Validates that it's a supergroup (required for forum topics)
|
|
|
|
|
|
2026-03-23 14:53:16 +07:00
|
|
|
**Discord** (if selected):
|
|
|
|
|
- Enter your bot token from the Discord Developer Portal
|
|
|
|
|
- Token is validated against the Discord API
|
|
|
|
|
- Select your server from detected guilds
|
docs: refactor README into landing page + separate guide docs
README.md is now a concise landing page with badges, architecture,
highlights (linked titles), quick start, commands, roadmap, and
star history chart.
Detailed documentation moved to docs/guide/:
- getting-started.md: install, setup wizard, agent detection
- telegram-setup.md: bot setup, streaming, skill commands, topics
- usage.md: commands, sessions, workspaces, lazy resume
- configuration.md: full config reference, env vars, logging
- tunnel.md: providers, file/diff viewer, security, endpoints
- plugins.md: install/create channel adapters
- development.md: build, architecture, design decisions, paths
2026-03-20 15:35:59 +07:00
|
|
|
|
2026-03-23 14:53:16 +07:00
|
|
|
### Step 3: Agents & Workspace
|
docs: refactor README into landing page + separate guide docs
README.md is now a concise landing page with badges, architecture,
highlights (linked titles), quick start, commands, roadmap, and
star history chart.
Detailed documentation moved to docs/guide/:
- getting-started.md: install, setup wizard, agent detection
- telegram-setup.md: bot setup, streaming, skill commands, topics
- usage.md: commands, sessions, workspaces, lazy resume
- configuration.md: full config reference, env vars, logging
- tunnel.md: providers, file/diff viewer, security, endpoints
- plugins.md: install/create channel adapters
- development.md: build, architecture, design decisions, paths
2026-03-20 15:35:59 +07:00
|
|
|
|
2026-03-23 14:53:16 +07:00
|
|
|
- The wizard automatically scans your system for known ACP agents (`claude-agent-acp`, `claude-code`, `claude`, `codex`)
|
|
|
|
|
- The first detected agent becomes the default
|
|
|
|
|
- Optionally install Claude CLI integration for session transfer (`/openacp:handoff`)
|
|
|
|
|
- Choose a base directory for project workspaces (default: `~/openacp-workspace`)
|
docs: refactor README into landing page + separate guide docs
README.md is now a concise landing page with badges, architecture,
highlights (linked titles), quick start, commands, roadmap, and
star history chart.
Detailed documentation moved to docs/guide/:
- getting-started.md: install, setup wizard, agent detection
- telegram-setup.md: bot setup, streaming, skill commands, topics
- usage.md: commands, sessions, workspaces, lazy resume
- configuration.md: full config reference, env vars, logging
- tunnel.md: providers, file/diff viewer, security, endpoints
- plugins.md: install/create channel adapters
- development.md: build, architecture, design decisions, paths
2026-03-20 15:35:59 +07:00
|
|
|
|
2026-03-23 14:53:16 +07:00
|
|
|
### Step 4: Run Mode
|
docs: refactor README into landing page + separate guide docs
README.md is now a concise landing page with badges, architecture,
highlights (linked titles), quick start, commands, roadmap, and
star history chart.
Detailed documentation moved to docs/guide/:
- getting-started.md: install, setup wizard, agent detection
- telegram-setup.md: bot setup, streaming, skill commands, topics
- usage.md: commands, sessions, workspaces, lazy resume
- configuration.md: full config reference, env vars, logging
- tunnel.md: providers, file/diff viewer, security, endpoints
- plugins.md: install/create channel adapters
- development.md: build, architecture, design decisions, paths
2026-03-20 15:35:59 +07:00
|
|
|
|
2026-03-23 14:53:16 +07:00
|
|
|
- Choose **foreground** (logs in terminal) or **daemon** (background service with auto-start)
|
docs: refactor README into landing page + separate guide docs
README.md is now a concise landing page with badges, architecture,
highlights (linked titles), quick start, commands, roadmap, and
star history chart.
Detailed documentation moved to docs/guide/:
- getting-started.md: install, setup wizard, agent detection
- telegram-setup.md: bot setup, streaming, skill commands, topics
- usage.md: commands, sessions, workspaces, lazy resume
- configuration.md: full config reference, env vars, logging
- tunnel.md: providers, file/diff viewer, security, endpoints
- plugins.md: install/create channel adapters
- development.md: build, architecture, design decisions, paths
2026-03-20 15:35:59 +07:00
|
|
|
|
|
|
|
|
### Done
|
|
|
|
|
|
|
|
|
|
Config is saved to `~/.openacp/config.json`. Edit it anytime — see [Configuration](configuration.md).
|
|
|
|
|
|
|
|
|
|
## What Happens on Startup
|
|
|
|
|
|
|
|
|
|
1. Config loaded and validated (Zod schema)
|
|
|
|
|
2. Logger initialized (Pino with file rotation)
|
|
|
|
|
3. Session store loaded (`~/.openacp/sessions.json`)
|
|
|
|
|
4. Tunnel service started (if enabled — default: Cloudflare)
|
|
|
|
|
5. Channel adapters registered and started
|
|
|
|
|
6. System topics created in Telegram (Notifications + Assistant)
|
|
|
|
|
7. Ready for messages
|
|
|
|
|
|
2026-03-20 17:13:48 +07:00
|
|
|
## Running as a Daemon
|
|
|
|
|
|
|
|
|
|
After setup, you can run OpenACP as a background service:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
openacp start # Start daemon
|
|
|
|
|
openacp stop # Stop daemon
|
|
|
|
|
openacp status # Check status
|
|
|
|
|
openacp logs # View logs
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Or configure daemon mode as default via `openacp config` → Run Mode.
|
|
|
|
|
|
docs: refactor README into landing page + separate guide docs
README.md is now a concise landing page with badges, architecture,
highlights (linked titles), quick start, commands, roadmap, and
star history chart.
Detailed documentation moved to docs/guide/:
- getting-started.md: install, setup wizard, agent detection
- telegram-setup.md: bot setup, streaming, skill commands, topics
- usage.md: commands, sessions, workspaces, lazy resume
- configuration.md: full config reference, env vars, logging
- tunnel.md: providers, file/diff viewer, security, endpoints
- plugins.md: install/create channel adapters
- development.md: build, architecture, design decisions, paths
2026-03-20 15:35:59 +07:00
|
|
|
## Next Steps
|
|
|
|
|
|
|
|
|
|
- [Telegram Setup](telegram-setup.md) — detailed bot & group configuration
|
2026-03-23 17:05:48 +07:00
|
|
|
- [Discord Setup](discord-setup.md) — detailed bot creation, permissions & server setup
|
2026-03-23 14:53:16 +07:00
|
|
|
- [Usage Guide](usage.md) — CLI commands, API, sessions, workspaces
|
2026-03-20 17:13:48 +07:00
|
|
|
- [Configuration Reference](configuration.md) — all config options including API and run mode
|
docs: refactor README into landing page + separate guide docs
README.md is now a concise landing page with badges, architecture,
highlights (linked titles), quick start, commands, roadmap, and
star history chart.
Detailed documentation moved to docs/guide/:
- getting-started.md: install, setup wizard, agent detection
- telegram-setup.md: bot setup, streaming, skill commands, topics
- usage.md: commands, sessions, workspaces, lazy resume
- configuration.md: full config reference, env vars, logging
- tunnel.md: providers, file/diff viewer, security, endpoints
- plugins.md: install/create channel adapters
- development.md: build, architecture, design decisions, paths
2026-03-20 15:35:59 +07:00
|
|
|
- [Tunnel & File Viewer](tunnel.md) — shareable code viewer
|