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

Uploaded Python 3Windows ARM64

mothx_installer-1.1.69-py3-none-win_amd64.whl (9.3 MB view details)

Uploaded Python 3Windows x86-64

mothx_installer-1.1.69-py3-none-musllinux_1_2_x86_64.whl (8.7 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

mothx_installer-1.1.69-py3-none-musllinux_1_2_aarch64.whl (8.2 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

mothx_installer-1.1.69-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.69-py3-none-manylinux_2_17_s390x.whl (8.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ s390x

mothx_installer-1.1.69-py3-none-manylinux_2_17_ppc64le.whl (8.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

mothx_installer-1.1.69-py3-none-manylinux_2_17_aarch64.whl (8.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

mothx_installer-1.1.69-py3-none-macosx_11_0_arm64.whl (8.4 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

mothx_installer-1.1.69-py3-none-macosx_10_15_x86_64.whl (8.9 MB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.69-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 ebef154773bab250751f669a226d23b7dd723e89ca8d16fe66dbcf643d33b1b0
MD5 bc8f70cac83a6747bfa65703807f0f5e
BLAKE2b-256 aaca7337951eef500ec172519267e84c4aeee2115682cec4bc9ffde363ab3be8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.69-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 b6bb6e4767ed5b1af463efb615fc3d0c36086414dc1d0e7e59fa6385fdaf8baa
MD5 5a846711a092d7424cae09d91db35ac8
BLAKE2b-256 420c2cb44a839b95b403bf1549efd3076cae8fd0d9f33e3ef8b70c83601ad5b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.69-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 80d46f58e8d164589596131554b1ffb633df07f46be7338b66d7261a16a378d0
MD5 3ebc7f34c274a5adeee98a3a388af252
BLAKE2b-256 9cf8747992dbeaa29cf4e5aa60ff3cdb6e9380f915a411c8510c98ad7e4ecec8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.69-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 9b69306ef7de669aa673591589541bfe83db565f41723d329cfedd337c98c627
MD5 7713ec91dfe79107f9b2a25a7ba4d34b
BLAKE2b-256 7ffa61cb683171197e84c0c70de43b897032b73c99d515b1688107feaeae45d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.69-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 f15c415e6223544cfe8ac78a5e710b37cad664446bc825fa8a7405cbdd4adab3
MD5 2daf95d899e55ad33340bf6e1adf0fce
BLAKE2b-256 b28ce12f09791169783e41182c6e96d3b22338c54bab835f1550cbca86c60ff8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.69-py3-none-manylinux_2_17_s390x.whl
Algorithm Hash digest
SHA256 cd3838541f9d6bc9b25ad69c983d6fc797ca2e9b478f3dd799d789b80e75a0ad
MD5 d130515a7b21a8a0683f30410a38b1a4
BLAKE2b-256 5f97d1f5f471b07cb4a41df514f00a25e8ecb68956a146ca2d27cf3de1b8e55c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.69-py3-none-manylinux_2_17_ppc64le.whl
Algorithm Hash digest
SHA256 f15b1db8e43a5cc379593481f75b2007c77e511585f6b4216efe8820cd5a009a
MD5 1af0029e9be4f4642171ba2480dde0b7
BLAKE2b-256 d2eff2065d835c889c26b07d1c685c58eb65736da5e215081cbb9c3958f07d12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.69-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 768e277c402219b6d12b10cd7ef293245ca13bbc2fc0bd7e31f5870f02e06cc9
MD5 f061f4043ae72a425fb5728634afac9b
BLAKE2b-256 c422332e0b0c4608ce76d258f185ea387e8b1c2d41512f28f26983cc0b528a01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.69-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 04ff9ddc99026189a9c41fdbfdd3a51a35caa7e50203e6e82d9a70a5797ac82b
MD5 295edb9e56b77a5e671c16a7ff4a9aea
BLAKE2b-256 5b55104267915d26eb8bd9f3497ae1fcbf9dc30a54e78f539d21d11b953523eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.69-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 af551304b61c0b167eda1b00e8ea141f87e7a80f82f964384f2dd1cf76761fca
MD5 f654ae95480559748c76b4dfefde204f
BLAKE2b-256 f7f54869d69db8549d8ec012017727081d28889fb8379351a87e2ade0be80391

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