Make and answer calls
Place or answer a voice or video call with this computer’s microphone, speakers and camera, or start a group conference. To have an OpenClaw agent handle calls, see Set up calling.
Check availability
-
Check the account’s calling features:
Terminal window wx calls statusTerminal window curl "$BASE/v1/accounts/$ACCOUNT/calls/current" -H "Authorization: Bearer $TOKEN"Read the
capabilitiesobject. Accounts without a current session report none. Each operation needs its own capability:directAudio,directVideo,conferenceAudio,conferenceVideo,conferenceCreateorconferenceJoin. -
List local devices with
wx calls devices.
Make a direct call
Start a call with wx calls dial. Use a contact ID from wx contacts list.
wx calls dial CONTACT_IDwx calls dial CONTACT_ID --video --camera off--camera takes auto, off, test, file:PATH or a device name. Add --muted
to start muted.
Open the control socket at GET /v1/accounts/{account}/calls/socket with the
calls token, send call.hello within five seconds, then dial:
{ "type": "call.hello", "supportedProtocolVersions": [3, 4] }{ "type": "call.dial", "requestId": "dial-1", "callType": "voice", "target": { "kind": "direct", "contactId": "CONTACT_ID" } }To answer, run wx calls monitor and wait for an invitation, or wx calls answer
for the current offer. Use wx calls monitor --json to watch events without opening
devices. Over HTTP, send call.answer with the offer’s callId and revision.
Conference calls
Start a conference in a group, with contacts to invite, or join an invitation you already have. Joining never creates a room.
wx calls conference start GROUP_ID --invite CONTACT_A --invite CONTACT_Bwx calls conference start GROUP_ID --invite CONTACT_A --videowx calls conference join GROUP_IDSpeak after the status line shows Connected. Incoming audio is mixed for playback, and incoming video renders in the terminal.
Use the same control socket. Start a conference with call.dial and a conference
target of 1 to 100 invitees:
{ "type": "call.dial", "requestId": "conf-1", "callType": "voice", "target": { "kind": "conference", "groupId": "GROUP_ID@chatroom", "invitees": ["CONTACT_A", "CONTACT_B"] } }Join with call.join, using an invitationId and invitationRevision from the
socket’s conferenceInvitations.
In-call controls
Choose devices before you dial with --input-device and --output-device, using the
IDs from wx calls devices. Without them, the system defaults are used.
An interactive call shows these keys. Press Enter after each one:
m Microphone v Camera (video calls)s Speaker i Invitep Participants d Devicesl Leave call ? HelpCtrl-C Leave and exitMeters show outgoing microphone level and mixed speaker level. Participant meters
show each source before mixing. Silence doesn’t prove someone is muted or has left.
Use p for the full participant list.
Press i, then search contacts, or type invite CONTACT_ID. An invitation only
means the request was sent; check p to see who joined. d opens the device picker.
Send call.mute with muted, call.camera with enabled, or call.invite to add
contacts to a connected conference. Send call.hangup to leave. In a conference
this leaves the call for you, while others stay in it.
Headless sessions for automation
For scripts, wx calls session start runs a call client in the background with
synthetic audio and video, so no microphone or camera is needed. For example, this
starts a session, dials a contact, and hangs up:
wx calls session start --name bot --ready --audio tone:440 --video testwx calls session dial --session bot CONTACT_ID --jsonwx calls session hangup --session botwx calls session stop botWhile nobody looks at the other side’s video, turn watching off so the daemon stops decoding it and asks for less:
wx calls session watch off --session botwx calls session watch on --session botAdd --track ID to change one participant’s video. See the CLI reference for every session command and the
Calls API for the socket messages.