{"repo":"0xeb/claude-agent-sdk-dotnet","free":true,"listed":false,"github":"https://github.com/0xeb/claude-agent-sdk-dotnet","clone":"git clone https://github.com/0xeb/claude-agent-sdk-dotnet.git","description":"A modern .NET library for interacting with the Claude Code CLI, with full Python SDK parity.","language":"C#","stars":34,"topics":["agent","ai","anthropic","claude","cli","csharp","dotnet","llm","mcp","sdk"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Claude Agent SDK for .NET A modern .NET library for interacting with the Claude Code CLI, providing both a simple one-shot QueryAsync() API and a full bidirectional client with control-protocol support. Disclaimer: This is an independent, unofficial port and is not affiliated with or endorsed by Anthropic, PBC. Features - Simple Claude.QueryAsync() API for one-shot requests - ClaudeSDKClient for multi-turn, bidirectional conversations - Control protocol support (interrupts, modes, dynamic model switching) - Hook system (PreToolUse, PostToolUse, UserPromptSubmit) - Tool permission callbacks with allow/deny control - In-process MCP server support (tools, prompts, resources) - Cross-platform: Windows, Linux, macOS - Source-generated JSON models for message types - Well-tested: 109 tests (90 unit + 19 integration; integration tests are disabled by default) Prerequisites - .NET 8.0 or .NET 9.0 - Claude Code CLI = 2.0.0: CLI Path Resolution The SDK discovers the Claude Code CLI in this order: 1. ClaudeAgentOptions.CliPath (explicit path) 2. CLAUDE CLI PATH environment variable 3. PATH search for claude (or claude.cmd on Windows) Quick Start One-Shot Query Multi-Turn Conversation With Options Tool Permission Callback Hooks MCP Tools (In-Process) Custom Agents Sandbox Configuration Configuration ClaudeAgentOptions mirrors the Python SDK's options: Property Type Description ---------- ------ ------------- SystemPrompt string? Custom system prompt MaxTurns int? Maximum conversation tur","default_branch":null,"files":null,"tree":[],"storefront":"/r/0xeb","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/0xeb/claude-agent-sdk-dotnet/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}