frp client
$ frpc Community High Riskfrpc connects local services behind NAT or firewalls to a public frps relay over TCP, KCP, QUIC, or WebSocket (frpc -c frpc.toml). Supports offline config validation (frpc verify), remote status inspection (frpc status), and quick CLI subcommands without writing a config file.
brew install frpc Maintains persistent multiplexed tunnel connections from localhost to an frps server; no MCP tool can replace network socket forwarding.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports frpc verify -c and frpc status -c cleanly, but main tunnel execution is a foreground daemon outputting plain-text logs without JSON.
frpc verify -cvalidates config without connecting- Main tunnel process emits unstructured text logs
Exposes local TCP/HTTP services through a remote frps relay, and TOML configs often store shared auth.token values.
- Publicly exposes localhost ports behind NAT via
frps - Supports env var templating (
{{ .Envs.* }}) infrpc.toml
Single static Go binary distributed via Homebrew and GitHub Releases for macOS, Linux, and Windows.
- Available via
brew install frpcand official release archives
Battle-tested NAT traversal supporting TCP, UDP, HTTP/HTTPS virtual hosts, and STCP peer-to-peer tunnels.
- Multi-protocol reverse proxy with HTTP/TCP/STCP support
Mature community project (fatedier/frp) under Apache-2.0 with consistent releases.
- Long-running
fatedier/frpGitHub repository
Well-organized bilingual documentation at gofrp.org covering TOML configs and subcommands.
- Official docs at gofrp.org/en/docs/
Security, Auth & Guardrails
Reads auth.token or OIDC credentials from frpc.toml (supports {{ .Envs.VAR }} environment variable templating).
Free, Apache-2.0 open-source Go binary; requires a self-hosted or accessible frps server.
# frpc Agent Rules
- Run `frpc verify -c frpc.toml` before launching `frpc`.
- Never start `frpc` against a public `frps` without explicit user approval, as it exposes internal local ports externally.
- Reference shared secrets with `{{ .Envs.FRP_TOKEN }}` instead of hardcoding tokens in `frpc.toml`. Agent-Ready Command Recipes
Safe Read-Only Queries
frpc verify -c frpc.toml
Validates proxy definitions, server address, and TOML schema in frpc.toml without opening a tunnel.
frpc status -c frpc.toml
Queries the configured local frpc admin endpoint for running proxy states.
Controlled Writes & Previews
frpc -c frpc.toml
Connects to the configured frps server and exposes the local ports listed in frpc.toml until stopped.
Strengths for Agents
- +
frpc verify -cvalidates TOML tunnel configs offline before opening connections. - + Supports environment-variable substitution (
{{ .Envs.* }}) and STCP private tunnels.
Caveats & Pitfalls
- ! Exposing local ports through
frpsbypasses inbound firewalls and increases attack surface. - ! Lacks structured JSON CLI output; logs are plain text.