Scripts2026年7月3日·1 分钟阅读

Carbonyl — Run Chromium Inside Your Terminal

A Chromium-based browser that renders web pages directly in the terminal using text, images, and interactive elements.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Carbonyl
直接安装命令
npx -y tokrepo@latest install 0ef1367e-76db-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

Carbonyl embeds a full Chromium browser engine and renders web pages as text and block characters directly in the terminal. It supports CSS, JavaScript, WebGL, images, and video playback, making it a unique tool for browsing the modern web without a graphical display server.

What Carbonyl Does

  • Renders full web pages including CSS layouts, JavaScript, and animations in the terminal
  • Displays images using Unicode block characters and 24-bit color
  • Supports WebGL content by rendering frames and converting them to text
  • Handles navigation, scrolling, clicking, and keyboard input interactively
  • Plays video and audio content within the terminal environment

Architecture Overview

Carbonyl patches Chromium's compositor layer to output frames as terminal escape sequences instead of GPU-rendered pixels. Each frame is converted from a bitmap into a grid of Unicode half-block characters with foreground and background colors. Input events are translated from terminal escape codes back into browser events.

Self-Hosting & Configuration

  • Easiest to run via Docker: docker run --rm -ti fathyb/carbonyl
  • Building from source requires Rust and the Chromium build toolchain
  • Set the initial URL as a command-line argument
  • Supports standard Chromium flags for proxy, user-agent, and other settings
  • Works over SSH for remote browsing on headless servers

Key Features

  • Full JavaScript and modern CSS support via the Chromium engine
  • Image and video rendering using terminal color capabilities
  • Sub-second startup time compared to headless Chrome approaches
  • Interactive mouse and keyboard navigation
  • Works over SSH sessions on remote machines without X11 forwarding

Comparison with Similar Tools

  • Lynx / w3m — Text-only browsers without JavaScript or CSS support
  • Browsh — Firefox-based terminal browser; Carbonyl uses Chromium and renders natively
  • Headless Chrome — No visual output; Carbonyl provides an interactive terminal UI
  • tmux + browser — Requires X11 forwarding; Carbonyl works in pure terminal mode

FAQ

Q: Does Carbonyl support JavaScript? A: Yes. It runs a full Chromium engine, so all standard JavaScript works.

Q: How does image rendering work? A: Images are approximated using Unicode half-block characters with 24-bit ANSI colors.

Q: Can I use it on a headless server over SSH? A: Yes. That is one of its primary use cases since it needs no display server.

Q: What are the system requirements? A: The Docker image is the easiest path. Building from source requires significant disk space for the Chromium build.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产