Theway
FreeNot checkedMinimal MCP (Model Context Protocol) stdio client for the theway agent runtime.
About
Minimal MCP (Model Context Protocol) stdio client for the theway agent runtime.
README
theway is a terminal-first AI coding agent for local developer workflows. It reads and edits files, runs shell commands, keeps resumable SQLite-backed sessions, and works with multiple model providers, including local OpenAI-compatible servers.
The client (theway) and the daemon (thewayd) are separate processes. The daemon owns the agent runtime, tools, sessions, skills, and automation; the TUI is a pure client that spawns or reuses a daemon.
Install and use
Run from source
git clone https://github.com/ptlzc/theway.git
cd theway
cargo build --release
The CLI binary is at ./target/release/theway.
Install from Cargo
cargo install --locked theway-tui theway-daemon
This installs the theway and thewayd binaries from crates.io into ~/.cargo/bin.
Quick install / update with curl
curl -fsSL https://raw.githubusercontent.com/ptlzc/theway/main/scripts/install-release.sh | bash
This downloads the latest prebuilt theway, thewayd, and tgrep release binaries from GitHub for your OS/architecture and atomically replaces the installed copies in ~/.cargo/bin (plus the tw shorthand). It is much faster than cargo install because it never compiles anything.
The script detects Linux/macOS/Windows (x86_64 / aarch64), verifies the downloaded files against the release SHA256SUMS, and leaves a running thewayd alone by default. Linux binaries are built on Ubuntu 22.04, so they require glibc 2.35 or newer. If the installed binary reports GLIBC_… not found, do not try to replace the system glibc; build from source instead with ./scripts/install.sh so the binary links against your local libc.
# Restart the old thewayd after install (other terminal sessions will disconnect)
curl -fsSL https://raw.githubusercontent.com/ptlzc/theway/main/scripts/install-release.sh | bash -s -- --restart-daemon
# Pin a release / choose the install directory
curl -fsSL https://raw.githubusercontent.com/ptlzc/theway/main/scripts/install-release.sh | bash -s -- --tag v0.1.22 --bin-dir ~/.local/bin
If you prefer to inspect the script before running it, download it first:
curl -fsSL https://raw.githubusercontent.com/ptlzc/theway/main/scripts/install-release.sh -o install-release.sh
bash install-release.sh
From a repository checkout, make install-release runs the same script.
The npm package @theway-ai/sdk is a TypeScript SDK for talking to thewayd; it is not the CLI.
Install locally
./scripts/install.sh
This installs theway, thewayd, and the tw shorthand into ~/.cargo/bin.
Start
theway # open the TUI in the current project
theway --resume # pick a previous session
theway --thinking high
theway --provider anthropic --model claude-haiku-4-5
On first use, /model opens the model picker. /model <provider:model-id> switches directly and saves the selection as the next startup default. Set an API key with export <PROVIDER>_API_KEY=... or /login <provider> <key>.
Inside the REPL, /help lists every slash command. The most-used ones are /model, /thinking, /sessions, /compact, /triggers, /cron, and /quit. See docs/startup-modes.md for daemon lifecycle and spawn modes.
What it can do
- Read, write, edit, and search files; run shell commands
- Keep per-project resumable sessions and cross-session memory
- Attach images to the first prompt with
--image - Load skills and provision MCP servers from
~/.theway/config.toml - Delegate work to subagents and orchestrate DAGs
- Create session-scoped triggers and cron jobs, including stateful loops with a triage inbox
- Run command hooks and HTTP webhooks on lifecycle events
- Work with OpenAI-compatible local model servers; see docs/ds4.md
Documentation
- GitHub Wiki — tutorials, FAQ, recipes, and runbooks
- Architecture — crate layout, tool policy, daemon path context, storage
- Startup modes — daemon spawn/reuse and controller lifecycle
- Loops — stateful cron jobs and the triage inbox
- DS4 — KV prefix-cache optimizations for local models
- Hooks — local command hooks and HTTP webhooks
- Extensions — runtime extension authoring
- Graph engineering mode — subagent and DAG orchestration
- Testing and Rust test files — test layout and standards
Community and support
- Report bugs or request features through GitHub Issues.
- Discuss ideas in GitHub Discussions.
Development
cargo build --workspace
cargo test --workspace
cargo clippy --workspace --all-targets -- -D warnings
cargo fmt --all --check
The Makefile wraps the same CI pipeline; make ci runs it locally.
License
Installing Theway
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/ptlzc/thewayFAQ
Is Theway MCP free?
Yes, Theway MCP is free — one-click install via Unyly at no cost.
Does Theway need an API key?
No, Theway runs without API keys or environment variables.
Is Theway hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Theway in Claude Desktop, Claude Code or Cursor?
Open Theway on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
Roblox Studio
Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce
by paralovAWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
by lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
MCPHub
Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.
MCP Servers Rating and User Reviews
Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)
Compare Theway with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
