百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

ascii-chat

> DevOps
开源

在终端中进行视频聊天

196 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

在终端中进行视频聊天

ascii-chat 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.

Animated Demonstrations

ascii-chat v0 from 2013:

ascii-chat v0.3.5 in 2025. Here are 3 clients connected to a single server, in a call:

Code Coverage

Table of Contents

  • ascii-chat
    • Animated Demonstrations
    • Code Coverage
    • Table of Contents
    • Get ascii-chat
    • Build From Source
    • Usage
    • Cryptography
    • Environment Variables
    • ascii-chat Internet Protocol (ACIP)
    • ascii-chat Discovery Service (ACDS)
    • libasciichat
    • Open Source
    • TODO
    • Notes

Get ascii-chat

macOS (Homebrew):

bash
# 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 libasciichat

Arch Linux (AUR):

bash
# 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 git

All Platforms:

  • All downloads: GitHub Releases
  • Documentation: ascii-chat.com/man3 — C library API reference and man3 pages
  • Source installation: follow the Build from source steps

Build From Source

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.

Useful CMake Targets

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)

Usage and --flags

ascii-chat uses a unified binary with four modes: server, client, mirror, and discovery-service.

Get help:

bash
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 help

Read the installed manual:

bash
man 1 ascii-chat       # Main manual page
man 5 ascii-chat       # File formats

Or create it from source:

bash
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 formats

Or view online:

  • ascii-chat.com/man1
  • ascii-chat.com/man5

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:

bash
# 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.bash

If building from source or without a package manager: Generate completions on-demand:

bash
# 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-Expression

Cryptography

See ascii-chat.com/crypto for complete cryptography documentation.

Environment Variables

See ascii-chat.com/man1/#ENVIRONMENT for complete environment variable documentation.

ascii-chat Internet Protocol (ACIP)

  • User Network Documentation: ascii-chat.com/docs/network
  • Developer API Reference: Man3 Network Protocol Pages

Philosophy

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.

Protocol Overview

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

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Casciiascii-artccli

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理