CodexSharpSDK
Description
CLI-first .NET 10 / C# SDK for OpenAI Codex CLI with typed thread API, streamed JSONL events, structured outputs
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
ManagedCode.CodexSharpSDK
[](https://github.com/managedcode/CodexSharpSDK/actions/workflows/ci.yml) [](https://github.com/managedcode/CodexSharpSDK/actions/workflows/release.yml) [](https://github.com/managedcode/CodexSharpSDK/actions/workflows/codeql.yml) [](https://www.nuget.org/packages/ManagedCode.CodexSharpSDK) [](https://github.com/managedcode/CodexSharpSDK/blob/main/LICENSE)
`ManagedCode.CodexSharpSDK` is an open-source .NET SDK for driving the Codex CLI from C#.
It is a CLI-first `.NET 10 / C# 14` SDK aligned with real `codex` runtime behavior, with:
- thread-based API (
start/resume) - streamed JSONL events
- structured output schema support
- image attachments
--configflattening to TOML- NativeAOT-friendly implementation and tests on TUnit
All consumer usage examples are documented in this README; this repository intentionally does not keep standalone sample projects.
Installation
dotnet add package ManagedCode.CodexSharpSDK
Prerequisites
Before using this SDK, you must have:
codexCLI installed and available inPATH- an already authenticated Codex session (
codex login)
Quick check:
codex --version
codex login
Quickstart
using ManagedCode.CodexSharpSDK;
using var client = new CodexClient();
var thread = client.StartThread(new ThreadOptions
{
Model = CodexModels.Gpt54,
ModelReasoningEffort = ModelReasoningEffort.Medium,
});
var turn = await thread.RunAsync("Diagnose failing tests and propose a fix");
Console.WriteLine(turn.FinalRe
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11