Skip to content
@startvibecoding

Start Vibe Coding

A project named Vibecoding created to help HR understand that tools like Claude Code, OpenCode, pi.dev, and Cline all belong to the Vibecoding workflow paradigm

MothX

MothX

🚀 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.

npm downloadsPyPI versionGitHub releaseGitee releaseLicense: MITGo Report CardGoDocDependencies

国内镜像: Gitee

Rename notice: MothX was formerly known as VibeCoding. During this transition release, legacy entry points such as the vibecoding command, the old installer package names, and VIBECODING_* environment variables are kept for compatibility. Legacy .vibecoding and .vibe directories are automatically migrated to .mothx when found.


✨ Why MothX?

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.

🎯 Key Highlights

FeatureWhat It Means for You
⚙️ Workflow ModeDynamic Elisp workflows with phases, parallel execution, and multi-worker coordination — automate complex development pipelines
🤖 Multi-ProviderDeepSeek, OpenAI, Anthropic, Volcengine/Doubao, LongCat, Mistral, GitHub Copilot, Cloudflare, Amazon Bedrock, and 20+ vendor adapters — switch models instantly
⚡ Lightning FastSSE streaming, real-time token delivery, cache hit optimization
🧠 Think ModeExtended reasoning for complex problems (DeepSeek, o1, Claude, inline <think> parsing)
🛡️ Sandboxedbwrap process isolation — safe file ops, network control, approval gates
📝 SessionsPersistent SQLite-backed history with branching, compaction, and tree structure
🧩 SkillsReusable prompt snippets for project conventions — share across teams
💻 IDE ReadyACP protocol for VS Code, Zed, JetBrains — native editor integration
🌐 GatewayOpenAI-compatible HTTP API — use MothX as a backend service
📱 MessagingWeChat, Feishu, WebSocket — deploy as a chatbot
🤝 Multi-AgentAsync sub-agents with --multi-agent, blocking delegation with --delegate, and A2A master mode
🎨 Rich TUIMarkdown rendering, syntax highlighting, thinking display, tool modals, multiline input
📊 Stats DashboardWeb-based usage analytics with charts, filtering by time/vendor/protocol, and CLI fallback
🖼️ MultimodalImage preprocessing, crop support, browser screenshots, and vision model integration
🔒 SecuritybashBlacklist > whitelist, YOLO mode safety, --print fails fast
📦 Pure GoNo external binary dependencies — uses pure-Go grep/find SDKs, supports FreeBSD
⚡ Approval V2Interactive approval dialog, project-level bash auto-approval rules, and auto-edit whitelists

🚀 Get Started in 30 Seconds

# Install (pick one)
npm install -g mothx-installer # npm (recommended)
pipx install mothx-installer # PyPI
curl -fsSL https://raw.githubusercontent.com/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 keyexport DEEPSEEK_API_KEY=sk-...
# Run
mothx

That'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

🎮 Three Modes for Every Situation

🗒️ 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.


🏗️ Architecture at a Glance

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

📚 Documentation

🚀 Getting Started

⚙️ Configuration

🏗️ Architecture

🔒 Security

💻 IDE Integration

🌐 Gateway Modes

📊 Analytics

📖 Tutorials

🇨🇳 中文文档


🎯 Use Cases

💻 Daily Development

mothx -P "Refactor this function to use generics"
mothx -P "Write tests for the UserService struct"
mothx -P "Explain what this regex does"

🔍 Code Review

mothx --mode plan "Review this PR and suggest improvements"

🚀 CI/CD Integration

mothx -p "Generate changelog from git log"> CHANGELOG.md

🌐 API Server

mothx gateway # Start OpenAI-compatible HTTP server

📱 Chatbot

mothx hermes # Deploy as WeChat/Feishu bot

📊 Usage Analytics

mothx stats # Start web dashboard on 127.0.0.1:7878
mothx stats --cli # Print stats in terminal

🔄 Dynamic Workflows

mothx --workflows # Enable Elisp workflow automation# Use workflow_run, workflow_status, workflow_cancel tools

🖼️ Image Analysis

mothx -P "Describe this screenshot" --image screenshot.png
mothx -P "Extract text from this image" --image document.jpg

🛠️ Built-in Tools

ToolDescription
readRead file contents
writeCreate/overwrite files
editPrecise text replacement
bashExecute shell commands
grepSearch file contents (powered by pure-Go ripgrep)
findFind files by pattern (powered by pure-Go fd)
lsList directory contents
planPublish task plans
jobsManage background jobs
killStop background jobs
skill_refLoad skill references
workflow_runExecute Elisp workflow DSL
workflow_statusCheck workflow run status
workflow_cancelCancel running workflows
delegate_subagentBlocking single sub-agent delegation
subagent_spawnAsync sub-agent execution
questionInteractive user prompts (plan/agent modes)

🔧 Configuration

Settings Files

LocationPlatformScope
~/.mothx/settings.jsonLinux/macOS/FreeBSDGlobal
%APPDATA%\mothx\settings.jsonWindowsGlobal
.mothx/settings.jsonAllProject (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.

Environment Variables

VariableDescription
DEEPSEEK_API_KEYDeepSeek API key
MOTHX_DIROverride config directory
VIBECODING_DIROverride config directory (legacy compatibility)
VIBECODING_PROVIDEROverride default provider
VIBECODING_MODELOverride default model
VIBECODING_MODEOverride default mode
VIBECODING_DEBUGEnable debug output
VIBECODING_NO_UPDATE_CHECKDisable update notifications
VIBECODING_NPM_REGISTRYOverride npm registry URL

Gateway Configuration

Gateway-specific config lives in gateway.json (global ~/.mothx/gateway.json, project .mothx/gateway.json). See Gateway Mode for details.

Hermes Configuration

Hermes-specific config lives in hermes.json (global <GLOBAL_DIR>/hermes.json, project .mothx/hermes.json). See Hermes Mode for details.


🤝 Contributing

We welcome contributions! See Development Guide for details.

git clone https://github.com/startvibecoding/mothx.git
cd mothx
make build
make test

📄 License

MIT — see LICENSE for details.


Ready to vibe? ⭐ Star this repo and start coding!

Pinned Loading

  1. mothxmothxPublic

    Ultra cost-effective terminal AI coding assistant with excellent token cache hit rate. Built in ~10K lines of Go, it uses DeepSeek by default with multiple modes and sandbox.

    Go 18 4

  2. GoStreamingMarkdownGoStreamingMarkdownPublic

    Refactored from the Swift project SwiftStreamingMarkdown, fully implementing the Preprocess → Parse → Rewrite → Render four-stage pipeline. Supports streaming rendering mode.

    Go 1

Repositories

Showing 10 of 18 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…