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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

mothx_installer-1.1.65-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.65-py3-none-musllinux_1_2_aarch64.whl (8.0 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

mothx_installer-1.1.65-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.65-py3-none-manylinux_2_17_s390x.whl (8.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ s390x

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

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

mothx_installer-1.1.65-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.65-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.65-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 216d1bf5778af3df1d768420c95417ef49d9558fde4a1e55f7e39304cdb56655
MD5 48ad79d8e8f9379f4aba9a53dfb23862
BLAKE2b-256 c5d92b95fc4dc51e1a05d4a8b4fa6117456862e1b808f3fcbf8650a31ccea422

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.65-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 7d9c0e3c9ab2aa4eb5adb90b6dbee880c081dbdc8201d282b6fddefc4b128f28
MD5 318f664b8656562b2f55bed682ce69f5
BLAKE2b-256 386436affe83c42083bc608a9af5d98a79d187871c6cd8ddce2464d4abdba93b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.65-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4685402977c1d8324c1406c9ded021257e014d02dc0c252a6b85d44370c5105e
MD5 d0a26125bcd02d221f94d930f5be2eef
BLAKE2b-256 cd97d202c6b18bbb8bcc06e9b94e6f7db45a97b3fa55bc0f8727032d7c2e6b3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.65-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 27d708fd3493da7e7a2bd0c6af7ae553c00d6ca7edcebc9591e1ae590831dc08
MD5 c32c7593d917f29cb72211c8d502ab85
BLAKE2b-256 ea23e630c5cd4522ce90a171d9055c34b4a6283bd0eeb1f50af9b8e3cece41cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.65-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 63d7d1760066bfa7a10459809ae5202e772fcc6b28e6e51d087956185d5a4925
MD5 8fe058c8bc38645576ff2c34b86da45f
BLAKE2b-256 df8f02672d3e6f7ab1abdcfe5e512c3d50e6e754fe08446eb1e55f1c3cea0623

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.65-py3-none-manylinux_2_17_s390x.whl
Algorithm Hash digest
SHA256 cd9ddfa43a8d52f4f12c1bd61477357bfd194415269fa0021655fa02105ae7b6
MD5 9dc012b55d284363363c0a63c24e1da4
BLAKE2b-256 b1a60e9dce2d68f8576d6c5f3111de8b91d0ecdd6599c0e25c495c6143f62d0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.65-py3-none-manylinux_2_17_ppc64le.whl
Algorithm Hash digest
SHA256 78e777ab0d0e68f7f118be19ca109a8ff8fb822770c33c805bbce72b22f9eb94
MD5 65e2f11f43ab059dcf522cdd2161ed99
BLAKE2b-256 5881f559fe90cab2107a6dbe9e7e4ec67af203eab9373c71b97a76a236d78eb7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.65-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 045e60c3e82ae80898ed405f213d3226cfc8c4e83325476e2a153d41098d7af8
MD5 d68c456dcd1d939aa14c6f3bdeb893ce
BLAKE2b-256 6114cf1239a9c33b30a2f8b47950fae6bf8e1588a1b40e8e748b06524a9aeb5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.65-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c4d7b8bd8d91902e666386bb05f79f0b5bd4f2d32886fcc641d5e0a189322681
MD5 1ac207376c28e7e567b7cc2b6f50ef21
BLAKE2b-256 82df6ce8526b9712e20d8230a89953c987e4a21e2a7f1bcbdf8f24ecf5e14606

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.65-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 ba65ea549f1b2747f42cc15d7c2b7a17f521d8a7954d5387e5e3a9e6ae426ae9
MD5 6a7b7a350663f8f7eb15ab430a5b690c
BLAKE2b-256 fae3095643fa20ad8901fcc2380b5053f17334d14ef9fafd634d1dfce90ffe0f

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