---
title: "Codex"
description: "Run the Codex coding agent inside a VM."
skill: false
---

<Note>
Codex agent documentation is coming soon.
</Note>

```ts @nocheck
import codex from "@rivet-dev/agent-os-codex-agent";

const vm = await AgentOs.create({ software: [common, ...codex] });
const { sessionId } = await vm.createSession("codex", {
  env: { OPENAI_API_KEY: process.env.OPENAI_API_KEY },
});
```
