quonaro

Acp2api โ€” Communication skill for Claude Code

Communication community

๐Ÿ”Œ acp2api โ€” OpenAI-compatible HTTP gateway for ACP agents.

How to install Acp2api

This entry records only its repository, not the path inside it, so there is no exact command to give. Open quonaro/acp2api and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Acp2api does

๐Ÿ”Œ acp2api โ€” OpenAI-compatible HTTP gateway for ACP agents. Any OpenAI client can drive Devin, Claude, Codex or OpenCode CLIs over /v1/chat/completions and /v1/responses, while the gateway bridges their file, terminal and permission callbacks.

Alternatives in Communication

  • Lark Coding Agent Bridge โ€” Bot that bridges Feishu/Lark messenger with a local Claude Code or Codex CLI 2.4k โ˜…
  • Claude Code Webui โ€” Web-based interface for Claude CLI with streaming chat responses 969 โ˜…
  • Openab โ€” A lightweight, secure, cloud-native ACP harness that bridges Discord and any ACP-compatible coding CLI 321 โ˜…

README

acp2api

An OpenAI-compatible HTTP gateway for **Agent Client Protocol (ACP)** agents.

Clients speak the ordinary OpenAI API. The gateway spawns an ACP agent CLI (`devin acp`, `agent acp`, `claude-agent-acp`, `codex-acp`, `opencode acp`, โ€ฆ) as a subprocess and speaks ACP JSON-RPC over stdio to it.

OpenAI client โ”€โ”€HTTP/SSEโ”€โ”€โ–ถ acp2api โ”€โ”€JSON-RPC over stdioโ”€โ”€โ–ถ ACP agent CLI
                               โ”‚                                    โ”‚
                               โ””โ—€โ”€โ”€ fs/*, terminal/*, permission โ”€โ”€โ”€โ”˜

ACP connects *tools to tools* (editor โ†” agent). Most web applications, scripts, and SDKs speak HTTP and expect an OpenAI-shaped API. This is the converter.

Running it

`lota.yml` carries the dev, build and push commands:

lota dev     # run the gateway under air: rebuilds and restarts on change
lota build   # build the binary to bin/acp2api
lota push    # push the current branch to GitHub

`lota dev` takes flags:

lota dev -w ~/code/some-repo          # workspace the agents operate in
lota dev --addr 127.0.0.1:9000
lota dev -p deny                      # reject every permission request

`lota dev` runs the gateway through [air](https://github.com/air-verse/air): it reads `config.yaml`, builds to `bin/acp2api`, and rebuilds and restarts the gateway whenever a `.go` file changes. `bin/` and `workspace/` are excluded from the watcher โ€” the agents write into the workspace, and a rebuild per agent-written file would be a reload loop.

Without `lota`, the binary is ordinary:

go build -o bin/acp2api ./cmd/acp2api
ACP2API_TOKEN=dev-token ./bin/acp2api serve --workspace ~/code/some-repo --verbose

The command line is the embedded Lota engine (`cmd/acp2api/cli.yml`), so the binary carries its own commands: `serve` starts the gateway, `version` prints the version, and running `acp2api` with no arguments prints help. `serve` takes `--config`, `--addr`, `--workspace`, `--permission` and `--verbose`. Environment: `ACP2API_ADDR`,