Run AI coding agents from chat, automation, or your own integration.
Self-hosted sessions for Codex, Cursor, Claude Code, Gemini, and other ACP agents — with native speech-to-text, scoped proxy routing, and real-time control from Telegram, Discord, Slack, REST, or SSE.
Quick Start · Capabilities · Agents · Documentation · Contributing
OpenACP runs on your machine and connects messaging or API clients to local ACP agent processes. It owns session lifecycle, permissions, streaming, files, speech, and routing; the selected agent works in your configured workspace with its own provider credentials.
Telegram / Discord / Slack / REST / SSE
↓
OpenACP session bridge
├─ permissions and streaming
├─ speech and file handling
└─ scoped network routing
↓
Codex / Cursor / Claude / Gemini / ACP agent
↓
Your workspace
![]() Control Panel Sessions, agents, and settings |
![]() Agent at Work Plans, tools, and output in real time |
![]() Tool Calls Review actions as they happen |
![]() Agent Skills Reusable coding workflows |
Requirement: Node.js 22 or newer. Node.js 20 is unsupported because the bundled ACP agent runtime requires Node.js 22; Node.js 24 LTS is recommended.
npm install -g @n1creator/openacp-cli
openacpThe first run opens an interactive setup wizard. Choose one or more connectors, provide their credentials, select a workspace and default agent, then choose foreground or daemon mode.
openacp doctor # validate the installation
openacp status # inspect the running instance
openacp logs # follow daemon logsPlatform-specific setup is in the maintained Telegram, Discord, and Slack guides.
- Run modern Codex and Cursor ACP processes alongside Claude Code, Gemini CLI, and other ACP-compatible agents.
- Launch npx and uvx adapters from the exact reviewed registry version and environment. Local command, argument, or environment overrides still run as generic ACP agents but cannot unlock registry-specific controls. Binary downloads support registry zip, tar, and raw-executable targets, verify published SHA-256 digests, and replace the installed runtime transactionally. If removal of the replaced runtime is temporarily blocked, installation still reports success with a cleanup-pending warning and retries only a safely marked artifact; otherwise it gives a manual-cleanup warning.
- Read model, mode, and reasoning choices from each agent at runtime instead of maintaining a hard-coded model list.
- Keep one persistent session per topic, thread, or API session; resume it after process restarts.
- Switch agents with
/switch, transfer work between terminal and chat with/handoff, and cancel safely with/cancel. Agent switches suspend old controls immediately, preserve explicit connector detaches, and activate the new runtime controls only after the runtime, bridges, and stored session identity commit as one recoverable operation. - Review permission requests through connector controls or configure narrowly scoped approval behavior.
- Answer ACP form requests in Telegram or through authenticated REST/SSE clients; values are validated, returned only to the requesting agent, and never written to session history.
- Use the standard session actions (
compact,goal,logout,mcp,plan,review,review-branch,review-commit,skills, andstatus) from connector buttons when the current agent advertises them. System slash commands keep precedence regardless of letter case. With an attested official Codex adapter installation,/skillsreturns a compact names-only inventory without starting or disturbing a model turn; invoke a listed skill with$nameas usual. OpenACP filters only its connector action UI and does not change the command or skill inventory visible to the model inside Codex.
| Interface | Session mapping | Highlights |
|---|---|---|
| Telegram | Forum topics | Commands, buttons, streaming, files, voice |
| Discord | Threads | Commands, interactions, files, streaming |
| Slack | Channels and threads | Socket Mode, commands, files, streaming |
| REST + SSE | API session IDs | Automation, attachments, live event streams |
The core session pipeline is connector-neutral. An external adapter gets the same session, attachment, speech, permission, structured-input, and agent-routing behavior when it implements the standard adapter contract. Adapters without a form renderer receive a visible REST fallback for non-sensitive requests.
Local automation can also deliver a host file to one exact live session through
the acknowledged attachment API. OpenACP keeps provider credentials and chat or
topic identifiers inside the host, stages the upload through its file service,
and reports success only after a supporting adapter returns a provider message
ID. The three versioned routes are loopback-only and require the
attachments:send API scope. When an exact agent-session lookup has zero live
matches, callers can explicitly opt in to the canonical Telegram Assistant;
multiple matches never fall back. Each resolved response reports
explicit_session, agent_session, or default_assistant in routeKind.
See Files and Media
and the REST API reference.
STT is a built-in OpenACP service, not Telegram-specific glue. Any compatible bridge can submit a standard audio attachment:
audio attachment
├─ agent supports native audio → pass the original attachment
└─ otherwise → local faster-whisper or Groq STT → append transcript to prompt
local-whisperruns on the OpenACP host without an API key. The npm package includes the provider and executable bootstrap script; npm installation does not install system Python oruv, and it does not downloadfaster-whisperor a speech model.- The first local transcription creates an isolated environment, installs
faster-whisper, and downloads the selected model through theservices.speechDownloadsroute. Later requests reuse the environment and model caches. - Local transcription has a 10-minute default time limit so first-run setup and CPU inference can complete. Cancelling the prompt also stops the local helper and its descendants before the next queued prompt starts.
- Groq provides an optional hosted STT path.
- Failed transcription shows a bounded, credential-redacted warning, keeps the session active, and preserves the original audio for the agent instead of silently dropping it.
- In Telegram, open Settings → Speech-to-text or use
/speechto see the selected method and setup state, choose Off, Local, or Groq, and edit local settings. Discord and Slack use the same service after host configuration withopenacp plugin configure @openacp/speech; their current adapters do not register a native/speechslash command. A candidate Groq key is checked before it can replace the saved hidden key; changes hot-reload without replacing TTS providers.
Local Whisper needs either uv or Python 3 with working venv support. Settings → Speech-to-text → Check setup and openacp doctor are preliminary checks: they confirm that the bundled script is executable and that an uv or python3 command exists. Python 3 without venv support can pass that check and then fail visibly during the first transcription; the original audio is kept. Install or configure uv, or make python3 -m venv work, ensure services.speechDownloads can reach dependency and model sources, then retry the check and resend the audio. See Voice and Speech.
Proxy profiles describe endpoints; routes decide which traffic uses them. OpenACP supports HTTP, HTTPS, SOCKS5, and SOCKS5H, with independent scopes for channels, agents, services, and plugins.
global: direct
channels.telegram: profile:primary
agents.codex: profile:primary
agents.cursor: direct
services.default: direct
- In Telegram, open Settings → Network proxy or use
/proxy. Current Discord and Slack adapters do not register a native/proxyslash command, so manage their shared routes with the CLI or authenticated REST API. The status-first menu separates saved overrides from effective inherited routes and lets a tested profile be assigned directly to human-labelled traffic. - CLI and REST automation are available through
openacp proxyand/api/v1/proxy. directremoves inherited proxy environment variables from the selected ACP process. An explicitinheritroute uses host proxy environment variables; clearing an exact override returns that traffic to its category/global parent route.- Credentials are write-only, stored separately in a mode-0600 secret store, and never returned in route or status data.
- Protected JSON imports accept a write-only Quick URL in
proxyUrl; it requires an explicit port and is mutually exclusive with separate endpoint or credential fields. - Telegram deletes credential replies before use; environments without that guarantee use protected CLI/API input files.
See Scoped Proxy Routing for route precedence, secure inputs, testing, and recovery.
- Managed foreground or daemon lifecycle on Linux and macOS.
- REST API, SSE event stream, and JSON-capable CLI with typed prompt admission errors and caller-preserved turn IDs for automation.
- Public liveness plus authenticated resource health for user sessions, the hidden Assistant, terminal cleanup, and the single-slot ACP warm pool.
- Structured logging, usage tracking, tunnels, and
openacp doctordiagnostics. - Plugin SDK and lifecycle for custom adapters, services, commands, and middleware.
OpenACP uses ACP-compatible agent definitions and the public ACP agent registry.
| Agent | Integration |
|---|---|
| Codex CLI | ACP process with runtime model, mode, and reasoning options |
| Cursor | Local Cursor ACP process |
| Claude Code | ACP-compatible package process |
| Gemini CLI | ACP-compatible package process |
| Other agents | Install or define another ACP-compatible process |
openacp agents
openacp agents install <name>
openacp agents refreshAgent lists report whether their catalog came from the live registry, cache, or packaged snapshot. An explicit refresh exits non-zero if the configured registry route cannot be reached. Agent CLIs may require their own installation, account, or provider credentials.
# Lifecycle
openacp
openacp start | stop | restart
openacp status
openacp doctor
# Sessions and local API
openacp api new [agent] [workspace]
openacp api status
openacp api cancel <session-id>
# Scoped proxy routing
openacp proxy status
openacp proxy import primary --env-file ~/.openacp/secrets/proxy.env
openacp proxy set channels.telegram profile:primary
openacp proxy set agents.codex profile:primary
openacp proxy test --scope channels.telegram
# Updates
openacp updateThe complete command contract is in CLI Commands.
| Area | Maintained reference |
|---|---|
| Start and configure | Getting Started · Self-Hosting |
| Connect clients | Platform Setup |
| Use sessions and commands | Using OpenACP |
| Speech, proxy, handoff | Features |
| CLI, REST, config, env | API Reference |
| Build plugins and adapters | Extending |
| Diagnose failures | Troubleshooting |
openacp updateThe updater checks npm and installs the latest @n1creator/openacp-cli release. Restart OpenACP explicitly to load the new package, then verify the running instance:
openacp restart
openacp --version
openacp status
openacp doctorSee Updating before changing a production instance.
OpenACP grants selected agent processes access to configured workspaces and may allow shell or file operations. Keep connector tokens and provider credentials secret, review permission policy, avoid exposing the local API without authentication, and use process or container isolation where appropriate.
Follow the Security guide for the current hardening checklist. Report vulnerabilities through the repository's Security Policy.
Read CONTRIBUTING.md for development setup, project conventions, tests, and pull-request requirements. Project conduct is governed by the Code of Conduct.



