Ante
Model routing, tool execution, and session state live in the Ante you installed. antex does not bundle or modify it.
opencode's interface, wired to Ante's backend. antex is the interchange between them: one Rust shim speaks opencode's v2 server protocol while every message, tool call, and token comes from Ante. Ante stays unvendored and upgrades on its own. The official OpenCode Android app can pair with the same persistent session by QR.
Arch Linux x86_64 · macOS Apple Silicon · Ante required · MIT
curl -fsSL https://raw.githubusercontent.com/jianlongliu/antex/master/script/install.sh | bash
Ante owns the backend, OpenTUI owns the interface; antex swallows neither. It only performs the protocol interchange in the middle. Both ends upgrade independently; the protocol is the only coupling.
Model routing, tool execution, and session state live in the Ante you installed. antex does not bundle or modify it.
One Rust binary implements opencode's v2 server protocol; events, approvals, questions, and session lists pass through it.
opencode's own TUI owns the session view, composer, tool blocks, and keybindings you see.
No simulated replies and no placeholder events. These paths have run on a real machine; unfinished and abandoned entries are not dressed up here.
+ Thought.Permission required; approving it lets Ante continue.~/.ante/sessions; opening history replays it from events.jsonl.ctrl+s steers the queued message into the current turn.antex.quota RPC and refreshes every 60 seconds.ANTE_TELEMETRY=off.Status only records what has been verified. Verification methods and unfinished entries live in the README's Todo and Abandoned sections.
The official OpenCode Android app is not another backend: it pairs with the same persistent antex server and drives the same live Ante session. Prompts, streaming output, approvals, AskUser, attachments, and session folders continue on the phone. No antex account, no relay.
Real device · Pixel 9 Pro XL · official OpenCode Android app
Same session, second screen · official Android client · QR pairing
antex
In the TUI run /pair and scan the QR with the official app; or run antex pair --origin http://<host>:42100 in a terminal. Codes are single-use and expire in ten minutes; the token survives restarts.
Network: direct over Wi-Fi, Tailscale, or ZeroTier; allow 42100/tcp. The official app requires Android 13+; install it from opencode-android Releases. Full guide: mobile docs.
Install Ante first; antex only ships the shim and client. The script detects the platform, reads the latest stable release from GitHub, and verifies SHA256SUMS.
One-line install · latest stable, never a prerelease.
curl -fsSL https://raw.githubusercontent.com/jianlongliu/antex/master/script/install.sh | bash
The script source is script/install.sh; read it before running. If GitHub rate-limits you, download manually from Releases.
pkexec pacman -U antex-<version>-1-x86_64.pkg.tar.zst
Replace <version> with the release you want. Arch installs to /usr/bin with antex, antex-tui, and opencode2; macOS puts them in ~/.local/bin, which is not on PATH by default.
Requires: an installed Ante backend (source and install notes on GitHub); Arch Linux x86_64 or macOS Apple Silicon. Other platforms are untested.
The technical docs are currently in Chinese; the landing page and install notes are bilingual. The source stays in docs/; the site only renders it.
Event order, approvals, questions, transcript replay, test switches.
02v2 API conventions, event names, critical traps, Herdr integration.
03Home logo, language, removed entries, patch list, upstream sync.
04Official Android app pairing, same session, networks, security, troubleshooting.
Docs are generated from docs/*.md by mdBook; the site does not maintain a second copy of the text.