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
2.1 KiB
2.1 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
Next Steps
- Telegram Setup — detailed bot & group configuration
- Usage Guide — commands, sessions, workspaces
- Configuration Reference — all config options
- Tunnel & File Viewer — shareable code viewer