Skip to main content

AI coding assistant for the terminal

Project description

Rename notice: VibeCoding is now MothX. PyPI install name: mothx-installer (pipx install mothx-installer or pip install mothx-installer).

MothX

MothX was formerly known as VibeCoding. Each wheel includes a platform-native mothx binary. The vibecoding console command is still registered as a compatibility alias during the rename transition.

Installation

pip install mothx-installer

Or with an isolated environment:

pipx install mothx-installer

After installation, the mothx command is available on your PATH.

Quick Start

# Set your API key
export DEEPSEEK_API_KEY=sk-...

# Start an interactive session
mothx

# Or ask a question directly
mothx -P "Write a Go HTTP server"

Choose Your Mode

Every session runs in one of three modes, switchable anytime with Tab or /mode:

Mode Files Network Best For
Plan Read-only Analysis, code review, safe exploration
Agent Read/Write Daily development (default)
YOLO Full System administration, automation
mothx --mode plan     # read-only
mothx --mode agent    # standard (default)
mothx --mode yolo     # full access

Multi-Provider Support

Switch providers with a single flag:

# DeepSeek (default)
mothx --provider deepseek-openai --model deepseek-v4-flash

# OpenAI
mothx --provider openai --model gpt-4o

# Anthropic
mothx --provider anthropic --model claude-3-5-sonnet-20241022

# 20+ vendor adapters supported: Gemini, Kimi, Volcengine, Mistral,
# OpenRouter, Groq, Bedrock, GitHub Copilot, and more

Session Management

MothX persists conversation history in SQLite with branching support:

mothx                    # start new session
mothx --continue         # resume last session
mothx --resume <id>      # resume a specific session
mothx --session <file>   # open a specific session file

Sessions live in ~/.mothx/sessions/ (Linux/macOS) or %APPDATA%\mothx\sessions\ (Windows).

Print / CI Mode

Use MothX in non-interactive mode for scripting and CI/CD:

mothx -P "Write unit tests for auth.go"
mothx -P "Generate a CHANGELOG from git log" > CHANGELOG.md
echo "Explain this function" | mothx -P

Use --mode plan for read-only tasks and pair with --print to fail fast when approval is required.

Think Mode

Enable deeper reasoning for complex problems:

mothx --thinking high "Solve this architecture problem"

Levels: off, minimal, low, medium, high, xhigh — toggle in TUI with /think.

Security & Sandboxing

MothX uses bubblewrap for process-level isolation. Three layers of protection:

  • Blacklist — dangerous commands (rm -rf, sudo) are always blocked, even in YOLO mode
  • Approval gates — Agent mode prompts before executing bash commands
  • Whitelist — pre-approve safe commands in settings.json:
{
  "approval": {
    "bashWhitelist": ["go ", "make ", "git ", "npm "],
    "bashBlacklist": ["rm -rf", "sudo"],
    "confirmBeforeWrite": true
  }
}

Skills System

Skills are reusable prompt snippets for project conventions:

# List skills
> /skills

# Activate a skill
> /skill my-conventions

Place SKILL.md files in:

  • Global~/.mothx/skills/<name>/SKILL.md
  • Project.skills/<name>/SKILL.md (overrides global)

Compatible with SkillHub for discovering and sharing community skills.

IDE Integration

MothX speaks Agent Client Protocol (ACP), integrating with VS Code, Zed, and JetBrains IDEs.

VS Code

Add to .vscode/settings.json:

{
  "acp.agents": {
    "mothx": {
      "command": "mothx",
      "args": ["acp", "--mode", "agent"]
    }
  }
}

JetBrains (IntelliJ, WebStorm, etc.)

Go to Settings → Tools → ACP Agents and add:

  • Name: MothX
  • Command: mothx
  • Arguments: acp --mode agent

Serve Mode

Run MothX as a unified OpenAI-compatible HTTP API, Web UI, and messaging server:

mothx serve

Config in ~/.mothx/serve.json or .mothx/serve.json. Ideal for team sharing, CI/CD pipelines, messaging channels, and embedding into your own tools.

Multi-Agent Mode

Enable sub-agent delegation and cron workflows:

mothx --multi-agent

Sub-agent tools: subagent_spawn, subagent_status, subagent_send, subagent_destroy.

For a single blocking investigation:

mothx --delegate

Messaging Channels

Deploy MothX as a chatbot on WeChat, Feishu, or WebSocket:

mothx serve

Messaging channel config lives in serve.json. Each user gets an independent, persistent session.

Keyboard Shortcuts

Shortcut Action
Enter Submit prompt
Alt+Enter / Ctrl+J Insert newline
Tab Cycle mode (plan → agent → yolo)
Esc Abort current operation
Ctrl+O Open tool details
Ctrl+G Toggle compact display
Ctrl+T Toggle thinking display

Supported Platforms

  • Linux x86_64, arm64, ppc64le, s390x
  • Linux musl x86_64, arm64
  • macOS x86_64, arm64
  • Windows x64, arm64

Other platforms (LoongArch64, RISC-V64, *BSD) are available via npm install -g mothx-installer or the one-line installer.

Diagnostics

mothx doctor

Checks config files, API connections, sandbox, MCP servers, sessions, and skills.

Uninstall

pip uninstall mothx-installer

# or if you used pipx:
pipx uninstall mothx-installer

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

mothx_installer-1.1.63-py3-none-win_arm64.whl (8.1 MB view details)

Uploaded Python 3Windows ARM64

mothx_installer-1.1.63-py3-none-win_amd64.whl (9.1 MB view details)

Uploaded Python 3Windows x86-64

mothx_installer-1.1.63-py3-none-musllinux_1_2_x86_64.whl (8.5 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

mothx_installer-1.1.63-py3-none-musllinux_1_2_aarch64.whl (8.0 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

mothx_installer-1.1.63-py3-none-manylinux_2_17_x86_64.whl (8.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

mothx_installer-1.1.63-py3-none-manylinux_2_17_s390x.whl (8.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ s390x

mothx_installer-1.1.63-py3-none-manylinux_2_17_ppc64le.whl (8.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

mothx_installer-1.1.63-py3-none-manylinux_2_17_aarch64.whl (8.0 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

mothx_installer-1.1.63-py3-none-macosx_11_0_arm64.whl (8.3 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

mothx_installer-1.1.63-py3-none-macosx_10_15_x86_64.whl (8.8 MB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

Details for the file mothx_installer-1.1.63-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.63-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 2abc89b4743ed2d778d4d850ce510799b78b7ede2a95dd2ef8a21dcf3d59f3dd
MD5 ed25fd90286d0eec1d0e888558eb08b4
BLAKE2b-256 d64ffe8bbd8f0bddc41d12dd448a8ee3d09ef460f20a16c9a881f5b8f08a03ea

See more details on using hashes here.

File details

Details for the file mothx_installer-1.1.63-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.63-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 f60cfb1f5f54eedabfa9cff7c0b7859b8bb002b68e171765ec55ec09df65be6d
MD5 f37b75281a90514c8bd2ef9f0c24cdb0
BLAKE2b-256 11bb7cb978681851e1c73774219a38b7571d76c826deb83f3f84507f5b453c50

See more details on using hashes here.

File details

Details for the file mothx_installer-1.1.63-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.63-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 256f1f8aa8013ea640758a6a0ba5b5be9bbf73018a274ffd57c1b5a11ad18573
MD5 ddf988db1ffc762fde1a59189807f988
BLAKE2b-256 e0498e3bf5557632938f0f08b94ca6a78a38a7ee710008711994a1d91c4b1eac

See more details on using hashes here.

File details

Details for the file mothx_installer-1.1.63-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.63-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 568bc250c6545250441e6de4d87db121ccef04c1003de53ed68a475bc6fbb17d
MD5 0ff79e90b8927fe2fffe8896de6f523a
BLAKE2b-256 fa3fc3ae4bd127a13498d37c07ec5c8f017dc0bab139fbdf69f390b4e5d97474

See more details on using hashes here.

File details

Details for the file mothx_installer-1.1.63-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.63-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 a86c130fc8b2eddf5290a61678f46dcecb6dca1fa5399738ed97261d705dde3f
MD5 d3e1f7afd9b63a43d8309c716b418bea
BLAKE2b-256 82efcb4a56abb9c2a586be348180ff3acace78b367e46dd5be9e1c70a9ab2c43

See more details on using hashes here.

File details

Details for the file mothx_installer-1.1.63-py3-none-manylinux_2_17_s390x.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.63-py3-none-manylinux_2_17_s390x.whl
Algorithm Hash digest
SHA256 8ddb89f1422e31cfb787f0d8f47ae6dd6f4b9d52d6caa3c141965552c2b5691b
MD5 8e139dd308e6374afcd8bbb43de817ec
BLAKE2b-256 941a4ccf112a409abf308d3d28f968acacf15c99973bab08f7dd45523f30f6fd

See more details on using hashes here.

File details

Details for the file mothx_installer-1.1.63-py3-none-manylinux_2_17_ppc64le.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.63-py3-none-manylinux_2_17_ppc64le.whl
Algorithm Hash digest
SHA256 f9792cd75d63652922eacbb714e48b73951f55c12a99e66831e04da897b9fbe4
MD5 0a57fa49a46a47246b21dbce5960aee9
BLAKE2b-256 5f205707a172daca0f63cd0c42bd319d391eb4f4179b65fe5a6636f3494551c0

See more details on using hashes here.

File details

Details for the file mothx_installer-1.1.63-py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.63-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 4c260fded1aaf200fe349d9d0da53e718c455fe6c9801ffec90c62d55f3451f4
MD5 3f89189a3806a443c06de63d2f8d6edb
BLAKE2b-256 21af0407c4f40ec7dd501106f617bb54e6e051e33e73aecee83ad3f8682c441c

See more details on using hashes here.

File details

Details for the file mothx_installer-1.1.63-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.63-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 26db1282cf1155defe2a693003719de78dc6ebe9b630d854ae1f3550ebc15651
MD5 924771c26f1437df33fb24530b5b4daa
BLAKE2b-256 bb0a095551271a11d31b6603b91a145e0187fc99cb4359d297a1b884ed5d5f2d

See more details on using hashes here.

File details

Details for the file mothx_installer-1.1.63-py3-none-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.63-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 a97790995204236347ef849f029bb2946b7b26e74675b616bf1f927fe23a5032
MD5 1b3bed6651c2740381612185815b9ed1
BLAKE2b-256 b3edf06ce99ebc40a19d1bae9dc69bec814cd9395a2d5d1244a1a194a4a1ddb4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page