ClawSharp is a desktop application built with Tauri, designed to provide an AI-powered coding assistant experience. This C# port of Claude Code, Anthropic’s terminal-based AI assistant, aims to bring the power of AI-driven code generation and analysis to developers while maintaining cross-platform compatibility and extensibility.
Key Features:
Multi-provider Support: Compatible with popular AI providers such as Anthropic, OpenAI, Gemini, GitHub Models, and Ollama, offering flexibility in choosing the best tool for your workflow.
Cross-platform Compatibility: Runs seamlessly on Windows, Linux, and macOS, supporting both x64 and ARM64 architectures, ensuring broad accessibility.
Persistent Sessions: Maintains chat history, file interactions, and transcripts, allowing users to pick up where they left off without losing context.
Extensibility: Supports plugins, hooks, agents, skills, and MCP servers, enabling developers to customize and extend functionality according to their needs.
Rich GUI Experience: Built with Tauri, ClawSharp provides a full desktop application experience with side-by-side file views, interactive tools, and a comfortable workspace for long-form coding.
Audience & Benefit:
Ideal for developers, coders, and AI enthusiasts who seek an efficient, AI-driven coding assistant. ClawSharp enhances productivity by streamlining code generation, debugging, and project management while offering the flexibility to work across multiple platforms. Its persistent session feature ensures seamless workflow continuity, making it a valuable tool for developers of all levels.
ClawSharp can be installed via winget on Windows, ensuring easy setup and updates.
README
ClawSharp
ClawSharp is a C# port of Claude Code, Anthropic’s terminal-based AI assistant.
I built it because I love .NET, and there still are not many open-source code-agent projects in the .NET ecosystem. I also wanted to learn how a terminal-based coding agent is structured end to end — conversation loop, tool execution, session persistence, provider integration, and terminal UX — by building one myself.
The goal with ClawSharp is to stay close to the original Claude Code workflow while shipping as a single self-contained .NET binary that runs across Windows, Linux, and macOS without requiring Node.js at runtime.
This started as a vibe-coded side project, but I’m treating it as a real tool and a real learning project. Contributions, bug reports, and feedback are very welcome.
Why use ClawSharp?
Single binary — no Node.js runtime after install
Cross-platform — Windows, Linux, and macOS on x64 and ARM64
Desktop App — A beautiful, integrated GUI for those who prefer windows over terminals
Persistent sessions — resume chats, keep transcripts, and retain file history
Extensible — supports plugins, hooks, agents, skills, and MCP servers
The Desktop Experience
ClawSharp now ships with a full Desktop Application built with Tauri. It gives you a rich, multi-window interface for your coding sessions while keeping the core AI engine native and fast.
You get the same power as the CLI, but with side-by-side file views, interactive tools, and a more comfortable workspace for long-form coding.
Current status
ClawSharp is usable today, but some parts of Claude Code are still being aligned.
Related projects
A few open projects in a similar space that I’ve looked at for reference and inspiration:
claw-code — a public Rust implementation of the claw CLI agent harness
openclaude — an open-source coding-agent CLI for cloud and local model providers
Install
Preferred: Package Managers
The easiest way to stay up to date is through your favorite package manager:
macOS (Homebrew)
brew tap claw-sharp/tap
brew install --cask clawsharp
# Using WinGet
winget install ClawSharp
# Using Scoop
scoop bucket add claw-sharp https://github.com/claw-sharp/scoop-bucket
scoop install clawsharp
Standalone CLI
If you only want the terminal agent as a global command:
npm install -g clawsharp
clawsharp --help
Direct Download
Don't like package managers? Snag the latest .exe, .dmg, or .tar.gz directly from our GitHub Releases.
A Note on Security (Gatekeeper & SmartScreen)
Since ClawSharp is an independent open-source project, our releases are currently unsigned. This helps us stay at zero recurring platform cost, but it does mean your OS will be a bit suspicious at first:
Windows: You'll see a blue "SmartScreen" box. Click "More info" and then "Run anyway".
macOS: When you first open the app, it might be blocked. Right-click the app icon in your Applications folder and choose Open, or go to System Settings > Privacy & Security and click "Open Anyway".
We treat your code and privacy with the highest respect—the app is fully open-source, so you can always audit what’s happening under the hood.
Update
npm update -g clawsharp
# or pin to latest:
npm install -g clawsharp@latest
Quick Start: Claude API Key
The simplest way to test ClawSharp is with a direct Anthropic API key.
Using an environment variable
# macOS / Linux
export ANTHROPIC_API_KEY="sk-ant-..."
clawsharp
# Windows (PowerShell)
$env:ANTHROPIC_API_KEY = "sk-ant-..."
clawsharp
git clone https://github.com/claw-sharp/ClawSharp.git
cd ClawSharp
export ANTHROPIC_API_KEY="sk-ant-..."
dotnet run --project src/ClawSharp.Cli
When the REPL starts, type any message and press Enter. Claude will respond in the terminal.
Quick Start: Codex (auth.json)
ClawSharp supports the Codex provider through its native auth.json token file, designed to mirror the original Claude Code behavior.
Locate or create your auth.json
The Codex auth file is typically written by the official codex CLI (~/.codex/auth.json on macOS/Linux, %USERPROFILE%\.codex\auth.json on Windows). It contains an access_token and an account_id.
ClawSharp started as a personal learning project and is still evolving. If you're interested in code agents, terminal tooling, or building more AI-native tools in .NET, contributions, issues, and feedback are welcome.