- Keep GET /api/tunnel returning { enabled, url, provider } for backward
compat. New list endpoint at GET /api/tunnel/list.
- Re-attach inline keyboard after stop callback so remaining tunnels
keep their Stop buttons.
- Remove unnecessary (config as any) cast for maxUserTunnels.
- Skip system entries in restore() to prevent double-registration.
- Rename stopAll() → shutdown() (kills everything including system).
Add stopAllUser() for user-facing operations.
Tunnel Registry:
- Multi-port registry: each port gets its own cloudflared process + URL
- Two entry types: system (file viewer, hidden) and user (managed)
- Persistence to ~/.openacp/tunnels.json with debounced writes
- Restore tunnels on restart (re-spawn with new URLs)
- Max concurrent user tunnels (default: 5, configurable)
- Race condition handling for stop during spawn
- Provider-per-entry from TunnelProvider abstraction
Telegram:
- /tunnel <port> [label] — create tunnel
- /tunnels — list with inline Stop buttons
- /tunnel stop <port> — stop tunnel
- Session destroy auto-stops user tunnels with notification
CLI:
- openacp tunnel add/list/stop/stop-all subcommands
- Calls daemon API endpoints
Daemon API:
- POST /api/tunnel — create tunnel
- GET /api/tunnel — list user tunnels
- DELETE /api/tunnel/:port — stop tunnel
- DELETE /api/tunnel — stop all user tunnels
Agent Integration:
- Tunnel skill installed via openacp integrate claude
- ~/.claude/skills/openacp-tunnel/SKILL.md
- Broad trigger: "expose port", "share app", "preview on phone", etc.
- Product guide updated with tunnel CLI docs
Config:
- Added tunnel.maxUserTunnels (default: 5)
Resolves conflicts in package.json (keep both discord.js and
fastest-levenshtein) and pnpm-lock.yaml (regenerated).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: d7e8e9299f36
- Add "Channels" parent menu in config editor (choose Telegram/Discord inside)
- Add editDiscord() function for editing Discord bot token and guild ID
- Make setup step numbering dynamic based on channel selection
- Update hardcoded Telegram references to be channel-agnostic
- Update product guide to mention both Telegram and Discord
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Generate a random 64-char hex secret on first start, store at ~/.openacp/api-secret
with 0600 permissions. Validate Bearer token on every request except GET /api/health
and GET /api/version. Update api-client to auto-attach the token, and fix the adopt
command in commands.ts to use apiCall instead of raw fetch.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The createRequire import from 'node:module' was unused since the code
was refactored to use readFileSync instead of require() in ESM.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace Claude-only handoff with data-driven integration engine:
- Add AgentIntegrationSpec to define hooks, settings paths, output formats per agent
- Extend AGENT_CAPABILITIES with resume commands for 7 agents (Claude, Cursor, Gemini, Cline, Codex, Kilo, Amp)
- Add integration specs for 4 agents with hooks systems (Claude, Cursor, Gemini, Cline)
- Rewrite integrate.ts as generic engine: generates scripts, merges settings based on spec data
- Support both settings_json (Claude/Gemini/Cline) and hooks_json (Cursor) config formats
- Support both markdown commands (Claude) and skills (Cursor) for handoff triggers
- Auto-integrate handoff on agent install (CLI + Telegram bot)
- Auto-unintegrate on agent uninstall
- Backward compat: Claude keeps CLAUDE_SESSION_ID/CLAUDE_WORKING_DIR variable names
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add "Did you mean: X?" suggestions when users mistype commands, agent
names, config keys, or flags. Uses fastest-levenshtein with prefix and
substring matching for comprehensive typo detection across 7 integration
points: top-level commands, api subcommands, agents subcommands, agent
name lookups, integrate command, config set keys, and doctor flags.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Updated the agent installation process to display setup steps with tap-to-copy commands in Telegram. Introduced a new function to format setup steps, ensuring commands are easily accessible. Adjusted CLI examples for clarity and consistency, emphasizing first-run instructions for certain agents.
Updated CLI command functions to accept and utilize arguments, improving flexibility and usability. Added help messages for install, uninstall, and plugins commands. Enhanced API command help for better user guidance. Improved agent installation logic to ensure the latest package versions are used.
The agents run command was only passing user args, missing the agent's
own args (e.g., package name for npx). Now includes base args while
stripping ACP-specific flags (--acp, acp) so the interactive CLI works.
- Add per-agent setup info for 20+ agents (login commands, API keys, env vars)
- Create docs/guide/agents.md with detailed setup instructions for every agent
- Show setup steps automatically after agent installation (CLI + Telegram)
- Add `openacp agents run` command to execute agent CLI for login/config
- Rewrite CLI help with clear sections and examples
- Update assistant system prompt to use AgentCatalog for agent discovery
- Update product guide with agent management, registry info, and troubleshooting
- Add pagination to /agents in Telegram (6 per page, prev/next buttons)
- Show agent descriptions from ACP Registry in both CLI and Telegram
- Deduplicate agent picker logic (handleNew + startInteractiveNewSession)
- Improve CLI install progress with visual progress bar
- Add supported agents table and ACP Registry attribution to README
- Add social links and keywords to package.json and publish script
Add AgentCatalog service layer that fetches agents from the official ACP
Registry CDN, supports 3 distribution types (npx, uvx, binary), and
manages installed agents in ~/.openacp/agents.json.
- New core modules: agent-catalog, agent-store, agent-installer, agent-dependencies
- Bundle registry snapshot for offline fallback
- Auto-migrate existing config.agents to new agent store on startup
- CLI: openacp agents list/install/uninstall/refresh/info
- Telegram: /agents browser, /install command, per-session agent picker
- Setup flow rewritten to use registry with multi-select
- 28 agents available from registry (Claude, Gemini, Cursor, Copilot, etc.)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Introduced a new 'doctor' command in the CLI for running system diagnostics, including a dry-run option.
- Updated the Telegram adapter to integrate the 'doctor' command into the command structure and menu.
- Enhanced the README with a new section for screenshots showcasing the application interface.
- Updated the CLI configuration command to support setting values directly via arguments.
- Refactored session management to utilize a unified session creation pipeline, improving code organization and maintainability.
- Introduced new API endpoints for editable configuration fields and improved handling of session state changes.
- Enhanced the Telegram adapter to streamline session creation and management, including better integration with the command structure.
- Added tests for new session creation and configuration updates to ensure reliability.
- Updated session handoff terminology in documentation and code for clarity.
- Introduced new commands for managing sessions and integrations in Telegram.
- Improved session transfer functionality between terminal and Telegram.
- Enhanced message formatting to prevent HTML tag breaks during message splitting.
- Added integration management for agents, allowing installation and uninstallation of session transfer features.
This update improves user experience by streamlining session management and enhancing integration options.
Use getCurrentVersion() which walks up directories to find package.json
instead of hardcoded relative path that fails in global installs.
Bump version to 0.4.6.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Added commands for session handoff between Claude CLI and Telegram, allowing users to transfer sessions seamlessly.
- Introduced `adopt` and `integrate` commands in the CLI for managing agent sessions and integrations.
- Enhanced API server to support session adoption and improved agent capabilities reporting.
- Updated documentation to reflect new features and usage instructions for session handoff.
- Added an HTTP API to the OpenACP daemon for managing sessions and topics.
- Introduced `openacp api` CLI commands for creating, canceling, and querying sessions, as well as managing topics.
- Updated the API server to handle new endpoints for session details, health checks, and configuration management.
- Enhanced topic management with cleanup and deletion capabilities.
- Refactored existing CLI commands to align with the new API structure.
This update improves user interaction by allowing session and topic management directly from the command line, enhancing the overall functionality of OpenACP.
- Introduced the `OPENACP_SKIP_UPDATE_CHECK` environment variable to allow users to bypass update checks during server startup.
- Updated the `startServer` function to set this variable for both daemon and non-daemon child processes.
- Modified the `checkAndPromptUpdate` function to respect the new environment variable, enhancing flexibility in update management.
- Introduced `/restart` and `/update` commands for managing the OpenACP application directly from Telegram.
- Implemented logic to check for updates, notify users, and handle application restarts seamlessly.
- Enhanced menu options to include new commands, improving user interaction and accessibility.
- Updated session management to ensure proper handling of permission requests and session states during updates and restarts.