@flow-state-dev/codex
v0.3.0
Published
Codex integration for flow-state-dev: run OpenAI's Codex agent as a block through the Codex SDK.
Maintainers
Readme
@flow-state-dev/codex
Run OpenAI's Codex agent as a block through the Codex SDK.
pnpm add @flow-state-dev/codex @openai/[email protected]import { codexAgent } from "@flow-state-dev/codex";
const agent = codexAgent({
cwd: (ctx) => workspacePathFor(ctx),
resume: (ctx) => storedThreadId(ctx),
onSession: (id, ctx) => storeThreadId(id, ctx),
thread: { sandboxMode: "workspace-write", approvalPolicy: "never" },
client: { apiKey: process.env.CODEX_API_KEY },
});Reference: the codex section of the Flow State API reference.
