Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

sing-box

$ sing-box Community High Risk
SagerNet · Browser & Web · GPL-3.0 · macos / linux / windows

sing-box is a high-performance Go proxy engine supporting inbound/outbound HTTP, SOCKS5, Shadowsocks, VMess, VLESS, and TUN virtual interfaces. Provides sing-box check and sing-box format for offline config validation before launching the sing-box run -c config.json daemon.

FCRS-1.0 Score
76 /100
Good
Medium Confidence
Zero-Friction Install
brew install sing-box
CLI vs MCP Decision CLI Only

Acts as a local OS network proxy daemon and TUN packet router (sing-box run); MCP servers cannot manage local sockets or TUN interfaces.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 17 / 25

Includes non-interactive check, format, and version subcommands with clean exit codes, though run is a long-lived daemon and lacks a structured CLI query output.

  • sing-box check -c provides pre-flight config validation
  • sing-box run operates as a blocking daemon
Trust & Safety 15 / 25

Offline check is safe, but running TUN inbounds alters host routing tables with root privileges and config.json contains plaintext proxy secrets.

  • TUN mode requires root/admin and alters system routing
  • Proxy credentials reside in plaintext inside config.json
Setup & Portability 14 / 15

Single static Go binary available via Homebrew, Linux packages, go install, and GitHub Releases.

  • Available via brew install sing-box and cross-platform releases
Utility & Efficiency 13 / 15

Consolidates dozens of proxy protocols, DNS routing, and rule-sets into one fast binary.

  • Unified HTTP/SOCKS5/Shadowsocks/TUN routing engine
Maintenance & Lineage 8 / 10

Actively maintained SagerNet open-source project (SagerNet/sing-box) under GPL-3.0.

  • Active releases in SagerNet/sing-box
Docs & Verifiability 9 / 10

Detailed structured configuration reference at sing-box.sagernet.org and built-in --help.

  • Official configuration docs at sing-box.sagernet.org

Security, Auth & Guardrails

Auth Modes
Config File
Credential Storage

Stores proxy server endpoints, user credentials, and TLS keys inside JSON configuration files passed via -c (e.g. config.json).

Side Effects
Read-Only Local Write
Cost & Quotas

Free, GPL-3.0 open-source Go binary.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# sing-box Agent Rules
- Always run `sing-box check -c config.json` before starting or reloading a proxy config.
- Never enable `tun` inbound or system-proxy flags unattended—TUN modifies host routing tables and requires elevated privileges.
- Avoid printing raw `config.json` secrets into logs.

Agent-Ready Command Recipes

Safe Read-Only Queries

Validate a sing-box JSON config without running
sing-box check -c config.json

Parses and validates all inbound, outbound, and route rules in config.json with exit code 0 on success.

Print build tags and supported protocols
sing-box version

Outputs the sing-box version, Go runtime, and compiled feature tags (e.g., with_gvisor, with_clash_api).

Controlled Writes & Previews

Format a sing-box JSON configuration in place
sing-box format -w -c config.json

Canonicalizes JSON indentation and key ordering in config.json after validating syntax.

Strengths for Agents

  • + sing-box check -c catches schema and routing errors offline before starting the daemon.
  • + Single static binary covering HTTP, SOCKS5, Shadowsocks, and TUN networking.

Caveats & Pitfalls

  • ! TUN inbounds require elevated privileges and alter host-wide network routing.
  • ! config.json typically stores proxy passwords/UUIDs in plaintext.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI