# C#

Source: https://libtmux.org/en/csharp/latest/

> libtmux for C#, version latest.

![](https://libtmux.org/en/brand/csharp/library/logo.svg)

Drive a real tmux from C#.

LibTmux

You are reading the **latest** documentation. Use the version control in the header to move between releases, or the port dropdown to find a corresponding page in another language.

## Install

### Library `LibTmux`

```console
$ dotnet package add LibTmux --prerelease
```

\--prerelease is required: every release so far carries an -alpha tag, and NuGet skips those unless asked.

### [Workspace Manager](https://libtmux.org/en/csharp/latest/workspace/) `LibTmux.Workspace.Cli`

The workspace package is separate from the core library.

```console
$ dotnet tool install --global LibTmux.Workspace.Cli --prerelease
```

\--prerelease is required: every release so far carries an -alpha tag. Add $HOME/.dotnet/tools to PATH if the shell cannot find tmux-workspace.

### [MCP](https://libtmux.org/en/csharp/latest/mcp/) `LibTmux.Mcp`

Choose your client and configuration scope, then run the command or paste the configuration.

```console
$ claude mcp add tmux -- dnx LibTmux.Mcp --prerelease --yes
```

Runs the server from NuGet without installing it; needs the .NET 10 SDK. Write LibTmux.Mcp@\<version> to pin a version.

Config file: `~/.claude.json (this project)`

### [Topics](https://libtmux.org/en/csharp/latest/topics/)

[Subject-by-subject, with C# in every code block.](https://libtmux.org/en/csharp/latest/topics/)

### [Guides](https://libtmux.org/en/csharp/latest/guides/)

[Task guides for C#.](https://libtmux.org/en/csharp/latest/guides/)

### [Examples](https://libtmux.org/en/csharp/latest/examples/)

[Complete programs, sourced from the code each port tests.](https://libtmux.org/en/csharp/latest/examples/)

### [Concepts](https://libtmux.org/en/csharp/latest/concepts/)

[The domain model every port shares.](https://libtmux.org/en/csharp/latest/concepts/)

## Packages and integrations

### [Workspace Manager](https://libtmux.org/en/csharp/latest/workspace/)

[Load workspace files with the tmux-workspace load prerelease.](https://libtmux.org/en/csharp/latest/workspace/)

### [MCP](https://libtmux.org/en/csharp/latest/mcp/)

[In development. Connect an MCP client to tmux tools and inspect the server API.](https://libtmux.org/en/csharp/latest/mcp/)

## API references

### [Official reference](https://libtmux.org/en/csharp/latest/reference/)

[C# API signatures and documentation, with links to related guides and APIs in other languages.](https://libtmux.org/en/csharp/latest/reference/)

[All C# versions and install instructions](https://libtmux.org/en/csharp/)
