@n1creator/openacp-cli 2026.712.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,326 @@
1
+ OpenACP — self-hosted bridge that connects 28+ AI coding agents (Claude Code, Codex, Gemini, Cursor) to Telegram, Discord & Slack. Your machine, your keys, your data.
2
+
3
+ <div align="center">
4
+
5
+ # OpenACP
6
+
7
+ **Control AI coding agents from Telegram, Discord & Slack**
8
+
9
+ Send a message. The agent writes code. You see everything — in real time.
10
+
11
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
12
+ [![Node.js >= 20](https://img.shields.io/badge/Node.js-%3E%3D%2020-green.svg)](https://nodejs.org/)
13
+ [![ACP Protocol](https://img.shields.io/badge/Protocol-ACP-purple.svg)](https://agentclientprotocol.org/)
14
+ [![npm](https://img.shields.io/npm/v/@n1creator/openacp-cli.svg)](https://www.npmjs.com/package/@n1creator/openacp-cli)
15
+ [![Twitter Follow](https://img.shields.io/twitter/follow/openacp_ai?style=social)](https://x.com/openacp_ai)
16
+
17
+ [Documentation](https://openacp.gitbook.io/docs) · [Quick Start](#quick-start) · [Features](#features) · [Agents](#supported-agents) · [Contributing](CONTRIBUTING.md) · [Discussions](https://github.com/an1creator/OpenACP/discussions)
18
+
19
+ <img src="docs/images/banner.jpg" alt="OpenACP — Control AI coding agents from Telegram, Discord and Slack" width="100%" />
20
+
21
+ </div>
22
+
23
+ ---
24
+
25
+ > **N1 Creator distribution.** This repository publishes the maintained fork as
26
+ > `@n1creator/openacp-cli` and `@n1creator/openacp-plugin-sdk`. Existing OpenACP
27
+ > workspaces remain compatible; migrate by replacing the global CLI package and
28
+ > restarting the same instance.
29
+
30
+ ## What is OpenACP?
31
+
32
+ OpenACP is a self-hosted bridge that connects AI coding agents to your messaging platforms. You chat with an AI agent through Telegram, Discord, or Slack — it reads your codebase, writes code, runs commands, and streams results back to you in real time.
33
+
34
+ Built on the open [Agent Client Protocol (ACP)](https://agentclientprotocol.org/). Your machine, your keys, your data.
35
+
36
+ ```
37
+ You (Telegram / Discord / Slack)
38
+
39
+ OpenACP (bridge + session manager)
40
+
41
+ AI Agent (Claude Code, Codex, Gemini, Cursor, ...)
42
+
43
+ Your Codebase
44
+ ```
45
+
46
+ ## Why OpenACP?
47
+
48
+ | Without OpenACP | With OpenACP |
49
+ |----------------|-------------|
50
+ | *"Its usage is currently focused on its dedicated terminal REPL and specific IDE integrations"* | Control from Telegram, Discord, or Slack — any device, anywhere |
51
+ | *"Codex Desktop App only works with local projects. It does not support development on remote hosts"* | Full remote development support — run agents on your server, manage from your phone |
52
+ | *"There's no way to trigger Claude Code sessions from external issue trackers"* | REST API for CI/CD integration and external triggers |
53
+ | *"Being able to use a proper mobile app UI would be much better than having to access sessions through ssh + tmux"* | Native Telegram/Discord UI — no SSH, no terminal on mobile |
54
+ | *"Cline is really burning up OpenRouter tokens and my wallet"* | Built-in usage tracking and monthly budget limits per session |
55
+
56
+ ## Use Cases
57
+
58
+ - **Remote coding** — Tired of being chained to your desk to run Claude Code? Review PRs, fix bugs, and deploy from your phone via Telegram while away from your desk.
59
+ - **Team visibility** — Share a Discord channel where everyone sees what the AI agent is doing in real time — no more black-box coding sessions.
60
+ - **Multi-agent workflows** — Start with Claude Code for planning, switch to Codex for implementation, use Gemini for review — all in one chat thread, no reconfiguration.
61
+ - **CI/CD integration** — Trigger agent sessions from GitHub Actions or any issue tracker via the REST API.
62
+ - **Self-hosted AI gateway** — Keep API keys and code on your own infrastructure. No third-party cloud, no vendor lock-in.
63
+ - **Local LLM support** — Run agents against self-hosted models (Ollama, LM Studio) via ACP-compatible adapters. Your models, your data.
64
+
65
+ <div align="center">
66
+ <table>
67
+ <tr>
68
+ <td align="center"><img src="docs/images/menu.png" width="250" alt="OpenACP control panel showing session management, agent selection, and settings menu in Telegram" /><br /><b>Control Panel</b><br />Manage sessions, agents, and settings</td>
69
+ <td align="center"><img src="docs/images/agent-working.png" width="250" alt="AI coding agent reading files, planning changes, and writing code through OpenACP Telegram interface" /><br /><b>Agent at Work</b><br />Plans, reads files, writes code</td>
70
+ </tr>
71
+ <tr>
72
+ <td align="center"><img src="docs/images/tool-calls.png" width="250" alt="Real-time tool call streaming showing agent actions like file reads, edits, and command execution" /><br /><b>Real-time Tool Calls</b><br />See every action the agent takes</td>
73
+ <td align="center"><img src="docs/images/skills.png" width="250" alt="OpenACP agent skills menu with options for brainstorming, TDD, debugging, and code review" /><br /><b>Agent Skills</b><br />Brainstorming, TDD, debugging & more</td>
74
+ </tr>
75
+ </table>
76
+ </div>
77
+
78
+ ## Installation
79
+
80
+ **Requirements:** Node.js 20+ (the installer handles this for you)
81
+
82
+ ### macOS
83
+
84
+ ```bash
85
+ curl -fsSL https://raw.githubusercontent.com/an1creator/OpenACP/main/scripts/install.sh | bash
86
+ ```
87
+
88
+ ### Linux
89
+
90
+ ```bash
91
+ curl -fsSL https://raw.githubusercontent.com/an1creator/OpenACP/main/scripts/install.sh | bash
92
+ ```
93
+
94
+ > Works on Debian/Ubuntu, Fedora/RHEL, Arch, and other distros. Also supports WSL (Windows Subsystem for Linux).
95
+
96
+ ### Windows
97
+
98
+ Open PowerShell and run:
99
+
100
+ ```powershell
101
+ powershell -c "irm https://raw.githubusercontent.com/an1creator/OpenACP/main/scripts/install.ps1 | iex"
102
+ ```
103
+
104
+ > Requires PowerShell 5.1+ (built into Windows 10/11).
105
+
106
+ ### Manual install via npm
107
+
108
+ If you do not have Node.js yet, install it first. For example, on macOS or Linux with `nvm`:
109
+
110
+ ```bash
111
+ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
112
+ export NVM_DIR="$HOME/.nvm"
113
+ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
114
+ nvm install --lts
115
+ nvm use --lts
116
+ ```
117
+
118
+ Then install OpenACP with npm:
119
+
120
+ ```bash
121
+ npm install -g @n1creator/openacp-cli
122
+ openacp
123
+ # → Interactive setup wizard starts:
124
+ # → ? Choose your platform: Telegram / Discord / Slack
125
+ # → ? Enter your bot token: ********
126
+ # → ? Select workspace directory: ~/projects
127
+ # → ? Choose default AI agent: Claude Code
128
+ # → ✓ Configuration saved. Starting OpenACP...
129
+ # → 🚀 OpenACP is running. Send a message to your bot!
130
+ ```
131
+
132
+ ---
133
+
134
+ After installation, the **interactive setup wizard** walks you through everything:
135
+
136
+ 1. Choose your platform (Telegram, Discord, Slack, or multiple)
137
+ 2. Connect your bot (token validation + auto-detection)
138
+ 3. Pick a workspace directory
139
+ 4. Select your default AI agent
140
+ 5. Choose run mode (foreground or daemon)
141
+
142
+ That's it. Send a message to your bot and start coding.
143
+
144
+ > **Need detailed setup for a specific platform?** See the [Platform Setup guides](https://openacp.gitbook.io/docs/platform-setup).
145
+
146
+ ## Features
147
+
148
+ ### Messaging Platforms
149
+
150
+ | Platform | Status | Highlights |
151
+ |----------|--------|------------|
152
+ | **Telegram** | Stable | Forum topics per session, streaming, permission buttons, voice |
153
+ | **Discord** | Stable | Thread-based sessions, slash commands, button interactions |
154
+ | **Slack** | Stable | Socket Mode, channel-based sessions, thread organization |
155
+
156
+ ### Core
157
+
158
+ - **28+ AI agents** — Claude Code, Codex, Gemini, Cursor, Copilot, and [more](#supported-agents)
159
+ - **Session management** — Each conversation gets its own thread/topic with auto-naming
160
+ - **Session persistence** — Sessions survive restarts, with configurable TTL
161
+ - **Permission control** — Approve or deny agent actions via buttons, with optional auto-approve
162
+ - **Real-time streaming** — See agent thinking, tool calls, and output as they happen
163
+ - **Agent switching** — Switch agents mid-conversation with `/switch`; history carries over automatically
164
+
165
+ ### Developer Tools
166
+
167
+ - **Tunnel & port forwarding** — Expose local ports to the internet (Cloudflare, ngrok, bore, Tailscale)
168
+ - **Built-in file viewer** — Monaco Editor with syntax highlighting, diffs, and markdown preview
169
+ - **Session transfer** — Move sessions between terminal and chat (`/handoff`)
170
+ - **Agent switch** — Change which AI agent handles your session mid-conversation (`/switch`)
171
+ - **Voice & speech** — Send voice messages, get spoken responses (Groq STT + Edge TTS)
172
+ - **Usage tracking** — Token counts, cost reports, optional monthly budget limits
173
+ - **Context resume** — Resume sessions with full conversation history
174
+
175
+ ### Operations
176
+
177
+ - **Daemon mode** — Run as a background service with auto-start on boot
178
+ - **CLI API** — Full REST API for automation (`openacp api ...`)
179
+ - **Plugin system** — Install adapters as npm packages
180
+ - **Doctor diagnostics** — `openacp doctor` checks everything and suggests fixes
181
+ - **Structured logging** — Pino with rotation, per-session log files
182
+
183
+ > **Full feature documentation** — [Documentation](https://openacp.gitbook.io/docs)
184
+
185
+ ## Supported Agents
186
+
187
+ OpenACP uses the [ACP Registry](https://agentclientprotocol.com/get-started/registry) — new agents are available as soon as they're registered.
188
+
189
+ | Agent | Type | Description |
190
+ |-------|------|-------------|
191
+ | [Claude Code](https://github.com/anthropics/claude-code) | npx | Anthropic's Claude coding agent |
192
+ | [Gemini CLI](https://github.com/google-gemini/gemini-cli) | npx | Google's Gemini CLI |
193
+ | [Codex CLI](https://github.com/openai/codex) | npx | OpenAI's coding assistant |
194
+ | [GitHub Copilot](https://github.com/github/copilot-cli) | npx | GitHub's AI pair programmer |
195
+ | [Cursor](https://www.cursor.com/) | binary | Cursor's coding agent |
196
+ | [Cline](https://github.com/cline/cline) | npx | Autonomous coding agent |
197
+ | [goose](https://github.com/block/goose) | binary | Open source AI agent by Block |
198
+ | Amp | binary | The frontier coding agent |
199
+ | [Auggie CLI](https://www.augmentcode.com/) | npx | Augment Code's context engine |
200
+ | [Junie](https://www.jetbrains.com/) | binary | AI coding agent by JetBrains |
201
+ | [Kilo](https://github.com/kilocode/kilo) | npx | Open source coding agent |
202
+ | [Qwen Code](https://github.com/QwenLM/qwen-code) | npx | Alibaba's Qwen assistant |
203
+ | ...and more | | [Full registry →](https://agentclientprotocol.com/get-started/registry) |
204
+
205
+ ```bash
206
+ openacp agents # Browse all agents
207
+ openacp agents install <name> # Install from registry
208
+ ```
209
+
210
+ ## CLI Overview
211
+
212
+ ```bash
213
+ # Server
214
+ openacp # Start (first run = setup wizard)
215
+ openacp start / stop / restart # Daemon management
216
+ openacp status # Check daemon status
217
+ openacp logs # Tail daemon logs
218
+
219
+ # Configuration
220
+ openacp config # Interactive config editor
221
+ openacp reset # Re-run setup wizard
222
+ openacp doctor # System diagnostics
223
+
224
+ # Sessions & API (requires running daemon)
225
+ openacp api new [agent] [workspace]
226
+ openacp api status
227
+ openacp api cancel <id>
228
+
229
+ # Tunnels
230
+ openacp tunnel add <port> [--label name]
231
+ openacp tunnel list
232
+ ```
233
+
234
+ > **Full CLI reference** — [CLI Commands](https://openacp.gitbook.io/docs/api-reference/cli-commands)
235
+
236
+ ## Documentation
237
+
238
+ | Section | Description |
239
+ |---------|-------------|
240
+ | [Getting Started](https://openacp.gitbook.io/docs/getting-started) | What is OpenACP, quickstart for users & developers |
241
+ | [Platform Setup](https://openacp.gitbook.io/docs/platform-setup) | Step-by-step guides for Telegram, Discord, Slack |
242
+ | [Using OpenACP](https://openacp.gitbook.io/docs/using-openacp) | Commands, sessions, agents, permissions, voice |
243
+ | [Self-Hosting](https://openacp.gitbook.io/docs/self-hosting) | Installation, configuration, daemon, security |
244
+ | [Features](https://openacp.gitbook.io/docs/features) | Tunnel, context resume, usage tracking, and more |
245
+ | [Extending](https://openacp.gitbook.io/docs/extending) | Plugin system, building adapters, contributing |
246
+ | [API Reference](https://openacp.gitbook.io/docs/api-reference) | CLI commands, REST API, config schema, env vars |
247
+ | [Troubleshooting](https://openacp.gitbook.io/docs/troubleshooting) | Common issues and FAQ |
248
+
249
+ ## Known Limitations
250
+
251
+ - **Early stage** — OpenACP is under active development; expect breaking changes between minor versions
252
+ - **Single user** — Currently designed for individual use; multi-user/team support is planned
253
+ - **Remote host** — Agents run on the same machine as OpenACP; to use on a remote server, install OpenACP on that server
254
+ - **Agent availability** — Some agents require their own API keys and local installation
255
+ - **Platform features** — Not all messaging platform features are supported equally (e.g., Slack threads vs Telegram forum topics)
256
+ - **No Windows daemon** — Daemon mode (auto-start on boot) currently supports macOS and Linux only
257
+
258
+ ## FAQ
259
+
260
+ ### Why use Telegram or Discord instead of just the terminal?
261
+ Most AI coding agents are locked to a terminal REPL or IDE. OpenACP lets you send messages, review code diffs, approve or deny actions, and monitor progress from any device — phone, tablet, or browser — without opening a laptop.
262
+
263
+ ### How is OpenACP different from MCP?
264
+ MCP (Model Context Protocol) is a standard for giving AI models access to tools and data sources. OpenACP uses the **Agent Client Protocol (ACP)** to manage full coding agent *sessions* — starting agents, streaming output, handling permissions, and routing results to your messaging platform. The two protocols are complementary: your agents can use MCP tools while OpenACP manages the session layer.
265
+
266
+ ### Can I auto-approve agent actions?
267
+ Yes. By default, OpenACP shows a permission button for destructive actions. You can configure [auto-approve rules](https://openacp.gitbook.io/docs/using-openacp) to skip confirmation for specific action types (e.g., read-only operations) while still requiring approval for file writes or shell commands.
268
+
269
+ ### How do I control API spending?
270
+ Set a monthly budget limit in your config. OpenACP tracks token usage and cost in real time and will pause the agent when the limit is reached. Run `openacp config` to set limits per session.
271
+
272
+ ### Can I use a local or self-hosted LLM?
273
+ Yes, if the model has a compatible agent CLI. Any agent that implements the ACP protocol can be registered. Community adapters exist for Ollama and LM Studio — run `openacp agents` to browse available options.
274
+
275
+ ### What happens if the agent gets stuck or the chat hangs?
276
+ Use `/cancel` in your chat to stop the current session. Run `openacp doctor` to check for connectivity or configuration issues. OpenACP's session persistence means you can resume with full context intact after a restart.
277
+
278
+ ### Does OpenACP send my code to the cloud?
279
+ No. OpenACP runs entirely on your machine. AI agents connect directly to your chosen provider using your own API keys. Nothing is routed through OpenACP servers.
280
+
281
+ ### Can I use multiple AI agents at the same time?
282
+ Each session uses one agent, but you can run multiple sessions simultaneously — one per thread/topic in your chat. Switch agents between sessions or start a new session with a different agent at any time.
283
+
284
+ ### Is OpenACP free?
285
+ Yes. OpenACP is MIT-licensed and free to self-host. You only pay for the AI provider API keys you choose to use.
286
+
287
+ ### How do I update OpenACP?
288
+ ```bash
289
+ openacp update
290
+ ```
291
+
292
+ To migrate from the upstream npm package:
293
+
294
+ ```bash
295
+ npm uninstall -g @openacp/cli
296
+ npm install -g @n1creator/openacp-cli@latest
297
+ openacp --dir ~/openacp-workspace restart
298
+ ```
299
+
300
+ ## Security
301
+
302
+ OpenACP grants AI agents access to your filesystem and shell. Before using in production:
303
+
304
+ - Run in a sandboxed environment or container when possible
305
+ - Review agent permissions — use the built-in permission gate to approve/deny actions
306
+ - Never expose your OpenACP instance to the public internet without authentication
307
+ - Keep your bot tokens secret — rotate them if compromised
308
+ - See the [Security guide](https://openacp.gitbook.io/docs/self-hosting/security) for hardening recommendations
309
+
310
+ ## Star History
311
+
312
+ <a href="https://star-history.com/#an1creator/OpenACP&Date">
313
+ <picture>
314
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=an1creator/OpenACP&type=Date&theme=dark" />
315
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=an1creator/OpenACP&type=Date" />
316
+ <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=an1creator/OpenACP&type=Date" />
317
+ </picture>
318
+ </a>
319
+
320
+ ## Contributing
321
+
322
+ We welcome contributions! See the [contributing guide](CONTRIBUTING.md) for development setup, testing conventions, and PR process. Have questions? Start a thread on [GitHub Discussions](https://github.com/an1creator/OpenACP/discussions).
323
+
324
+ ## License
325
+
326
+ [MIT](LICENSE)