Two lines.
One interchange.

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.

A line · Ante backend B line · OpenTUI interface
Read the docs

Arch Linux x86_64 · macOS Apple Silicon · Ante required · MIT

Line map · architectureFigure 01 / 2026.12
Ante and OpenTUI meet at the antex interchange The blue A line is the Ante backend, the red B line is the OpenTUI interface, and they meet at the antex interchange. antex is the protocol shim in the middle. Ante agent runtime ANTEX interchange v2 shim · Rust Ante tool execution OpenTUI session view / composer A line · backend B line · interface OpenTUI tools / approvals
Antebackend · agent runtime
antexinterchange · v2 protocol shim
OpenTUIinterface · session view and composer
A line · AnteB line · OpenTUIInterchange = protocol shimReal interface →
Next departure · latest stable, automatic
curl -fsSL https://raw.githubusercontent.com/jianlongliu/antex/master/script/install.sh | bash
Full steps

Why an interchange, not a fork.

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.

A line · backend

Ante

Model routing, tool execution, and session state live in the Ante you installed. antex does not bundle or modify it.

Interchange · shim

antex

One Rust binary implements opencode's v2 server protocol; events, approvals, questions, and session lists pass through it.

B line · interface

OpenTUI

opencode's own TUI owns the session view, composer, tool blocks, and keybindings you see.

Everything you see is real Ante data.

No simulated replies and no placeholder events. These paths have run on a real machine; unfinished and abandoned entries are not dressed up here.

Feature
Description
Status
Streaming text
Assistant replies arrive token by token; reasoning is shown separately as + Thought.
verified
Tool calls
Bash, Read, Write, Glob, Grep, WebFetch, WebSearch, Agent, and AskUser render in the client's own cells.
verified
Approvals
When Ante pauses, the TUI shows Permission required; approving it lets Ante continue.
verified
Question forms
AskUser options land in the client form; the answer returns to Ante as the next user message.
verified
Phone client
The official OpenCode Android app pairs by QR and shares the same live session: prompts, approvals, AskUser, attachments, and session folders all work.
verified
Session list and resume
Reads ~/.ante/sessions; opening history replays it from events.jsonl.
verified
Queue and steer
Queue while a turn runs; ctrl+s steers the queued message into the current turn.
verified
Quota panel
The sidebar Quota panel uses the antex.quota RPC and refreshes every 60 seconds.
verified
Telemetry off
serve / catalog / auth / usage / version probe force ANTE_TELEMETRY=off.
verified

Status only records what has been verified. Verification methods and unfinished entries live in the README's Todo and Abandoned sections.

Sit at the desk. Keep walking with your phone.

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.

An antex session in the official OpenCode Android app 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.

Pick a station and connect the line.

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.

Manual install / specific version
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.