- README: add CLI commands section and runtime commands - Usage guide: add daemon mode, CLI runtime, config editor sections - Configuration: add run mode, API, env overrides documentation - Getting started: add daemon section Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: b83fe2edc3e8
2.4 KiB
2.4 KiB
Getting Started
Prerequisites
- Node.js >= 20
- At least one ACP agent installed (e.g.,
@zed-industries/claude-agent-acp) - A Telegram bot token (from @BotFather)
- A Telegram Supergroup with Topics enabled
Install
npm install -g @openacp/cli
First Run
openacp
On first run (no config file), an interactive setup wizard guides you through:
Step 1: Telegram Bot
- Enter your bot token from @BotFather
- Token is validated against the Telegram API — you'll see the bot name on success
- Option to retry if validation fails
Step 2: Group Chat
- OpenACP auto-detects your supergroup by listening for messages (120s timeout)
- Send any message in your group while it's listening
- If multiple groups are found, you pick from a list
- Alternatively, press
mto enter the chat ID manually - Validates that it's a supergroup (required for forum topics)
Step 3: Workspace
- Choose a base directory for project workspaces
- Default:
~/openacp-workspace - Named workspaces resolve to
{baseDir}/{name}
Agent Detection
The wizard automatically scans your system for known ACP agents:
claude-agent-acp(preferred)claude-codeclaudecodex
The first detected agent becomes the default. If none found, falls back to claude-agent-acp.
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 created in Telegram (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
- Usage Guide — CLI commands, runtime, sessions, workspaces
- Configuration Reference — all config options including API and run mode
- Tunnel & File Viewer — shareable code viewer