codex-remote-submit
Use this skill to start async execution on a remote machine and return a stable exec_id.
For fast synchronous streaming, use codex-remote exec run via orchestrator routing.
Inputs To Confirm
- •
machine(required): machine profile name in~/.config/codex-remote/config.yaml - •
cmd(required): shell command string - •
project(optional): project id configured on remotecodexd - •
ref(optional but required ifprojectis provided): branch/tag/commit - •
cwd(optional): working directory - •
env(optional): repeatableKEY=VAL
Command Pattern
bash
codex-remote exec start --machine "$MACHINE" --cmd "$CMD"
With optional git context:
bash
codex-remote exec start --machine "$MACHINE" --project "$PROJECT" --ref "$REF" --cmd "$CMD"
Output Contract
- •Expect one-line JSON on stdout.
- •Extract and return:
- •
exec_id - •
machine - •
status
- •
- •If command exits non-zero, treat submission as failed and report stderr directly.
Follow-up Guidance
- •For status: use
codex-remote-result. - •For logs: use
codex-remote-resultlog flow. - •For fast sync commands: use
exec runinstead of this skill.