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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.17+ s390x

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

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

mothx_installer-1.1.71-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.71-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.71-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 f99ab2eeb1083efc957f2cd6fa9444077ca852e64cde077f5d24c69f4dbb1bf9
MD5 82e6c714d39cd7845d2c18d872f5f3af
BLAKE2b-256 6cc38b4215395c9a47b3078758af4adf8c0a5a41859ad1b6d7bbf2b6106e6840

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.71-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 8a30a6ac41836719503379288070fdf61f74daf8f2c2717d379628835f87f2f0
MD5 1d9cb7e86438d34c35e183cf44bd5e77
BLAKE2b-256 60897b287450c8794dcb8657beb1c03019b275ef6111dd54fa2d8da386c9e99f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.71-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8e004f3ea750c89cad11a4c0ceffe69a76bb023776f5214c7c2ad66e049f163c
MD5 66c1ecb7eebc1b2af253915a25dae4ed
BLAKE2b-256 64c9b68657379c4cb58f325978c319bce4e17b22aa06bb39440fc2ff35e140ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.71-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 dfbb56551d1c17e22a5c2462621e5b73c5fe53164adc29614792ac764fdd8c33
MD5 47d609aadb3fc985c85f37cacbde93b2
BLAKE2b-256 3c6b18d04bebe26517f242dff77a5e59bf9a55e71032630de0883c7e76e8b6e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.71-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 420cee20e9b9b431d18f67a01251afe4d31bf90cd8b25c508988e9e38ae62d93
MD5 d97692b359e417a847b94f284a930422
BLAKE2b-256 3a1e1cdfdc2e474d4a3968dc08414c69a1258d45c8aa30afa1f951a7e56490dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.71-py3-none-manylinux_2_17_s390x.whl
Algorithm Hash digest
SHA256 bf1f66d6c6595c0df9ed3ef75cd5a276c1494e8b1836c3de0ec29a4931443b15
MD5 4583fcd75530f231aadbfcbef2fc7449
BLAKE2b-256 381c10dfb5558aedc3a627288bb13cbcf56f2a0be715719a27c6ba1d2bb27a65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.71-py3-none-manylinux_2_17_ppc64le.whl
Algorithm Hash digest
SHA256 a7456021c18516c5a89ba242185ea7f48dd60090111cada36068ba49e10fb27d
MD5 d3a9a9085163b64cb104e6365632d2eb
BLAKE2b-256 6b56b9f46b72a8b32fd91e1b09db70765f22f423249ad2bc668338f73cc90408

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.71-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 8be16c94aecec67caa95fc8db6f20719d135c166042be316e3585b7c3331c6e4
MD5 4426bde8a949cc711efe29c21dbf14e2
BLAKE2b-256 801c82af195e117d739b9ac5c8572a86551f22adc056af32999f440de8a68d0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.71-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d81beb13670916f093a2107dda6b1f57e543bb4acee5e44fa3a5ee00a51b7fb7
MD5 2abaeef44ce79fc20c5497d65733c480
BLAKE2b-256 f90e695a233cd124cdedd09d3253981412a6cdbf4e3ebabe2697fb1802e2c81a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.71-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 8ca71d0295c43607e44cb274f9072ae97866b0efc29aa217f65231264ea73875
MD5 abeebd50dba488c79efff84d7f79a5e1
BLAKE2b-256 146fdb66e97bfdc49d3eedf6f6303475a7be298e24f473e60496b0353e2233c7

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