Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Theway

FreeNot checked

Minimal MCP (Model Context Protocol) stdio client for the theway agent runtime.

GitHubEmbed

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

Community and support

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

MIT

from github.com/ptlzc/theway

Installing Theway

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/ptlzc/theway

FAQ

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

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