Automate Codex with TypeScript
Start, continue, inspect, and manage Codex cloud tasks. Wait durably for complete turn history and create pull requests from completed work.
import { automation, t } from "automate.ax"
import { codex } from "automate.ax/codex"
import { linear } from "automate.ax/linear"
export default automation("Implement Linear issues", () => {
const issue = linear.onIssueCreated()
codex.runCloudTask({
branch: "main",
environmentId: "env_abc123",
prompt: t`Implement ${issue.identifier} and run the test suite.`,
})
})What you can do
Actions
- Start, continue, cancel, and inspect cloud tasks
- Wait durably for task completion
- Page through environments and recent tasks
- Create pull requests and manage archived tasks
Triggers
No provider trigger is published for Codex yet. Use another trigger, then call its actions.