0xmrpeter 1051a66f32 feat(agent): implement findPackageRoot function to dynamically locate package.json
- Replaced hardcoded path resolution with findPackageRoot to support various directory structures for agent commands.
- Ensures compatibility with both TypeScript compilation and bundling scenarios.
2026-03-20 17:54:43 +07:00
2026-03-20 16:16:53 +07:00

OpenACP

Self-hosted bridge between messaging platforms and AI coding agents

One message, any channel, any agent.

License: AGPL-3.0 Node.js >= 20 ACP Protocol

Getting Started | Usage | Configuration | Tunnel | Plugins | Development


Send a message in Telegram. An AI coding agent picks it up, writes code, runs commands, and streams everything back — in real time.

OpenACP connects messaging platforms (Telegram, Discord, ...) to AI coding agents (Claude Code, Codex, ...) via the Agent Client Protocol (ACP). You host it, you own the data.

Architecture

You (Telegram / Discord / ...)
  ↓
OpenACP ─── ChannelAdapter ─── Session Manager ─── Session Store
  ↓                                                     ↓
ACP Protocol (JSON-RPC / stdio)                  Tunnel Service
  ↓                                                     ↓
AI Agent (Claude Code, Codex, ...)            File/Diff Viewer (Monaco)

Highlights

  • Multi-agent — Claude Code, Codex, or any ACP-compatible agent
  • Telegram — Forum topics, real-time streaming, permission buttons, skill commands
  • Tunnel & Viewer — Public file/diff viewer via Cloudflare, ngrok, bore, Tailscale
  • Session persistence — Lazy resume across restarts
  • Setup wizard — Interactive first-run setup with bot validation and auto-detect
  • Plugin system — Install channel adapters as npm packages
  • Structured logging — Pino with rotation, per-session log files
  • Self-hosted — Your keys, your data, your machine

Quick Start

npm install -g @openacp/cli
openacp

First run launches an interactive setup wizard that validates your bot token, auto-detects your Telegram group, and finds installed agents.

Commands

Command Description
/new [agent] [workspace] Create a new session
/new_chat New session, same agent & workspace
/cancel Cancel current session
/status Show session or system status
/agents List available agents

Roadmap

  • Phase 1 — Core + Telegram + ACP agents
  • Phase 2 — Tunnel/file viewer, session persistence, logging, plugin system
  • Phase 3 — Agent skills as commands, Discord adapter, Web UI
  • Phase 4 — Voice control, file/image sharing
  • Phase 5 — WhatsApp, agent chaining, plugin marketplace

Star History

Star History Chart

Contributing

See development guide.

License

AGPL-3.0

Description
Self-hosted bridge that lets you interact with AI coding agents (Claude Code, Codex, etc.) from messaging platforms (Telegram, Discord, etc.) via the Agent Client Protocol (ACP).
Readme MIT 7.5 MiB
Languages
TypeScript 96.8%
Shell 1.6%
JavaScript 1%
PowerShell 0.6%