Claude Code Rust

v1.0.0Coding Agentsstable

🚀 Rust 全量重构的 Claude Code - 性能提升 2.5x,体积减少 97% | High-performance Rust implementation of Claude Code with 2.5x faster startup and 97% smaller binary

aiclaudeclimcpperformance
Share:
1,604
Stars
0
Downloads
0
Weekly
0/5

What is Claude Code Rust?

Claude Code Rust is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 🚀 rust 全量重构的 claude code - 性能提升 2.5x,体积减少 97% | high-performance rust implementation of claude code with 2.5x faster startup and 97% smaller binary

🚀 Rust 全量重构的 Claude Code - 性能提升 2.5x,体积减少 97% | High-performance Rust implementation of Claude Code with 2.5x faster startup and 97% smaller binary

This server falls under the Coding Agents category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • 🚀 Rust 全量重构的 Claude Code - 性能提升 2.5x,体积减少 97% | High-perform

Use Cases

High-performance Rust implementation
2.5x faster startup, 97% smaller binary
lorryjovens-hub

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx claude-code-rust

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Claude Code Rust

Claude Code Rust is a high-performance reimplementation of the Claude Code environment built with Rust and Tauri, offering 2.5x faster startup times and a binary size that is 97% smaller than the original. It provides a full-featured desktop GUI with a three-column workspace — file tree, Monaco editor, and live preview — alongside a lightweight CLI for terminal REPL interaction. Developers who want a snappier AI coding assistant experience with lower resource overhead will find this a compelling alternative to the stock Claude Code installation.

Prerequisites

  • Rust 1.75 or higher installed via rustup (for CLI build)
  • Node.js 18+ and npm (for the Tauri GUI version)
  • An Anthropic API key (ANTHROPIC_API_KEY)
  • Platform build tools: Xcode CLI on macOS, Visual Studio C++ Build Tools + WebView2 on Windows, libwebkit2gtk-4.1-dev + libgtk-3-dev on Linux
  • An MCP-compatible client such as Claude Desktop
1

Clone the repository

Clone the claude-code-rust repository from GitHub to get the source code for both the CLI and GUI variants.

git clone https://github.com/lorryjovens-hub/claude-code-rust.git
cd claude-code-rust
2

Set your Anthropic API key

Export the ANTHROPIC_API_KEY environment variable, or create a .env file in the project root. The API_BASE_URL defaults to the Anthropic endpoint but can be overridden if you use a proxy.

export ANTHROPIC_API_KEY="your-api-key"
export API_BASE_URL="https://api.anthropic.com"
3

Build the CLI binary

Compile the Rust CLI in release mode. The resulting binary is under 5 MB and starts noticeably faster than Node-based alternatives.

cargo build --release
./target/release/claude-code --version
4

Build the Tauri GUI (optional)

If you prefer the full desktop GUI with Monaco editor, file tree, and terminal tabs, install Node dependencies inside the Tauri sub-directory and build.

cd claude-desktop-tauri
npm install
npm run tauri build
5

Configure as an MCP server

Add the compiled CLI binary as an MCP server in your Claude Desktop configuration file so AI clients can invoke it.

{
  "mcpServers": {
    "claude-code-rust": {
      "command": "/path/to/claude-code-rust/target/release/claude-code",
      "args": [],
      "env": {
        "ANTHROPIC_API_KEY": "your-api-key"
      }
    }
  }
}

Claude Code Rust Examples

Client configuration

Minimal claude_desktop_config.json entry pointing at the locally built Rust binary.

{
  "mcpServers": {
    "claude-code-rust": {
      "command": "/usr/local/bin/claude-code",
      "args": [],
      "env": {
        "ANTHROPIC_API_KEY": "sk-ant-...",
        "API_BASE_URL": "https://api.anthropic.com"
      }
    }
  }
}

Prompts to try

Example prompts once the server is connected to a Claude Desktop session.

- "Open the project at ~/my-app and show me the file tree"
- "Run the build command and stream the output to me"
- "Show a git diff of unstaged changes in the current repo"
- "Open a new terminal tab and run the test suite"

Troubleshooting Claude Code Rust

cargo build fails with linker errors on Linux

Install the required system libraries: sudo apt-get install libwebkit2gtk-4.1-dev libgtk-3-dev libssl-dev pkg-config, then retry the build.

API key not recognized at runtime

Ensure ANTHROPIC_API_KEY is set in the env block of your MCP config, or create a .env file in the same directory as the binary. Environment variables exported in your shell are not automatically inherited by MCP clients.

Tauri GUI shows a blank white window on Linux

WebKit2GTK is required for the GUI renderer. Install libwebkit2gtk-4.1-dev and ensure a display server is running (Wayland or X11). Running WEBKIT_DISABLE_COMPOSITING_MODE=1 before launching can also help.

Frequently Asked Questions about Claude Code Rust

What is Claude Code Rust?

Claude Code Rust is a Model Context Protocol (MCP) server that 🚀 rust 全量重构的 claude code - 性能提升 2.5x,体积减少 97% | high-performance rust implementation of claude code with 2.5x faster startup and 97% smaller binary It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Claude Code Rust?

Follow the installation instructions on the Claude Code Rust GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Claude Code Rust?

Claude Code Rust works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Claude Code Rust free to use?

Yes, Claude Code Rust is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Coding Agents MCP Servers

Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "claude-code-rust": { "command": "npx", "args": ["-y", "claude-code-rust"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Claude Code Rust?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides