Skip to content

pjmeca/CodexNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

CodexNet

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.

Requirements

  • Any runtime that supports netstandard2.1 or later.
  • The codex binary (you can download it here)

Installation

dotnet add package CodexNet

Quickstart

using 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);

Documentation

For installation details, configuration, streaming, structured output, and more examples, see the documentation at codexnet.pjmeca.com.

Attribution and disclosure

  • 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).

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages