VPN state checks
Ask Codex to inspect state before a network-sensitive command.
Codex can operate Free VPN CLI reliably when it has SKILL.md, uses JSON output, checks exit codes, and runs doctor before making network assumptions.
Add SKILL.md to Codex context before asking it to manage VPN state.
Have Codex check install, read status, and use diagnostics rather than guessing.
status --json as the authoritative state check.doctor --json before troubleshooting summaries.Use Codex for bounded network work: inspect, change only when asked, verify, and report.
Ask Codex to inspect state before a network-sensitive command.
Switch region only when requested and verify status afterward.
Use doctor output when API calls or tests fail.
Keep SKILL.md available so Codex follows documented behavior.
Three verbs cover most day-to-day VPN work. set-region and doctor cover region selection and troubleshooting.
Codex should use a small repeatable command set and explain any network state changes it makes.
| Command | Why it matters |
|---|---|
freevpn status --json | Read current VPN state before acting. |
freevpn regions --json | Inspect available regions. |
freevpn set-region "US East"freevpn up --json | Connect to a requested region with parseable output. |
freevpn doctor --json | Collect diagnostics before making network claims. |
Codex benefits from the same agent-safe primitives: SKILL.md, JSON, exit codes, and doctor diagnostics.
Works with Claude, Cursor, Codex, OpenClaw, Hermes, and any MCP tool. SKILL.md explains GUI scope, install checks, command names, and troubleshooting.
Use JSON for any command Codex needs to parse.
Branch on documented outcomes instead of guessing from text.
Doctor output gives structured evidence for summaries.
List, set, connect, and verify region changes.
Use CLI status as authoritative over GUI screenshots.
The safest workflow is explicit, parseable, and easy for the user to review.
command -v freevpn and version --json before assuming install.status --json as authoritative.doctor --json for network failures.--json for every command it needs to parse.freevpn doctor --json.Give Codex SKILL.md and keep VPN work structured through JSON commands and doctor diagnostics.