WG
Generated by scripts/gen-format-pages.py from docs/data/format-metadata/, FILE_FORMATS.csv and docs/formats-master.csv. Do not edit by hand: change the source, then run the script.
WireGuard Config Preview.
At a glance
| Purpose | A WireGuard configuration: an [Interface] section and [Peer] sections with keys, addresses, allowed IPs and endpoints. |
| Extensions | .wg |
| Poka parser | poka-wireguard |
| Viewer | poka-metadata-card-viewer |
| Depth tier | Metadata card (see Depth tiers) |
| Breadth tier | B2 Broad (see Breadth tiers) |
How much Poka reads
B2 Broad. The common content of the current and the common older versions is decoded. Some named features or versions are not, and are listed.
Confidence: medium (the reviewer read the code). Basis: Reviewed 2026-10-26: read parsers/poka-wireguard/src/main.rs (195 lines) and plugin.json. No unit tests or tests/samples.rs; the corpus has no .wg and .wgconf sample. Covers .wg and .wgconf. The card shows the interface and every peer with their keys and values; private and preshared keys are redacted. Judgement: B2: every section and key is shown.
What Poka does not read
- Private and preshared keys are redacted (by design)
- PostUp and PostDown commands are shown as written
- wg-quick specific keys are not distinguished
Libraries
Libraries Poka uses or has assessed for this format, with the status, licence and language the registry records.
- wgconfig (reference; AGPL-3.0-or-later; Python; https://pypi.org/project/wgconfig/) — copyleft; Parses and writes WireGuard configs preserving comments; handles repeated [Peer] sections.
- @hertzg/wg-conf (reference; GPL-2.0-only; TypeScript; https://jsr.io/@hertzg/wg-conf) — copyleft; wg-quick parser/stringifier (Interface and Peer sections); no Rust crate for the format was confirmed.
Sources
- parsers/poka-wireguard/src/main.rs
- parsers/poka-wireguard/plugin.json