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

Uploaded Python 3Windows ARM64

mothx_installer-1.1.62-py3-none-win_amd64.whl (9.0 MB view details)

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

mothx_installer-1.1.62-py3-none-manylinux_2_17_x86_64.whl (8.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

mothx_installer-1.1.62-py3-none-manylinux_2_17_s390x.whl (8.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ s390x

mothx_installer-1.1.62-py3-none-manylinux_2_17_ppc64le.whl (8.0 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

mothx_installer-1.1.62-py3-none-macosx_11_0_arm64.whl (8.2 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

mothx_installer-1.1.62-py3-none-macosx_10_15_x86_64.whl (8.7 MB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.62-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 80a00d64f42e8c463e5f64dd0a09f32e187a73eb13ab07bbd8960f16d7d6d792
MD5 20703eae69acb62e4ec0e7ae9694b26a
BLAKE2b-256 451a66145065585b80889aa0c814d7c170eb2805084055cfdb6d431502ac8ba6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.62-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 2b2a25837f1812c0ea5ad6aafe3e3e5802e05794b3606fa7cf970c539059a892
MD5 e54276a757dc21c98daf43b95114160a
BLAKE2b-256 17e4020151f9aeb356c1ed03a6ef06ff404a447c944a4a19ba9611cd1b969037

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.62-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f58d5e23c84da7013af3a27b32ed0e1e897527d453a8a3fe4e9fef8a1caaff0d
MD5 bfd8f173a5a5a5926002b4a9aee1ae71
BLAKE2b-256 87de7e9933b15ef6667c597f3263ad5d1cfb0ac3767280fe2afe57de5f6b90e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.62-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 512a35498e17a54a922bef92cc1a5c0b90831e63c19cbc3b1853a4c087feaf3a
MD5 c7a2823e8190b95f779df0e68496181a
BLAKE2b-256 17e2bc1428b2473b357674b3ba1f6dd40788bfe33c3a6b0ed0a84e5409404769

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.62-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 acc1d1b3930c8fc77f6c7f9ca50760b719d9cf64ff8e86ac456a088495403ac6
MD5 5b2f8eda52a7f2eac720ebb2d4087293
BLAKE2b-256 5fd833329aeb8420e56dc7e88ed8691b1fabf0e3252db965f2d6a52a727f8ebd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.62-py3-none-manylinux_2_17_s390x.whl
Algorithm Hash digest
SHA256 49beb8e67e560c17f811a546eddc1d8dbeef2b8d981288a21aac49df257456c0
MD5 1022f3576cbd81edf2ac93b510d3ec6a
BLAKE2b-256 0dccb1d9569ce460c1793cbbe975f1219b2813549276316415d5e1f69b336b53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.62-py3-none-manylinux_2_17_ppc64le.whl
Algorithm Hash digest
SHA256 c6686e6de6dfa2f2e516fb7a1ac7b72fdf99e067574d662c17f794a705f873df
MD5 eb8fa1766cd3abdae5df3e8b678388cc
BLAKE2b-256 35a0c7ce033aa283fc97f753d22437793ebc8f9f75bba9d23cf597b38de50bd6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.62-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 1bfe3e86cd68ae23f5f0942474fbd5a032295348a572199a77bd312b4373c4dd
MD5 15efd0cb8863698158ef5319ff59cf79
BLAKE2b-256 4bc9bab075a28959177a6e2e3b74e10f1c3bdc55ba0b3cdff7c376c2244267c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.62-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e0c49a4bff3ce470ef39bd1e492054ce667bc5cd26d8b5a9cd0dcedf833921dd
MD5 84f395ca23cd2c66ec2e7fbdd7e48fb0
BLAKE2b-256 012964fc37c9f6eb5bc51d86796930f5b1906e7e340c60e8a0f4c17508572ce3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.62-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 333c5a49a92974c10768ddab30e4505cb96a16a291eac7a9d2f6c6b2c93c3571
MD5 d65e591280b7c14a5a4bfe27eed16580
BLAKE2b-256 06d4ceee40aa722b7bd168bfcb54136e5139fbc288729f9b956eaf2e8fa35c86

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