← ui

codex

ui · paid

OpenAI's Codex CLI terminal UI, drawn from an agent session

npx shadcn add @ag/codex

A paid item: its source installs with a licence key, kept in .env.local as AG_LICENCE_KEY and sent from components.json. The source stays in your project and out of any public repository. The licence

components.json
{
  "registries": {
    "@ag": {
      "url": "https://ui.adriangalilea.com/r/{name}.json",
      "headers": { "Authorization": "Bearer ${AG_LICENCE_KEY}" }
    }
  }
}
Already installed? Preview an update
npx shadcn add @ag/codex --dry-run

Your installed source stays unchanged until you update it. How updates work

Latest changes · 2026-09-30
  • New: OpenAI Codex CLI's terminal UI drawn from an agent-session: the header box, › prompts, • replies and Ran commands with their └ output, the working line, the ─ Worked for 2h 14m rule a finished turn leaves, the composer. Same terminal reading as claude-code.
Updated 2026-09-30 · release notes

shelf devices & demos

uses agent-session

the demo above, verbatim

codex.demo.tsx
"use client"

import { Sample } from "@/app/samples"
import type { AgentEntry } from "@/registry/base-nova/lib/agent-session"
import { Codex } from "@/registry/base-nova/ui/codex"

// #region session
const ENTRIES: AgentEntry[] = [
  {
    kind: "prompt",
    text: "Refactor the invoice pipeline to stream, then run the tests.",
  },
  { kind: "say", text: "Reading the pipeline first." },
  {
    kind: "tool",
    name: "Bash",
    arg: "rg -n 'buildInvoice' src",
    result: ["src/invoice/pipeline.ts:42: export function buildInvoice("],
  },
]
// #endregion

export default function CodexDemo() {
  return (
    <Sample
      name="working"
      glance="large"
      title="at work"
      description="a transcript and the working line"
      with="session"
    >
      <div className="h-[420px] rounded-xl bg-[#161617] p-5 font-mono text-[13px] leading-[1.45]">
        <Codex
          entries={ENTRIES}
          work={{ seconds: 64, request: 12, tokens: 1800, ms: 0 }}
          draft=""
          cwd="~/invoices"
        />
      </div>
    </Sample>
  )
}