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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

mothx_installer-1.1.72-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.72-py3-none-musllinux_1_2_aarch64.whl (8.2 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

mothx_installer-1.1.72-py3-none-manylinux_2_17_x86_64.whl (8.8 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

mothx_installer-1.1.72-py3-none-manylinux_2_17_s390x.whl (8.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ s390x

mothx_installer-1.1.72-py3-none-manylinux_2_17_ppc64le.whl (8.3 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

mothx_installer-1.1.72-py3-none-macosx_11_0_arm64.whl (8.5 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

mothx_installer-1.1.72-py3-none-macosx_10_15_x86_64.whl (9.0 MB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.72-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 7d2ae1182043e8dd52e16e3c53024bf5cba5ed03777908a7238e78a1b0154890
MD5 d19d9fb896b778527e8edb596ac7408a
BLAKE2b-256 a1d76f9c3725c213f3d73dbe2ed85217be7a417be151ecdf723af2c7930be2fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.72-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 2bb12ec0c016956cd359e9b9c82e23103420a859fc8304aa1fef6384df06e8e2
MD5 0325845c888861f7e95fb71395b92598
BLAKE2b-256 c3f5eaa01319ce7dfcbf0fa1414501951f8cb422c8216d2c891ba5ed90bd7e4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.72-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 11e31dd741a08a56d60b1debb88113f8153f256bd8e4c932b5909fc9bf8da8ea
MD5 0670356de72f63ad146c4f839497a332
BLAKE2b-256 c37e7f04c8e745fdfafd17d89e2fd535c991eab90bae96e2c2ce093a2a20b614

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.72-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 5220015dd692516328d2ae713c74d23dbab17fbb8969fbda6da158cd712b8b49
MD5 2494d8d1c8d3ff1f33804a4e4041a7ef
BLAKE2b-256 ff8fd698c93991d427df0b17bbb3ecf55c652954aea1872045b30a8116d6ac16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.72-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 d3858016ad39d5cc89934511c005adaa1c4f9ae343af0ae15b47c0bffb221c90
MD5 d967c5d69149d5a2296f462403c6b089
BLAKE2b-256 35206a7cf57d89c8130b77ea9a5f50800c19278e35970a7c80dc0bb605602ed8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.72-py3-none-manylinux_2_17_s390x.whl
Algorithm Hash digest
SHA256 7ab0292c317767e36dd06d554eb3050ce1fe1eaa0899302abe526a7360c23be2
MD5 596b1e8cfe7260ad234a2f4b47c62f15
BLAKE2b-256 e2c7f6058ac094c3bc2791fb67ff7775f992a2d7c3a09db3ed2b612ac215c5e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.72-py3-none-manylinux_2_17_ppc64le.whl
Algorithm Hash digest
SHA256 90676e80d75c5dc346e0133325aaefc897a6881c046adb9d1c4952aa4bc5e99c
MD5 01694d981f46881f7634c492fcd4547f
BLAKE2b-256 99d75884c6313f4a95cc35123161f3db923328f4cc8acd47126be9b2872dd150

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.72-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 fd20ccc2a013c65a2fe22d8028f42cbfdb1cda9f38191f2008e2b1fde6ec9e9c
MD5 ab015b327d22160fb93ae8df806512f6
BLAKE2b-256 0e528b94de4438db39da6d167127491ae3fa8025590727f57d8a33caa35eb0d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.72-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5947e2b3bc764bf35032f7038e9a95d26e02ec57e5447e8b5c18ac8524c3de2d
MD5 09cc9265c63c9d81ac6269b950a39b8f
BLAKE2b-256 68b3f6115d9d78987c201461918498ad28db48881cda1a35ab7ed206e2dada9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.72-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 8cdec71f1045352f480a364cceb122dbfc2a40510f93f0ccc6262226bf741cb4
MD5 93d73146d43b1c31093a887a00c7dd45
BLAKE2b-256 2f11ad7a5ffe9620002d4512c122b34fe46d6c5fe8eac51ec7a5366b54255b86

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