A .NET SDK for embedding the Codex agent in your apps and workflows. It wraps the codex CLI and streams JSONL events over stdin/stdout.
You do not need an OpenAI API key to use this SDK. It is enough to use a ChatGPT account with Codex access enabled.
- Any runtime that supports
netstandard2.1or later. - The
codexbinary (you can download it here)
dotnet add package CodexNetusing CodexNet;
var codex = new Codex();
var thread = codex.StartThread();
var turn = await thread.RunAsync("Diagnose the test failure and propose a fix");
Console.WriteLine(turn.FinalResponse);For installation details, configuration, streaming, structured output, and more examples, see the documentation at codexnet.pjmeca.com.
- This SDK is based on the official TypeScript SDK implementation: openai/codex.
- A significant portion of the codebase and documentation was generated with Codex (AI-assisted).
