๐ One Binary to Rule Them All โ Your AI Coding Assistant in the Terminal
Stop switching between Claude Code, Codex, Claw, and Hermes.
MothX packs everything into a single file โ providers, tools, sandbox, sessions, skills, and more.
ๅฝๅ ้ๅ: Gitee
Rename notice: MothX was formerly known as VibeCoding. During this transition release, legacy entry points such as the
vibecodingcommand, the old installer package names, andVIBECODING_*environment variables are kept for compatibility. Legacy.vibecodingand.vibedirectories are automatically migrated to.mothxwhen found.
The Problem: You're juggling multiple AI coding tools โ Claude Code for one thing, Codex for another, Claw for something else. Each has its own setup, its own quirks, its own dependencies.
The Solution: MothX is the all-in-one terminal AI coding assistant that does it all. One binary. One config. Zero hassle.
| Feature | What It Means for You |
|---|---|
| โ๏ธ Workflow Mode | Dynamic Elisp workflows with phases, parallel execution, and multi-worker coordination โ automate complex development pipelines |
| ๐ค Multi-Provider | DeepSeek, OpenAI, Anthropic, Volcengine/Doubao, LongCat, Mistral, GitHub Copilot, Cloudflare, Amazon Bedrock, and 20+ vendor adapters โ switch models instantly |
| โก Lightning Fast | SSE streaming, real-time token delivery, cache hit optimization |
| ๐ง Think Mode | Extended reasoning for complex problems (DeepSeek, o1, Claude, inline <think> parsing) |
| ๐ก๏ธ Sandboxed | bwrap process isolation โ safe file ops, network control, approval gates |
| ๐ Sessions | Persistent SQLite-backed history with branching, compaction, and tree structure |
| ๐งฉ Skills | Reusable prompt snippets for project conventions โ share across teams |
| ๐ป IDE Ready | ACP protocol for VS Code, Zed, JetBrains โ native editor integration |
| ๐ Gateway | OpenAI-compatible HTTP API โ use MothX as a backend service |
| ๐ฑ Messaging | WeChat, Feishu, WebSocket โ deploy as a chatbot |
| ๐ค Multi-Agent | Async sub-agents with --multi-agent, blocking delegation with --delegate, and A2A master mode |
| ๐จ Rich TUI | Markdown rendering, syntax highlighting, thinking display, tool modals, multiline input |
| ๐ Stats Dashboard | Web-based usage analytics with charts, filtering by time/vendor/protocol, and CLI fallback |
| ๐ผ๏ธ Multimodal | Image preprocessing, crop support, browser screenshots, and vision model integration |
| ๐ Security | bashBlacklist > whitelist, YOLO mode safety, --print fails fast |
| ๐ฆ Pure Go | No external binary dependencies โ uses pure-Go grep/find SDKs, supports FreeBSD |
| โก Approval V2 | Interactive approval dialog, project-level bash auto-approval rules, and auto-edit whitelists |
# Install (pick one)
npm install -g mothx-installer # npm (recommended)
pipx install mothx-installer # PyPI
curl -fsSL https://github.com/ghraw/startvibecoding/mothx/main/install.sh | bash # Linux/macOS/FreeBSD (GitHub)
curl -fsSL https://gitee.com/startvibecoding/mothx/raw/main/install.sh | bash # Linux/macOS/FreeBSD (Gitee ๅฝๅ
้ๅ)
# Set your API key
export DEEPSEEK_API_KEY=sk-...
# Run
mothxThat's it. You're coding with AI.
Supported Platforms: Linux (x86_64, arm64), macOS (x86_64, arm64), Windows (x86_64), FreeBSD (x86_64, arm64)
Uninstall:
# npm
npm uninstall -g mothx-installer
# Compatibility package, if installed before the rename
npm uninstall -g vibecoding-installer
# PyPI
pipx uninstall mothx-installer
# Linux/macOS (one-line install)
curl -fsSL https://gitee.com/startvibecoding/mothx/raw/main/install.sh | bash -s -- --uninstall
# Windows (one-line install)
irm https://gitee.com/startvibecoding/mothx/raw/main/install.ps1 | iex; Uninstall-MothX๐๏ธ Plan โ Read-only analysis & planning. Safe, sandboxed, no surprises.
๐ง Agent โ Standard read/write. Bash approval required. (Default)
๐ YOLO โ Full system access. No restrictions. For the brave.
Switch modes anytime with /mode plan|agent|yolo or press Tab.
mothx/
โโโ cmd/mothx/ # CLI entry point
โโโ internal/
โ โโโ agent/ # Core agent loop
โ โโโ provider/ # LLM provider abstraction (20+ vendors)
โ โโโ tools/ # Built-in tools (read, write, bash, grep, find, ...)
โ โโโ sandbox/ # bwrap sandbox implementation
โ โโโ session/ # SQLite session storage
โ โโโ skills/ # Skills system
โ โโโ tui/ # Terminal UI (BubbleTea + Lipgloss)
โ โโโ gateway/ # OpenAI-compatible HTTP gateway
โ โโโ hermes/ # Messaging gateway (WeChat/Feishu/WebSocket)
โ โโโ a2a/ # A2A protocol server & master mode
โ โโโ acp/ # ACP / MCP integration
โ โโโ stats/ # Usage statistics web dashboard
โ โโโ workflow/ # Elisp workflow runtime
โ โโโ memory/ # Persistent memory (memory.md)
โโโ pkg/sdk/ # Public SDK interface
- Quick Start โ Installation, configuration, first run
- CLI Reference โ All commands and flags
- Configuration Guide โ Settings, env vars, authentication
- Provider Guide โ Provider/vendor configuration
- System Architecture โ Core components, data flow
- Tool System โ Built-in tools guide
- Skills System โ Reusable prompt snippets
- Online Skill Marketplace โ SkillHub / ClawHub integration
- Dynamic Workflows โ Elisp workflow automation
- Security & Sandbox โ Sandbox modes, permissions, approval
- ACP Protocol โ VS Code, Zed, JetBrains integration
- Gateway Mode โ OpenAI-compatible HTTP API
- Hermes Mode โ WeChat/Feishu/WebSocket chatbot
- A2A Protocol โ Agent-to-Agent protocol
- Stats Dashboard โ Usage statistics and monitoring
- Scenarios & Walkthroughs โ Practical examples
- FAQ โ Common questions answered
- ไธญๆๆๆกฃ้ฆ้กต โ ๅฎๆดไธญๆๆๆกฃ
mothx -P "Refactor this function to use generics"
mothx -P "Write tests for the UserService struct"
mothx -P "Explain what this regex does"mothx --mode plan "Review this PR and suggest improvements"mothx -p "Generate changelog from git log" > CHANGELOG.mdmothx gateway # Start OpenAI-compatible HTTP servermothx hermes # Deploy as WeChat/Feishu botmothx stats # Start web dashboard on 127.0.0.1:7878
mothx stats --cli # Print stats in terminalmothx --workflows # Enable Elisp workflow automation
# Use workflow_run, workflow_status, workflow_cancel toolsmothx -P "Describe this screenshot" --image screenshot.png
mothx -P "Extract text from this image" --image document.jpg| Tool | Description |
|---|---|
read |
Read file contents |
write |
Create/overwrite files |
edit |
Precise text replacement |
bash |
Execute shell commands |
grep |
Search file contents (powered by pure-Go ripgrep) |
find |
Find files by pattern (powered by pure-Go fd) |
ls |
List directory contents |
plan |
Publish task plans |
jobs |
Manage background jobs |
kill |
Stop background jobs |
skill_ref |
Load skill references |
workflow_run |
Execute Elisp workflow DSL |
workflow_status |
Check workflow run status |
workflow_cancel |
Cancel running workflows |
delegate_subagent |
Blocking single sub-agent delegation |
subagent_spawn |
Async sub-agent execution |
question |
Interactive user prompts (plan/agent modes) |
| Location | Platform | Scope |
|---|---|---|
~/.mothx/settings.json |
Linux/macOS/FreeBSD | Global |
%APPDATA%\mothx\settings.json |
Windows | Global |
.mothx/settings.json |
All | Project (overrides global) |
Existing .vibecoding and .vibe directories are automatically migrated to .mothx when the destination does not already exist. VIBECODING_* environment variables remain supported for compatibility; use MOTHX_DIR for new custom config directory overrides.
| Variable | Description |
|---|---|
DEEPSEEK_API_KEY |
DeepSeek API key |
MOTHX_DIR |
Override config directory |
VIBECODING_DIR |
Override config directory (legacy compatibility) |
VIBECODING_PROVIDER |
Override default provider |
VIBECODING_MODEL |
Override default model |
VIBECODING_MODE |
Override default mode |
VIBECODING_DEBUG |
Enable debug output |
VIBECODING_NO_UPDATE_CHECK |
Disable update notifications |
VIBECODING_NPM_REGISTRY |
Override npm registry URL |
Gateway-specific config lives in gateway.json (global ~/.mothx/gateway.json, project .mothx/gateway.json). See Gateway Mode for details.
Hermes-specific config lives in hermes.json (global <GLOBAL_DIR>/hermes.json, project .mothx/hermes.json). See Hermes Mode for details.
We welcome contributions! See Development Guide for details.
git clone https://github.com/startvibecoding/mothx.git
cd mothx
make build
make testMIT โ see LICENSE for details.
Ready to vibe? โญ Star this repo and start coding!
