acptui
acptui is a terminal UI for AI coding agents that speak the Agent Client Protocol (ACP), built on the draft ACP v2 and nothing else. Talk to Claude Code, Codex or any other v2 agent in your terminal: streaming Markdown, tool calls with diffs and live terminals, permission prompts, plans, subagents, forms the agent asks you to fill in, session history, modes and models.
The protocol layer is aclientp's typed v2 client; the UI is Textual. In spirit it is close to toad; see differences.
Install
uv tool install acptui # or: pipx install acptui
acptui # pick an agent
acptui run demo # the bundled demo agent: no LLM, no API key
Python 3.13+.
Usage
acptui # agent picker (or `default_agent` from the config)
acptui run claude # an agent from the registry
acptui run -- my-agent --acp # any command that speaks ACP v2 on stdio
acptui connect https://host/acp -H "Authorization: Bearer ${TOKEN}" # Streamable HTTP
acptui connect wss://host/acp # WebSocket
acptui run codex --resume SESSION_ID # resume a session (with history replay)
acptui -o model=opus -o mode=plan run claude # initial session options
acptui --add-dir ../lib --system-prompt "Be terse." run codex
acptui options codex # print an agent's options and commands
acptui agents # the registry and what is installed
In the app: enter sends, shift+enter / ctrl+j adds a line, / completes the
agent's commands, @ completes file paths (the files are attached), escape
cancels the turn, shift+tab switches the mode, ctrl+o shows mode / model /
other options, ctrl+n / ctrl+r / ctrl+f start, resume and fork sessions,
ctrl+l shows the agent's stderr and the protocol traffic, ctrl+p opens the
command palette (login, providers, everything else) and f1 the help.
Supported agents
ACP v2 is a draft; agents get v2 support one by one. acptui negotiates the version in
initialize and stops with a clear message if the agent answers with another one.
| id | Agent | Command | ACP v2 |
|---|---|---|---|
claude |
Claude Code | claude-agent-acp |
yes (0.108+) |
codex |
Codex | codex-acp |
yes (2.7+) |
gemini |
Gemini CLI | gemini --experimental-acp |
not yet |
opencode |
OpenCode | opencode acp |
not yet (v1) |
agentpool |
AgentPool | agentpool serve-acp |
yes (2.11+) |
demo |
Demo agent | python -m acptui.demo |
yes |
Add your own agents (or override these) in config.toml in the platform config
directory (acptui config prints the path):
default_agent = "codex"
theme = "tokyo-night"
diff_view = "auto" # unified, split or auto
system_prompt = "Prefer small commits."
additional_directories = ["~/src/shared"]
[agents.my-agent]
name = "My agent"
command = ["my-agent", "--acp"]
env = { MY_FLAG = "1" }
[agents.remote]
url = "https://example.com/acp"
headers = { Authorization = "Bearer ${MY_TOKEN}" }
[agent_options.claude] # initial session config options
model = "opus"
[[mcp_servers]] # passed to every session (stdio or http)
name = "docs"
command = "docs-mcp"
ACP v2 coverage
acptui implements the whole client side of ACP v2 (schema v2.0.0-beta.3): every
session update kind, all content blocks (text, images, audio, resource links,
embedded resources, skills), tool calls with diffs and agent-owned terminals,
permissions, form and URL elicitation, plans, config options (modes, models),
commands and skills, sessions (new, list, resume with replay, fork at cursors,
close, delete, archive, status, options, title), subagent sessions and messages
between sessions, auth (agent and terminal login, logout, status), LLM providers,
prompt suggestions, compactions, background work, usage and cost, MCP servers,
system prompts, additional directories and cancellation. The
coverage table maps each spec item
to the code and the test.
v2 moved file system access and command execution to the agent: there are no
fs/* or client-side terminal/* methods in v2. Terminals are agent-owned and
display-only; acptui renders them live and can cancel them.
Differences from toad
- ACP v2 only, through aclientp's typed models end to end (toad speaks v1 with hand-written dicts). No v1 fallback.
- The full v2 client surface: subagents, elicitation, cursors and forking, providers, auth status, session archive / delete / status, prompt suggestions, compactions.
- Type safe:
tyreports nothing, no untyped code paths. - Smaller: no shell mode, no agent store, no web serving. A built-in demo agent shows every feature without an API key.
License
AGPL-3.0-or-later, like toad. Some UI pieces are adapted from toad (Copyright (c) Will McGugan, AGPL-3.0); see NOTICE.
Metadata
Release files for acptui 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| acptui-0.1.1.tar.gz | 95.4 kB | With provenance | Details for acptui-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| acptui-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for acptui-0.1.1-py3-none-any.whl |
Total release size: 201.7 kB
Release files / acptui-0.1.1.tar.gz
| Download URL | acptui-0.1.1.tar.gz |
|---|---|
| Size | 95.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e00f6c836c6ea6943c802a82202e1e5760babe9a88b32165a38bc514841cb754
|
|
BLAKE2b-256 checksum How to use checksums |
35ab971bdd65d7231790c02f9469a10f5633b260c11b9bcaccf853e871be986c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / acptui-0.1.1-py3-none-any.whl
| Download URL | acptui-0.1.1-py3-none-any.whl |
|---|---|
| Size | 106.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
946bf521ce76f8a4309708c53bdd253ad07380db0a999df26e4502cae0dd27aa
|
|
BLAKE2b-256 checksum How to use checksums |
dbf5624a408d7dad42330f5c2979d062e1c5e4d7f2c519b28c89b49eb36125fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logSecurity for acptui 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for acptui-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.