OpenACP/docs/guide/getting-started.md
dylan 3241f4923d feat: add multi-adapter support for session adopt
- Add --channel flag to `openacp adopt` CLI command to target specific adapter
- Update adoptSession in core to accept channelId parameter and route to correct adapter
- Support Discord threadId alongside Telegram topicId in existing session lookup
- Update handoff script and integrate command to pass channel parameter
- Update docs to reflect multi-platform support

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 4c66b7011536
2026-03-24 09:39:32 +07:00

2.9 KiB

Getting Started

Prerequisites

  • Node.js >= 20
  • At least one ACP agent installed (e.g., @zed-industries/claude-agent-acp)
  • A messaging platform — Telegram, Discord, or both:

Install

npm install -g @openacp/cli

First Run

openacp

On first run (no config file), an interactive setup wizard guides you through:

Step 1: Choose Channel

  • Pick your messaging platform: Telegram, Discord, or Both

Step 2: Configure Channel(s)

Telegram (if selected):

  • Enter your bot token from @BotFather
  • Token is validated against the Telegram API — you'll see the bot name on success
  • OpenACP auto-detects your supergroup by listening for messages (120s timeout)
  • Send any message in your group while it's listening, or enter the chat ID manually
  • Validates that it's a supergroup (required for forum topics)

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

Step 3: Agents & Workspace

  • 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)

Step 4: Run Mode

  • Choose foreground (logs in terminal) or daemon (background service with auto-start)

Done

Config is saved to ~/.openacp/config.json. Edit it anytime — see Configuration.

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/channels created (Notifications + Assistant)
  7. Ready for messages

Running as a Daemon

After setup, you can run OpenACP as a background service:

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.

Next Steps