AOSplaneAgentsCodex

Run OpenAI Codex as a cloud agent

Codex is OpenAI’s coding agent. On AOSplane the Codex CLI runs as a cloud agent: an isolated sandbox per run, your own OpenAI account, a budget checked before the run starts, approval gates, and a record of what happened.

  • Hard spend cap per task
  • Linear and Jira
  • Claude Code and Codex

6 sections · 3 min read

On this page6 sections
  1. 01What Codex is
  2. 02Codex in OpenAI’s cloud, Codex on AOSplane
  3. 03Where Codex fits in a fleet
  4. 04How a Codex run works on AOSplane
  5. 05The record
  6. 06Questions

What Codex is

Codex is OpenAI’s family of coding agents. The Codex CLI is the open-source terminal version: it reads a repository, follows the instructions in an AGENTS.md, writes code, runs commands and tests, and proposes a change. OpenAI also offers Codex inside ChatGPT, where tasks run in OpenAI’s own hosted sandboxes, and as an IDE extension.

On AOSplane, the Codex CLI is one of two coding agents you can hand a run to today, beside Claude Code. It is a natural fit for tightly scoped work with short feedback loops: write the tests, fix the flaky fixture, make the small, well-defined diff.

Codex in OpenAI’s cloud, Codex on AOSplane

If you only ever run Codex, OpenAI’s hosted option is the shortest path. Teams pick AOSplane when Codex is one of several agents, or when the questions around a run matter as much as the run.

  • One console for every agent. Codex and Claude Code appear in the same activity view, with spend, tokens, error rate and the runs that need attention.
  • Budgets across agents. Organization, project and agent limits are checked together before any run starts, whichever harness it uses.
  • Approval gates. Permission requests wait in the console for a decision, and the decision is recorded.
  • Your own OpenAI account. Model calls go to it directly, with no markup, and the credential is issued per run.
  • One audit trail. Every run, from any agent, leaves a tamper-evident record verified server-side.

Where Codex fits in a fleet

The fleet example on the home page has Claude Code build, Codex test, and Claude Code review. That split is not a rule, but it shows the idea: each role is its own agent definition with its own harness, model, instructions and budget, and each stage hands verified context to the next. Codex takes the targeted, fast-turnaround stage; the agent that needs the most repository context takes the slower ones. Today you choose the harness and model for each agent explicitly. The Claude Code vs Codex page puts the two side by side.

How a Codex run works on AOSplane

  1. Connect your OpenAI credentials to the workspace. OpenAI’s charges and rate limits stay with that account.
  2. Define a Codex agent: the harness, a model, instructions, and the repository it works in.
  3. Start a run from the console, from a Linear issue or Jira ticket, from the AOSplane agent inside Linear, or over the API with an API key. Slack is rolling out too: mention @AOSplane or use /aos in a channel.
  4. Budget is reserved before the run starts. If the reservation would exceed the headroom at any level, the run does not start.
  5. The sandbox clones the repository and Codex works from it. Your AGENTS.md applies as it would locally.
  6. If Codex asks permission for an action, the request waits at the gate with its context until you approve or deny it.
  7. The run publishes a pull request and its record is kept for your plan’s retention window.

The record

Every Codex run leaves a trail that a reviewer can read after the fact: the task created, with the repository and instructions attached; the budget reserved, with the organization, project and agent checks; each permission approved or denied, with its context; and the pull request handed off. The trail is tamper-evident and verified server-side, and it is kept for 7, 30, 90 or 365 days depending on the plan.

Questions

Do I need an OpenAI API key?

An OpenAI API key is one way. Codex also runs on Azure OpenAI, Amazon Bedrock with a bearer token, another compatible provider, or a ChatGPT subscription. Charges and limits stay with that account; AOSplane bills for platform usage separately.

Does AGENTS.md apply?

Yes. The sandbox works from your repository, so Codex reads the AGENTS.md it finds there.

Can Codex and Claude Code work on the same task?

Yes. Define one agent per role and let them work in relay, each stage handing verified context to the next. See Claude Code as a cloud agent.

Where does the code run?

In an isolated sandbox with the repository attached, one per run. The pull request is published from the run. The cloud agents guide explains the model.

Keep reading

Keep reading.
Guides and comparisons.

Get started

Give your agents
their first task.

Connect your AI account, pick a repository and hand off a task. The free plan is ready in minutes.

Read the quickstart