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.67-py3-none-win_arm64.whl (8.1 MB view details)

Uploaded Python 3Windows ARM64

mothx_installer-1.1.67-py3-none-win_amd64.whl (9.2 MB view details)

Uploaded Python 3Windows x86-64

mothx_installer-1.1.67-py3-none-musllinux_1_2_x86_64.whl (8.6 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

mothx_installer-1.1.67-py3-none-musllinux_1_2_aarch64.whl (8.1 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

mothx_installer-1.1.67-py3-none-manylinux_2_17_x86_64.whl (8.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

mothx_installer-1.1.67-py3-none-manylinux_2_17_s390x.whl (8.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ s390x

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

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

mothx_installer-1.1.67-py3-none-manylinux_2_17_aarch64.whl (8.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

mothx_installer-1.1.67-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.67-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.67-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 89f3137ba5af7823e2560d5b1cb23fb5b9dfa7a14b7538444bba5bf31faa1255
MD5 79c67aaef76f1b222aa71e69879f5e83
BLAKE2b-256 23c03e34cca7b4386931c6420be2e09b68f46ef87e45aebc7b5d052c5d577d31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.67-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 983ad8dd1412e5e21c22832393085abd12e4526bacfef58db0a490a9159c42e3
MD5 fcc7d3069f0bfafa9ce3a3fb2b431c6f
BLAKE2b-256 91f16351c67cfc2fd2b9a153092547ebe8035f79bd0670a58e9c7c3b92d87f15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.67-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 55d1e61f14503a1798610d118c04311900015600c3c9cf3648386e50bf2af5af
MD5 45e7dc5971fd6a03aa5dee9841705633
BLAKE2b-256 523bba0957d096d8230a04263125eac7ca8c4050e20563d0d29a484c26f48fb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.67-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 d87ccc19e7d1b74e57077c31fd9ef5542a1ef817cddcc11ef203ddaa22e8b5bf
MD5 e06a99d81c5b52e9adac856c92b02884
BLAKE2b-256 87382448990366adabab1a5f57dddab5f6b5f1ec08360e28478b3313841d3cfc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.67-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 6da56fb63c66f9c625d4a215322aa65ff578384f86b1133716dd59bf5c8471b8
MD5 b18bcbdfb2df9488b2475dc54adbcf60
BLAKE2b-256 52cb2fceb0989d01a4193ed781405cd92924eef75d65d3ccadde34cc1c12c4bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.67-py3-none-manylinux_2_17_s390x.whl
Algorithm Hash digest
SHA256 ab22be0454218c8a52981cb28edf14abc95c7f102568ed1a29944af9cffa036d
MD5 42bc48bb99aa6bd79f06a25a6e76d305
BLAKE2b-256 62f06f46f850d2775a202328e10e33248fa5e6cb0ccf65311af8bda5d10a6bfb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.67-py3-none-manylinux_2_17_ppc64le.whl
Algorithm Hash digest
SHA256 6938645b26e0d9848be5f78eb38b87298eda94125d56aac2fd50d97747b1bbf3
MD5 532ad97bd49776437869fe1873aa15fa
BLAKE2b-256 2d48ec15745e1c9cf98b9fdbfe4e0a448934757354f9ef3482ca1fdf26bfd1a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.67-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 ac70b531aefc712d97422fe9d93a159306972cddbbc03c20907331fa737c613c
MD5 aa189a56f163ca57ae1ccdff6e562c84
BLAKE2b-256 59d43988b90b88ad5a4d1e8738f65205d5c9b7711f53dda2053dc3decd40640f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.67-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8470429378d24eaa0c26bb4e63742dfc55760f300156f59c58867b99afda87b5
MD5 380c87f95021beabca451e1496f7a0d4
BLAKE2b-256 35c681fa97d60a42429635d4d353346a97fab65b9c59a2efb58bbe7b87cc9c4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.67-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 51dc9c0b3b2e1e190c8ed150e1f6157e27f4a4467ca7abd3e6544788fcecc6a6
MD5 61e6bb276d0fbc7d97ba846740b4547f
BLAKE2b-256 2a04ff72ea22376f74d9f54c268041a2de5cc4da95dca55c07867f1a0b5b7800

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