Run an allowlisted, sandboxed, non-root command via a service token
Runs argv (an exec-style argument vector, NOT a shell string) on the machine the presenting SERVICE TOKEN is pinned to, as a SANDBOXED NON-ROOT user. The token also carries an allowlist of command basenames; argv[0]'s basename must be on it or the call is refused. This is the deliberate OPPOSITE of /api/v1/exec: that one runs an arbitrary shell string as root on a machine named by code; this one runs only a fixed set of non-root commands on a single pinned machine, with no shell. Auth is a SERVICE TOKEN ONLY (Bearer aics_…) — an account API key, an admin token, or anonymous are all rejected 401. A service token bypasses the 24h dormancy gate (it's a server-to-server credential) and is revoke-only. Output is buffered and capped at 8 MiB. Create service tokens manually in the dashboard; list/revoke/audit them via /api/v1/secure-tokens and /api/v1/secure-exec/audit.
Request
- Base URL: https://aicommander.dev
- URL: https://aicommander.dev/api/v1/secure-exec
- Auth: HTTP bearer
Request body
Example request
{
"argv": [
"git",
"status",
"--porcelain"
]
}Response
Command completed (any exit code).
Changes
No recorded changes to this operation across all 1 revision of this API.