video chat in your terminal
ascii-chat.com - Homepage, installation, and documentation
API Reference & Man Pages - Developer API reference and C library documentation
Probably the first command line video chat program (let me know if this isn't true). Initial commits November 20-24, 2013, with @craigpalermo, at some collegiate hackathon.
ascii-chat is a client-server application that operates over TCP/IP. It supports color and audio and crypto and compression and multiple clients and has many little features and options.
The client functions by simply printing text and terminal escape codes to your terminal, so it works EVERYWHERE that terminals work: on rxvt-unicode in OpenBox, in a Putty SSH session, in iTerm and Kitty.app on macOS, and theoretically everywhere else terminals run. You just need a webcam.
ascii-chat even works in an initial unix login shell. You know, the shell that runs 'startx' and launches your desktop environment so you can open a gui terminal app like Konsole or Kitty or Alacritty in kde or xfce. You don't need a desktop environment at all to video chat with ascii-chat. (*)
We support UTF-8 now so it's not just ASCII anymore. However, the name is still ascii-chat.
Now 3+ simultaneous people can connect and the server will render the clients to each other as a grid, like Google Hangouts and Zoom calls do. See the Network Protocol in the man3 pages.
Audio is now supported - turn on your microphone and start talking! See the Audio System in the man3 pages. (TODO: buggy - needs work). Update: works with --file and --url.
Media support with smart resolution! ascii-chat can turn media from files and URLs into ascii art. Use --file for local files (all FFmpeg-supported formats) or --url for streaming. For complex streaming sites (YouTube, TikTok, Twitch, etc.), ascii-chat automatically uses yt-dlp to extract playable streams. For direct HTTP streams and media files, FFmpeg handles them natively. You can livestream the result with audio into an ascii-chat call, so you could watch a video with friends and discuss it live, all as ascii art. Pass arbitrary yt-dlp options with --yt-dlp-options if needed (e.g., --yt-dlp-options "--no-warnings")
(*) Testing needed to verify a decent framerate.
ascii-chat v0 from 2013:
ascii-chat v0.3.5 in 2025. Here are 3 clients connected to a single server, in a call:
macOS (Homebrew):
# Add the tap
brew tap zfogg/ascii-chat
# Install runtime binary
brew install ascii-chat
# Install development libraries (headers, static/shared libs, docs)
brew install libasciichatArch Linux (AUR):
# Stable releases
paru -S ascii-chat # Runtime binary
paru -S libasciichat # Development libraries (headers, libs, docs)
# Latest git versions (recommended for development)
paru -S ascii-chat-git # Runtime binary from git
paru -S libasciichat-git # Development libraries from gitAll Platforms:
Complete build guide: Build System Documentation — CMake presets, configuration options, troubleshooting, and platform-specific details.
Quick start:
…For detailed build instructions, configuration options, and troubleshooting, see the Build System Documentation.
Common development targets (run with cmake --build build --target ):
| Target | Description |
|---|---|
ascii-chat |
Build the main executable (default) |
shared-lib |
Build shared library (libasciichat.so/.dylib/.dll) |
static-lib |
Build static library (libasciichat.a) |
tests |
Build and run all unit and integration tests |
man1 |
Generate man page for ascii-chat(1) |
completions |
Generate shell completions (bash, fish, zsh, powershell) |
docs |
Generate API documentation with Doxygen |
docs-open |
Generate documentation and open in browser |
format |
Format all C/C++ code with clang-format |
format-check |
Check code formatting without modifying files |
scan-build |
Run Clang static analyzer with detailed reports |
scan-build-view |
Run Clang analyzer and open report in browser |
package |
Create platform-specific installer packages |
package-tar, package-deb, package-rpm, package-dmg, package-zip |
Create specific package formats (.tar.gz on Unix/Linux, .deb on Debian/Ubuntu, .rpm on RedHat/Fedora, .dmg on macOS, .zip on Windows/all platforms) |
ascii-chat uses a unified binary with four modes: server, client, mirror, and discovery-service.
Get help:
ascii-chat --help # Top-level help
ascii-chat server --help # Server-specific help
ascii-chat client --help # Client-specific help
ascii-chat mirror --help # Mirror-specific help
ascii-chat discovery-service --help # Discovery-service-specific helpRead the installed manual:
man 1 ascii-chat # Main manual page
man 5 ascii-chat # File formatsOr create it from source:
cmake --build build --target man1 --target man5
man build/share/man/man1/ascii-chat.1 # Main manual page
man build/share/man/man5/ascii-chat.5 # File formatsOr view online:
Shell Completions:
Tab completion is available for Bash, Fish, Zsh, and PowerShell. Completions are auto-generated from the options registry at build time.
If installed via package manager (Homebrew, AUR, etc.): Completions are already installed in standard directories. You may need to setup your shell's completion path:
# Zsh: Add Homebrew/Linuxbrew completions to FPATH (~/.zshrc)
export FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
# Bash: if you have a custom BASH_COMPLETION_USER_DIR
export BASH_COMPLETION_USER_DIR=~/.bash-completions
ascii-chat --completions bash > $BASH_COMPLETION_USER_DIR/completions/completions/ascii-chat.bashIf building from source or without a package manager: Generate completions on-demand:
# Bash (~/.bashrc)
eval "$(ascii-chat --completions bash)"
# Fish (~/.config/fish/config.fish)
ascii-chat --completions fish | source
# Zsh (~/.zshrc)
eval "$(ascii-chat --completions zsh)"
# PowerShell ($PROFILE)
ascii-chat --completions powershell | Out-String | Invoke-ExpressionSee ascii-chat.com/crypto for complete cryptography documentation.
See ascii-chat.com/man1/#ENVIRONMENT for complete environment variable documentation.
When I started building ascii-chat, no existing protocol fit the requirements for real-time terminal-based video conferencing. HTTP/WebSocket are too heavyweight and browser-focused. RTP/RTSP are designed for traditional video streams, not ASCII frames. VNC/RDP are for desktop sharing, not peer-to-peer.
So I designed ACIP. It's a binary protocol over TCP built for low-latency, encrypted, multi-client conference calling in terminals.
ACIP is a binary packet protocol over TCP. It starts with a TCP handshake and capability negotiation, followed by a cryptographic handshake using X25519 Diffie-Hellman key exchange with Ed25519 authentication. Clients send their terminal dimensions, color support, and audio capabilities. The server sends session info, connected clients, and grid layout.
All packets are encrypted with XSalsa20-Poly1305 (AEAD cipher). Ephemeral session keys prov
No open issues yet, or sync has not completed.