apexe
Governed execution for CLI tools and HTTP APIs
Run your tools. Enforce your rules. apexe gives people and AI agents a shared execution layer built on apcore. Discover existing CLI commands without an LLM or source changes, run them locally with the shared Agent Skill for terminal agents, or expose CLI and imported OpenAPI operations through MCP and A2A. Typed schemas, configured access rules, approval checks and audit records govern each call. Start with reviewed rules, inspect the generated policy, then choose terminal execution, eligible shell shims or an agent server. Normal execution uses host privileges; apexe is not a sandbox.
Get Started
Rust implementation for Unix CLI tools and HTTP APIs. Use a prebuilt macOS/Linux release or build from Git with current stable Rust and Cargo. Native Windows is unsupported; no older minimum Rust version is declared or tested.
$ cargo install --git https://github.com/aiperceivable/apexe# Initialize installed CLI coverage from reviewed rules
apexe init
apexe list --verbose
# Review ~/.apexe/acl.yaml before executing or serving
apexe exec cli.ls --dry-run
apexe exec cli.ls
# MCP HTTP with ACL, interactive approval and Explorer UI
apexe serve --transport http --port 8000 --explorer --acl ~/.apexe/acl.yaml --enable-approval
# Or serve the same bindings through A2A
apexe a2a --acl ~/.apexe/acl.yaml
# Agent Skill native route: requires native_ready coverage (BSD cat/head/ls)
apexe exec --dry-run -- ls -la
apexe exec -- ls -la
# Optional shell integration for eligible commands
apexe env --enable
source ~/.apexe/bin/apexe-activate.sh
apexe env --check
# Optional: point a terminal agent at the governed shell
apexe agent pi --check
apexe agent pi --write
apexe sh --check
# Optional: serve an API using your specification and reviewed API ACL
apexe serve --openapi ./openapi.yaml --acl ./api-acl.yaml --no-log-arguments
# Check CLI source drift without replacing bindings
apexe verify --report ./drift-report.jsonFeatures
Related Products
apcore
The shared registry, schema validation and governed executor behind CLI and API modules.
View Productapcore-mcp
MCP serving with structured results, authentication, middleware and Explorer UI.
View Product