- 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
2.9 KiB
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:
- Telegram: A bot token from @BotFather + a Supergroup with Topics enabled
- Discord: A bot from Discord Developer Portal + a server with Manage Channels permissions
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
- Config loaded and validated (Zod schema)
- Logger initialized (Pino with file rotation)
- Session store loaded (
~/.openacp/sessions.json) - Tunnel service started (if enabled — default: Cloudflare)
- Channel adapters registered and started
- System topics/channels created (Notifications + Assistant)
- 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
- Telegram Setup — detailed bot & group configuration
- Discord Setup — detailed bot creation, permissions & server setup
- Usage Guide — CLI commands, API, sessions, workspaces
- Configuration Reference — all config options including API and run mode
- Tunnel & File Viewer — shareable code viewer