Scans ls, jq and curl, reviews the generated default-deny ACL, then
starts an HTTP server with both Explorer UI and ACL enforcement.
apexeinstalled (cargo install --path ../..)ls,jq, andcurlon your$PATH
./run.shSet APEXE_EXAMPLE_PORT=18000 ./run.sh to choose another HTTP port. The default
remains 8000; automated validation chooses a free temporary port.
- Scans
ls,jq, andcurl(extracts flags and generates JSON Schema) - Writes binding files to
./output/modules/ - Prints the generated
~/.apexe/acl.yamlfor review - Prints Claude Desktop and Cursor integration configs that include
--acl - Starts HTTP server with Explorer UI and
--aclat http://127.0.0.1:8000/explorer
The generated ACL allows local readonly tools and denies destructive,
open-world, and unclassified modules by default. cli.ls is a useful safe call
for this example, while cli.curl is expected to be denied until an operator
reviews the policy and adds a narrowly scoped allow rule. Inspect the generated
ACL for cli.jq rather than assuming a classification from its name.
-
Open http://127.0.0.1:8000/explorer in your browser
-
Click
cli.ls→ type{}→ click Call:
{}You'll see your current directory listing immediately. This is the quickest way to verify apexe works.
- Click
cli.lsagain to request a long listing and an operand. Use the schema property that declares the-lflag:lfor BSD/GNUls, orlongfor uutilsls(including Ubuntu 26.04). JSON property names are derived from each installation's declared flags, not portable CLI aliases.
BSD/GNU:
{"l": true, "file": ["/etc/hosts"]}uutils:
{"long": true, "file": ["/etc/hosts"]}Inspect the input schema in Explorer or run apexe list --verbose --format json
with the example's --bindings-dir ./output/modules to confirm the property.
- Click
cli.curl.urlis the operand and is required:
{"url": "https://httpbin.org/get", "silent": true}The generated ACL should refuse this call because curl is an open-world
tool. This is the expected result; review ~/.apexe/acl.yaml before deciding
whether your use case merits a narrow allow rule.
- The response includes
stdout,stderr,exit_code,trace_id, andduration_ms
Explorer prefills only required fields. It uses
nullwhen a required field has no declared default, so replacenullwith a value before executing the call. An untouched required string is rejected by schema validation rather than being sent to the CLI.
After testing with Explorer, switch to stdio for Claude Desktop:
apexe serve --show-config claude-desktop --acl ~/.apexe/acl.yamlCopy the JSON into ~/Library/Application Support/Claude/claude_desktop_config.json, restart Claude Desktop.