ClaudeCodeSharpSDK — Development skill for Claude Code
CLI-first .NET / C# SDK for Claude Code CLI with typed thread API, streamed JSONL events, structured outputs.
How to install ClaudeCodeSharpSDK
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open managedcode/ClaudeCodeSharpSDK and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What ClaudeCodeSharpSDK does
CLI-first .NET / C# SDK for Claude Code CLI with typed thread API, streamed JSONL events, structured outputs.
Alternatives in Development
- Claude API — Build apps with the Claude API or Anthropic SDK 94.1k ★
- Ccusage — CLI for analyzing Claude Code/Codex usage from local JSONL files 11.8k ★
- Reverse API Engineer — Reverse engineer any website into a typed API client 1.9k ★
README
ManagedCode.ClaudeCodeSharpSDK
[](https://github.com/managedcode/ClaudeCodeSharpSDK/actions/workflows/ci.yml) [](https://github.com/managedcode/ClaudeCodeSharpSDK/actions/workflows/release.yml) [](https://github.com/managedcode/ClaudeCodeSharpSDK/actions/workflows/codeql.yml) [](https://www.nuget.org/packages/ManagedCode.ClaudeCodeSharpSDK) [](LICENSE)
`ManagedCode.ClaudeCodeSharpSDK` is a .NET SDK for driving the Claude Code CLI from C#.
It is intentionally CLI-first. The library does not reimplement Anthropic APIs or invent its own transport. It wraps the local `claude` binary, runs Claude Code in print mode, and maps the emitted protocol into typed C# models.
What You Get
ClaudeClient/ClaudeThreadAPI for start, resume, run, and stream workflows- real Claude Code print-mode transport via
claude -p - typed parsing for
stream-jsonevents - structured output with
StructuredOutputSchema - optional
Microsoft.Extensions.AIadapter package - optional Microsoft Agent Framework adapter package
- repository automation that tracks upstream changes in
anthropics/claude-code
Source Of Truth
This SDK follows the real Claude Code CLI contract in print mode:
claude -p --output-format jsonclaude -p --output-format stream-json --verbose- upstream reference repository: anthropics/claude-code
If the docs in this repository and the observed CLI behavior ever diverge, the observed CLI behavior wins and the SDK should be updated to match
Related Skills
Codex Agent SDK Go
Go SDK for the OpenAI Codex CLI app-server transport with JSON-RPC 2.0, typed events, approvals, MCP config, a
Claude Code Headless
Programmatically drive the real Claude Code CLI in a PTY — structured semantic/screen/committed events, live t
Runner
Run coding-agent CLIs — Claude Code, Codex, Copilot, Gemini — from .NET: hardened spawning, streamed events, l
Codex Headless
Programmatically drive the real OpenAI Codex CLI in a PTY — structured events, live rollout-stream token strea
Storeops Harness Dotnet
StoreOps API (.NET 8 / ASP.NET Core) governed by a working Claude Code harness — Planner, Generator, Evaluator
Anthropic.SDK
An unofficial C#/.NET SDK for accessing the Anthropic Claude API. This package is not affiliated with, endorse
Related Agents
Keel Plan Lens Dx
【計畫審查/DX 視角】開發者上手成本。建 persona card、量測 time-to-hello-world、走過 discover→install→hello world→first debug 旅程,每站附具體
Engineering API Platform Engineer
Expert API platform engineer for public and partner APIs — contract-first design (OpenAPI/gRPC), versioning an
Concept Mentor.Agent
Explains technical concepts as a structured learning session, connecting them to the SAP Cloud SDK for AI code