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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

mothx_installer-1.1.75-py3-none-musllinux_1_2_x86_64.whl (8.8 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.17+ s390x

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

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

mothx_installer-1.1.75-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.75-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.75-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 357d11b167c1c2fa53fda2585f6609ad751a9273b8d40d5414013ea26a85a37a
MD5 e604bd164f5edb0fce12b0d836970209
BLAKE2b-256 df478b22d4c05f958cf53b36be600049aefbdbce44966c15d9a577752fed17ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.75-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 f480bf7068b2d1ba3961586a41c221207a8cd3a0c625b79898d5b8922845ee08
MD5 70775e2a4ce83d88e8b596822236a3ca
BLAKE2b-256 d681e649dff7a73f7f3cf86d694cd2698228c5a1830500b5f3f4c4d95b7fada8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.75-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 14b7c5d6d5b1b39d261b69937e6c585ba25403f0dca80a39a3f1afb6a58944f5
MD5 1905aad377a49060a6957d4ff9e8b98a
BLAKE2b-256 410b3bec10d96c10386591abfca7880510b57f17256eb3ffcd5036e7f694bf23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.75-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 591b23dc8e168ab0cac645552eb94d31389dd9541f23729c91260a1a4be4e7f2
MD5 587915bbbb4fd84e9c90a344975d6d96
BLAKE2b-256 0605ea3bf40dcdc860d3af1444613400ba7f0fde4015e3be00c319045163d48f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.75-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 235884ac7f2e4c6dfada162dcf13f4e62653b9dac7212947487f432f594b7e07
MD5 a098897d0d0c2e3e7047e7296aae6a1c
BLAKE2b-256 3729c520e3a3ab7136ca34bae89e5910c27a7fa71a3521085f50730c3ca9457a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.75-py3-none-manylinux_2_17_s390x.whl
Algorithm Hash digest
SHA256 d98ebc5a8ffeb020f8df6109bb7d5952f8d37898caad8a42a8d8e2f15946e6e9
MD5 62b449cbf056839426b6e2c1c4090204
BLAKE2b-256 222ccb82ab85371c14903f26c208d6229ef3bd522f7372f1f51d84db38dd77ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.75-py3-none-manylinux_2_17_ppc64le.whl
Algorithm Hash digest
SHA256 caf1ed7dcf103dd506d0665483d2c5f7b75ce8adb3ea94aac062d77f9481105c
MD5 2703e8653fde77e858151aacb04378f4
BLAKE2b-256 017f43fb3efd6c8ccec6bc19162deccce4942d63f040c52f69940e3b697b8e7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.75-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 60cb64dd6ae15752504a5cb46ea56b49a82499e670b7b15b78048b9db5c2d8a6
MD5 0229caae8ebd2b79692ab868fabbd3e0
BLAKE2b-256 9c3cf9446705bd726328c6ed3a5bcc4aeb06831081a412bd2dde3cd71eb5e207

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.75-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 81d7d5aaca62db36c4afa7d80e69fbcc7202b9815234c4f59a908e53f9d4d7e2
MD5 c8d5a55937dffe0f0f66995db4e1a438
BLAKE2b-256 e1b2893dbf7191035d61ab6f607091a50f9fa808790da716cd20999a6489ad8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.75-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 8cc1931c6a14ef1dbf4ac9311398af74aa04faec5c2f744548f5087f3489016c
MD5 15526efd5c3be99580221224a52e28b3
BLAKE2b-256 7c2eeadb84bd11d8c92f95789eddd2c5cf8b99acc05373f7aaaa5836c76529cf

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