https://github.com/thClaws/thClaws
Open-source agent harness platform. Native Rust, multi-provider, runs on your own machine. Sovereign by design.
https://github.com/thClaws/thClaws
agent-harness ai ai-agent ai-agents desktop-app local-first multi-provider rust tauri
Last synced: about 1 month ago
JSON representation
Open-source agent harness platform. Native Rust, multi-provider, runs on your own machine. Sovereign by design.
- Host: GitHub
- URL: https://github.com/thClaws/thClaws
- Owner: thClaws
- License: apache-2.0
- Created: 2026-04-20T01:27:39.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-04-29T07:13:31.000Z (about 2 months ago)
- Last Synced: 2026-04-29T08:36:00.822Z (about 2 months ago)
- Topics: agent-harness, ai, ai-agent, ai-agents, desktop-app, local-first, multi-provider, rust, tauri
- Language: Rust
- Homepage: https://thclaws.ai
- Size: 27.1 MB
- Stars: 614
- Watchers: 4
- Forks: 88
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE-APACHE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
- fucking-awesome-rust - thClaws/thClaws - Native Rust AI agent workspace with multi-provider LLM support, skills system, MCP servers, knowledge bases, and agent orchestration. Features desktop GUI, CLI REPL, and non-interactive modes. [](https://github.com/thClaws/thClaws) (Applications / Productivity)
- awesome-harness-engineering - thClaws - Rust agent harness platform with four surfaces (GUI, CLI, web, one-shot), multi-provider routing, and sovereign-by-design architecture. The most complete open-source reference for a locally-run, offline-capable harness that unifies MCP, skills, AGENTS.md, hooks, and session resumption in a single binary.  (Design Primitives / Task Runners & Orchestration)
- awesome-rust - thClaws/thClaws - Native Rust AI agent workspace with multi-provider LLM support, skills system, MCP servers, knowledge bases, and agent orchestration. Features desktop GUI, CLI REPL, and non-interactive modes. [](https://github.com/thClaws/thClaws) (Applications / Productivity)
- awesome-rust-with-stars - thClaws/thClaws - provider LLM support, skills system, MCP servers, knowledge bases, and agent orchestration. Features desktop GUI, CLI REPL, and non-interactive modes. | 2026-05-07 | (Applications / Productivity)
README
# thClaws ๐ฆ
> **Open-source Agent Harness Platform** โ a native AI agent workspace that codes, automates, remembers, and coordinates. Runs on your own machine. Sovereign by design.
thClaws is a **native-Rust AI agent workspace** that runs locally on your machine. Not just coding โ it edits code, automates workflows, searches your knowledge bases, and coordinates teams of agents, all in one binary. You tell it what you want in natural language; it reads your files, runs commands, uses tools, and talks back to you while it works.
[](#license)
[](#installation)
[](https://www.rust-lang.org/)
---
## See it work
Three tabs, one binary โ captured from a live thClaws session looking at its own source.

Files
preview ยท edit ยท browse โ codemirror + tiptap

Terminal
raw REPL ยท slash commands ยท ANSI tool output

Chat
conversational ยท markdown render ยท tool indicators
---
## Three interfaces, one binary
- **Desktop GUI** (`thclaws`) โ a native window with Terminal, Chat, Files, and optional Team tabs.
- **CLI REPL** (`thclaws --cli`) โ an interactive terminal prompt for SSH, headless servers, or when you want zero GUI overhead.
- **Non-interactive mode** (`thclaws -p "prompt"`) โ runs a single turn and exits. Handy for scripts, CI pipelines, and shell one-liners.
---
## What makes it different
- **Multi-provider.** Anthropic, OpenAI, Gemini, Alibaba DashScope, OpenRouter, Ollama (local and Anthropic-compatible), Agentic Press, plus a generic **OpenAI-compatible** slot (`oai/*`) for LiteLLM / Portkey / Helicone / vLLM / internal proxies โ auto-detected by model name prefix. Switch mid-session with `/model` or swap the whole provider with `/provider`.
- **Any knowledge worker, not just engineers.** Chat tab for researchers, PMs, ops, legal, marketing, finance โ natural-language prompts, file access, knowledge-base lookup, drafting. Terminal tab for engineers who want the raw REPL. Same engine, same sessions, same config โ different preferred surface.
- **Open standards, not a walled garden.** Built on the conventions the agent-tooling industry is converging on, not bespoke formats you have to learn only for us. [Model Context Protocol](https://modelcontextprotocol.io/) for tool servers. [`AGENTS.md`](https://agents.md) for project instructions โ the vendor-neutral standard adopted by Google, OpenAI, Factory, Sourcegraph, and Cursor. `SKILL.md` with YAML frontmatter for packaged workflows. Your configuration is portable between thClaws, other agents that speak the same standards, and whatever comes next.
- **Skills.** Reusable expert workflows packaged as a directory with `SKILL.md` plus optional scripts. The agent picks the right skill automatically when a request matches the `whenToUse` trigger, or you can invoke one explicitly as `/`. Install from a git URL or `.zip` archive with `/skill install`.
- **MCP servers.** Plug in tools built by third parties โ GitHub, filesystems, databases, browsers, Slack, and more. Both stdio and HTTP Streamable transports, with OAuth 2.1 + PKCE for protected servers. Add one with `/mcp add` or ship a `.mcp.json` in your project.
- **Plugin system.** Skills + commands + agent definitions + MCP servers bundled under a single manifest, installable from git or `.zip`. One install, one uninstall, one version to pin โ ideal for sharing a team's extensions.
- **Memory & project instructions.** Drop an `AGENTS.md` (or `CLAUDE.md`) in your repo โ thClaws walks up from `cwd` and injects every match into the system prompt. A persistent memory store holds longer-lived facts the agent has learned about you, classified as `user` / `feedback` / `project` / `reference` and stored as markdown you can read, edit, or commit.
- **Knowledge bases (KMS).** Per-project and per-user wikis the agent can search and read on demand. Drop markdown pages under `.thclaws/kms//pages/`, give each a one-line entry in `index.md`, and the agent gets a table of contents every turn plus `KmsRead` / `KmsSearch` tools. No embeddings โ grep + read, following Andrej Karpathy's LLM-wiki pattern.
- **Agent orchestration.** Delegate subtasks to isolated sub-agents via the `Task` tool โ each gets its own tool registry and can recurse up to 3 levels deep. Scale further with **Agent Teams**: multiple thClaws processes coordinating through a shared mailbox and task queue, each in its own tmux pane and optional git worktree. One agent writes your backend while a teammate builds the frontend in parallel, lead merges the branches when both are done.
- **Settings as one file.** Every knob โ permission mode, thinking budget, allowed/disallowed tools, provider endpoints, KMS attachments โ lives in `.thclaws/settings.json` (project) or `~/.config/thclaws/settings.json` (user). API keys go in the OS keychain by default (macOS Keychain / Windows Credential Manager / Linux Secret Service) with `.env` fallback for CI.
- **Safety first.** A filesystem sandbox scopes file tools to the working directory. Destructive shell commands are flagged before execution. You approve every mutating tool call unless you've opted into auto-approve.
- **Offline-capable.** Ollama (native and Anthropic-compatible) lets you run entirely against a local model โ no cloud round-trip, no API key.
- **Deploy what you build.** Ship the landing pages, web apps, APIs, and AI agents you create through [Agentic Press Hosting](https://agentic-press.com) (partnered with SIS Cloud Service and Artech.Cloud) โ or any other host you prefer. Schedule agents on cron, respond to webhooks, stream from public URLs. The deploy flow ships as a plugin (`/plugin install โฆ-deploy`), so hosts are swappable; the client never locks you in.
- **Shell escape.** Prefix any REPL line with `!` to run a shell command directly โ no tokens, no approval prompt, no agent round-trip (`! git status`, `! ls`, etc.).
---
## Installation
### Pre-built binaries
Download the latest release for your platform from the [Releases page](https://github.com/thClaws/thClaws/releases) or from [thclaws.ai/downloads](https://thclaws.ai/downloads.html).
Supported: macOS (Apple Silicon & Intel), Windows (x86_64 & ARM64), Linux (x86_64 & ARM64).
#### Linux runtime dependencies
The Linux GUI binary links against the Wayland and webkit2gtk client libraries at runtime. Most desktop distros (Ubuntu Desktop, Fedora Workstation, etc.) ship them by default. **Headless servers** (cloud VMs, AWS EC2, Docker images without a display) typically don't โ `thclaws` will fail at startup with `error while loading shared libraries: libwayland-client.so.0`.
Two options on a headless box:
**(a) Use CLI mode** โ no GUI deps required:
```sh
thclaws --cli # interactive REPL
thclaws -p "what does src/main.rs do?" # one-shot
```
**(b) Install the GUI deps** โ only if you actually want to run the webview:
```sh
# Debian / Ubuntu
sudo apt install libwayland-client0 libwebkit2gtk-4.1-0 libsoup-3.0-0
# Fedora / RHEL
sudo dnf install wayland libsoup3 webkit2gtk4.1
```
### Build from source
**Prerequisites:** Rust 1.85+, Node.js 20+, pnpm 9+.
```sh
git clone https://github.com/thClaws/thClaws.git
cd thClaws
# Build frontend (React + Vite, bundled as a single HTML file)
cd frontend && pnpm install && pnpm build && cd ..
# Build Rust (CLI + GUI)
cargo build --release --features gui --bin thclaws
# Run
./target/release/thclaws # GUI
./target/release/thclaws --cli # CLI
./target/release/thclaws -p "what does src/main.rs do?" # one-shot
```
---
## Quick start
```sh
# First run: pick a secrets backend (OS keychain or .env) when prompted
thclaws
# Configure a provider (inside the REPL)
โฏ /provider anthropic
โฏ /model claude-sonnet-4-6
# Or try OpenRouter for 300+ models via one key
โฏ /provider openrouter
โฏ /model openrouter/anthropic/claude-sonnet-4-6
# Drop an AGENTS.md or CLAUDE.md in your repo โ it's read automatically
# Useful slash commands
โฏ /help # list everything
โฏ /models # list available models for the current provider
โฏ /kms # list attached knowledge bases
โฏ /skill install https://github.com/anthropics/skills.git
โฏ /mcp add github https://mcp.github.com
โฏ ! git status # shell escape
```
---
## Configuration
thClaws reads settings in this precedence order (higher wins):
1. CLI flags
2. `.thclaws/settings.json` (project)
3. `~/.config/thclaws/settings.json` (user)
4. `~/.claude/settings.json` (fallback location)
5. Compiled-in defaults
Open-standard files are honored directly:
- `CLAUDE.md` / `AGENTS.md` โ system prompt additions, walked up from `cwd`
- `.thclaws/skills/` / `.claude/skills/` โ skill catalog
- `.thclaws/agents/` / `.claude/agents/` โ subagent definitions
- `.mcp.json` / `.thclaws/mcp.json` โ MCP server configuration
- `.thclaws-plugin/plugin.json` / `.claude-plugin/plugin.json` โ plugin manifest
API keys are **never stored in config files** โ only in the OS keychain (default) or `.env`.
---
## Documentation
- **Official site** โ [thclaws.ai](https://thclaws.ai)
- **Full user manual** โ [thclaws.ai/manual](https://thclaws.ai/manual) *(soon)* or the [`user-manual/`](https://github.com/thClaws/user-manual) companion repo. 24 chapters covering every feature plus 7 walkthrough case studies (static site deploy, Node.js reservation site, news-aggregation agent, etc.).
- [Contributing](CONTRIBUTING.md) โ dev setup, PR flow, commit style
- [Changelog](CHANGELOG.md) โ version history
- [Code of Conduct](CODE_OF_CONDUCT.md) โ Contributor Covenant 2.1
- [Security](SECURITY.md) โ vulnerability disclosure
For books, training, and commercial deployment, see [agentic-press.com](https://agentic-press.com).
---
## License
Dual-licensed under either:
- [MIT License](LICENSE-MIT)
- [Apache License 2.0](LICENSE-APACHE)
at your option. Contributions are accepted under the same dual license.
---
## About
thClaws is developed by **ThaiGPT Co., Ltd.** and published under a dual MIT/Apache-2.0 license. The client is free and open source forever. Enterprise Edition, hosting, and support are commercial offerings โ see [agentic-press.com](https://agentic-press.com) or contact [jimmy@thaigpt.com](mailto:jimmy@thaigpt.com).
Built in Thailand. Meant for the world.