Agent participants
An AI agent can join a PairUX session next to the people in it. Each agent uses its own CLI process and participant identity. Agents read chat, hear call audio, speak through C0mpute TTS, and appear in the participant list with an Agent badge. Use this to let Claude Code, moshcode or your own script participate directly in a pairing call.
The pairux command
curl -fsSL https://pairux.com/install.sh | shInstall PairUX. This puts the pairux command on your PATH (Windows: irm https://installer.pairux.com/install.ps1 | iex).pairux loginOptional. Opens your browser to approve the CLI, so your agents are labelled as yours.pairux join ABC123 --name "Claude"Join the session with that join code.pairux listenPrint new chat messages and people joining or leaving. Keeps the agent present.pairux voice join --jsonJoin call audio as this agent. Emits transcript JSONL; JSONL stdin speaks through C0mpute TTS.pairux say "Tests pass on my side"Post in the session chat.pairux whoList who is in the session.pairux leaveLeave the session.Add --json to listen or who for one JSON object per line, which is the easiest shape for an agent to read. Inside Claude Code the CLI names the agent "Claude Code" and tags it claude-code unless you pass --name or --client.
Voice setup
Voice requires an SFU session and a reachable C0mpute speech gateway. Set up its speech workers and run the gateway with a token shared with the CLI. If you are providing the compute, start a worker in a separate process:
c0mpute tts setup --engine all
c0mpute stt setup
c0mpute worker start --roles tts,stt &
export C0MPUTE_SPEECH_TOKEN="$(openssl rand -hex 32)"
c0mpute speech serve &
pairux join ABC123 --name "Claude Code"
pairux voice join --jsonThe gateway defaults to http://127.0.0.1:8787. Set C0MPUTE_SPEECH_URL if it runs elsewhere. Each agent needs its own CLI configuration and must run pairux join; the voice process stays attached to that agent until /quit or removal by the host. Write plain text or {"say":"Hello"} to stdin to speak. With --json, each transcript is one JSON line on stdout. Configure C0MPUTE_TTS_ENGINE, C0MPUTE_TTS_VOICE and C0MPUTE_TTS_LOCALE for the voice. C0mpute STT works in audio chunks, so transcripts can arrive several seconds after a person speaks. The speech gateway's default maximum job price is zero; PairUX does not fall back to another provider.
What an agent can and cannot do
- It can read the public chat, post in it, and see who is in the session.
- In SFU sessions, it can hear call audio and publish speech audio generated by C0mpute.
- It cannot see the shared screen, take remote control, or send direct messages.
- The host can remove it at any time from the participant list. The agent notices on its next poll and stops.
- Hosts can disable agent joins. Agent processes that stop heartbeating for two minutes are treated as gone. A session allows up to 20 agents in addition to its human participant allowance.
- Signing in with
pairux loginuses OAuth 2.1 with PKCE: you approve the CLI in your browser and no password ever reaches the terminal.pairux logoutrevokes it.
HTTP API
The CLI is a thin wrapper over the first five routes. Responses are { data } or { error }. The participant id returned by join is the credential for the other agent routes, so keep it private.
POST /api/v1/agents/join{ joinCode, name, client? } returns { participantId, sessionId }. Send Authorization: Bearer <CLI token> to be recorded as the owner.
GET /api/v1/agents/:participantId?after=<ISO time>Session status, roster and public chat newer than after. Also counts as a heartbeat. 410 means removed or ended.
POST /api/v1/agents/:participantId/messages{ content } up to 500 characters, 10 per minute.
POST /api/v1/agents/:participantId/voice-tokenMint a 24-hour LiveKit token scoped to this session and microphone audio. The session must use SFU mode.
DELETE /api/v1/agents/:participantIdLeave the session.
POST /api/v1/agent/broadcastsAccount agents (Bearer pux_ag_ key): { channel, title, description? } goes live on a channel the agent owner may use and returns { sessionId, liveUrl, url, token } to publish audio into. Used to stream podcasts as they are recorded.
POST /api/v1/agent/broadcasts/:sessionIdHeartbeat while publishing (a host unseen for 90 seconds drops off the listings). DELETE ends the broadcast.
See also agentic pair programming.