State inspection
Check current VPN state before a network-sensitive task.
MCP-capable tools work best when VPN actions are explicit and parseable. Free VPN CLI provides SKILL.md guidance, JSON status, region commands, service preset checks, and doctor diagnostics without GUI scraping.
The useful setup is not only installing the CLI. The agent needs instructions, parseable commands, and clear permission boundaries.
Have the agent check whether the CLI exists, read status, list regions only when needed, and use doctor output for evidence.
--json for every command the agent parses.doctor --json before producing a troubleshooting summary.The best agent workflow is bounded and inspectable: check state, act only when asked, verify, and report structured evidence.
Check current VPN state before a network-sensitive task.
List regions and set a requested location only when the task requires it.
Run doctor output when network behavior looks wrong.
Add SKILL.md to the agent context so command names and safety notes are not guessed.
Three verbs cover most day-to-day VPN work. set-region and doctor cover region selection and troubleshooting.
Agents should treat VPN work as an explicit sequence. Avoid hidden state changes and always verify with JSON output.
| Command | Why it matters |
|---|---|
freevpn status --json | Read current VPN state without scraping text. |
freevpn regions --json | Find available region labels or slugs before a requested switch. |
freevpn set-region <slug|label> | Persist a user-approved region choice. |
freevpn up --json | Connect and return parseable connection output. |
freevpn doctor --json | Gather evidence before summarizing network issues. |
Agents need predictable commands, parseable output, and diagnostics more than a visual app.
Works with Claude, Cursor, Codex, OpenClaw, Hermes, and any MCP tool, and documents command intent, JSON behavior, exit codes, install flow, GUI scope, and troubleshooting.
Use structured output for state, regions, connection changes, and diagnostics.
Use documented outcomes for wait, retry, already-down, and license-required flows.
Agents should drive the CLI directly; the GUI is for humans.
List, set, connect, verify, and report region changes.
Structured diagnostics help agents explain DNS, route, controller, license, and egress issues.
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.A VPN changes network state, so agent usage should be explicit, parseable, and reversible where possible.
status --json before and after connection changes.doctor --json when a network task fails.--json for command output that an agent reads.license_required.Keep VPN state visible, parseable, and easy to troubleshoot from the terminal.