VPN state checks
Ask Codex to inspect state before a network-sensitive command.
Codex can manage VPN state through Free VPN CLI when it has SKILL.md and uses JSON output. Keep actions bounded: read current status, choose a region or service preset only when the task needs it, connect, verify, and summarize diagnostics.
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.
SKILL.md documents freevpn services so agents can list service categories, inspect the current preset, or choose Off and General without reading screenshots. Non-default service presets are paid and return license_required for free users.
freevpn services list shows supported service presets.freevpn services categories groups presets such as Streaming, Sports, Social, AI, and Other where available.freevpn services current prints the current preset name on one line.freevpn services --json is the safest form for scripts and agents.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.