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

px0

> 开发工具
免费

px0 是一款快速、轻量级、只读的 IDE,专为在 br 中即时导航和审查代码而设计。

487 stars0 点赞6 次浏览
访问官网GitHub

工具介绍

px0 是一款快速、轻量级、只读的 IDE,专为在 br 中即时导航和审查代码而设计。

px0

px0 is a fast, ultra-light, remote-first IDE designed for instant code navigation and review in your browser. Booting in under 1 ms and using ~20 MB of RAM, it turns your browser into a zero-latency inspection console with symbol-level navigation, deep search, and syntax highlighting across massive codebases.

Optimized for Reads

More and more code generation happens directly in the terminal—driven by coding agents, CLI tools, and background orchestrators. Developers spend significantly less time typing boilerplate and more time reviewing, auditing, and navigating.

Because speed of access is everything when inspecting code, px0 is obsessively optimized for reads. You don't need a heavy editing environment with background extension churn just to verify code; you need a sub-millisecond, zero-latency window into the repository, especially across remote machines. When something needs to change, select it and hand it to the coding agent you already use: px0 runs it and reloads what moved.

Where px0 fits in best:

  • Verifying AI Agent Output: Trace symbol references, inspect live git diffs against HEAD, review generated code, send a fix back to the agent from the diff, and close the tab without leaving your terminal flow.
  • Remote & Cloud Server Inspection: Spin up on any remote server, VM, or CI runner and browse the codebase instantly from your local browser—no SSH keys, no port forwarding hassle, and no heavy remote desktop/daemons.
  • Auditing Large Repositories: Read through massive, 50,000+ file codebases on a laptop without background indexers hogging RAM or spinning up fans.
  • Sidecar to Terminal Editors: Keep lightweight editors (like Vim, Neovim, or Helix) in the terminal for typing, while using px0 as a high-density, rich graphical inspection and diff console.

Installation

Quick Install (macOS, Linux, BSD)

bash
curl -fsSL https://px0.ai/install.sh | sh

Build from Source

Requires Go 1.24+. No npm, node, CGO, or external dependencies:

bash
git clone https://github.com/px0-ai/px0.git
cd px0
make build
install -d ~/.local/bin && install px0 ~/.local/bin/

To cross-compile binaries for all supported platforms:

bash
make dist

Features

  • Blazing Fast Navigation: Fuzzy file search (Cmd/Ctrl+P), symbol outline (Cmd/Ctrl+Shift+O), and workspace regex search (Cmd/Ctrl+Shift+F) in milliseconds.
  • Remote-First, Zero SSH Hassle: Spin up on any remote server, cloud instance, or runner in < 1 ms. Inspect remote code in your local browser over a single port (Tailscale, WireGuard, reverse proxy, or tunnel) without SSH key setups, port forwarding churn, or remote extension daemons.
  • Rich Syntax Highlighting: Native tokenization for ~280 languages via Chroma with windowed rendering.
  • Git Awareness & Visual Diffs: Status badges (M, A, D, U, R), dirty folder ancestry propagation, changed-files filter, and side-by-side / unified diffs vs HEAD (Cmd/Ctrl+D).
  • Edit with Your Coding Agent: Select code in the source or diff view, right-click (or Alt+E), and describe the change. px0 runs Claude Code, OpenCode, OpenAI Codex, Antigravity, Aider, Goose, Gemini CLI, or Cursor Agent on it, reloads what changed, and shows harness errors inline. Several edits can run at once, as long as their line ranges don't overlap.
  • Rendered Markdown Preview: Full GFM preview with Chroma-highlighted code fences; switch between preview and source with Alt+M while preserving scroll.
  • Custom Themes: 14 built-in themes (GitHub Dark, Tokyo Night, Catppuccin, Dracula, Gruvbox, Nord, Solarized, and more).
  • Optional Language Server Protocol (LSP): Zero-config auto-detection (gopls, rust-analyzer, pyright, typescript-language-server, clangd) for Go-to-Definition (F12), Hover, references, and call trails. Falls back automatically to regex outlines.
  • Settings & Configuration Modal: Press Cmd/Ctrl+, or click the ⚙️ icon in the status bar to open the VS Code-style Settings editor. Configure editor typography, cursor styles, diff modes, themes, search behavior, file exclusions, and coding agents with live preview and raw JSON synchronization (~/.px0/settings.json).
  • Virtual DOM / Zero Overhead: Opening a 400,000-line file costs the same as a 10-line file; only visible rows are mounted. Reclaims memory after 15 seconds of inactivity.
  • Completely Self-Contained: Single static binary embedding all web assets. Zero runtime dependencies, no Electron, no Node, no cloud phone-homes.

Language Server (LSP) Setup (Optional)

px0 works fully out of the box without language servers using built-in fuzzy search and regex outlines.

When installed, language servers provide semantic Go-to-Definition (F12), hover types/docs, and call trails. px0 auto-detects servers on your PATH or standard install directories:

Language Server Quick Install
Go gopls go install golang.org/x/tools/gopls@latest
Rust rust-analyzer rustup component add rust-analyzer
TypeScript / JavaScript typescript-language-server npm install -g typescript-language-server typescript
Python pyright / pylsp / ruff npm install -g pyright or pipx install python-lsp-server
C / C++ clangd sudo apt install clangd or brew install llvm
Zig zls brew install zls or zigtools/zls
Lua lua-language-server brew install lua-language-server
Ruby solargraph gem install solargraph
Java jdtls brew install jdtls
C# omnisharp Install OmniSharp on PATH
LaTeX texlab brew install texlab

Servers spawn lazily on first request and shut down cleanly upon exit. Disable with px0 -no-lsp. You can also click LSP: set up in the status bar to view or trigger automatic installation for your OS.

Editing with a Coding Agent (Optional)

px0 does not have a text editor. It hands changes to a coding agent already installed on your machine, then reloads what the agent changed.

Harness Default Model Command px0 runs
Claude Code haiku claude --permission-mode acceptEdits --model haiku -p {prompt}
Gemini CLI gemini-2.5-flash-lite gemini --approval-mode auto_edit -m gemini-2.5-flash-lite -p {prompt}
Cursor Agent gemini-3.6-flash-minimal cursor-agent --force --model gemini-3.6-flash-minimal -p {prompt}
Antigravity gemini-3.6-flash-low agy --dangerously-skip-permissions --mode accept-edits --model gemini-3.6-flash-low -p {prompt}
OpenCode opencode/big-pickle opencode run -m opencode/big-pickle {prompt}
OpenAI Codex gpt-5-codex codex exec --ask-for-approval never -m gpt-5-codex {prompt}
Aider claude-3-7-sonnet aider --yes-always --no-auto-commits --model claude-3-7-sonnet --message {prompt}
Goose gpt-4o goose run --no-session --model gpt-4o -t {prompt}

By default, px0 selects the least capable (fastest and most economical) model for each harness, and allows you to choose any available model from the harness menu.

How an Edit Works

  1. Select code in the source view or the git diff view (split or unified, either side).
  2. Pick Edit with Agent from the right-click menu, the footer selection bar, or press Alt+E.
  3. The first time, choose a harness (and optional model). The choice is remembered in ~/.px0/settings.json (or $XDG_CONFIG_HOME/px0/settings.json), never inside your repository.
  4. Type what should change and press Enter. px0 sends the harness the instruction, the file and line range, and the selected lines.
  5. As the agent runs, its progress and actions stream in real time to the terminal stdout where px0 was launched.
  6. When the harness exits, px0 reloads the files it changed. Each tab stays in the view it was in: source stays source, diff stays diff.

The footer always shows the harness and model in use (Agent: agy (gemini-3.6-flash-low)). Click it to switch harnesses or choose a different model.

When Something Goes Wrong

If the harness fails, the error appears inline under your instruction together with the harness's stdout and stderr, which usually say why (for example an invalid API key). Nothing is lost: the composer stays open with your instruction.

Guards

  • Several edits can run at once, each in its own box, as long as their line ranges don't overlap. A range that overlaps an edit already in flight is refused: two harnesses rewriting the same lines would produce a result nobody could review.
  • Closing the tab while an edit is still running asks for confirmation first, so a harness is never abandoned mid-write with no way to see how it went.
  • Edits are accepted only from px0's own page, opened by IP address or localhost. Through a hostname (reverse proxy, tunnel domain) they are refused. Anyone who can reach px0 by IP can run the harness as you, so keep -host 0.0.0.0 to private networks.
  • Nothing runs until you pick a harness. -agent pins one for the session; -no-agent turns editing off.

Settings & Configuration (settings.json)

px0 provides a built-in Settings editor modeled after VS Code. Settings are stored per-user in ~/.px0/settings.json (or $XDG_CONFIG_HOME/px0/settings.json), keeping your workspace repository clean.

Opening Settings

  • Press Cmd+, (macOS) or Ctrl+, (Linux/Windows).
  • Click the ⚙️ Settings button in the bottom status bar.
  • Open the Command Palette (Cmd/Ctrl+Shift+P) and choose Preferences: Open Settings (UI) or Preferences: Open Settings (JSON).

Features

  • UI & Raw JSON Modes: Switch between the graphical form editor and raw JSON mode with syntax validation and live synchronization.
  • Interactive Attribute Tags & Pills: Every setting is tagged with its category, type, current active value, default value, and interactive pill buttons for allowed values (e.g. [line], [block], [underline] for cursor styles; [true], [false] for toggles; numeric ranges and presets). Clicking any pill applies that value immediately.
  • Live Preview Without Reload: Font sizes, line heights, cursor animations, themes, word wrapping, diff layouts, and git gutter indicators apply in real time without refreshing the page.
  • One-Click Reset: Any modified setting displays a Modified badge and a Reset button to restore its factory default.

Key Configurable Settings

Setting Key Default Allowed Values / Options Description
editor.fontSize 13.5 9.0 – 32.0 (px) Viewer font size
editor.fontFamily JetBrains Mono stack CSS font stack Viewer font family stack
editor.lineHeight 21.0 14.0 – 48.0 (px) Viewer line height
editor.tabSize 4 2, 4, 8 Number of spaces per tab
editor.wordWrap "on" "on", "off" Soft wrap lines at editor boundary
editor.lineNumbers "on" "on", "off" Line numbers in gutter
editor.cursorStyle "line" "line", "block", "underline" Cursor style
editor.cursorBlinking "smooth" "blink", "smooth", "solid" Cursor animation style
editor.renderLineHighlight "line" "line", "none" Current line highlight
editor.occurrencesHighlight true true, false Highlight occurrences of selected word
editor.scrollBeyondLastLine true true, false Allow scrolling past file end
editor.bracketPairColorization true true, false Rainbow bracket pairs and bracket matching
workbench.colorTheme "github-dark" 14 built-in themes Workbench color theme
diffEditor.renderSideBySide true true, false Split vs. unified diff view
diffEditor.ignoreTrimWhitespace true true, false Ignore leading/trailing whitespace diffs
`git.gut

Issues· 71 开放

查看全部 Issues在 GitHub 打开

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

> 标签

code-viewerdeveloper-toolsgo

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

> 工具信息

发布日期2026年9月13日
最后更新2026年9月17日
分类开发工具
定价免费

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具