Skip to Content

Setup commands

apxy certs and apxy ssl handle certificates and HTTPS interception. apxy init creates a project .apxy/ folder. apxy setup mcp registers APXY with MCP clients. apxy setup skills installs the apxy skill as files for agents that don’t load it over MCP. apxy upgrade installs the latest version.

apxy mcp runs the APXY MCP server itself. apxy setup mcp is the separate helper that previews or applies MCP client configuration.

apxy setup

Configure external client integrations

Options

-h, --help help for setup

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy - Verify code changes against the HTTP requests they send
  • apxy setup agents - Add the APXY verify section to AGENTS.md and CLAUDE.md
  • apxy setup mcp - Configure MCP clients to use APXY
  • apxy setup skills - Install the APXY agent skill as files for agents without MCP skills

apxy setup agents

Add the APXY verify section to AGENTS.md and CLAUDE.md

Synopsis

Write a short “Verify HTTP changes with APXY” section into the project’s agent instruction files, so any coding agent that opens the repo learns the apxy mark and apxy wait loop and the set_mark and wait_for_request MCP tools.

The section sits between <!— apxy:start —> and <!— apxy:end —>. Rerunning replaces only that block; —remove deletes it.

Targets: AGENTS.md always, plus CLAUDE.md when it exists and does not import @AGENTS.md. —target picks files explicitly. The project is the nearest directory above the current one that holds .git, or —dir.

Nothing is written without consent: the command shows the diff and asks. —yes applies without asking; —dry-run only prints the diff. Without a terminal and without —yes it refuses.

apxy setup agents [flags]

Examples

apxy setup agents apxy setup agents --dry-run apxy setup agents --target claude --yes apxy setup agents --remove

Options

--dir string project directory (default: nearest .git root above the current directory) --dry-run print the diff and write nothing -h, --help help for agents --remove remove the APXY section instead of writing it --target strings files to write: agents, claude (default: AGENTS.md, plus CLAUDE.md when it exists) -y, --yes apply without asking

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy setup - Configure external client integrations

apxy setup mcp

Configure MCP clients to use APXY

Synopsis

Preview or apply MCP client setup for APXY.

Codex and Claude Code are configured through their native provider CLIs. Other supported MCP clients are shown as manual JSON snippets for the user to apply directly.

apxy setup mcp [flags]

Options

--all show or apply setup for all supported providers --client string target MCP client: codex, claude-code, claude-desktop, cursor, vscode, windsurf -h, --help help for mcp --scope string target scope for the selected client --write apply provider CLI setup where automatic configuration is supported

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy setup - Configure external client integrations

apxy setup skills

Install the APXY agent skill as files for agents without MCP skills

Synopsis

Write the apxy skill embedded in this binary to an agent’s user skill directory, for agents that do not load skills over MCP (Codex, Cursor, claude -p, CI).

Targets: codex ~/.agents/skills/apxy (Cursor reads this directory too) claude-code ~/.claude/skills/apxy

Without —write the command only prints what it would write. Each written directory gets a .apxy-installed marker holding the apxy version. A directory without the marker is never overwritten, since it may hold your own edits. Rewriting a marked directory replaces it whole, so files the skill no longer ships are removed.

Every apxy command checks the markers when it starts and rewrites a marked directory whose marker names another apxy version, so installed copies follow the binary after brew upgrade, install.sh, or apxy upgrade. —refresh does the same rewrite on demand: it rewrites every marked directory and skips the rest.

apxy setup skills [flags]

Examples

apxy setup skills apxy setup skills --client codex --write apxy setup skills --all --write apxy setup skills --refresh

Options

--all show or write every target --client string target agent: codex, claude-code -h, --help help for skills --refresh rewrite every installed (marked) skill directory --write write the skill files

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy setup - Configure external client integrations

apxy certs

Generate, inspect, and trust APXY certificates

Options

--cert-dir string directory for certificates (default "~/.apxy/certs") -h, --help help for certs

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

apxy certs custom

Manage custom Certificate Authorities per domain

Options

-h, --help help for custom

Options inherited from parent commands

--cert-dir string directory for certificates (default "~/.apxy/certs") --config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

apxy certs custom add

Add a custom CA for a domain pattern

Synopsis

Add a custom Certificate Authority for a specific domain pattern. The proxy will use this CA to sign certificates for matching domains instead of the default APXY CA.

Flags: —domain domain pattern, e.g. *.example.com (required) —cert path to CA certificate file, .crt or .pem (required) —key path to CA private key file, .key or .pem (required) —label optional label for this CA —no-trust skip installing the CA in the system trust store

apxy certs custom add [flags]

Examples

apxy certs custom add --domain "*.example.com" --cert ./ca.crt --key ./ca.key apxy certs custom add --domain "internal.corp" --cert ./corp-ca.pem --key ./corp-ca-key.pem --label "Corp CA" --no-trust

Options

--cert string path to CA certificate file (.crt/.pem) --control-url string control API URL (default "http://127.0.0.1:8081") --domain string domain pattern (e.g. *.example.com) -h, --help help for add --key string path to CA private key file (.key/.pem) --label string optional label for this CA --no-trust skip installing CA in system trust store

Options inherited from parent commands

--cert-dir string directory for certificates (default "~/.apxy/certs") --config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

apxy certs custom info

Show details for a custom CA

Synopsis

Show detailed information about a custom Certificate Authority, including subject, expiry, and file paths.

The —domain flag is required.

apxy certs custom info [flags]

Examples

apxy certs custom info --domain "*.example.com"

Options

--control-url string control API URL (default "http://127.0.0.1:8081") --domain string domain pattern to inspect -h, --help help for info

Options inherited from parent commands

--cert-dir string directory for certificates (default "~/.apxy/certs") --config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

apxy certs custom list

List all custom CAs

Synopsis

List all custom Certificate Authorities, including their domain patterns, labels, and expiry dates.

Flags: —format output format: json or toon (default: json)

apxy certs custom list [flags]

Examples

apxy certs custom list apxy certs custom list --format toon

Options

--control-url string control API URL (default "http://127.0.0.1:8081") --format string output format: json|toon (default "json") -h, --help help for list -q, --quiet output only IDs, one per line

Options inherited from parent commands

--cert-dir string directory for certificates (default "~/.apxy/certs") --config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

apxy certs custom remove

Remove a custom CA by domain pattern or all custom CAs

Synopsis

Remove a custom Certificate Authority by its domain pattern, or remove all custom CAs with —all.

Either —domain or —all is required.

apxy certs custom remove [flags]

Examples

apxy certs custom remove --domain "*.example.com" apxy certs custom remove --all

Options

--all apply to all resources --control-url string control API URL (default "http://127.0.0.1:8081") --domain string domain pattern to remove --dry-run preview what would happen without executing -h, --help help for remove

Options inherited from parent commands

--cert-dir string directory for certificates (default "~/.apxy/certs") --config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

apxy certs custom trust

Trust a previously added custom CA in the system keychain

Synopsis

Install a previously added custom CA certificate into the system trust store.

The —domain flag is required. On macOS this may require sudo for Keychain access.

apxy certs custom trust [flags]

Examples

apxy certs custom trust --domain "*.example.com"

Options

--control-url string control API URL (default "http://127.0.0.1:8081") --domain string domain pattern whose CA to trust -h, --help help for trust

Options inherited from parent commands

--cert-dir string directory for certificates (default "~/.apxy/certs") --config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

apxy certs generate

Generate the APXY root CA certificate

Synopsis

Generate a new root Certificate Authority (CA) certificate and private key for HTTPS interception.

apxy certs generate [flags]

Examples

apxy certs generate

Options

-h, --help help for generate

Options inherited from parent commands

--cert-dir string directory for certificates (default "~/.apxy/certs") --config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy certs - Generate, inspect, and trust APXY certificates

apxy certs info

Show details for the APXY root CA certificate

Synopsis

Show subject, issuer, serial number, validity dates, and key usage for the APXY root CA certificate.

apxy certs info [flags]

Examples

apxy certs info

Options

-h, --help help for info

Options inherited from parent commands

--cert-dir string directory for certificates (default "~/.apxy/certs") --config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy certs - Generate, inspect, and trust APXY certificates

apxy certs trust

Trust the APXY root CA in the system keychain

Synopsis

Install the APXY root CA certificate into the system trust store.

On macOS this may require sudo for Keychain access.

apxy certs trust [flags]

Examples

apxy certs trust

Options

-h, --help help for trust

Options inherited from parent commands

--cert-dir string directory for certificates (default "~/.apxy/certs") --config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy certs - Generate, inspect, and trust APXY certificates

apxy ssl

Manage HTTPS interception rules for the running proxy

Options

-h, --help help for ssl

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy - Verify code changes against the HTTP requests they send
  • apxy ssl disable - Disable HTTPS interception for a domain or all domains
  • apxy ssl enable - Enable HTTPS interception for a domain
  • apxy ssl list - List domains with HTTPS interception enabled

apxy ssl disable

Disable HTTPS interception for a domain or all domains

Synopsis

Disable HTTPS interception for a specific domain or all domains with —all. Traffic to disabled domains will pass through as opaque TLS.

Either —domain or —all is required.

apxy ssl disable [flags]

Examples

apxy ssl disable --domain "api.example.com" apxy ssl disable --all

Options

--all apply to all resources --control-url string control API URL (default "http://127.0.0.1:8081") --domain string domain to disable SSL interception --dry-run preview what would happen without executing --global use the global rules (~/.apxy/rules.json) instead of this workspace's (<worktree>/.apxy/rules.json): global rules apply to untagged traffic, such as browsers on the system proxy and iOS simulators, and to every workspace after its own. Outside a git worktree, rules are always global -h, --help help for disable

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy ssl - Manage HTTPS interception rules for the running proxy

apxy ssl enable

Enable HTTPS interception for a domain

Synopsis

Enable HTTPS interception for a specific domain, allowing the proxy to decrypt and inspect TLS traffic.

The —domain flag is required.

apxy ssl enable [flags]

Examples

apxy ssl enable --domain "api.example.com"

Options

--control-url string control API URL (default "http://127.0.0.1:8081") --domain string domain to enable SSL interception --global use the global rules (~/.apxy/rules.json) instead of this workspace's (<worktree>/.apxy/rules.json): global rules apply to untagged traffic, such as browsers on the system proxy and iOS simulators, and to every workspace after its own. Outside a git worktree, rules are always global -h, --help help for enable

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy ssl - Manage HTTPS interception rules for the running proxy

apxy ssl list

List domains with HTTPS interception enabled

Synopsis

List all domains that currently have HTTPS interception enabled.

Flags: —format output format: json or toon (default: json)

apxy ssl list [flags]

Examples

apxy ssl list apxy ssl list --format toon

Options

--control-url string control API URL (default "http://127.0.0.1:8081") --format string output format: json|toon (default "json") --global use the global rules (~/.apxy/rules.json) instead of this workspace's (<worktree>/.apxy/rules.json): global rules apply to untagged traffic, such as browsers on the system proxy and iOS simulators, and to every workspace after its own. Outside a git worktree, rules are always global -h, --help help for list -q, --quiet output only IDs, one per line

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy ssl - Manage HTTPS interception rules for the running proxy

apxy init

Initialize a project-scoped APXY workspace

Synopsis

Creates a .apxy/ directory in the current project with a committable settings.json, a project CA, and a .gitignore for private keys and data.

apxy auto-discovers the nearest .apxy/ from the current directory, so run: apxy start

Project mode replaces ~/.apxy for that run. Use —no-project to force global.

apxy init [flags]

Options

--commit-rules let git track .apxy/rules.json, the mocks and rules of this worktree (by default it is git-ignored, because mock bodies can hold tokens) -h, --help help for init

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy - Verify code changes against the HTTP requests they send

apxy mcp

Run the APXY MCP server for AI clients

Synopsis

Run the APXY Model Context Protocol server over stdio for Cursor, Claude, VS Code, and similar AI clients. The server also serves the apxy Agent Skill through the MCP skills extension, so clients that support it (Claude Code) load it as apxy:apxy with no install.

apxy mcp [flags]

Options

-h, --help help for mcp --no-skills Serve tools only, without the apxy skill (use when the skill is already installed as files, as the Claude Code plugin does)

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy - Verify code changes against the HTTP requests they send

apxy upgrade

Upgrade apxy to the latest version

Synopsis

Check for a newer version of apxy and upgrade if one is available.

For direct binary installs the new binary is downloaded, verified, and replaces the current binary atomically. For Homebrew or go install, the appropriate upgrade command is printed instead.

apxy upgrade [flags]

Options

-h, --help help for upgrade

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy - Verify code changes against the HTTP requests they send
Last updated on